/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { overflow-x: hidden; }

::selection { background: rgba(201,168,76,0.3); color: #0a1628; }

/* ── Navbar ── */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}
#navbar.scrolled {
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(201,168,76,0.1);
}
#navbar.scrolled .nav-link { color: #faf8f4; }
#navbar.scrolled #nav-logo-text { color: #faf8f4; }

.nav-link {
    color: rgba(250, 248, 244, 0.7);
    transition: color 0.3s ease;
}
.nav-link:hover { color: #c9a84c; }

/* ── Mobile Menu ── */
#mobile-menu.open { opacity: 1; pointer-events: all; }
#mobile-menu.closed { opacity: 0; pointer-events: none; }
.mobile-link { opacity: 0; transform: translateY(20px); transition: opacity 0.4s ease, transform 0.4s ease; }
#mobile-menu.open .mobile-link { opacity: 1; transform: translateY(0); }
#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
#mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.3s; }

/* ── Hero Animations ── */
.hero-subtitle { animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards; }
.hero-title { animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards; }
.hero-desc { animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards; }
.hero-cta { animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.8s forwards; }

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

/* ── Menu Tabs ── */
.menu-tab {
    background: transparent;
    border: 1px solid rgba(201,168,76,0.3);
    color: rgba(250, 248, 244, 0.5);
    cursor: pointer;
    font-family: 'Inter', sans-serif;
}
.menu-tab:hover { border-color: rgba(201,168,76,0.6); color: #c9a84c; }
.menu-tab.active {
    background: #c9a84c;
    border-color: #c9a84c;
    color: #0a1628;
}

/* ── Menu Items ── */
.menu-item {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
}
.menu-item:nth-child(1) { animation-delay: 0.05s; }
.menu-item:nth-child(2) { animation-delay: 0.1s; }
.menu-item:nth-child(3) { animation-delay: 0.15s; }
.menu-item:nth-child(4) { animation-delay: 0.2s; }
.menu-item:nth-child(5) { animation-delay: 0.25s; }
.menu-item:nth-child(6) { animation-delay: 0.3s; }

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

/* ── Scroll Reveal ── */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    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; }

/* ── Back to Top ── */
#back-to-top.visible { opacity: 1; pointer-events: all; }

/* ── Mobile Menu Button ── */
#bar1 { transition: transform 0.3s ease, opacity 0.3s ease; }
#bar2 { transition: transform 0.3s ease, opacity 0.3s ease; }
#bar3 { transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease; }
#menu-toggle.active #bar1 { transform: translateY(4px) rotate(45deg); }
#menu-toggle.active #bar2 { opacity: 0; }
#menu-toggle.active #bar3 { transform: translateY(-4px) rotate(-45deg); width: 24px; }

/* ── Responsive ── */
@media (max-width: 768px) {
    .hero-title { font-size: 2.75rem; }
    @media (min-width: 768px) { .hero-title { font-size: 3.5rem; } }
    @media (min-width: 1024px) { .hero-title { font-size: 4rem; } }
    @media (min-width: 1280px) { .hero-title { font-size: 4.5rem; } }
}

/* ── 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; }
    .reveal { opacity: 1; transform: none; }
}
