/* Advanced Animations for Categories Page */

/* Floating Animation for Header Elements */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

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

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

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

/* Pulse Slow */
@keyframes pulse-slow {
    0%, 100% { opacity: 0.1; }
    50% { opacity: 0.3; }
}

.animate-pulse-slow {
    animation: pulse-slow 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Shine Effect for Cards */
/* We use the existing HTML structure but enhance the animation */
.group:hover .shine-effect {
    animation: shine 1.5s ease-in-out forwards;
}

@keyframes shine {
    0% {
        left: -100%;
        opacity: 0;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        left: 100%;
        opacity: 0;
    }
}

/* Gradient Background Animation */
@keyframes gradient-xy {
    0%, 100% {
        background-size: 400% 400%;
        background-position: 0% 0%;
    }
    50% {
        background-size: 400% 400%;
        background-position: 100% 100%;
    }
}

.animate-gradient-xy {
    animation: gradient-xy 15s ease infinite;
}

/* Card Hover 3D Lift */
.category-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.category-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px -5px rgba(220, 38, 38, 0.15); /* Brand Red Shadow */
}

/* Rotating "Tire" Element */
@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.animate-spin-slow {
    animation: spin-slow 12s linear infinite;
}

/* Text Reveal Animation */
.reveal-text {
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: text-shine 3s linear infinite;
}

@keyframes text-shine {
    to {
        background-position: 200% center;
    }
}

/* Staggered Entrance for Grid Items */
.stagger-1 { animation-delay: 100ms; transition-delay: 100ms; }
.stagger-2 { animation-delay: 200ms; transition-delay: 200ms; }
.stagger-3 { animation-delay: 300ms; transition-delay: 300ms; }
.stagger-4 { animation-delay: 400ms; transition-delay: 400ms; }
.stagger-5 { animation-delay: 500ms; transition-delay: 500ms; }
.stagger-6 { animation-delay: 600ms; transition-delay: 600ms; }
