/* Custom styles for Pasadena Driving School */

/* Smooth scroll offset for fixed nav */
section[id] {
    scroll-margin-top: 80px;
}

/* Float animation for hero badges */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

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

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

.animate-float-delayed {
    animation: float-delayed 4s ease-in-out infinite;
    animation-delay: 1s;
}

/* Underline hover effect for nav links */
a[href^="#"] {
    text-decoration: none;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #7EDFB8;
}

/* Focus visible styles */
*:focus-visible {
    outline: 2px solid #4BC99A;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Subtle pattern overlay for sections */
.section-pattern {
    background-image: radial-gradient(circle at 1px 1px, rgba(45, 184, 127, 0.05) 1px, transparent 0);
    background-size: 24px 24px;
}

/* Button ripple effect */
button, a {
    position: relative;
    overflow: hidden;
}

/* Mobile nav panel transition */
#mobileNavPanel {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Form input transitions */
input:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(76, 201, 154, 0.15);
}

/* Card hover glow */
.group:hover .rounded-3xl {
    transition: box-shadow 0.5s ease;
}

/* Hero decorative dots pulse */
.w-3.h-3.bg-mint-400 {
    animation: pulse-dot 2s ease-in-out infinite;
}

.w-2.h-2.bg-mint-300 {
    animation: pulse-dot 2.5s ease-in-out infinite 0.5s;
}

.w-1.5.h-1.5.bg-mint-500 {
    animation: pulse-dot 3s ease-in-out infinite 1s;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.3); }
}

/* Service card icon container transition */
.group:hover .w-14.h-14 {
    transform: scale(1.05) rotate(-3deg);
    transition: transform 0.4s ease;
}

/* Map container */
section[class*="relative"]:has(> .h-80) iframe {
    transition: filter 0.3s ease;
}

section[class*="relative"]:has(> .h-80):hover iframe {
    filter: grayscale(10%) saturate(100%) hue-rotate(0deg);
}
