/* ===== RESET & BASE ===== */
*, *::before, *::after {
    box-sizing: border-box;
}

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

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

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

::selection {
    background: rgba(232, 115, 90, 0.3);
    color: #f7a896;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1a1714;
}
::-webkit-scrollbar-thumb {
    background: #3d3630;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #524940;
}

/* ===== NAVBAR ===== */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(13, 11, 9, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 168, 83, 0.08);
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.4);
}

/* ===== MOBILE MENU ===== */
.mobile-link {
    opacity: 0;
    transform: translateY(10px);
}

#mobile-menu.open .mobile-link {
    animation: fadeUp 0.4s ease forwards;
}

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

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== HAMBURGER ===== */
.menu-line {
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

#menu-toggle.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
#menu-toggle.active .menu-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
#menu-toggle.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 6px;
}

/* ===== MENU CARDS ===== */
.menu-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.5s ease;
}

.menu-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

.menu-card:nth-child(1) { transition-delay: 0s; }
.menu-card:nth-child(2) { transition-delay: 0.08s; }
.menu-card:nth-child(3) { transition-delay: 0.16s; }
.menu-card:nth-child(4) { transition-delay: 0.24s; }
.menu-card:nth-child(5) { transition-delay: 0.32s; }
.menu-card:nth-child(6) { transition-delay: 0.4s; }

/* ===== GALLERY ===== */
.gallery-item {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.gallery-item.revealed {
    opacity: 1;
    transform: scale(1);
}

/* ===== SECTION REVEALS ===== */
.section-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.section-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ===== GOLD LINE ACCENT ===== */
.gold-line {
    width: 48px;
    height: 2px;
    background: linear-gradient(90deg, #D4A853, #E2BE7A);
    border-radius: 1px;
}

/* ===== BUTTON GLOW ===== */
@keyframes gentle-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(232, 115, 90, 0.15);
    }
    50% {
        box-shadow: 0 0 40px rgba(232, 115, 90, 0.25);
    }
}

/* ===== REDUCED 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;
    }
    .menu-card, .gallery-item, .section-reveal {
        opacity: 1;
        transform: none;
    }
}
