/* Custom styles for Latin Touch Sandwich Shop */

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

/* Base styles */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #0a1e32;
}
::-webkit-scrollbar-thumb {
    background: #2d5f8f;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #3fa38d;
}

/* Selection color */
::selection {
    background: rgba(63, 163, 141, 0.3);
    color: #f4fbf8;
}

/* Navbar styles */
#navbar {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(10, 30, 50, 0.85);
    border-bottom: 1px solid rgba(45, 95, 143, 0.2);
}

#navbar.scrolled {
    background: rgba(6, 19, 32, 0.95);
    box-shadow: 0 1px 30px rgba(0, 0, 0, 0.3);
}

/* Reveal animations - progressive enhancement */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    html {
        scroll-behavior: auto;
    }
    img {
        transition: none;
    }
}

/* Image hover effects */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

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

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

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

/* Subtle pulse for scroll indicator */
@keyframes pulse {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.8;
    }
}

/* Hero text animation - only for below-the-fold content, hero stays visible */
/* Hero is intentionally static for immediate rendering */

/* Card hover effects */
.group:hover .group-hover\:opacity-100 {
    opacity: 1;
}

/* Link underline animation */
a.underline-link {
    position: relative;
    text-decoration: none;
}

a.underline-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #3fa38d;
    transition: width 0.3s ease;
}

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

/* Button press effect */
button:active,
a:active {
    transform: scale(0.98);
}

/* Loading state for images */
img {
    background: linear-gradient(135deg, #0f2a44 0%, #153858 100%);
}
