/* Desert Surprise — Custom Styles */

/* Base & Typography */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background-color: rgba(251, 191, 36, 0.3);
    color: #faf5fb;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #2d0c33;
}
::-webkit-scrollbar-thumb {
    background: #7B2D8B;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a855a0;
}

/* Navbar */
#navbar {
    transition: background-color 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
    background-color: rgba(45, 12, 51, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Mobile Menu */
.mobile-link {
    opacity: 1;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

#mobileMenu.closed {
    opacity: 0;
    pointer-events: none;
}

/* Hero Stat Cards */
.stat-card {
    animation: floatCard 6s ease-in-out infinite;
}

.stat-card:nth-child(1) {
    animation-delay: 0s;
}
.stat-card:nth-child(2) {
    animation-delay: -2s;
}
.stat-card:nth-child(3) {
    animation-delay: -4s;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0px) translateX(32px); }
    50% { transform: translateY(-12px) translateX(32px); }
}

.stat-card:nth-child(2) {
    animation-name: floatCard2;
}
@keyframes floatCard2 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.stat-card:nth-child(3) {
    animation-name: floatCard3;
}
@keyframes floatCard3 {
    0%, 100% { transform: translateY(0px) translateX(-16px); }
    50% { transform: translateY(-8px) translateX(-16px); }
}

/* Room Cards */
.room-card {
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.5s ease;
}

.room-card:hover {
    box-shadow: 0 20px 60px rgba(123, 45, 139, 0.3), 0 0 0 1px rgba(251, 191, 36, 0.15);
}

/* Testimonial Cards */
.testimonial-card {
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.4s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(123, 45, 139, 0.2);
}

/* Scroll Reveal Animations — progressive enhancement only */
.js-active .reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.23, 1, 0.32, 1), transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.js-active .reveal.from-left {
    transform: translateX(-40px);
}

.js-active .reveal.from-right {
    transform: translateX(40px);
}

.js-active .reveal.revealed {
    opacity: 1;
    transform: translate(0, 0);
}

.js-active .reveal.stagger-1 { transition-delay: 0.1s; }
.js-active .reveal.stagger-2 { transition-delay: 0.2s; }
.js-active .reveal.stagger-3 { transition-delay: 0.3s; }
.js-active .reveal.stagger-4 { transition-delay: 0.4s; }
.js-active .reveal.stagger-5 { transition-delay: 0.5s; }
.js-active .reveal.stagger-6 { transition-delay: 0.6s; }

/* Reduced motion preference */
@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;
    }
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
    .stat-card {
        animation: none !important;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .stat-card {
        animation: none !important;
        transform: none !important;
    }
}
