/* ========== BASE RESET & ROOT ========== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --emerald-950: #022c22;
    --emerald-900: #064e3b;
    --emerald-800: #065f46;
    --emerald-700: #047857;
    --emerald-600: #059669;
    --emerald-500: #10b981;
    --cream-50: #fefdf8;
    --cream-100: #fef9ec;
    --cream-200: #fdf3d9;
    --cream-400: #f9e0a0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'DM Sans', sans-serif;
    background-color: var(--cream-50);
    color: var(--emerald-950);
    overflow-x: hidden;
}

.font-display {
    font-family: 'Space Grotesk', sans-serif;
}

/* ========== HEADER ========== */
#header {
    height: 72px;
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 20px;
    height: 2px;
    background: var(--emerald-600);
    border-radius: 1px;
    transition: transform 0.25s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: translateX(-50%) scaleX(1);
}

/* ========== HERO ========== */
.hero-shape {
    position: absolute;
    pointer-events: none;
}

.shape-circle-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    border-radius: 50%;
}

.shape-rect-1 {
    width: 200px;
    height: 200px;
    background: var(--cream-200);
    top: 20%;
    left: 5%;
    border-radius: 32px;
    transform: rotate(15deg);
    opacity: 0.5;
}

.shape-triangle {
    width: 0;
    height: 0;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 140px solid rgba(16, 185, 129, 0.06);
    top: 30%;
    right: 8%;
    transform: rotate(-15deg);
}

.shape-circle-2 {
    width: 120px;
    height: 120px;
    border: 3px solid rgba(6, 95, 70, 0.1);
    bottom: 20%;
    left: 10%;
    border-radius: 50%;
}

.shape-dots {
    top: 45%;
    right: 5%;
    opacity: 0.15;
}

.shape-dots svg circle {
    fill: var(--emerald-800);
}

.shape-stripe {
    width: 300px;
    height: 6px;
    background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.15), transparent);
    bottom: 30%;
    left: 0;
    transform: rotate(-5deg);
}

/* Hero animations */
.hero-badge {
    opacity: 0;
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.1s;
}

.hero-title {
    opacity: 0;
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.3s;
}

.hero-subtitle {
    opacity: 0;
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.5s;
}

.hero-ctas {
    opacity: 0;
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.7s;
}

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

/* CTA buttons */
.cta-primary {
    display: inline-flex;
    align-items: center;
    padding: 16px 32px;
    background: var(--emerald-800);
    color: var(--cream-50);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 16px;
    text-decoration: none;
    box-shadow: 0 8px 32px rgba(6, 95, 70, 0.3);
    transition: all 0.3s ease;
}

.cta-primary:hover {
    background: var(--emerald-700);
    box-shadow: 0 12px 40px rgba(6, 95, 70, 0.4);
    transform: translateY(-2px);
}

.cta-secondary {
    display: inline-flex;
    align-items: center;
    padding: 16px 32px;
    background: transparent;
    color: var(--emerald-800);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 16px;
    text-decoration: none;
    border: 2px solid rgba(6, 95, 70, 0.2);
    transition: all 0.3s ease;
}

.cta-secondary:hover {
    border-color: var(--emerald-600);
    background: rgba(6, 95, 70, 0.05);
    transform: translateY(-2px);
}

/* Scroll indicator */
.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.4;
    animation: float 2s ease-in-out infinite;
}

.scroll-mouse {
    width: 24px;
    height: 38px;
    border: 2px solid var(--emerald-800);
    border-radius: 12px;
    position: relative;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: var(--emerald-800);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 1.5s ease-in-out infinite;
}

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

@keyframes scrollWheel {
    0% { opacity: 1; top: 6px; }
    100% { opacity: 0; top: 20px; }
}

/* ========== SCROLL REVEAL ========== */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-left {
    transform: translateX(-40px);
}

.reveal-right {
    transform: translateX(40px);
}

.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* ========== CATEGORY CARDS ========== */
.category-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.category-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========== MOBILE MENU ========== */
#mobile-menu {
    transition: max-height 0.35s ease, opacity 0.35s ease;
}

#mobile-menu.hidden {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

#mobile-menu:not(.hidden) {
    max-height: 400px;
    opacity: 1;
}

.mobile-link {
    display: block;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .shape-circle-1 {
        width: 300px;
        height: 300px;
    }
    
    .shape-rect-1 {
        width: 120px;
        height: 120px;
    }
    
    .shape-triangle {
        border-left-width: 50px;
        border-right-width: 50px;
        border-bottom-width: 90px;
    }
}

@media (max-width: 640px) {
    #header {
        height: 64px;
    }
    
    .hero-title {
        font-size: 2.75rem;
    }
    
    .hero-title span {
        display: block;
    }
    
    /* Remove underline decoration on mobile */
    .hero-title span[style*="relative"] svg {
        display: none;
    }
}

/* ========== ACCESSIBILITY ========== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .reveal-up,
    .reveal-left,
    .reveal-right {
        opacity: 1;
        transform: none;
    }
    
    .category-card {
        opacity: 1;
        transform: none;
    }
}

/* ========== FOCUS STYLES ========== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--emerald-500);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ========== SELECTION ========== */
::selection {
    background: rgba(16, 185, 129, 0.2);
    color: var(--emerald-950);
}
