/* Custom styles for All Star Driver Education */

/* Smooth scroll offset for fixed nav */
section[id] {
    scroll-margin-top: 80px;
}

/* Navbar background transition */
#nav.scrolled {
    background: rgba(8, 11, 30, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(13, 203, 158, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Service card hover glow */
.service-card:hover {
    border-color: rgba(13, 203, 158, 0.4) !important;
    box-shadow: 0 20px 60px rgba(13, 203, 158, 0.08) !important;
}

/* Why us card hover */
.why-card:hover {
    border-color: rgba(13, 203, 158, 0.3) !important;
    transform: translateY(-4px);
}

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

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

/* Select dropdown styling */
select option {
    background: #1a224c;
    color: #c5c9e8;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #080b1e;
}
::-webkit-scrollbar-thumb {
    background: #1a224c;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #253063;
}

/* Selection color */
::selection {
    background: rgba(13, 203, 158, 0.3);
    color: #f0fdf9;
}

/* Focus visible styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #0dcb9e;
    outline-offset: 2px;
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .service-card,
    .why-card {
        transition: none;
    }
    .service-card:hover,
    .why-card:hover {
        transform: none;
    }
}
