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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    margin: 0;
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
}

/* ── Navbar ───────────────────────────────────────────── */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
    background: rgba(26, 13, 32, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(212, 160, 23, 0.1);
}

/* ── Menu Tabs ────────────────────────────────────────── */
.menu-tab {
    background: transparent;
    border: 1px solid transparent;
    color: #a78bba;
    cursor: pointer;
    font-family: 'Lato', sans-serif;
    transition: all 0.3s ease;
}

.menu-tab:hover {
    color: #D4A017;
    border-color: rgba(212, 160, 23, 0.3);
}

.menu-tab.active {
    background: rgba(212, 160, 23, 0.12);
    border-color: #D4A017;
    color: #D4A017;
}

/* ── Scroll Reveal ────────────────────────────────────── */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-up {
    transform: translateY(0);
}

.reveal-left {
    transform: translateX(0);
}

.reveal-right {
    transform: translateX(0);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        opacity: 0;
        transform: translateY(30px);
    }

    .reveal-left {
        opacity: 0;
        transform: translateX(-30px);
    }

    .reveal-right {
        opacity: 0;
        transform: translateX(30px);
    }

    .reveal-up.visible,
    .reveal-left.visible,
    .reveal-right.visible {
        opacity: 1;
        transform: none;
    }
}

/* ── Mobile Menu ──────────────────────────────────────── */
.mobile-link {
    display: block;
    text-decoration: none;
}

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

::-webkit-scrollbar-track {
    background: #1a0d20;
}

::-webkit-scrollbar-thumb {
    background: #5B2C6F;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #7d3f7d;
}

/* ── Selection ────────────────────────────────────────── */
::selection {
    background: rgba(212, 160, 23, 0.3);
    color: #f5f0f7;
}

/* ── Input Focus ──────────────────────────────────────── */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 2px rgba(212, 160, 23, 0.2);
}

/* ── Date Input ───────────────────────────────────────── */
input[type="date"] {
    color-scheme: dark;
}
