/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { overflow-x: hidden; }
img, video { display: block; max-width: 100%; }
input, textarea, select, button { font: inherit; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #1a0d24; }
::-webkit-scrollbar-thumb { background: #3d1f4d; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #5B2C6F; }

/* ── Selection ── */
::selection { background: rgba(245, 158, 11, 0.3); color: #f3e8ff; }

/* ── Navbar ── */
#nav {
    background: transparent;
    transition: background 0.5s ease, box-shadow 0.5s ease;
}
#nav.scrolled {
    background: rgba(26, 13, 36, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(91, 44, 111, 0.3);
}

/* ── Mobile Menu ── */
#mobileMenu.open { opacity: 1; pointer-events: all; }
#mobileMenu.closed { opacity: 0; pointer-events: none; }
.mobile-link { transition: opacity 0.3s ease, transform 0.3s ease; }

/* ── Line hamburger animation ── */
#menuBtn.open .line1 { transform: rotate(45deg) translate(3px, 3px); }
#menuBtn.open .line2 { transform: rotate(-45deg) translate(3px, -3px); width: 1.4rem; }

/* ── Floating cards animation ── */
@keyframes floatA {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(1deg); }
}
@keyframes floatB {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(-1deg); }
}
@keyframes floatC {
    0%, 100% { transform: translateY(0px) translateX(0px); }
    50% { transform: translateY(-10px) translateX(4px); }
}
.floating-a { animation: floatA 6s ease-in-out infinite; }
.floating-b { animation: floatB 7s ease-in-out infinite; }
.floating-c { animation: floatC 5.5s ease-in-out infinite; }

/* ── Scroll Reveal ── */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .floating-a, .floating-b, .floating-c { animation: none; }
    html { scroll-behavior: auto; }
    img { transition: none; }
}

/* ── Focus visible ── */
:focus-visible {
    outline: 2px solid rgba(245, 158, 11, 0.6);
    outline-offset: 2px;
}

/* ── Form states ── */
input:focus, textarea:focus {
    background: rgba(91, 44, 111, 0.15);
}

/* ── Gallery strip hover ── */
.gallery-strip img {
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
