/* Custom Styles for Desert Motel */

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

body {
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
}

/* Floating Animation for Hero Cards */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-12px);
    }
}

@keyframes float-delayed {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

.floating-card {
    animation: float 3.5s ease-in-out infinite;
}

.floating-card.animate-float-delayed {
    animation: float-delayed 4s ease-in-out infinite;
    animation-delay: 0.5s;
}

/* Scroll Down Indicator */
@keyframes scroll-down {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateY(100%);
        opacity: 0;
    }
}

.animate-scroll-down {
    animation: scroll-down 1.5s ease-in-out infinite;
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 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; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Navbar Scroll State */
.navbar-scrolled {
    background: rgba(254, 253, 248, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(6, 78, 59, 0.08);
}

/* Mobile Menu Transitions */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Button Hover Effects */
a, button {
    -webkit-tap-highlight-color: transparent;
}

/* Custom Selection Color */
::selection {
    background: #10b981;
    color: white;
}

/* Focus Styles */
*:focus-visible {
    outline: 3px solid #10b981;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Image Hover Zoom */
img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 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;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* Print Styles */
@media print {
    .floating-card, .animate-scroll-down, button, #mobile-menu {
        display: none !important;
    }
    
    body {
        background: white !important;
    }
}

/* High Contrast Mode Support */
@media (forced-colors: active) {
    .floating-card, .bg-emerald-700, .bg-emerald-800 {
        border: 2px solid ButtonText;
    }
}

/* Large Screen Optimizations */
@media (min-width: 1280px) {
    .floating-card {
        animation-duration: 4s;
    }
}

/* Small Screen Optimizations */
@media (max-width: 360px) {
    h1 {
        font-size: 2rem !important;
    }
    
    h2 {
        font-size: 1.75rem !important;
    }
}

/* Landscape Phone Optimizations */
@media (max-height: 500px) and (orientation: landscape) {
    #hero {
        min-height: auto;
        padding: 80px 0;
    }
}
