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

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

body {
    background-color: #040A14;
    color: #ffffff;
}

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

::-webkit-scrollbar-track {
    background: #060F1F;
}

::-webkit-scrollbar-thumb {
    background: #5EC4B6/30;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(94, 196, 182, 0.4);
}

/* Selection */
::selection {
    background: rgba(94, 196, 182, 0.3);
    color: #ffffff;
}

/* Smooth image loading */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Navbar transition states */
.nav-scrolled {
    background: rgba(4, 10, 20, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.nav-scrolled .menu-line {
    background: #ffffff !important;
}

/* Room card hover */
.room-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(94, 196, 182, 0);
    border-radius: inherit;
    transition: border-color 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.room-card:hover::after {
    border-color: rgba(94, 196, 182, 0.3);
}

/* Form focus styles */
input:focus,
textarea:focus {
    outline: none;
    border-color: rgba(94, 196, 182, 0.6) !important;
    box-shadow: 0 0 0 3px rgba(94, 196, 182, 0.1);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .room-card img,
    .overflow-hidden img {
        transition: none !important;
    }
    
    .room-card:hover img,
    .overflow-hidden:hover img {
        transform: none !important;
    }
}

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

/* Scroll reveal base - content always visible by default */
.reveal {
    opacity: 1;
    transform: none;
}

/* Progressive enhancement for scroll reveals */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }
    
    .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; }
}

/* Print styles */
@media print {
    nav, #contact, footer, .reveal {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}

/* Tablet adjustments */
@media (max-width: 768px) {
    .font-serif {
        font-size: clamp(2rem, 8vw, 3rem);
    }
}

/* Large screen optimization */
@media (min-width: 1920px) {
    html {
        font-size: 18px;
    }
}
