@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Color Palette - Default Light Mode (Neutral/Green) */
    --bg-deep: #ffffff;
    --bg-surface: #f4f5f2; /* Slightly warm/green neutral */
    --bg-surface-soft: #eef0eb;
    
    --accent-primary: #2A7B36;
    --accent-glow: rgba(42, 123, 54, 0.15);
    
    --text-main: #1a1c19; /* Very dark green/grey */
    --text-muted: #5c6059;
    --text-dim: #8e928a;

    --border: rgba(0, 0, 0, 0.05);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(42, 123, 54, 0.1);

    /* Spacing */
    --section-padding: 80px 0;
    --container-max: 1200px;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-deep: #0a0c0a; /* True black with a hint of green */
        --bg-surface: #141814;
        --bg-surface-soft: #1d221d;
        
        --text-main: #f0f2ef;
        --text-muted: #a3a8a0;
        --text-dim: #70756d;

        --border: rgba(255, 255, 255, 0.05);
        --glass-bg: rgba(20, 24, 20, 0.7);
        --glass-border: rgba(42, 123, 54, 0.2);
        --accent-glow: rgba(42, 123, 54, 0.4);
    }
}

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

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

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

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Glassmorphism Utility */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
}

/* Layout */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: var(--section-padding);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    gap: 8px;
    border: none;
}

.btn-primary {
    background: var(--accent-primary);
    color: white;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--accent-glow);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-main);
}

.btn-outline:hover {
    background: var(--border);
    border-color: var(--text-muted);
}

/* Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

header.scrolled {
    padding: 12px 0;
    background: var(--glass-bg);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(20px);
}

header.scrolled #menu-toggle {
    color: var(--text-main) !important;
}

#menu-toggle {
    color: #ffffff; /* Default white for hero overlay */
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--accent-primary);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background-color: #0a0c0a; /* Force dark background for hero to match excavator image */
    color: #f0f2ef;
}

.hero-content {
    max-width: 650px;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: clamp(36px, 6vw, 56px);
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(to right, #ffffff, #a3e635); /* Neon green gradient */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 40px rgba(0,0,0,0.6), 0 0 20px rgba(42, 123, 54, 0.2); /* Stronger shadow for light mode fallback */
}

.hero p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.hero-visual {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 55%;
    z-index: 1;
    opacity: 0.9;
    pointer-events: none;
    mask-image: linear-gradient(to left, rgba(0,0,0,1) 60%, rgba(0,0,0,0));
    -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1) 60%, rgba(0,0,0,0));
}

/* Full-bleed hero media (image / video / slideshow) sits behind hero content */
.hero.has-media .container { position: relative; z-index: 3; }
.hero.has-media .hero-content { max-width: 720px; }
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}
.hero-bg img,
.hero-bg video,
.hero-bg .hero-bg-track {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-bg .hero-bg-track {
    display: flex;
    transition: transform 0.7s ease;
}
.hero-bg .hero-bg-track img {
    position: relative;
    inset: auto;
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(10,12,10,0.85) 0%, rgba(10,12,10,0.55) 55%, rgba(10,12,10,0.30) 100%);
}
.hero-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 4;
}
.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
    cursor: pointer;
    transition: background 0.3s;
}
.hero-dot.active { background: var(--accent-primary); }

.bg-glow {
    position: absolute;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    top: -10%;
    right: -10%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.3; /* Default light mode */
}

@media (prefers-color-scheme: dark) {
    .bg-glow {
        opacity: 0.8; /* More intense in dark mode */
    }
}

/* Responsive */
/* Sidebar & Mobile Nav */
.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--bg-deep);
    z-index: 2000;
    transition: var(--transition);
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    border-left: 1px solid var(--border);
}

.mobile-sidebar.active {
    right: 0;
}

.mobile-only { display: none; }
.desktop-only { display: inline-flex; }

@media (max-width: 992px) {
    .nav-links { display: none; }
    .mobile-only { display: inline-flex; }
    .desktop-only { display: none; }
    .hero { min-height: auto; padding-top: 120px; padding-bottom: 60px; }
    .hero-visual { 
        position: relative; 
        right: auto; 
        top: auto; 
        transform: none; 
        width: 120%; 
        margin-left: -10%;
        margin-top: 20px;
        opacity: 1;
        display: block;
        mask-image: none;
        -webkit-mask-image: none;
    }
    .hero-content { max-width: 100%; text-align: center; }
    .hero-actions { justify-content: center; gap: 12px; flex-direction: column; align-items: center; }
    .btn { width: 100%; max-width: 300px; }
    .nav-wrapper { padding: 0 10px; }
    .logo img { height: 30px !important; }
}

/* Cookie consent banner */
#cookie-consent {
    position: fixed;
    left: 24px;
    right: 24px;
    bottom: 24px;
    z-index: 9999;
    max-width: 520px;
    margin: 0 auto;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
    padding: 24px;
    transform: translateY(150%);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

#cookie-consent.visible {
    transform: translateY(0);
    opacity: 1;
}

#cookie-consent .cc-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
}

#cookie-consent .cc-text {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 16px;
}

#cookie-consent .cc-text a {
    color: var(--accent-primary);
    font-weight: 600;
}

#cookie-consent .cc-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

#cookie-consent .cc-actions .btn {
    padding: 10px 22px;
    font-size: 13px;
}

@media (max-width: 768px) {
    #cookie-consent { left: 16px; right: 16px; bottom: 16px; padding: 20px; }
    #cookie-consent .cc-actions .btn { flex: 1; min-width: 120px; }
}
