/* Custom styles for Royal Lounge */

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

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Scroll reveal animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    html {
        scroll-behavior: auto;
    }
}

/* Navbar active state */
.navbar-scrolled {
    box-shadow: 0 4px 20px rgba(11, 49, 23, 0.08);
}

/* Hero floating cards animation */
@keyframes float-slow {
    0%, 100% { transform: translateY(0px) rotate(2deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
}

@keyframes float-medium {
    0%, 100% { transform: translateY(0px) rotate(-3deg); }
    50% { transform: translateY(-8px) rotate(-3deg); }
}

@keyframes float-fast {
    0%, 100% { transform: translateY(0px) rotate(1deg); }
    50% { transform: translateY(-6px) rotate(1deg); }
}

.hero-card-1 { animation: float-slow 6s ease-in-out infinite; }
.hero-card-2 { animation: float-medium 5s ease-in-out infinite; }
.hero-card-3 { animation: float-fast 4s ease-in-out infinite; }
.hero-card-4 { animation: float-medium 5.5s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
    .hero-card-1, .hero-card-2, .hero-card-3, .hero-card-4 {
        animation: none;
    }
}

/* Mobile menu */
#mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

#mobileMenu.open {
    max-height: 400px;
}

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

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

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

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

/* Selection color */
::selection {
    background: #d5ecd8;
    color: #0b3117;
}
