:root {
    /* Colors */
    --bg-color: #080A06;
    --accent-green: #6DBE47;
    --secondary-earth: #C8A96E;
    --text-white: #FFFFFF;
    --text-dim: rgba(255, 255, 255, 0.6);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    
    /* Fonts */
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Outfit', sans-serif;
    
    /* Spacing & Transitions */
    --section-padding: 8rem 6rem;
    --section-padding-mobile: 5rem 1.5rem;
    --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-standard: all 0.3s var(--ease-smooth);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-color);
    color: var(--text-white);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    opacity: 0; /* Faded in via JS */
}

::selection {
    background: rgba(109, 190, 71, 0.25);
    color: var(--text-white);
}

h1, h2, h3, h4, .brand-name, .stat-number {
    font-family: var(--font-heading);
    font-style: italic;
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-standard);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

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

/* Liquid Glass System */
.liquid-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    position: relative;
    overflow: hidden;
}

.liquid-glass-strong {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(50px);
    -webkit-backdrop-filter: blur(50px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 12px 48px 0 rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.liquid-glass::before, .liquid-glass-strong::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: inherit;
    background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent 40%, transparent 60%, rgba(255,255,255,0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* Animations */
@keyframes flicker {
    0%, 100% { opacity: 1; }
    90% { opacity: 0.9; }
    92% { opacity: 1; }
    94% { opacity: 0.9; }
}

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(109, 190, 71, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(109, 190, 71, 0); }
    100% { box-shadow: 0 0 0 0 rgba(109, 190, 71, 0); }
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
        filter: blur(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes ground-scan {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(200%) translateY(200%) rotate(45deg); }
}

.flicker { animation: flicker 3s infinite; }
.fade-up { opacity: 0; }
.fade-up.visible { animation: fadeUp 1s var(--ease-smooth) forwards; }
.pulse-node { animation: pulse-green 2s infinite; }

/* Buttons */
.btn-primary {
    background: var(--accent-green);
    color: var(--bg-color);
    padding: 0.8rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.btn-glass-strong {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1rem 2.5rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 600;
}

.btn-glass-strong:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 600;
}

.btn-ghost svg {
    width: 40px;
    height: 40px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
}

/* Scroll Progress */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    background: var(--accent-green);
    width: 100%;
    transform: scaleX(0);
    transform-origin: left;
    z-index: 1001;
}

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

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.6rem 1.2rem;
    border-radius: 9999px;
}

.nav-logo svg { width: 24px; height: 24px; color: var(--accent-green); }
.brand-name { font-size: 1.4rem; }

.nav-links {
    display: flex;
    gap: 2rem;
    padding: 0.8rem 2.5rem;
    border-radius: 9999px;
}

.nav-links a:hover { color: var(--accent-green); }

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

/* Hero */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.hero-overlay-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(109, 190, 71, 0.15) 0%, transparent 70%);
    z-index: -1;
}

.hero-overlay-fade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 50%, var(--bg-color) 100%);
    z-index: -1;
}

.hero-content {
    text-align: center;
    max-width: 900px;
}

.hero-content .label {
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent-green);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.hero-content h1 {
    font-size: clamp(3.5rem, 9vw, 8rem);
    line-height: 1;
    margin-bottom: 2rem;
}

.hero-content .subtitle {
    font-size: 1.2rem;
    color: var(--text-dim);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

/* Trust Bar */
.trust-bar {
    padding: 1.5rem 0;
    border-left: none;
    border-right: none;
}

.marquee-container {
    overflow: hidden;
    white-space: nowrap;
}

.marquee-content {
    display: inline-block;
    animation: marquee 30s linear infinite;
}

.marquee-content span {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.4);
    margin: 0 1rem;
}

.marquee-content .dot {
    color: var(--accent-green);
}

/* Services */
.services {
    padding: var(--section-padding);
}

.services-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.service-featured {
    height: 650px;
    border-radius: 1.5rem;
    position: relative;
}

.featured-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.7s var(--ease-smooth);
}

.service-featured:hover .featured-img {
    transform: scale(1.04);
}

.featured-content {
    position: absolute;
    bottom: 3rem;
    left: 3rem;
    z-index: 1;
}

.accent-label {
    color: var(--accent-green);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 0.5rem;
}

.service-featured h2 {
    font-size: 3rem;
}

.services-grid-container h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.services-grid-container p {
    color: var(--text-dim);
    margin-bottom: 3rem;
    max-width: 600px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.service-card {
    padding: 2rem;
    border-radius: 1.5rem;
    transition: var(--transition-standard);
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: "";
    position: absolute;
    top: -100%;
    left: -100%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(109, 190, 71, 0.05), transparent);
    transform: rotate(45deg);
    pointer-events: none;
}

.service-card:hover::after {
    animation: ground-scan 1.5s var(--ease-smooth);
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card svg {
    width: 32px;
    height: 32px;
    color: var(--accent-green);
    margin-bottom: 1.5rem;
}

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

.service-card p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Stats Row */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.stat-col {
    padding: 4rem 2rem;
    text-align: center;
    border-right: 1px solid var(--glass-border);
}

.stat-col:last-child { border-right: none; }

.stat-number {
    display: block;
    font-size: 6rem;
    color: var(--accent-green);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.8rem;
    color: var(--text-dim);
}

/* Timeline */
.timeline {
    padding: var(--section-padding);
}

.timeline-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 4rem auto 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--accent-green), transparent);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    justify-content: flex-end;
    padding-right: 50%;
    position: relative;
    margin-bottom: 4rem;
}

.timeline-item.right {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: 50%;
}

