/* Custom styles for Cole Driving & Language School */

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

/* Navbar scroll effect */
.nav-scrolled {
    background: rgba(250, 245, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(107, 33, 168, 0.1);
}

.nav-scrolled .nav-text {
    color: #581c87 !important;
}

.nav-scrolled .nav-link {
    color: #7e22ce !important;
}

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

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

.floating-card:nth-child(2) {
    animation-delay: 0.5s;
}

.floating-card:nth-child(3) {
    animation-delay: 1s;
}

/* Scroll reveal animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Service card hover effect */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
}

/* Testimonial card hover */
.testimonial-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
}

/* Mobile menu animation */
#mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

#mobileMenu.open {
    max-height: 400px;
}

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

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

::-webkit-scrollbar-thumb {
    background: #c084fc;
    border-radius: 5px;
}

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

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid #c084fc;
    outline-offset: 2px;
}

/* Ensure all text is readable */
.text-plum-950 { color: #3b0764; }
.text-plum-900 { color: #581c87; }
.text-plum-800 { color: #6b21a8; }
.text-plum-700 { color: #7e22ce; }
.text-plum-600 { color: #9333ea; }
.text-plum-500 { color: #a855f7; }
.text-plum-400 { color: #c084fc; }
.text-plum-300 { color: #d8b4fe; }
.text-plum-200 { color: #e9d5ff; }
.text-plum-100 { color: #f3e8ff; }
.text-plum-50 { color: #faf5ff; }

.text-amber-900 { color: #78350f; }
.text-amber-800 { color: #92400e; }
.text-amber-700 { color: #b45309; }
.text-amber-600 { color: #d97706; }
.text-amber-500 { color: #f59e0b; }
.text-amber-400 { color: #fbbf24; }
.text-amber-300 { color: #fcd34d; }
.text-amber-200 { color: #fde68a; }
.text-amber-100 { color: #fef3c7; }
.text-amber-50 { color: #fffbeb; }
