/* Custom styles for Main Street Driving School */

/* Smooth scroll offset for fixed nav */
html {
    scroll-padding-top: 80px;
}

/* Gradient text utility */
.text-transparent {
    -webkit-background-clip: text;
    background-clip: text;
}

/* Subtle shimmer on gold accents */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* Floating animation for decorative elements */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Pulse for CTA elements */
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(251, 191, 36, 0.3); }
    50% { box-shadow: 0 0 40px rgba(251, 191, 36, 0.6); }
}

/* Selection color */
::selection {
    background: rgba(190, 24, 93, 0.4);
    color: #fbcfe8;
}

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

/* Custom select dropdown arrow */
select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fbbf24' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

/* Navbar glass effect when scrolled */
.nav-scrolled {
    background: rgba(10, 6, 16, 0.92) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(131, 20, 77, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

/* Card hover glow effect */
.glow-hover:hover {
    box-shadow: 0 0 40px rgba(251, 191, 36, 0.1);
}

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

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

/* Button press effect */
.btn-press:active {
    transform: scale(0.97);
}

/* Image lazy load fade-in */
img[loading="lazy"] {
    transition: opacity 0.5s ease;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

img[loading="lazy"] {
    opacity: 0;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; }
}

/* High contrast mode support */
@media (forced-colors: active) {
    .bg-dark-950 { background-color: Canvas; }
    .text-white { color: CanvasText; }
}

/* Print styles */
@media print {
    nav, #contact-form, iframe { display: none; }
    body { background: white; color: black; }
    a { color: black; }
}
