/* Custom styles for All Star Driver Education */

:root {
    --color-charcoal-950: #0d0d12;
    --color-charcoal-900: #1a1a21;
    --color-charcoal-800: #2a2a32;
    --color-charcoal-700: #3d3d47;
    --color-charcoal-300: #ababba;
    --color-charcoal-200: #d1d1d8;
    --color-charcoal-100: #e8e8ed;
    --color-coral-500: #ff6347;
    --color-coral-600: #e8553a;
    --color-gold-500: #d4a843;
    --color-gold-400: #e6c45a;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Scroll reveal base - content always visible */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Navbar transitions */
.nav-scrolled {
    background: rgba(13, 13, 18, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(212, 168, 67, 0.15) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3) !important;
}

/* Gold accent line animation */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

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

::-webkit-scrollbar-track {
    background: #1a1a21;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #52525e;
}

/* Selection color */
::selection {
    background: rgba(255, 99, 71, 0.3);
    color: #f5f5f7;
}

/* 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' stroke='%23ababba' 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 1rem center;
    appearance: none;
    -webkit-appearance: none;
}

/* Smooth image loading */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

img[data-src] {
    opacity: 0;
}

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

#mobile-menu.hidden {
    animation: slideUp 0.2s ease forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 400px;
    }
}

@keyframes slideUp {
    from {
        opacity: 1;
        max-height: 400px;
    }
    to {
        opacity: 0;
        max-height: 0;
    }
}

/* Gradient text utility */
.gradient-text {
    background: linear-gradient(135deg, var(--color-coral-500), var(--color-gold-400));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card hover glow */
.glow-hover:hover {
    box-shadow: 0 0 40px rgba(255, 99, 71, 0.1);
}

/* Pulse animation for status dot */
@keyframes pulse-ring {
    0% { transform: scale(0.8); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 0.4; }
    100% { transform: scale(0.8); opacity: 0.8; }
}

.animate-pulse {
    animation: pulse-ring 2s ease-in-out infinite;
}

/* Hero parallax effect */
@media (prefers-reduced-motion: no-preference) {
    #hero img {
        will-change: transform;
        transition: transform 0.1s linear;
    }
}
