/* ── Base & Utilities ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; }

/* ── Reveal Animations ── */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}
.reveal.revealed:nth-child(2) { transition-delay: 0.08s; }
.reveal.revealed:nth-child(3) { transition-delay: 0.16s; }

/* ── Navbar ── */
#navbar {
    background: rgba(238, 248, 244, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(10, 31, 63, 0.06);
}
#navbar.scrolled {
    box-shadow: 0 1px 24px rgba(10, 31, 63, 0.08);
}

/* ── Mobile Menu ── */
.mobile-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(10, 31, 63, 0.06);
}
.mobile-link:last-child { border-bottom: none; }

/* ── Section Spacing ── */
section { position: relative; }

/* ── Custom Scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #EEF8F4; }
::-webkit-scrollbar-thumb { background: #C5D0E2; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #9DB4CC; }

/* ── Focus Styles ── */
:focus-visible {
    outline: 2px solid #5ECFB1;
    outline-offset: 2px;
}

/* ── Print ── */
@media print {
    #navbar, #mobile-menu { display: none !important; }
    body { color: #0A1F3F; background: white; }
    a { color: #0A1F3F; }
}
