/* ===== ANIMATIONS ===== */

/* Floating Animation */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0px);
    }
}

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

/* Pulse Animation */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Pulse Icon Animation */
@keyframes pulseIcon {
    0% {
        filter: drop-shadow(0 0 5px rgba(0, 255, 255, 0.5));
    }
    50% {
        filter: drop-shadow(0 0 15px rgba(0, 255, 255, 0.8));
    }
    100% {
        filter: drop-shadow(0 0 5px rgba(0, 255, 255, 0.5));
    }
}

.pulse-icon {
    animation: pulseIcon 3s infinite;
}

/* Neon Flicker Animation */
@keyframes flicker {
    0%, 18%, 22%, 25%, 53%, 57%, 100% {
        text-shadow: 
            0 0 5px rgba(255, 255, 255, 0.5),
            0 0 10px var(--neon-pink),
            0 0 20px var(--neon-pink),
            0 0 30px var(--neon-pink);
    }
    20%, 24%, 55% {
        text-shadow: none;
    }
}

.flicker {
    animation: flicker 2s infinite alternate;
}

/* Glow Animation */
@keyframes glow {
    0% {
        box-shadow: 0 0 5px var(--neon-blue);
    }
    50% {
        box-shadow: 0 0 20px var(--neon-blue), 0 0 30px var(--neon-blue);
    }
    100% {
        box-shadow: 0 0 5px var(--neon-blue);
    }
}

.glow {
    animation: glow 3s infinite;
}

/* Slide Up Animation for Elements */
@keyframes slideUp {
    0% {
        transform: translateY(50px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.slide-up {
    animation: slideUp 0.8s forwards;
}

/* Counting Animation for Stats */
@keyframes counting {
    from {
        opacity: 0.5;
    }
    to {
        opacity: 1;
    }
}

.counting {
    animation: counting 0.3s ease;
}

/* Shimmer Effect for Buttons */
@keyframes shimmer {
    0% {
        background-position: -100% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(
        45deg, 
        transparent 25%, 
        rgba(255, 255, 255, 0.2) 50%, 
        transparent 75%
    );
    background-size: 200% 100%;
    pointer-events: none;
    animation: shimmer 3s infinite;
    z-index: -1;
}

/* Reveal Animation */
@keyframes reveal {
    0% {
        clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
    }
    100% {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
}

.reveal {
    animation: reveal 1s forwards;
}

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 1s forwards;
}

/* Background Grid Animation */
@keyframes gridMove {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 50px 50px;
    }
}

.neon-grid-overlay {
    animation: gridMove 10s linear infinite;
}

/* Rotate Animation */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.rotate {
    animation: rotate 20s linear infinite;
}

/* Pop In Animation */
@keyframes popIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    80% {
        transform: scale(1.1);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.pop-in {
    animation: popIn 0.5s forwards;
}

/* Wave Animation */
@keyframes wave {
    0%, 100% {
        transform: translateY(0);
    }
    25% {
        transform: translateY(-15px);
    }
    50% {
        transform: translateY(0);
    }
    75% {
        transform: translateY(15px);
    }
}

.wave {
    animation: wave 5s ease-in-out infinite;
}

/* Shake Animation */
@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

.shake {
    animation: shake 0.5s;
}

/* Underline Animation */
@keyframes underline {
    0% {
        width: 0;
    }
    100% {
        width: 100%;
    }
}

.underline-animation::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    animation: underline 0.5s forwards;
}

/* Animated Background */
.animated-bg {
    background: linear-gradient(-45deg, #ff00ff, #0066ff, #00ffff, #ff00cc);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Neon Blink Animation */
@keyframes blink {
    0%, 18%, 20%, 50%, 60%, 65%, 80%, 90%, 100% {
        opacity: 1;
    }
    19%, 59%, 64%, 79%, 89% {
        opacity: 0.5;
    }
}

.blink {
    animation: blink 5s infinite;
}

/* Apply animation delays for sequence effects */
.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

.delay-4 {
    animation-delay: 0.4s;
}

.delay-5 {
    animation-delay: 0.5s;
}
