/* ── Base & Utilities ── */
html {
    scroll-behavior: smooth;
}

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

/* ── Scroll Reveal (progressive enhancement) ── */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ── Hero Blob Animations ── */
@media (prefers-reduced-motion: no-preference) {
    .hero-blob {
        position: absolute;
        border-radius: 50%;
        filter: blur(80px);
        opacity: 0.4;
        animation: blobFloat 8s ease-in-out infinite;
    }

    .blob-1 {
        width: 400px;
        height: 400px;
        background: radial-gradient(circle, #2dd4bf, transparent 70%);
        top: 10%;
        right: -5%;
        animation-delay: 0s;
    }

    .blob-2 {
        width: 300px;
        height: 300px;
        background: radial-gradient(circle, #5eead4, transparent 70%);
        bottom: 20%;
        left: 5%;
        animation-delay: -3s;
    }

    .blob-3 {
        width: 200px;
        height: 200px;
        background: radial-gradient(circle, #99f6e4, transparent 70%);
        top: 40%;
        left: 30%;
        animation-delay: -5s;
    }

    @keyframes blobFloat {
        0%, 100% { transform: translate(0, 0) scale(1); }
        33% { transform: translate(30px, -20px) scale(1.05); }
        66% { transform: translate(-20px, 20px) scale(0.95); }
    }

    /* Floating stat cards */
    .floating-card {
        animation: cardFloat 4s ease-in-out infinite;
    }

    .card-float-1 { animation-delay: 0s; }
    .card-float-2 { animation-delay: -1s; }
    .card-float-3 { animation-delay: -2s; }
    .card-float-4 { animation-delay: -3s; }

    @keyframes cardFloat {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-10px); }
    }
}

/* ── Navbar scroll state ── */
.nav-scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* ── Mobile menu transition ── */
#mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

#mobileMenu.open {
    max-height: 400px;
    padding: 0.5rem 0;
}

/* ── Custom scrollbar ── */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* ── Selection color ── */
::selection {
    background: #99f6e4;
    color: #042f2e;
}

/* ── Focus visible ── */
:focus-visible {
    outline: 2px solid #14b8a6;
    outline-offset: 2px;
}

/* ── Print styles ── */
@media print {
    nav, .reveal, .floating-card, .hero-blob { display: none; }
    body { color: #000; background: #fff; }
}
