/* Custom styles for A and S Driving School */

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

/* Navbar scroll effect */
nav.scrolled {
    background: rgba(254, 253, 248, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 20px rgba(5, 150, 105, 0.08);
}

/* Service card hover glow */
.service-card:hover {
    border-color: rgba(16, 185, 129, 0.3);
}

/* Testimonial card hover */
.testimonial-card:hover {
    border-color: rgba(16, 185, 129, 0.2);
}

/* Geometric shape animations */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(5deg); }
}

@keyframes float-delayed {
    0%, 100% { transform: translateY(0) rotate(15deg); }
    50% { transform: translateY(-10px) rotate(20deg); }
}

/* Apply to hero decorative shapes */
#hero .absolute {
    animation-duration: 4s;
}

#hero .absolute:nth-child(4) {
    animation: float 5s ease-in-out infinite;
}

#hero .absolute:nth-child(5) {
    animation: float-delayed 6s ease-in-out infinite;
}

/* Scroll reveal base - content is visible by default */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Button ripple effect */
button, a {
    -webkit-tap-highlight-color: transparent;
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.2s ease;
}

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

/* Counter animation */
.counter {
    display: inline-block;
}

/* Image hover zoom */
.shadow-2xl img {
    transition: transform 0.5s ease;
}

.shadow-2xl:hover img {
    transform: scale(1.02);
}
