/* Animations and Effects */

/* Keyframe Animations */
@keyframes grid-move {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

@keyframes scroll-arrow-move {
    0% {
        transform: translateX(-50%) translateY(0);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateX(-50%) translateY(10px);
        opacity: 0;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 50px var(--neon-pink);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 80px var(--neon-pink);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 50px var(--neon-pink);
    }
}

@keyframes ripple {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(3);
        opacity: 0;
    }
}

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

@keyframes glow {
    0%, 100% {
        text-shadow: 0 0 20px currentColor;
    }
    50% {
        text-shadow: 0 0 40px currentColor, 0 0 60px currentColor;
    }
}

@keyframes neon-flicker {
    0%, 100% {
        opacity: 1;
    }
    41.99% {
        opacity: 1;
    }
    42% {
        opacity: 0;
    }
    43% {
        opacity: 0;
    }
    43.01% {
        opacity: 1;
    }
    47.99% {
        opacity: 1;
    }
    48% {
        opacity: 0;
    }
    49% {
        opacity: 1;
    }
}

@keyframes glitch {
    0% {
        transform: translate(0);
    }
    20% {
        transform: translate(-2px, 2px);
    }
    40% {
        transform: translate(-2px, -2px);
    }
    60% {
        transform: translate(2px, 2px);
    }
    80% {
        transform: translate(2px, -2px);
    }
    100% {
        transform: translate(0);
    }
}

@keyframes rainbow {
    0% {
        filter: hue-rotate(0deg);
    }
    100% {
        filter: hue-rotate(360deg);
    }
}

@keyframes slide-in-left {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slide-in-right {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fade-in-up {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes scale-in {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes rotate-in {
    from {
        transform: rotate(-180deg) scale(0);
        opacity: 0;
    }
    to {
        transform: rotate(0) scale(1);
        opacity: 1;
    }
}

/* Particle Effects */
.particle-field::before {
    content: '';
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--neon-pink);
    box-shadow: 
        100px 200px 0 var(--neon-pink),
        200px 100px 0 var(--neon-blue),
        300px 300px 0 var(--neon-purple),
        400px 150px 0 var(--neon-green),
        500px 250px 0 var(--neon-pink),
        600px 350px 0 var(--neon-blue),
        700px 50px 0 var(--neon-purple),
        800px 450px 0 var(--neon-green),
        900px 150px 0 var(--neon-pink),
        1000px 350px 0 var(--neon-blue),
        1100px 250px 0 var(--neon-purple),
        1200px 450px 0 var(--neon-green),
        150px 400px 0 var(--neon-pink),
        250px 500px 0 var(--neon-blue),
        350px 600px 0 var(--neon-purple),
        450px 300px 0 var(--neon-green),
        550px 400px 0 var(--neon-pink),
        650px 200px 0 var(--neon-blue),
        750px 500px 0 var(--neon-purple),
        850px 300px 0 var(--neon-green);
    animation: float 20s infinite ease-in-out;
}

/* Glitch Text Effect */
.glitch {
    position: relative;
    animation: glitch 2s infinite;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    animation: glitch 0.3s infinite;
    color: var(--neon-pink);
    z-index: -1;
    animation-delay: 0.1s;
}

.glitch::after {
    animation: glitch 0.3s infinite reverse;
    color: var(--neon-blue);
    z-index: -1;
    animation-delay: 0.2s;
}

/* Hover Effects */
.hover-glow:hover {
    animation: glow 1s ease-in-out infinite;
}

.hover-float:hover {
    animation: float 2s ease-in-out infinite;
}

.hover-rainbow:hover {
    animation: rainbow 3s linear infinite;
}

/* Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

.slide-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease;
}

.slide-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-up {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.6s ease;
}

.scale-up.visible {
    opacity: 1;
    transform: scale(1);
}

/* Neon Text Effects */
.neon-text {
    animation: neon-flicker 3s infinite;
}

/* Button Ripple Effect */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::before {
    width: 300px;
    height: 300px;
}

/* Card Hover Effects */
.artist-card {
    position: relative;
    overflow: hidden;
}

.artist-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.5s;
    opacity: 0;
}

.artist-card:hover::before {
    animation: shine 0.5s ease-in-out;
}

@keyframes shine {
    0% {
        transform: rotate(45deg) translateX(-100%);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: rotate(45deg) translateX(100%);
        opacity: 0;
    }
}

/* Loading Animation Extensions */
.loading-text {
    position: relative;
}

.loading-text::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    -webkit-background-clip: text;
    background-clip: text;
    filter: blur(10px);
    opacity: 0.5;
}

/* Interactive Cursor Effects */
.cursor-glow {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transition: all 0.1s ease;
    background: radial-gradient(circle, var(--neon-pink), transparent);
    opacity: 0.5;
}

/* Parallax Effects */
.parallax {
    transform: translateY(0);
    transition: transform 0.5s ease-out;
}

/* Mobile Touch Feedback */
@media (max-width: 768px) {
    .btn:active {
        transform: scale(0.95);
    }
    
    .artist-card:active {
        transform: scale(0.98);
    }
}

/* Performance Optimizations */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}