/* ── Base & Resets ── */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background-color: rgba(251, 191, 36, 0.3);
    color: #f8f3f7;
}

/* ── Scroll Reveal ── */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    .reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }

    .reveal.visible:nth-child(2) { transition-delay: 0.1s; }
    .reveal.visible:nth-child(3) { transition-delay: 0.2s; }
    .reveal.visible:nth-child(4) { transition-delay: 0.3s; }
}

/* ── Hero entrance (CSS-only, no JS needed) ── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: no-preference) {
    .opacity-hero {
        opacity: 0;
        animation: fadeUp 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    }
    .opacity-hero:nth-child(1) { animation-delay: 0.2s; }
    .opacity-hero:nth-child(2) { animation-delay: 0.4s; }
    .opacity-hero:nth-child(3) { animation-delay: 0.6s; }
    .opacity-hero:nth-child(4) { animation-delay: 0.8s; }
    .opacity-hero:nth-child(5) { animation-delay: 1s; }
}

/* ── Navbar ── */
#navbar {
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
}

#navbar.scrolled {
    background: rgba(15, 8, 12, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(248, 243, 247, 0.06);
}

/* ── Mobile Menu ── */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

/* ── Form Styles ── */
input:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.3);
}

input::placeholder,
textarea::placeholder {
    color: rgba(225, 197, 216, 0.25);
}

/* ── Custom Scrollbar ── */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1a0c15;
}
::-webkit-scrollbar-thumb {
    background: rgba(160, 77, 128, 0.4);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(251, 191, 36, 0.4);
}

/* ── Focus Visible ── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid rgba(251, 191, 36, 0.6);
    outline-offset: 2px;
}
