/* Custom styles for New Generation Auto School */

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #65a36e;
}

/* Selection color */
::selection {
    background: #c5dfca;
    color: #1f4628;
}

/* Animation keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Animation classes */
.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Delay utilities */
.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-400 {
    animation-delay: 0.4s;
}

.delay-500 {
    animation-delay: 0.5s;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .animate-fade-in-up,
    .animate-float {
        animation: none;
    }
}

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

/* Print styles */
@media print {
    nav,
    #contact-form,
    .animate-float {
        display: none;
    }
}
