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

/* Scroll reveal (progressive enhancement — content visible without JS) */
.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.reveal-visible {
        opacity: 1;
        transform: translateY(0);
    }
    .reveal:nth-child(2) { transition-delay: 0.08s; }
    .reveal:nth-child(3) { transition-delay: 0.16s; }
    .reveal:nth-child(4) { transition-delay: 0.24s; }
    .reveal:nth-child(5) { transition-delay: 0.32s; }
}

/* Scroll indicator animation */
@keyframes scrollDown {
    0% { top: -100%; }
    100% { top: 100%; }
}
.animate-scroll-down {
    animation: scrollDown 1.5s ease-in-out infinite;
}

/* Navbar */
#navbar {
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}
#navbar.scrolled {
    background: rgba(255, 252, 249, 0.92);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(123, 45, 59, 0.08);
}

/* Mobile menu */
.mobile-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(123, 45, 59, 0.08);
    transition: color 0.2s ease;
}
.mobile-link:last-child { border-bottom: none; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #fdf6ef; }
::-webkit-scrollbar-thumb { background: #d9c9b4; border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: #b08d5c; }

/* Selection */
::selection { background: #F9C5CC; color: #5a1e27; }
