/* Custom Animations */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes slideInDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Animation Classes */
.animate-fadeIn {
    animation: fadeIn 0.5s ease-out;
}

.animate-fadeInUp {
    animation: fadeInUp 0.5s ease-out;
}

.animate-fadeInLeft {
    animation: fadeInLeft 0.5s ease-out;
}

.animate-fadeInRight {
    animation: fadeInRight 0.5s ease-out;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

.animate-bounce {
    animation: bounce 1s infinite;
}

.animate-rotate {
    animation: rotate 2s linear infinite;
}

.animate-slideInLeft {
    animation: slideInLeft 0.3s ease-out;
}

.animate-slideInRight {
    animation: slideInRight 0.3s ease-out;
}

.animate-slideInUp {
    animation: slideInUp 0.3s ease-out;
}

.animate-slideInDown {
    animation: slideInDown 0.3s ease-out;
}

/* Transition Classes */
.transition-all {
    transition: all 0.3s ease;
}

.transition-transform {
    transition: transform 0.3s ease;
}

.transition-opacity {
    transition: opacity 0.3s ease;
}

.transition-colors {
    transition: colors 0.3s ease;
}

/* Delayed Animations */
.animate-delay-100 {
    animation-delay: 0.1s;
}

.animate-delay-200 {
    animation-delay: 0.2s;
}

.animate-delay-300 {
    animation-delay: 0.3s;
}

.animate-delay-500 {
    animation-delay: 0.5s;
}

/* Duration Variants */
.animate-duration-300 {
    animation-duration: 0.3s;
}

.animate-duration-700 {
    animation-duration: 0.7s;
}

.animate-duration-1000 {
    animation-duration: 1s;
}

/* Hover Animations */
.hover-scale:hover {
    transform: scale(1.05);
}

.hover-shadow-lg:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.hover-shadow-xl:hover {
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1);
}

/* Staggered Animations for Lists */
.staggered-animation > * {
    opacity: 0;
    transform: translateY(20px);
}

.staggered-animation > *:nth-child(1) {
    animation: fadeInUp 0.5s ease-out 0.1s forwards;
}

.staggered-animation > *:nth-child(2) {
    animation: fadeInUp 0.5s ease-out 0.2s forwards;
}

.staggered-animation > *:nth-child(3) {
    animation: fadeInUp 0.5s ease-out 0.3s forwards;
}

.staggered-animation > *:nth-child(4) {
    animation: fadeInUp 0.5s ease-out 0.4s forwards;
}

.staggered-animation > *:nth-child(5) {
    animation: fadeInUp 0.5s ease-out 0.5s forwards;
}

.staggered-animation > *:nth-child(6) {
    animation: fadeInUp 0.5s ease-out 0.6s forwards;
}