/* Base & Utilities */
html {
    scroll-behavior: smooth;
}

body {
    background-color: #0a0709;
    color: #e8dce8;
}

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

::-webkit-scrollbar-track {
    background: #120e11;
}

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

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

/* Selection */
::selection {
    background: rgba(251, 191, 36, 0.3);
    color: #f5f0f7;
}

/* Navbar transition */
#navbar.scrolled {
    background: rgba(10, 7, 9, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(79, 39, 56, 0.4);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

#navbar.scrolled .menu-line {
    background: #fbbf24;
}

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

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

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

/* Menu button animation */
#menuBtn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

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

#menuBtn.active .menu-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(4px, -4px);
}

/* Room & Attraction cards */
.room-card,
.attraction-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.5s ease, box-shadow 0.5s ease;
}

.room-card.revealed,
.attraction-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

.room-card:nth-child(2),
.attraction-card:nth-child(2) { transition-delay: 0.1s; }
.room-card:nth-child(3),
.attraction-card:nth-child(3) { transition-delay: 0.2s; }

/* Section reveals */
section > div > div:first-child {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

section > div > div:first-child.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Gold accent line animation */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* Subtle pulse for hero stats */
@keyframes subtle-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Floating animation for decorative elements */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    
    .room-card,
    .attraction-card,
    section > div > div:first-child {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    @keyframes float {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-4px); }
    }
}
