/* Custom styles for Shay's Inn */

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

/* Scroll reveal base styles — content is visible by default */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), 
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Animated state — applied via JS only */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal.animated {
        opacity: 1;
        transform: translateY(0);
    }
    
    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), 
                    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    }
}

/* Hero reveal animations — always visible */
#hero .reveal {
    animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

#hero .reveal:nth-child(2) { animation-delay: 0.1s; }
#hero .reveal:nth-child(3) { animation-delay: 0.2s; }
#hero .reveal:nth-child(4) { animation-delay: 0.3s; }
#hero .reveal:nth-child(5) { animation-delay: 0.4s; }

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar transition */
#navbar {
    transition: background-color 0.3s ease, 
                box-shadow 0.3s ease,
                backdrop-filter 0.3s ease;
}

#navbar.scrolled {
    background-color: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

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

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

/* Selection color */
::selection {
    background: rgba(255, 107, 74, 0.3);
    color: #fff;
}
