/* ===== Custom Styles for Spice Lounge ===== */

/* Scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #050D18;
}
::-webkit-scrollbar-thumb {
    background: #C9A84C40;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #C9A84C70;
}

/* Selection color */
::selection {
    background: #C9A84C40;
    color: #FDF9EF;
}

/* ===== Scroll Dot Animation ===== */
@keyframes scrollDot {
    0% { top: 0; opacity: 1; }
    100% { top: 24px; opacity: 0; }
}
.scroll-dot {
    animation: scrollDot 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 ease, transform 0.8s ease;
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }

    /* Stagger children */
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

/* Default state: always visible (JS enhancement adds animation) */
.reveal {
    opacity: 1;
    transform: none;
}

/* ===== Navbar Styles ===== */
.nav-scrolled {
    background: rgba(5, 13, 24, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(201, 168, 76, 0.1);
}

.nav-scrolled .menu-line {
    background: #C9A84C;
}

/* ===== Mobile Menu ===== */
.mobile-link {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

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

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

/* ===== Hamburger Animation ===== */
.menu-open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}
.menu-open .menu-line:nth-child(2) {
    opacity: 0;
}
.menu-open .menu-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(4px, -4px);
}

/* ===== Image hover effect ===== */
.group img {
    will-change: transform;
}

/* ===== Gold shimmer on hover for cards ===== */
.group::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(201, 168, 76, 0);
    transition: box-shadow 0.4s ease;
    pointer-events: none;
}
.group:hover::after {
    box-shadow: inset 0 0 0 1px rgba(201, 168, 76, 0.3);
}

/* ===== Focus styles ===== */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #C9A84C;
    outline-offset: 2px;
}

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