/* Custom Styles for Balagio Las Vegas Resort */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

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

::-webkit-scrollbar-track {
    background: #030705;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #047857, #022c22);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #059669, #064e3b);
}

/* Selection color */
::selection {
    background: rgba(5, 150, 105, 0.3);
    color: #fefef7;
}

/* Navbar scroll state */
nav.scrolled {
    background: rgba(3, 7, 5, 0.92) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(4, 120, 87, 0.15);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

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

/* Mobile menu active state */
.mobile-menu.active {
    opacity: 1 !important;
    pointer-events: all !important;
}

.mobile-menu.active .mobile-link {
    animation: fadeInUp 0.4s ease forwards;
}

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

/* Mobile menu button active */
#mobile-menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

#mobile-menu-btn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
    margin-right: 0;
}

/* Amenity card hover glow */
.amenity-card:hover {
    box-shadow: 0 0 40px rgba(16, 185, 129, 0.08);
}

/* Gold shimmer effect on hover */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* Scroll 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);
    }
    
    .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; }
}

/* Fade in up animation for mobile menu */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Gold line animation */
@keyframes expandWidth {
    from { width: 0; }
    to { width: 3rem; }
}

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

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid #10b981;
    outline-offset: 2px;
}

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