/* ── Custom Animations ── */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

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

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

.animate-float-delayed {
    animation: float-delayed 4.5s ease-in-out infinite;
    animation-delay: 1s;
}

/* ── Scroll Reveal (progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

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

/* Fallback: always visible if JS is disabled or reduced motion */
@media (prefers-reduced-motion: reduce) {
    .scroll-reveal {
        opacity: 1;
        transform: none;
    }
}

/* ── Smooth Scroll ── */
html {
    scroll-behavior: smooth;
}

/* ── Selection Color ── */
::selection {
    background-color: #fbbf24;
    color: #500724;
}

/* ── Custom scrollbar ── */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #fdf4f8;
}

::-webkit-scrollbar-thumb {
    background: #f9a8d4;
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: #f472b6;
}

/* ── Mobile menu transition ── */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

#mobile-menu.open {
    max-height: 400px;
}

/* ── Focus visible for accessibility ── */
:focus-visible {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
}

/* ── Navbar glass effect when scrolled ── */
nav.scrolled {
    background: rgba(253, 244, 248, 0.92) !important;
    backdrop-filter: blur(16px);
    box-shadow: 0 1px 20px rgba(157, 23, 77, 0.08);
}
