/* Custom styles for New Era Driving School */

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

/* Hero clip path */
.clip-hero-right {
    clip-path: ellipse(80% 100% at 100% 50%);
}

/* Scroll indicator animation */
@keyframes scroll-indicator {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

.animate-scroll-indicator {
    animation: scroll-indicator 1.5s ease-in-out infinite;
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(253, 242, 244, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(123, 25, 48, 0.08);
}

/* Service card hover */
.service-card {
    transition: transform 0.4s ease, background-color 0.5s ease;
}

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

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

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(123, 25, 48, 0.1);
}

/* Mobile menu transitions */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* Nav link underline animation */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #7B1930;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Selection color */
::selection {
    background: rgba(123, 25, 48, 0.15);
    color: #3d0c18;
}

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

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

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .animate-scroll-indicator {
        animation: none;
    }
    
    .service-card,
    .testimonial-card {
        transition: none;
    }
    
    .service-card:hover,
    .testimonial-card:hover {
        transform: none;
    }
}

/* Tablet adjustments */
@media (max-width: 768px) {
    .clip-hero-right {
        clip-path: none;
        display: none;
    }
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid #7B1930;
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid #7B1930;
    outline-offset: 2px;
}
