/* ===== Base & Typography ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    overflow-x: hidden;
}

::selection {
    background-color: #E8A84C;
    color: #2D0E28;
}

/* ===== Scroll Reveal (progressive enhancement) ===== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(32px);
        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-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
}

/* ===== Card Elevation ===== */
.card-elevate {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}
.card-elevate:hover {
    box-shadow: 0 12px 48px rgba(232, 168, 76, 0.12), 0 4px 24px rgba(0, 0, 0, 0.3);
}

/* ===== Navbar Transition ===== */
.nav-scrolled {
    background-color: rgba(26, 8, 23, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(107, 31, 90, 0.3);
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.3);
}

/* ===== Mobile Menu Animation ===== */
#mobile-menu {
    animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #2D0E28;
}
::-webkit-scrollbar-thumb {
    background: #6B1F5A;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #8B2D76;
}

/* ===== Focus Styles ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #E8A84C;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ===== Selection for select dropdown ===== */
select option {
    background-color: #4A1942;
    color: #F9F0F7;
}

/* ===== Reduce Motion ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
}
