/* Modern Bio-Energy Website - Enhanced Design */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette - Brand Colors from Logo */
    --primary: #4485AB;
    --primary-light: #5A9BC4;
    --primary-dark: #356A8A;
    --accent: #DD7E7C;
    --accent-light: #F5A5A3;
    --dark: #1A1A2E;
    --dark-light: #2D2D44;
    --light: #F7F7F2;
    --white: #FFFFFF;
    --text-dark: #2D3748;
    --text-light: #718096;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #4485AB 0%, #5A9BC4 100%);
    --gradient-hero: linear-gradient(135deg, #1A1A2E 0%, #4485AB 50%, #5A9BC4 100%);
    --gradient-accent: linear-gradient(135deg, #DD7E7C 0%, #F5A5A3 100%);
    
    /* Spacing */
    --section-padding: 100px;
    --container-max: 1200px;
}

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&family=Poppins:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--light);
    overflow-x: hidden;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 30px;
}

/* Typography */
h1, h2, h3, h4, h5 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
    font-size: 1.1rem;
}

.lead {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--text-dark);
}

/* Navigation - Modern with Logo */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: #FFFFFF;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.12);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 30px;
    max-width: 1400px;
}

.nav-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.nav-brand:hover {
    opacity: 0.8;
}

.nav-logo {
    height: 55px;
    width: auto;
    display: block;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    transition: color 0.3s ease;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.nav-toggle span {
    width: 28px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero Section - Dynamic & Engaging */
.hero {
    background: var(--gradient-hero);
    color: var(--white);
    padding: 140px 0 100px;
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
    animation: drift 20s linear infinite;
}

@keyframes drift {
    from { transform: translateX(0) translateY(0); }
    to { transform: translateX(-100px) translateY(-100px); }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    color: var(--white);
    margin-bottom: 2rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1s ease 0.2s backwards;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    animation: fadeInUp 1s ease 0.4s backwards;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.6s backwards;
}

/* Page Header */
.page-header {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 130px 0 70px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

.page-header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, var(--light), transparent);
}

.page-header h1 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.page-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.3rem;
}

/* Sections */
.section {
    padding: var(--section-padding) 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header h2 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-accent);
    border-radius: 2px;
}

.bg-light {
    background-color: var(--white);
}

/* Buttons - Modern & Animated */
.btn {
    display: inline-block;
    padding: 16px 36px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: -1;
}

.btn:hover::before {
    width: 400px;
    height: 400px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(68, 133, 171, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(68, 133, 171, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary);
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(68, 133, 171, 0.3);
}

/* Cards - Modern Design */
.row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.service-card,
.value-card {
    background: var(--white);
    padding: 3rem 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before,
.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-card:hover::before,
.value-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover,
.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(68, 133, 171, 0.15);
}

.service-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    filter: grayscale(0.3);
    transition: all 0.3s ease;
}

.service-card:hover .service-icon,
.value-card:hover .service-icon {
    filter: grayscale(0);
    transform: scale(1.1);
}

.service-card h3,
.value-card h3 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.service-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s ease;
}

.service-link:hover {
    gap: 15px;
    color: var(--primary);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover::before {
    opacity: 0.05;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(68, 133, 171, 0.15);
}

.stat-card h3 {
    color: var(--primary);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.stat-card p {
    color: var(--text-light);
    font-weight: 500;
    position: relative;
    z-index: 1;
    margin: 0;
}

/* Lists */
.benefits-list,
.highlight-list,
.region-list {
    list-style: none;
    padding: 0;
}

.benefits-list li,
.highlight-list li,
.region-list li {
    padding: 1rem 0;
    color: var(--text-light);
    font-size: 1.05rem;
    position: relative;
    padding-left: 35px;
}

.benefits-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
    font-size: 1.3rem;
}

.highlight-list li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.highlight-list li:hover {
    padding-left: 45px;
    color: var(--primary);
}

.region-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
    font-size: 1.3rem;
}

/* Project Showcase */
.project-showcase {
    background: var(--white);
    border-radius: 25px;
    padding: 4rem;
    box-shadow: 0 15px 60px rgba(0, 0, 0, 0.1);
    margin-bottom: 4rem;
}

.project-header {
    text-align: center;
    margin-bottom: 4rem;
}

