/* Base & Utilities */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background-color: #166534;
    color: white;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f0f7f0;
}
::-webkit-scrollbar-thumb {
    background: #8ec98e;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #5aad5a;
}

/* Hero geometric animations */
.hero-geo {
    animation: float 6s ease-in-out infinite;
}
.hero-geo:nth-child(2) { animation-delay: -1s; animation-duration: 7s; }
.hero-geo:nth-child(3) { animation-delay: -2s; animation-duration: 5s; }
.hero-geo:nth-child(4) { animation-delay: -0.5s; animation-duration: 8s; }
.hero-geo:nth-child(5) { animation-delay: -3s; animation-duration: 6s; }
.hero-geo:nth-child(6) { animation-delay: -1.5s; animation-duration: 9s; }
.hero-geo:nth-child(7) { animation-delay: -4s; animation-duration: 7s; }
.hero-geo:nth-child(8) { animation-delay: -2.5s; animation-duration: 8s; }

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(var(--rotation, 0deg)); }
    50% { transform: translateY(-18px) rotate(var(--rotation, 0deg)); }
}

/* Stat cards entrance */
.stat-card {
    opacity: 0;
    transform: translateY(20px);
    animation: cardIn 0.6s ease forwards;
}
.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }

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

/* Program cards hover */
.program-card {
    transform: translateY(0);
}
.program-card:hover {
    transform: translateY(-4px);
}

/* Scroll reveal (below fold only) */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Testimonial cards */
.testimonial-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testimonial-card:hover {
    transform: translateY(-2px);
}

/* Mobile menu */
#mobile-menu.open {
    max-height: 400px;
}

/* Nav active state */
.nav-link.active {
    color: #166534 !important;
    background-color: #f0f7f0 !important;
}
