/* ── Reset & Base ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    background: #0a2540;
    color: #f0f4f8;
    font-family: 'Lato', sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* ── Color Tokens ─────────────────────────────────── */
:root {
    --midnight-900: #0a2540;
    --midnight-950: #061a2e;
    --mint-400:   #6fcf9f;
    --mint-500:   #4db87a;
    --mint-600:   #3a9d65;
}

/* ── Typography ───────────────────────────────────── */
.font-serif { font-family: 'Playfair Display', Georgia, serif; }
.font-body  { font-family: 'Lato', sans-serif; }

/* ── Navbar ───────────────────────────────────────── */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}
#navbar.scrolled {
    background: rgba(6, 26, 46, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}

.nav-link { position: relative; }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--mint-400);
    transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }

/* ── Buttons ──────────────────────────────────────── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--mint-500);
    color: var(--midnight-900);
    border: none;
    border-radius: 8px;
    padding: 0.75rem 2rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    cursor: pointer;
}
.btn-primary:hover {
    background: var(--mint-400);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(111, 207, 159, 0.25);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #f0f4f8;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    padding: 0.75rem 2rem;
    font-weight: 700;
    text-decoration: none;
    transition: border-color 0.3s ease, background 0.3s ease, transform 0.2s ease;
    cursor: pointer;
}
.btn-outline:hover {
    border-color: var(--mint-400);
    background: rgba(111, 207, 159, 0.08);
    transform: translateY(-2px);
}

/* ── Floating Stat Cards ──────────────────────────── */
.stat-card { pointer-events: none; }
.stat-card-inner {
    background: rgba(10, 37, 64, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(111, 207, 159, 0.2);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.stat-number {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--mint-400);
    line-height: 1;
}
.stat-label {
    display: block;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.5rem;
}
.stat-card--1 { animation: floatA 6s ease-in-out infinite; }
.stat-card--2 { animation: floatB 7s ease-in-out infinite; }
.stat-card--3 { animation: floatC 5.5s ease-in-out infinite; }
.stat-card--4 { animation: floatD 6.5s ease-in-out infinite; }

@keyframes floatA {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-16px); }
}
@keyframes floatB {
    0%, 100% { transform: translateY(0px) rotate(2deg); }
    50%       { transform: translateY(-12px) rotate(-1deg); }
}
@keyframes floatC {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-20px); }
}
@keyframes floatD {
    0%, 100% { transform: translateY(0px) rotate(-2deg); }
    50%       { transform: translateY(-14px) rotate(1deg); }
}

/* ── Cards ────────────────────────────────────────── */
.card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    padding: 2rem;
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
    border-color: rgba(111, 207, 159, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

/* ── Program Cards ────────────────────────────────── */
.program-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    padding: 0.5rem;
    transition: border-color 0.3s ease, transform 0.3s ease;
}
.program-card:hover {
    border-color: rgba(111, 207, 159, 0.25);
    transform: translateY(-4px);
}

/* ── Input Fields ─────────────────────────────────── */
.input-field {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 0.875rem 1rem;
    color: #f0f4f8;
    font-family: 'Lato', sans-serif;
    font-size: 0.95rem;
    transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    outline: none;
}
.input-field::placeholder { color: rgba(255,255,255,0.25); }
.input-field:focus {
    border-color: var(--mint-500);
    background: rgba(111, 207, 159, 0.06);
    box-shadow: 0 0 0 3px rgba(111, 207, 159, 0.1);
}

/* ── Scroll Reveal ────────────────────────────────── */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal { transition: none; opacity: 1; transform: none; }
    .stat-card { animation: none; }
    html { scroll-behavior: auto; }
    * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ── Mobile Menu ──────────────────────────────────── */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}
.mobile-link { transition: color 0.3s ease; }
