/* Custom styles for All Star Driver Education */

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

/* Mobile nav link styles */
.mobile-nav-link {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(51, 65, 85, 0.5);
    color: rgb(148, 163, 184);
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.mobile-nav-link:hover {
    color: rgb(255, 255, 255);
}

/* Gold gradient text animation on hover */
.gold-gradient-text {
    background-size: 200% 200%;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Selection color */
::selection {
    background: rgba(20, 184, 166, 0.3);
    color: #f1f5f9;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* Focus visible styles */
:focus-visible {
    outline: 2px solid rgba(20, 184, 166, 0.5);
    outline-offset: 2px;
}

/* Select dropdown arrow override for better cross-browser */
select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
