/* Base */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

/* Selection */
::selection {
    background: #F97316;
    color: white;
}

/* Floating Card Animations */
@keyframes float1 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(0.5deg); }
}

@keyframes float2 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-16px) rotate(-0.5deg); }
}

@keyframes float3 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(0.3deg); }
}

.floating-card {
    animation: float1 6s ease-in-out infinite;
}

.floating-card:nth-child(2) {
    animation: float2 7s ease-in-out infinite;
    animation-delay: -2s;
}

.floating-card:nth-child(3) {
    animation: float3 5s ease-in-out infinite;
    animation-delay: -1s;
}

/* Room Card Hover */
.room-card {
    will-change: transform;
}

/* Amenity Card Hover */
.amenity-card {
    will-change: transform;
}

.amenity-card:hover {
    transform: translateY(-4px);
}

/* Navbar Scroll State */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.nav-scrolled .logo-text {
    color: #18191e !important;
}

.nav-scrolled .nav-link {
    color: #5f626b !important;
}

.nav-scrolled .nav-link:hover {
    color: #F97316 !important;
}

.nav-scrolled #menuBtn {
    border-color: #e3e4e6 !important;
}

.nav-scrolled #menuBtn svg {
    stroke: #373940 !important;
}

/* Mobile Menu */
.mobile-link {
    display: block;
    padding: 0.5rem 0;
}

/* Scroll Reveal (below fold only) */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.revealed {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: none;
    }
}

/* Smooth anchor offset */
section[id] {
    scroll-margin-top: 80px;
}

/* Focus styles */
a:focus-visible, button:focus-visible {
    outline: 2px solid #F97316;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Image loading placeholder */
img {
    background-color: #f6f6f7;
}

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

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

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

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