/* === Custom Styles for Spring Valley Resort === */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #060d1f;
}
::-webkit-scrollbar-thumb {
    background: #1a3a6b;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #234b82;
}

/* Scroll dot animation */
@keyframes scrollDot {
    0% { transform: translateY(-8px); opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { transform: translateY(48px); opacity: 0; }
}
.animate-scroll-dot {
    animation: scrollDot 1.8s ease-in-out infinite;
}

/* Room cards - default visible state for progressive enhancement */
.room-card {
    /* Content is always visible */
}
.room-card:hover .aspect-\[4\/3\] img {
    transform: scale(1.1);
}

/* Amenity cards - default visible state */
.amenity-card {
    /* Content is always visible */
}

/* Mobile menu */
#mobileMenu {
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
#mobileMenu.open {
    opacity: 1;
    pointer-events: auto;
}
#mobileMenu.closed {
    opacity: 0;
    pointer-events: none;
}

/* Mobile menu links */
.mobile-link {
    font-size: 1.875rem;
    transition: color 0.3s ease;
}

/* Navbar scroll state */
#navbar.scrolled {
    background: rgba(6, 13, 31, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Menu button animation */
.menu-line {
    transition: transform 0.3s ease, opacity 0.3s ease;
}
#menuBtn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
#menuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
}
#menuBtn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 24px;
}

/* Fade-in for scroll sections (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .fade-section {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
}

/* Reduced 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;
    }
}

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

/* Selection */
::selection {
    background: rgba(45, 212, 191, 0.3);
    color: #f0fdf9;
}
