:root {
    --bg-main: #f9fbf9; /* Soft organic off-white */
    --bg-card: #ffffff;
    --text-main: #1f2937; /* Deep slate */
    --text-muted: #4b5563; /* Medium slate */
    --primary: #10b981; /* Fresh leaf green */
    --primary-light: #d1fae5;
    --primary-hover: #059669;
    --accent: #0284c7; /* Water/Sky blue */
    --border: #e5e7eb;
    --glass-blur: blur(16px);
    
    /* Earthy gradients for cards */
    --grad-1: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 100%); /* Wind */
    --grad-2: linear-gradient(135deg, #dcfce7 0%, #f0fdf4 100%); /* Hydro */
    --grad-3: linear-gradient(135deg, #fef3c7 0%, #fffbeb 100%); /* Biodiesel */
    --grad-4: linear-gradient(135deg, #f3e8ff 0%, #faf5ff 100%); /* Biomass */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .logo {
    font-family: 'Outfit', sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-main);
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-main);
    opacity: 0.8;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.navbar:not(.scrolled) .nav-links a {
    color: #fff; /* White links on the hero image initially */
}

.navbar.scrolled .nav-links a {
    color: var(--text-main);
}

.nav-links a:hover {
    opacity: 1;
    color: var(--primary);
}

.navbar:not(.scrolled) .logo {
    color: #fff;
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('assets/images/hero.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Lighter, nature-inspired overlay */
    background: linear-gradient(to bottom, rgba(3, 40, 20, 0.4) 0%, rgba(249, 251, 249, 1) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 800px;
    padding: 0 2rem;
}

.hero h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    color: #fff;
}

.hero h1 span {
    color: var(--primary-light);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: #f0fdf4;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn {
    display: inline-block;
    padding: 0.875rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    border: none;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(4px);
}

.btn-outline:hover {
    background: #fff;
    color: var(--primary);
    border-color: #fff;
    transform: translateY(-2px);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 10;
    color: var(--text-main);
    animation: bounce 2s infinite;
}

.mouse {
    width: 24px;
    height: 36px;
    border: 2px solid var(--text-main);
    border-radius: 12px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 6px;
    background: var(--text-main);
    border-radius: 2px;
}

.scroll-indicator p {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

/* Sections */
.section {
    padding: 8rem 0;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem auto;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.section-header p {
    color: var(--text-muted);
}

/* Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.service-card {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2.5rem;
    background: var(--bg-card);
    border: 1px solid rgba(0,0,0,0.03);
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    color: var(--text-main);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.08);
}

.service-card.has-bg {
    background-size: cover;
    background-position: center;
    color: #fff;
}

.service-card.gradient-1 { background: var(--grad-1); border: none; }
.service-card.gradient-2 { background: var(--grad-2); border: none; }
.service-card.gradient-3 { background: var(--grad-3); border: none; }
.service-card.gradient-4 { background: var(--grad-4); border: none; }

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.1) 100%);
    z-index: 1;
}

.card-content {
    position: relative;
    z-index: 2;
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.service-card.has-bg .icon-wrapper {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.service-card.has-bg h3 {
    color: #fff;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-card.has-bg p {
    color: rgba(255, 255, 255, 0.9);
}

.learn-more {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: var(--primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.service-card.has-bg .learn-more {
    color: var(--primary-light);
}

.learn-more i {
    transition: transform 0.3s ease;
}

.service-card:hover .learn-more i {
    transform: translateX(5px);
}

/* Projects Section */
.projects-section {
    background: #fff;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.projects-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.highlight-text {
    font-size: 1.25rem;
    color: var(--primary);
    font-weight: 600;
    margin: 1rem 0;
}

.quote {
    font-style: italic;
    font-size: 1.1rem;
    border-left: 4px solid var(--primary);
    padding-left: 1.5rem;
    margin: 2rem 0;
    color: var(--text-main);
    background: var(--bg-main);
    padding: 1.5rem;
    border-radius: 0 16px 16px 0;
}

.projects-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.stat-card {
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.05);
}

.stat-card:first-child {
    grid-column: 1 / -1;
    background: var(--primary-light);
    border-color: rgba(16, 185, 129, 0.2);
}

.stat-card h3 {
    font-size: 3.5rem;
    display: inline-block;
    color: var(--primary);
}

.stat-card:first-child h3 {
    color: var(--primary-hover);
}

.stat-card .symbol {
    font-size: 2rem;
    color: var(--text-muted);
    vertical-align: super;
    margin-left: 2px;
}

.stat-card:first-child .symbol {
    color: var(--primary-hover);
}

.stat-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 0.5rem;
    font-weight: 500;
}

.mt-4 { margin-top: 2rem; }

/* Footer */
.footer {
    padding: 5rem 0 2rem 0;
    background: #0f172a;
    color: #fff;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #fff;
}

.footer-brand h2 span {
    color: var(--primary);
}

.footer-brand p {
    color: #94a3b8;
    max-width: 400px;
}

.footer-contact h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

.contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-list li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    color: #94a3b8;
}

.contact-list i {
    color: var(--primary);
    margin-top: 4px;
}

.phone-numbers {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-list a {
    transition: color 0.2s ease;
}

.contact-list a:hover {
    color: #fff;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #64748b;
    font-size: 0.9rem;
}

/* Animations */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-10px) translateX(-50%); }
    60% { transform: translateY(-5px) translateX(-50%); }
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.3s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal-text {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
    animation: revealText 1s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

@keyframes revealText {
    0% { transform: translateY(100%); }
    100% { transform: translateY(0); }
}

/* Responsive */
@media (max-width: 992px) {
    .projects-layout, .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .navbar:not(.scrolled) .logo,
    .navbar:not(.scrolled) .hamburger {
        color: #fff;
    }
    .navbar.scrolled .hamburger {
        color: var(--text-main);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .hamburger {
        display: block;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .hero-actions {
        flex-direction: column;
    }
    .section {
        padding: 5rem 0;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}
