/* Animations for the AnyVan Clone */

/* Hero Image Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }
    50% {
        transform: scale(1.03);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }
}

@keyframes shine {
    0% {
        background-position: -100% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Apply animations to hero image */
.hero-image {
    position: relative;
    animation: none !important;
}

.hero-image img {
    position: relative;
    animation: none !important;
}

.hero-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%);
    background-size: 200% 100%;
    pointer-events: none;
    border-radius: 8px;
}

/* Hero content animations */
.hero-content h1 {
    animation: fadeIn 0.8s ease-out forwards;
}

.hero-content p {
    animation: fadeIn 1s ease-out 0.3s forwards;
    opacity: 0;
    animation-fill-mode: forwards;
}

.quote-form-container {
    animation: fadeIn 1.2s ease-out 0.6s forwards;
    opacity: 0;
    animation-fill-mode: forwards;
}

/* Interactive hover effects */
.hero-image:hover img {
    /* animation removed */
}

/* Media query for reduced animations on smaller screens */
@media (max-width: 768px) {
    .hero-image {
        animation: none;
    }
    
    .hero-image::after {
        animation: none;
    }
}

/* Prefers-reduced-motion accessibility */
@media (prefers-reduced-motion: reduce) {
    .hero-image,
    .hero-image img,
    .hero-image::after,
    .hero-content h1,
    .hero-content p,
    .quote-form-container {
        animation: none;
        transition: none;
    }
}
