/* Animation Keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    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 float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Animation Classes */
.animated {
    animation-duration: 1s;
    animation-fill-mode: both;
}

.delay-1s {
    animation-delay: 0.2s;
}

.delay-2s {
    animation-delay: 0.4s;
}

.delay-3s {
    animation-delay: 0.6s;
}

.delay-4s {
    animation-delay: 0.8s;
}

.delay-5s {
    animation-delay: 1s;
}

.delay-6s {
    animation-delay: 1.2s;
}

.fadeIn {
    animation-name: fadeIn;
}

.fadeInUp {
    animation-name: fadeInUp;
}

.fadeInDown {
    animation-name: fadeInDown;
}

.fadeInLeft {
    animation-name: fadeInLeft;
}

.fadeInRight {
    animation-name: fadeInRight;
}

.pulse {
    animation-name: pulse;
    animation-duration: 2s;
    animation-iteration-count: infinite;
}

.float {
    animation-name: float;
    animation-duration: 3s;
    animation-iteration-count: infinite;
}

.spin {
    animation-name: spin;
    animation-duration: 3s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}

/* Reveal animations on scroll */
.reveal {
    opacity: 0;
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease;
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease;
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-up {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animations for children */
.stagger-fade > * {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.stagger-fade > *:nth-child(1) { transition-delay: 0.1s; }
.stagger-fade > *:nth-child(2) { transition-delay: 0.2s; }
.stagger-fade > *:nth-child(3) { transition-delay: 0.3s; }
.stagger-fade > *:nth-child(4) { transition-delay: 0.4s; }
.stagger-fade > *:nth-child(5) { transition-delay: 0.5s; }
.stagger-fade > *:nth-child(6) { transition-delay: 0.6s; }
.stagger-fade > *:nth-child(7) { transition-delay: 0.7s; }
.stagger-fade > *:nth-child(8) { transition-delay: 0.8s; }

.stagger-fade.active > * {
    opacity: 1;
    transform: translateY(0);
} 