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

/* ── Navbar ── */
#navbar {
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}
#navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 20px rgba(107, 45, 91, 0.08);
}

/* ── Hero Floating Cards ── */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}
@keyframes float-delayed {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}
@keyframes float-delayed2 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
}
.animate-float { animation: float 3.5s ease-in-out infinite; }
.animate-float-delayed { animation: float-delayed 4s ease-in-out infinite 0.5s; }
.animate-float-delayed2 { animation: float-delayed2 4.5s ease-in-out infinite 1s; }

/* ── Scroll Indicator ── */
@keyframes scroll-line {
    0% { top: -100%; }
    100% { top: 100%; }
}
.animate-scroll-line {
    position: absolute;
    width: 100%;
    height: 50%;
    background: linear-gradient(to bottom, transparent, #F5C518, transparent);
    animation: scroll-line 1.5s ease-in-out infinite;
}

/* ── Scroll Reveal (below fold only) ── */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
}

/* ── Mobile Menu ── */
#mobileMenu {
    animation: slideDown 0.25s ease;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Custom Scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #F9F0F7; }
::-webkit-scrollbar-thumb { background: #BE6BAA; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #7B2D66; }

/* ── Selection ── */
::selection { background: #E8C0E0; color: #451C3A; }

/* ── Form Focus States ── */
input:focus, textarea:focus, select:focus {
    box-shadow: 0 0 0 3px rgba(190, 107, 170, 0.15);
}

/* ── Smooth image loading ── */
img { loading: lazy; }

/* ── Print ── */
@media print {
    #navbar, #mobileMenu, .animate-float, .animate-float-delayed, .animate-float-delayed2 { display: none; }
    body { color: #000; background: #fff; }
}
