/* Custom styles for Alpha and Omega Driving School */

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #74bf9f;
}

/* Selection color */
::selection {
    background: #a8d8c2;
    color: #1a2a3a;
}

/* Fade-in animations for scroll-reveal (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

/* Navbar scroll state */
.navbar-scrolled {
    box-shadow: 0 4px 20px rgba(26, 42, 58, 0.08);
}

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

/* Button focus styles */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #74bf9f;
    outline-offset: 2px;
}

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* Subtle gradient animation on hero decorative elements */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

.hero-float-1 {
    animation: float 6s ease-in-out infinite;
}

.hero-float-2 {
    animation: float 8s ease-in-out infinite;
    animation-delay: 1s;
}

.hero-float-3 {
    animation: float 7s ease-in-out infinite;
    animation-delay: 2s;
}

/* Print styles */
@media print {
    nav, #contactForm, button {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
