/* Custom styles for Lamar Inn */

/* Base animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

/* Scroll reveal animations - only for below-fold content */
.reveal-on-scroll {
    /* Default state: visible for progressive enhancement */
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal-on-scroll {
        /* Hidden state for animated reveal */
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal-on-scroll.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

::-webkit-scrollbar-track {
    background: #0A1628;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #68D391;
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #4ADE80;
    outline-offset: 2px;
}

/* Mobile menu transitions */
#mobile-menu {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobile-menu.open {
    transform: translateX(0);
}

#mobile-menu.closed {
    transform: translateX(100%);
}

/* Line animation for mobile menu button */
#menu-toggle.active #line1 {
    transform: rotate(45deg) translate(5px, 5px);
}

#menu-toggle.active #line2 {
    opacity: 0;
}

#menu-toggle.active #line3 {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
}

/* Subtle hover effects for images */
img {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Selection color */
::selection {
    background-color: #4ADE80;
    color: #0A1628;
}

/* Form input autofill styling */
input:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #0A1628 inset !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* Tablet and up adjustments */
@media (min-width: 768px) {
    .reveal-on-scroll {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal-on-scroll.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Print styles */
@media print {
    nav,
    #contact-form,
    .reveal-on-scroll {
        display: block !important;
        opacity: 1 !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
