/* Custom styles for Chelas Taquitos */

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

/* Scroll line animation */
.scroll-line {
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to bottom, transparent, currentColor);
    animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
    0% { top: -50%; }
    100% { top: 150%; }
}

/* Hero reveal animations */
.hero-reveal {
    opacity: 0;
    transform: translateY(30px);
    animation: heroReveal 0.8s ease forwards;
}

.hero-reveal:nth-child(1) { animation-delay: 0.1s; }
.hero-reveal:nth-child(2) { animation-delay: 0.3s; }
.hero-reveal:nth-child(3) { animation-delay: 0.5s; }
.hero-reveal:nth-child(4) { animation-delay: 0.7s; }

@keyframes heroReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

/* Navbar scroll state */
#navbar.scrolled {
    background: rgba(250, 249, 246, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(47, 66, 50, 0.1);
}

/* Mobile menu transitions */
#mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.inactive {
    opacity: 0;
    pointer-events: none;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #1e2a22;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .hero-reveal,
    .reveal {
        opacity: 1;
        transform: none;
        animation: none;
        transition: none;
    }
    
    .scroll-line {
        animation: none;
    }
    
    img {
        transition: none;
    }
}

/* Focus styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #d4a853;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Selection color */
::selection {
    background: #2f4232;
    color: #faf9f6;
}
