/* ── Base & Reset ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* ── Animations ── */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

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

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

.animate-fade-in {
    animation: fadeIn 0.8s ease forwards;
}

.animate-float-up {
    animation: floatUp 0.8s ease forwards;
}

.stat-card {
    animation: float 4s ease-in-out infinite;
}

.stat-card:nth-child(2) {
    animation-delay: 0.5s;
}

.stat-card:nth-child(3) {
    animation-delay: 1s;
}

/* ── Scroll Reveal ── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Navbar Scroll State ── */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.nav-scrolled .font-serif {
    color: #0f172a !important;
}

/* ── Selection ── */
::selection {
    background: rgba(13, 148, 136, 0.15);
    color: #0f766e;
}

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

/* ── Smooth image loading ── */
img {
    display: block;
    max-width: 100%;
}

/* ── Mobile menu transition ── */
#mobile-menu {
    transition: max-height 0.3s ease, opacity 0.3s ease;
}
