/* === Base & Reset === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    overflow-x: hidden;
}

::selection {
    background: rgba(212, 163, 90, 0.3);
    color: #fdfbf7;
}

/* === Scrollbar === */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0d0b09;
}
::-webkit-scrollbar-thumb {
    background: #332b23;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #d4a35a;
}

/* === Animations === */
@keyframes scrollDown {
    0% { transform: translateY(-100%); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateY(200%); opacity: 0; }
}

.animate-scroll-down {
    animation: scrollDown 1.5s ease-in-out infinite;
}

/* === Reveal Animations (progressive enhancement) === */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        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; }
}

/* All devices: content is visible by default, JS enhances with animation */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

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

#navbar.scrolled {
    background: rgba(13, 11, 9, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(212, 163, 90, 0.1);
}

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

#mobile-menu a {
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease, color 0.3s ease;
}

#mobile-menu.open a {
    transform: translateY(0);
    opacity: 1;
}

#mobile-menu.open a:nth-child(1) { transition-delay: 0.1s; }
#mobile-menu.open a:nth-child(2) { transition-delay: 0.15s; }
#mobile-menu.open a:nth-child(3) { transition-delay: 0.2s; }
#mobile-menu.open a:nth-child(4) { transition-delay: 0.25s; }
#mobile-menu.open a:nth-child(5) { transition-delay: 0.3s; }

/* === Menu Tabs === */
.menu-tab {
    color: #e8d4aa;
    color: rgba(232, 212, 170, 0.5);
    background: transparent;
    cursor: pointer;
}

.menu-tab.active {
    color: #1a1613;
    background: #d4a35a;
    box-shadow: 0 2px 12px rgba(212, 163, 90, 0.3);
}

.menu-tab:hover:not(.active) {
    color: #e8d4aa;
    background: rgba(212, 163, 90, 0.1);
}

/* === Form Styles === */
select option {
    background: #1a1613;
    color: #e8d4aa;
}

input:focus, textarea:focus, select:focus {
    border-color: #d4a35a !important;
    box-shadow: 0 0 0 3px rgba(212, 163, 90, 0.1);
}

/* === Hover Effects === */
a, button {
    -webkit-tap-highlight-color: transparent;
}

/* === Image Loading === */
img {
    image-rendering: -webkit-optimize-contrast;
}
