/* Custom styles for Hialeah Gardens Traffic School */

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

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

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

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

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

/* Selection color */
::selection {
    background: #FFD0BC;
    color: #2B2B35;
}

/* Fade-in animation for scroll reveal */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Nav scroll effect */
.nav-scrolled {
    box-shadow: 0 4px 20px rgba(255, 90, 51, 0.08);
}

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

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

/* Scroll reveal base styles (progressive enhancement) */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-reveal.revealed {
    opacity: 0;
    transform: translateY(30px);
}

/* Button hover glow effect */
.btn-glow:hover {
    box-shadow: 0 0 30px rgba(255, 90, 51, 0.3);
}

/* Input focus animation */
input:focus,
textarea:focus,
select:focus {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

/* Tablet adjustments */
@media (max-width: 768px) {
    #hero h1 {
        font-size: 2.25rem;
    }
    
    .floating-card {
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: 1rem;
    }
}

/* Large desktop adjustments */
@media (min-width: 1280px) {
    #hero {
        min-height: calc(100vh - 80px);
    }
}
