/* Custom styles for My Guest Room */

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

/* Prevent flash of unstyled content */
body {
    opacity: 1;
}

/* Navbar transition states */
.nav-scrolled {
    background: rgba(30, 58, 95, 0.97) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

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

.nav-scrolled .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
}

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #243b53;
}

/* Selection color */
::selection {
    background: #d4a84b;
    color: #1e3a5f;
}

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

/* Apply staggered float animations to hero cards */
.hero-card-1 { animation: float 4s ease-in-out infinite; }
.hero-card-2 { animation: float 4s ease-in-out infinite 0.5s; }
.hero-card-3 { animation: float 4s ease-in-out infinite 1s; }
.hero-card-4 { animation: float 4s ease-in-out infinite 1.5s; }

/* Scroll reveal base styles */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.hidden-reveal {
    opacity: 0;
    transform: translateY(30px);
}

/* 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.hidden-reveal {
        opacity: 1;
        transform: none;
    }
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid #d4a84b;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    nav, #contact, .cta-banner {
        display: none;
    }
}

/* Mobile adjustments */
@media (max-width: 640px) {
    .font-serif {
        line-height: 1.2;
    }
}
