/* Base & Utilities */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    overflow-x: hidden;
}

/* Scroll Reveal — progressive enhancement: default state is visible */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.reveal-hidden {
    opacity: 0;
    transform: translateY(30px);
}

.reveal-delay-150 { transition-delay: 0.15s; }
.reveal-delay-200 { transition-delay: 0.2s; }
.reveal-delay-300 { transition-delay: 0.3s; }

/* Hero Animations — only on first load */
.hero-eyebrow,
.hero-headline,
.hero-subtext,
.hero-ctas {
    opacity: 0;
    transform: translateY(20px);
}

.hero-eyebrow.hero-animated {
    animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}
.hero-headline.hero-animated {
    animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}
.hero-subtext.hero-animated {
    animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
}
.hero-ctas.hero-animated {
    animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.8s forwards;
}

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

/* Navbar */
.nav-text {
    color: rgba(255, 255, 255, 0.85);
}

/* Program Cards */
.program-card {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

.program-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.5);
}

/* Why Cards */
.why-card {
    transition: transform 0.3s ease;
}

.why-card:hover {
    transform: translateY(-4px);
}

/* Mobile Links */
.mobile-link {
    display: block;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal.reveal-hidden,
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .hero-eyebrow,
    .hero-headline,
    .hero-subtext,
    .hero-ctas {
        opacity: 1;
        transform: none;
        animation: none;
    }
    .program-card,
    .why-card {
        transition: none;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0f172a;
}
::-webkit-scrollbar-thumb {
    background: #14b8a6;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #2dd4bf;
}
