/* Custom styles for Roadside Motorsports */

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

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

::-webkit-scrollbar-track {
    background: #0f1114;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #5c616c;
}

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

/* Navbar scroll effect */
.nav-scrolled {
    background: rgba(15, 17, 20, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(56, 60, 68, 0.5);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Reveal animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal[data-reveal-delay="1"] {
    transition-delay: 0.1s;
}

.reveal[data-reveal-delay="2"] {
    transition-delay: 0.2s;
}

.reveal[data-reveal-delay="3"] {
    transition-delay: 0.3s;
}

.reveal[data-reveal-delay="4"] {
    transition-delay: 0.4s;
}

.reveal[data-reveal-delay="5"] {
    transition-delay: 0.5s;
}

.reveal[data-reveal-delay="6"] {
    transition-delay: 0.6s;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
}

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

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

/* Nav link hover underline animation */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #ff8f6b;
    transition: width 0.3s ease;
}

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

/* Card shimmer effect on hover */
.group:hover .group-hover\:bg-coral-500\/20 {
    background-color: rgba(255, 107, 63, 0.2);
}

/* Focus styles for accessibility */
input:focus,
textarea:focus,
button:focus {
    outline: none;
}

/* Image lazy load fade-in */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.5s ease;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Print styles */
@media print {
    #navbar,
    #contact-form,
    .reveal {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}
