@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Rajdhani:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 50%, #16213e 100%);
    min-height: 100vh;
}
/* Animation Cards */
.animation-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 24px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.animation-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}
.animation-preview {
    height: 200px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}
/* Floating Particles */
.floating-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}
.particle {
    position: absolute;
    background: currentColor;
    border-radius: 50%;
    opacity: 0.6;
    animation: floatParticle 6s ease-in-out infinite;
}
@keyframes floatParticle {
    0%, 100% {
        transform: translate(0, 0) scale(0.5) rotate(0deg);
        opacity: 0;
    }
    25% {
        transform: translate(var(--tx, 20px), var(--ty, -20px)) scale(0.8) rotate(90deg);
        opacity: 0.4;
    }
    50% {
        transform: translate(calc(var(--tx, 20px) * 1.4), calc(var(--ty, -20px) * 1.4)) scale(1) rotate(180deg);
        opacity: 0.6;
    }
    75% {
        transform: translate(calc(var(--tx, 20px) * 0.7), calc(var(--ty, -20px) * 0.7)) scale(0.8) rotate(270deg);
        opacity: 0.4;
    }
}
@keyframes circularOrbit {
    0% {
        transform: rotate(0deg) translateX(var(--orbit-radius, 50px)) rotate(0deg);
        opacity: 0;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        transform: rotate(360deg) translateX(var(--orbit-radius, 50px)) rotate(-360deg);
        opacity: 0;
    }
}
.circular-orbit {
    animation: circularOrbit var(--orbit-duration, 8s) linear infinite;
    animation-delay: var(--orbit-delay, 0s);
}
/* Netflix Style Animation */
.netflix-style {
    color: #e50914;
    text-shadow: 0 0 30px #e50914, 0 0 60px #e50914;
    animation: netflixReveal 2s ease-out;
    position: relative;
    z-index: 2;
}
@keyframes netflixReveal {
    0% {
        transform: scale(0.8);
        opacity: 0;
        filter: blur(20px);
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
        filter: blur(10px);
    }
    100% {
        transform: scale(1);
        opacity: 1;
        filter: blur(0);
    }
}
/* Pop-in Bounce Animation */
.popin-bounce {
    color: #ff6b35;
    text-shadow: 0 0 25px #ff6b35, 0 0 50px #ff6b35;
    animation: popinBounce 1.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    position: relative;
    z-index: 2;
}
@keyframes popinBounce {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    60% {
        transform: scale(1.2);
        opacity: 0.8;
    }
    80% {
        transform: scale(0.9);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}
/* Flicker Reveal Animation */
.flicker-reveal {
    color: #00ffff;
    text-shadow: 0 0 20px #00ffff, 0 0 40px #00ffff;
    animation: flickerReveal 2s ease-out;
    position: relative;
    z-index: 2;
}
@keyframes flickerReveal {
    0%, 12%, 18%, 25%, 32%, 38%, 45%, 50%, 55%, 60%, 70%, 85%, 95% {
        opacity: 0;
        filter: blur(10px);
    }
    5%, 15%, 22%, 28%, 35%, 42%, 48%, 52%, 57%, 63%, 75%, 90%, 100% {
        opacity: 1;
        filter: blur(0);
    }
}
/* Particle Burst Animation */
.particle-burst {
    color: #ffd700;
    text-shadow: 0 0 25px #ffd700, 0 0 50px #ffd700;
    animation: particleBurst 2s ease-out;
    position: relative;
    z-index: 2;
}
@keyframes particleBurst {
    0% {
        transform: scale(0);
        opacity: 0;
        filter: blur(50px);
    }
    50% {
        transform: scale(1.2);
        opacity: 0.5;
        filter: blur(20px);
    }
    100% {
        transform: scale(1);
        opacity: 1;
        filter: blur(0);
    }
}
/* Glitch Distortion Animation */
.glitch-distortion {
    color: #ff00ff;
    text-shadow: 0 0 25px #ff00ff, 0 0 50px #ff00ff;
    animation: glitchDistortion 2s ease-out;
    position: relative;
    z-index: 2;
}
@keyframes glitchDistortion {
    0%, 100% {
        transform: translateX(0) skewX(0);
        opacity: 1;
        filter: blur(0);
    }
    20% {
        transform: translateX(-10px) skewX(-10deg);
        opacity: 0.8;
        filter: blur(2px);
    }
    40% {
        transform: translateX(10px) skewX(10deg);
        opacity: 0.6;
        filter: blur(4px);
    }
    60% {
        transform: translateX(-5px) skewX(-5deg);
        opacity: 0.8;
        filter: blur(2px);
    }
    80% {
        transform: translateX(5px) skewX(5deg);
        opacity: 0.9;
        filter: blur(1px);
    }
}
/* Fireburst Entry Animation */
.fireburst-entry {
    color: #ff4500;
    text-shadow: 0 0 30px #ff4500, 0 0 60px #ff4500, 0 0 90px #ff4500;
    animation: fireburstEntry 2s ease-out;
    position: relative;
    z-index: 2;
}
@keyframes fireburstEntry {
    0% {
        transform: scale(0) rotate(-10deg);
        opacity: 0;
        filter: blur(30px) brightness(3);
    }
    50% {
        transform: scale(1.3) rotate(5deg);
        opacity: 0.8;
        filter: blur(10px) brightness(2);
    }
    100% {
        transform: scale(1) rotate(0);
        opacity: 1;
        filter: blur(0) brightness(1);
    }
}

/* Number Display Styles */
.number-display {
    font-family: 'Orbitron', monospace;
    font-weight: 900;
    background: transparent !important;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #e50914, #ff6b35, #00ffff);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #ff6b35, #00ffff, #e50914);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .animation-preview {
        height: 150px;
    }
    
    .number-display {
        font-size: 4rem !important;
    }
}