.project-status {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-status.operational {
    background: linear-gradient(135deg, #DD7E7C 0%, #F5A5A3 100%);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(221, 126, 124, 0.3);
}

.project-location {
    color: var(--text-light);
    font-size: 1.2rem;
    font-weight: 500;
}

.project-specs {
    background: linear-gradient(135deg, rgba(68, 133, 171, 0.05) 0%, rgba(90, 155, 196, 0.05) 100%);
    padding: 2.5rem;
    border-radius: 20px;
    border: 2px solid rgba(68, 133, 171, 0.1);
}

.spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.spec-item:last-child {
    border-bottom: none;
}

.spec-label {
    color: var(--text-light);
    font-weight: 500;
}

.spec-value {
    font-weight: 700;
    color: var(--primary-dark);
    font-size: 1.1rem;
}

/* Process Steps */
.process-steps {
    padding: 3rem;
    background: linear-gradient(135deg, rgba(68, 133, 171, 0.03) 0%, rgba(90, 155, 196, 0.03) 100%);
    border-radius: 20px;
    border: 2px solid rgba(68, 133, 171, 0.1);
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 2px dashed rgba(68, 133, 171, 0.2);
}

.step:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.step-number {
    background: var(--gradient-primary);
    color: var(--white);
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.3rem;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(68, 133, 171, 0.3);
}

.step-content h5 {
    color: var(--primary-dark);
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
}

.step-content p {
    margin: 0;
    color: var(--text-light);
}

/* Contact Form */
.contact-form {
    background: var(--white);
    padding: 3rem;
    border-radius: 25px;
    box-shadow: 0 15px 60px rgba(0, 0, 0, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1.05rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid rgba(68, 133, 171, 0.15);
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    background: var(--light);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(68, 133, 171, 0.1);
}

.contact-info {
    background: var(--white);
    padding: 3rem;
    border-radius: 25px;
    box-shadow: 0 15px 60px rgba(0, 0, 0, 0.1);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.contact-item {
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(68, 133, 171, 0.03) 0%, rgba(90, 155, 196, 0.03) 100%);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: linear-gradient(135deg, rgba(68, 133, 171, 0.08) 0%, rgba(90, 155, 196, 0.08) 100%);
    transform: translateX(5px);
}

.contact-item h4 {
    margin-bottom: 1rem;
    color: var(--primary-dark);
    font-size: 1.1rem;
}

.contact-item p {
    margin: 0.5rem 0;
    color: var(--text-light);
}

/* CTA Section */
.cta-section {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
}

.cta-box {
    background: var(--white);
    padding: 4rem;
    border-radius: 25px;
    text-align: center;
    margin-top: 4rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* About Highlights */
.about-highlights {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 100px;
}

.about-highlights h3 {
    color: var(--primary);
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

/* Fertilizer Features */
.fertilizer-features {
    padding: 3rem;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.feature {
    margin-bottom: 2.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(68, 133, 171, 0.03) 0%, rgba(90, 155, 196, 0.03) 100%);
    border-radius: 15px;
    border-left: 4px solid var(--primary);
    transition: all 0.3s ease;
}

.feature:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 20px rgba(68, 133, 171, 0.1);
}

.feature:last-child {
    margin-bottom: 0;
}

.feature h5 {
    color: var(--primary);
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
}

.feature p {
    margin: 0;
}

/* Footer */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 80px 0 40px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-primary);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-section h3,
.footer-section h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.footer-section p,
.footer-section li {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.8rem;
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-section a:hover {
    color: var(--accent-light);
    transform: translateX(5px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2.5rem;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

/* Responsive Design */
@media (max-width: 968px) {
    :root {
        --section-padding: 70px;
    }
    
    .navbar .container {
        padding: 0.8rem 20px;
    }
    
    .nav-logo {
        height: 45px;
    }
    
    .nav-menu {
        display: none;
        position: fixed;
        top: 65px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 1.5rem;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
        gap: 0;
        animation: slideDown 0.3s ease;
        max-height: calc(100vh - 65px);
        overflow-y: auto;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-link {
        padding: 1rem 0;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .nav-link::after {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-logo {
        height: 45px;
    }
    
    .hero {
        padding: 120px 0 70px;
        margin-top: 0;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .row {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .project-showcase {
        padding: 2.5rem 1.5rem;
    }
    
    .contact-info {
        position: static;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 20px;
    }
    
    .nav-logo {
        height: 40px;
    }
    
    .hero {
        padding: 110px 0 60px;
        margin-top: 0;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card,
    .value-card,
    .contact-form,
    .contact-info {
        padding: 2rem 1.5rem;
    }
    
    .project-showcase {
        padding: 2rem 1rem;
    }
    
    .process-steps {
        padding: 2rem 1.5rem;
    }
    
    .step {
        gap: 1.5rem;
    }
    
    .step-number {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.service-icon {
    animation: float 3s ease-in-out infinite;
}

/* Accessibility */
.btn:focus,
.nav-link:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .btn,
    .nav-toggle {
        display: none;
    }
    
    .hero,
    .page-header {
        background: none;
        color: var(--text-dark);
    }
}
