/* Custom styles for Matrix Driving School */

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

/* Ensure no content is hidden by default for progressive enhancement */
/* Scroll-reveal classes are added via JS only */

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a1628;
}
::-webkit-scrollbar-thumb {
    background: #d4a017;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #f5d466;
}

/* Selection color */
::selection {
    background: rgba(212, 160, 23, 0.3);
    color: #f0f0f0;
}

/* Mobile menu transitions */
#mobileMenu {
    max-height: 0;
}
#mobileMenu.open {
    max-height: 400px;
}

/* Active nav link */
nav a.active {
    color: #d4a017 !important;
}

/* Form select arrow */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%23d4a017' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
}

/* Reduce motion preference */
@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;
    }
}
