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

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

body {
    background-color: #120e17;
    color: #e8dce8;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #120e17;
}
::-webkit-scrollbar-thumb {
    background: #4f2a4f;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #6d3a6d;
}

/* ===== Animations ===== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulseSlow {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.05);
    }
}

@keyframes scrollLine {
    0% {
        height: 0;
        opacity: 0;
    }
    50% {
        height: 48px;
        opacity: 1;
    }
    100% {
        height: 48px;
        opacity: 0;
    }
}

@keyframes goldShimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

.fade-up {
    animation: fadeUp 0.8s ease forwards;
}

.fade-up:nth-child(2) { animation-delay: 0.1s; }
.fade-up:nth-child(3) { animation-delay: 0.2s; }
.fade-up:nth-child(4) { animation-delay: 0.3s; }

.reveal-left {
    animation: slideLeft 0.8s ease forwards;
}

.reveal-right {
    animation: slideRight 0.8s ease forwards;
}

.reveal-up {
    animation: fadeUp 0.8s ease forwards;
}

.animate-pulse-slow {
    animation: pulseSlow 4s ease-in-out infinite;
}

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

/* ===== Scroll Reveal (JS-triggered) ===== */
.reveal-left,
.reveal-right,
.reveal-up {
    opacity: 0;
}

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

/* ===== Navigation ===== */
.nav-link {
    position: relative;
}

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

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

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(18, 14, 23, 0.92) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 160, 23, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Mobile menu */
.mobile-link {
    animation: fadeUp 0.5s ease forwards;
}

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

/* ===== Menu Tabs ===== */
.menu-tab {
    color: #d4b8d4;
    background: transparent;
    cursor: pointer;
}

.menu-tab.active {
    background: linear-gradient(135deg, #D4A017, #B8860B);
    color: #120e17;
    box-shadow: 0 4px 20px rgba(212, 160, 23, 0.3);
}

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

/* ===== Menu Panels ===== */
.menu-panel {
    animation: fadeUp 0.5s ease;
}

/* ===== Gold shimmer on hover for special elements ===== */
.shimmer-hover:hover {
    background: linear-gradient(90deg, #D4A017, #f0d060, #D4A017);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: goldShimmer 3s linear infinite;
}

/* ===== Button ripple effect ===== */
button, a {
    -webkit-tap-highlight-color: transparent;
}

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

/* ===== Focus visible ===== */
:focus-visible {
    outline: 2px solid #D4A017;
    outline-offset: 2px;
}

/* ===== Responsive adjustments ===== */
@media (max-width: 640px) {
    .font-serif {
        line-height: 1.1;
    }
}

/* ===== Print styles ===== */
@media print {
    body {
        background: white;
        color: black;
    }
    nav, footer, #contact {
        display: none;
    }
}
