/* ===== Base & Typography ===== */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito Sans', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.font-serif {
    font-family: 'Cormorant Garamond', Georgia, serif;
}

/* ===== Navbar ===== */
.nav-scrolled {
    background: rgba(254, 253, 251, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(156, 28, 62, 0.08);
}

.nav-scrolled #navbar {
    border-bottom: 1px solid rgba(244, 163, 184, 0.2);
}

/* ===== Mobile Menu ===== */
.mobile-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(156, 28, 62, 0.08);
}

.mobile-link:last-child {
    border-bottom: none;
}

/* ===== Floating Animation ===== */
@keyframes float-slow {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

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

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

.animate-float-slow {
    animation: float-slow 4s ease-in-out infinite;
}

.animate-float-medium {
    animation: float-medium 3.2s ease-in-out infinite;
}

.animate-float-fast {
    animation: float-fast 2.5s ease-in-out infinite;
}

/* ===== Scroll Reveal (Progressive Enhancement) ===== */
.scroll-reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
}

.js .scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.js .scroll-reveal:nth-child(2) { transition-delay: 100ms; }
.js .scroll-reveal:nth-child(3) { transition-delay: 200ms; }
.js .scroll-reveal:nth-child(4) { transition-delay: 300ms; }

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
    .scroll-reveal,
    .js .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .animate-float-slow,
    .animate-float-medium,
    .animate-float-fast {
        animation: none;
    }
    html {
        scroll-behavior: auto;
    }
}

/* ===== Selection ===== */
::selection {
    background: rgba(156, 28, 62, 0.15);
    color: #6a162c;
}

/* ===== Focus ===== */
:focus-visible {
    outline: 2px solid #9c1c3e;
    outline-offset: 2px;
}

/* ===== Smooth scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fefdfb;
}
::-webkit-scrollbar-thumb {
    background: #f4a3b8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #d4456e;
}
