/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img { max-width: 100%; height: auto; display: block; }

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

@media (prefers-reduced-motion: no-preference) {
    .js .scroll-reveal {
        opacity: 0;
        transform: translateY(32px);
    }
    .js .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    .js .scroll-reveal:nth-child(2) { transition-delay: 0.1s; }
    .js .scroll-reveal:nth-child(3) { transition-delay: 0.2s; }
    .js .scroll-reveal:nth-child(4) { transition-delay: 0.3s; }
    .js .scroll-reveal:nth-child(5) { transition-delay: 0.4s; }
    .js .scroll-reveal:nth-child(6) { transition-delay: 0.5s; }
}

/* ─── Navbar scroll state ─── */
#navbar.scrolled {
    box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

/* ─── Selection ─── */
::selection { background: rgba(200, 164, 78, 0.3); color: #0a1128; }

/* ─── Custom scrollbar ─── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0a1128; }
::-webkit-scrollbar-thumb { background: #c8a44e; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #d4af52; }