.timeline-node {
    position: absolute;
    left: 50%;
    top: 2rem;
    width: 16px;
    height: 16px;
    background: var(--accent-green);
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.timeline-card {
    width: 85%;
    padding: 2.5rem;
    border-radius: 1.5rem;
}

.timeline-item.left .timeline-card { margin-right: 3rem; }
.timeline-item.right .timeline-card { margin-left: 3rem; }

.timeline-card svg {
    width: 32px;
    height: 32px;
    color: var(--accent-green);
    margin-bottom: 1.5rem;
}

/* Projects */
.projects {
    padding: var(--section-padding);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 4rem;
}

.section-header h2 { font-size: 3.5rem; }

.view-all {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-green);
    font-weight: 600;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 300px;
    gap: 1.5rem;
}

.bento-item {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
}

.bento-item::after {
    content: "";
    position: absolute;
    top: -100%;
    left: -100%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(109, 190, 71, 0.1), transparent);
    transform: rotate(45deg);
    pointer-events: none;
    z-index: 2;
}

.bento-item:hover::after {
    animation: ground-scan 1.5s var(--ease-smooth);
}

.bento-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s var(--ease-smooth);
}

.bento-item:hover img { transform: scale(1.05); }

.bento-item.tall { grid-row: span 2; }
.bento-item.wide { grid-column: span 2; }

.bento-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    display: flex;
    align-items: flex-end;
    padding: 2rem;
}

.bento-overlay span {
    padding: 0.6rem 1.2rem;
    border-radius: 9999px;
    font-size: 0.9rem;
}

/* Testimonials */
.testimonials {
    padding: var(--section-padding);
    position: relative;
}

.ambient-orb {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: var(--accent-green);
    filter: blur(120px);
    opacity: 0.08;
    border-radius: 50%;
    z-index: -1;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.testimonial-card {
    padding: 3rem;
    border-radius: 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.testimonial-card::after {
    content: "";
    position: absolute;
    top: -100%;
    left: -100%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(109, 190, 71, 0.05), transparent);
    transform: rotate(45deg);
    pointer-events: none;
}

.testimonial-card:hover::after {
    animation: ground-scan 1.5s var(--ease-smooth);
}

.stars {
    display: flex;
    justify-content: center;
    gap: 0.3rem;
    color: var(--accent-green);
    margin-bottom: 2rem;
}

.stars svg { width: 20px; height: 20px; }

blockquote {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.divider {
    width: 40px;
    height: 1px;
    background: var(--glass-border);
    margin: 0 auto 1.5rem;
}

cite {
    font-style: normal;
    color: var(--text-dim);
    font-size: 0.9rem;
}

/* FAQ */
.faq {
    padding: var(--section-padding);
    position: relative;
}

.faq-list {
    max-width: 800px;
    margin: 4rem auto 0;
}

.faq-item {
    margin-bottom: 1rem;
    border-radius: 1rem;
}

.faq-trigger {
    width: 100%;
    padding: 1.5rem 2rem;
    background: none;
    border: none;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
}

.faq-trigger svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-trigger svg { transform: rotate(180deg); }

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-content p {
    padding: 0 2rem 1.5rem;
    color: var(--text-dim);
}

/* Contact */
.contact {
    padding: var(--section-padding);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
}

.info-blocks {
    margin-top: 3rem;
    display: grid;
    gap: 2rem;
}

.info-block {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.icon-box {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.icon-box svg { width: 24px; height: 24px; color: var(--accent-green); }

.info-block span {
    display: block;
    font-size: 0.8rem;
    color: var(--text-dim);
    text-transform: uppercase;
}

.info-block p { font-weight: 600; }

.contact-card {
    padding: 3rem;
    border-radius: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group { margin-bottom: 1.5rem; }

label {
    display: block;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    color: var(--text-dim);
}

input, select, textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 0.8rem;
    padding: 1rem;
    color: white;
    font-family: inherit;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--accent-green);
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.form-checkbox input { width: auto; }

.full-width { width: 100%; }

.hidden { display: none; }

#form-success {
    text-align: center;
    padding: 2rem 0;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--accent-green);
    color: var(--bg-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    animation: pulse-green 2s infinite;
}

.success-icon svg { width: 40px; height: 40px; }

/* Footer */
.footer {
    padding: 6rem 0 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer-brand .logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.footer-brand .logo svg { width: 32px; height: 32px; color: var(--accent-green); }

.subscribe {
    margin-top: 2rem;
    display: flex;
    gap: 0.5rem;
}

.subscribe input { border-radius: 9999px; }

.footer-links h4 {
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
}

.footer-links ul li { margin-bottom: 1rem; }

.footer-links a {
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a:hover { color: var(--accent-green); }

.footer-links a svg { width: 16px; height: 16px; opacity: 0; transition: 0.3s; }
.footer-links a:hover svg { opacity: 1; transform: translateX(5px); }

.footer-bottom {
    padding-top: 3rem;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    color: var(--text-dim);
    font-size: 0.9rem;
}

.certs {
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--accent-green);
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .services-layout, .contact-layout { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .nav-links { display: none; }
    .mobile-menu-toggle { display: block; }
    .stats-row { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    :root { --section-padding: var(--section-padding-mobile); }
    .hero-content h1 { font-size: 4rem; }
    .stats-row { grid-template-columns: 1fr; }
    .timeline-line { left: 2rem; }
    .timeline-item { padding-right: 0; padding-left: 4rem; justify-content: flex-start; }
    .timeline-node { left: 2rem; }
    .timeline-card { width: 100%; margin-left: 0 !important; }
    .bento-grid { grid-template-columns: 1fr; grid-auto-rows: 250px; }
    .bento-item.wide { grid-column: span 1; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}
