/* Custom styles for All Star Driver Education */

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

/* Prevent flash of unstyled content */
body {
    opacity: 1;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #831d3e;
}

/* Hero parallax-like effect on scroll */
@media (prefers-reduced-motion: no-preference) {
    .hero-overlay {
        will-change: transform;
    }
}

/* Subtle gradient text for headings */
.gradient-text {
    background: linear-gradient(135deg, #831d3e 0%, #a11d42 50%, #c22b54 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Focus visible styles for accessibility */
*:focus-visible {
    outline: 2px solid #a11d42;
    outline-offset: 2px;
}

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

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

/* Card hover lift effect */
.group:hover {
    transform: translateY(-2px);
}

.group {
    transition: transform 0.3s ease;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .animate-bounce {
        animation: none;
    }
}

/* Print styles */
@media print {
    nav,
    #contactForm,
    .animate-bounce {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}

/* Ensure all interactive elements have proper touch targets */
@media (pointer: coarse) {
    button,
    a {
        min-height: 44px;
        min-width: 44px;
    }
}
