/* ========= BASE / GLOBAL GREEN BLEND ========= */

:root {
    /* THE MODERN GREEN BLEND PALETTE */
    --primary: #059669;
    /* Emerald 600 */
    --primary-dark: #065f46;
    /* Emerald 800 */
    --primary-light: #34d399;
    /* Emerald 400 */
    --secondary: #10b981;
    --accent: #f59e0b;
    /* Amber 500 for subtle accents */
    --accent-light: #f0fdf4;
    --dark-bg: #022c22;
    --text-main: #1e293b;
    /* Slate 800 */
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);

    /* Responsive Spacing Variables */
    --section-spacing: 100px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, sans-serif;
}

body {
    background-color: #f8fafc;
    color: var(--text-main);
    overflow-x: hidden;
    /* Prevents horizontal scrolling on mobile */
    overflow-y: scroll; /* Force vertical scrollbar to prevent layout jump on navigation */
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* --- Global Layout Containers --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-large {
    max-width: 1400px;
}

/* Helper Class: Section Spacing */
.section-padding {
    padding: var(--section-spacing) 0;
}

/* Responsive Image Rule - Critical for all pages */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}

/* --- Global Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

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

.glass-dark {
    background: rgba(2, 44, 34, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- Shadow Utilities --- */
.shadow-sm {
    box-shadow: var(--shadow-sm);
}

.shadow-md {
    box-shadow: var(--shadow-md);
}

.shadow-lg {
    box-shadow: var(--shadow-lg);
}

/* --- Text Gradients --- */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-light), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */

/* --- TABLET (481px to 1024px) --- */
@media (min-width: 481px) and (max-width: 1024px) {
    :root {
        --section-spacing: 80px;
    }

    .container {
        max-width: 900px;
    }

    .grid-2-tablet {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* --- MOBILE (Up to 480px) --- */
@media (max-width: 480px) {
    :root {
        --section-spacing: 60px;
    }

    body {
        font-size: 15px;
    }

    .container {
        padding: 0 15px;
    }

    .grid-1-mobile {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.6rem;
    }
}