@keyframes rainbow {
    0% { color: #ff0000; }
    14% { color: #ff7f00; }
    28% { color: #ffff00; }
    42% { color: #00ff00; }
    57% { color: #0000ff; }
    71% { color: #4b0082; }
    85% { color: #8f00ff; }
    100% { color: #ff0000; }
}

@keyframes rainbow-border {
    0% { border-color: #ff000080; }
    14% { border-color: #ff7f0080; }
    28% { border-color: #ffff0080; }
    42% { border-color: #00ff0080; }
    57% { border-color: #0000ff80; }
    71% { border-color: #4b008280; }
    85% { border-color: #8f00ff80; }
    100% { border-color: #ff000080; }
}

@keyframes rainbowShadow {
    0% {
        box-shadow: 0 0 20px rgba(255, 0, 0, 0.2),
                    inset 0 0 20px rgba(255, 0, 0, 0.1);
    }
    14% {
        box-shadow: 0 0 20px rgba(255, 127, 0, 0.2),
                    inset 0 0 20px rgba(255, 127, 0, 0.1);
    }
    28% {
        box-shadow: 0 0 20px rgba(255, 255, 0, 0.2),
                    inset 0 0 20px rgba(255, 255, 0, 0.1);
    }
    42% {
        box-shadow: 0 0 20px rgba(0, 255, 0, 0.2),
                    inset 0 0 20px rgba(0, 255, 0, 0.1);
    }
    57% {
        box-shadow: 0 0 20px rgba(0, 0, 255, 0.2),
                    inset 0 0 20px rgba(0, 0, 255, 0.1);
    }
    71% {
        box-shadow: 0 0 20px rgba(75, 0, 130, 0.2),
                    inset 0 0 20px rgba(75, 0, 130, 0.1);
    }
    85% {
        box-shadow: 0 0 20px rgba(143, 0, 255, 0.2),
                    inset 0 0 20px rgba(143, 0, 255, 0.1);
    }
    100% {
        box-shadow: 0 0 20px rgba(255, 0, 0, 0.2),
                    inset 0 0 20px rgba(255, 0, 0, 0.1);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0) translateY(0); }
    25% { transform: translateX(-5px) translateY(-2px); }
    75% { transform: translateX(5px) translateY(2px); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse {
    0% { 
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    }
    50% { 
        transform: scale(1.02);
        box-shadow: 0 6px 20px rgba(76, 175, 80, 0.5);
    }
    100% { 
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    }
}

@keyframes shimmer {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

@keyframes pvpPulse {
    0% {
        box-shadow: 0 0 20px rgba(255, 107, 107, 0.5),
                   inset 0 0 15px rgba(72, 52, 212, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(72, 52, 212, 0.5),
                   inset 0 0 30px rgba(255, 107, 107, 0.3);
    }
    100% {
        box-shadow: 0 0 20px rgba(255, 107, 107, 0.5),
                   inset 0 0 15px rgba(72, 52, 212, 0.3);
    }
}

/* Animation classes */
.shake-animation {
    animation: shake 0.5s ease-in-out infinite;
}

.pulse-animation {
    animation: pulse 2s ease-in-out infinite;
}

.rainbow-animation {
    animation: rainbow 5s linear infinite;
}

.pvp-animation {
    animation: pvpPulse 2s infinite;
}

.feature-button::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

/* Apply animations to elements */
.header h1 { animation: shake 0.5s ease-in-out infinite; }
.pump-text { animation: shake 0.5s ease-in-out infinite; }
.moon-text { animation: shake 0.5s ease-in-out infinite; }
.meme-text { animation: rainbow 5s linear infinite; }
.feature-item { animation: pulse 2s ease-in-out infinite; }
.feature-button { animation: pulse 2s infinite; }
.pvp-button { animation: pvpPulse 2s infinite; }
.stat-card { animation: pulse 2s ease-in-out infinite; }

/* Animation delays for feature items */
.feature-item:nth-child(2) { animation-delay: 0.3s; }
.feature-item:nth-child(3) { animation-delay: 0.6s; }


.lyrics-container { animation: rainbow-border 5s linear infinite; }
.lyrics-layer { animation: rainbowShadow 5s linear infinite; }
