/* Custom styles for Trackside Cafe */

/* 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 */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

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

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

::-webkit-scrollbar-track {
    background: #040B18;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #42E0A3;
}

/* Selection color */
::selection {
    background: #1ED38B;
    color: #040B18;
}

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

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

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

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

/* Image hover effects */
img {
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

img:hover {
    transform: scale(1.05);
}

/* Link hover effects */
a {
    transition: color 0.3s ease;
}

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

/* Navbar glass effect */
#navbar {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Menu item hover */
.group:hover .border-b {
    border-color: rgba(30, 211, 139, 0.3);
}

/* Button hover effects */
button, a {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mobile link styles */
.mobile-link {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 2rem;
    transition: color 0.3s ease;
}

.mobile-link:hover {
    color: #42E0A3;
}
