/* Custom styles for Rollers Driving School */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0f1829;
}
::-webkit-scrollbar-thumb {
    background: #4ade80;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #86efac;
}

/* Reveal animations - progressive enhancement */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Hero gradient animation */
@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

#hero {
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
}

/* Button hover effects */
a, button {
    -webkit-tap-highlight-color: transparent;
}

/* Focus styles */
:focus-visible {
    outline: 2px solid #4ade80;
    outline-offset: 2px;
}

/* Mobile menu transitions */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}
#mobile-menu.open {
    max-height: 400px;
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(8, 14, 24, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Form input focus animations */
input:focus, select:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.15);
}

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

/* Subtle pattern overlay */
.pattern-overlay {
    background-image: radial-gradient(rgba(74, 222, 128, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Testimonial card shimmer */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Ensure all text is readable */
.text-midnight-900 { color: #0f1829; }
.text-midnight-800 { color: #1a2a4a; }
.text-midnight-700 { color: #253c69; }
.text-midnight-600 { color: #33508c; }
.text-midnight-500 { color: #4164af; }
.text-white { color: #ffffff; }
.text-white\/80 { color: rgba(255, 255, 255, 0.8); }
.text-white\/70 { color: rgba(255, 255, 255, 0.7); }
.text-white\/60 { color: rgba(255, 255, 255, 0.6); }
.text-white\/50 { color: rgba(255, 255, 255, 0.5); }
.text-white\/40 { color: rgba(255, 255, 255, 0.4); }
.text-mint-300 { color: #86efac; }
.text-mint-400 { color: #4ade80; }
.text-mint-500 { color: #22c55e; }
.text-mint-600 { color: #16a34a; }
