/* ===== BASE & RESET ===== */
*, *::before, *::after {
    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: #D4A853;
    color: #0A1628;
}

/* ===== NAVBAR ===== */
#navbar {
    transition: background-color 0.5s ease, backdrop-filter 0.5s ease, padding 0.5s ease;
}

#navbar.scrolled {
    background-color: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 1px;
    background-color: #D4A853;
    transition: width 0.3s ease, left 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
    left: 0;
}

/* ===== MOBILE MENU ===== */
#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

#mobileMenu.closed {
    opacity: 0;
    pointer-events: none;
}

#mobileMenu.open .mobile-link {
    animation: fadeInUp 0.4s ease forwards;
    opacity: 0;
}

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Burger Animation */
#menuBtn.active .menu-line:nth-child(1) {
    top: 50%;
    transform: rotate(45deg);
}

#menuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menuBtn.active .menu-line:nth-child(3) {
    width: 6px;
    left: 50%;
    transform: translateX(-50%);
}

#menuBtn.active .menu-line:nth-child(4) {
    top: 50%;
    transform: rotate(-45deg);
}

/* ===== HERO ===== */
.hero-title {
    animation: heroReveal 1s ease forwards;
    animation-delay: 0.3s;
}

.hero-eyebrow {
    animation: heroReveal 1s ease forwards;
    animation-delay: 0.1s;
}

.hero-subtitle {
    animation: heroReveal 1s ease forwards;
    animation-delay: 0.5s;
}

.hero-cta {
    animation: heroReveal 1s ease forwards;
    animation-delay: 0.7s;
}

.hero-deco {
    animation: heroReveal 1s ease forwards;
    animation-delay: 0.9s;
}

.hero-scroll {
    animation: heroReveal 1s ease forwards;
    animation-delay: 1.1s;
}

@keyframes heroReveal {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-img {
    animation: heroZoom 20s ease infinite alternate;
}

@keyframes heroZoom {
    from { transform: scale(1.05); }
    to { transform: scale(1.15); }
}

.scroll-line {
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.4; height: 12px; }
    50% { opacity: 1; height: 20px; }
}

/* ===== MENU TABS ===== */
.menu-tab {
    background: transparent;
    color: #2C2C2C;
    border: 1px solid rgba(10, 22, 40, 0.15);
}

.menu-tab.active {
    background: #0A1628;
    color: #D4A853;
    border-color: #0A1628;
}

.menu-tab:hover:not(.active) {
    border-color: #D4A853;
    color: #B8862E;
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal-up, .reveal-left, .reveal-right {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

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

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

.revealed {
    opacity: 1;
    transform: translate(0, 0);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0A1628;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #C9983E;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .font-serif {
        word-spacing: -0.02em;
    }
}
