/* Custom styles for Tacos y Tortas Michoacan */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #102a43;
}
::-webkit-scrollbar-thumb {
    background: #f59e0b;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #facc15;
}

/* Decorative animated circles */
.decorative-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: float 8s ease-in-out infinite;
}

.c1 {
    width: 400px;
    height: 400px;
    background: rgba(245, 158, 11, 0.08);
    top: 10%;
    left: -100px;
    animation-delay: 0s;
}

.c2 {
    width: 300px;
    height: 300px;
    background: rgba(98, 125, 152, 0.15);
    top: 50%;
    right: -50px;
    animation-delay: 2s;
}

.c3 {
    width: 200px;
    height: 200px;
    background: rgba(245, 158, 11, 0.06);
    bottom: 10%;
    left: 30%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-30px) scale(1.05); }
}

/* Scroll reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Navbar scroll effect */
nav.scrolled {
    background: rgba(10, 22, 40, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

nav.scrolled .logo-text {
    color: #fff;
}

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

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

/* Mobile link hover */
.mobile-link {
    position: relative;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #f59e0b;
    transition: width 0.3s ease;
}

.mobile-link:hover::after {
    width: 100%;
}

/* Button hover glow effect */
button:hover, a:hover {
    transition: all 0.3s ease;
}

/* Image hover zoom */
img {
    transition: transform 0.5s ease;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .decorative-circle {
        animation: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Tablet and desktop adjustments */
@media (min-width: 768px) {
    .reveal {
        transition-delay: 0.1s;
    }
    
    .reveal:nth-child(2) {
        transition-delay: 0.2s;
    }
    
    .reveal:nth-child(3) {
        transition-delay: 0.3s;
    }
    
    .reveal:nth-child(4) {
        transition-delay: 0.4s;
    }
}

/* Large screen optimizations */
@media (min-width: 1024px) {
    .reveal {
        transition-delay: 0.15s;
    }
}

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

/* Print styles */
@media print {
    nav, .decorative-circle, #specials {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    section {
        page-break-inside: avoid;
    }
}
