/* =============================================
   CYBERPUNK ANIMATIONS
   All CSS Animations & Keyframes
   ============================================= */

/* ===== KEYFRAME ANIMATIONS ===== */

/* Blink Cursor */
@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Rotate Ring */
@keyframes rotateRing {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Pulse */
@keyframes pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

/* Scan Line */
@keyframes scan {
    0% { top: 0; }
    50% { top: 100%; }
    100% { top: 0; }
}

/* Bounce */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Scroll Down */
@keyframes scrollDown {
    0% { top: 10px; opacity: 1; }
    50% { top: 25px; opacity: 0.5; }
    100% { top: 10px; opacity: 1; }
}

/* Glitch */
@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 glitch-1 {
    0% { clip-path: inset(40% 0 61% 0); }
    20% { clip-path: inset(92% 0 1% 0); }
    40% { clip-path: inset(43% 0 1% 0); }
    60% { clip-path: inset(25% 0 58% 0); }
    80% { clip-path: inset(54% 0 7% 0); }
    100% { clip-path: inset(58% 0 43% 0); }
}

@keyframes glitch-2 {
    0% { clip-path: inset(25% 0 58% 0); }
    20% { clip-path: inset(54% 0 7% 0); }
    40% { clip-path: inset(58% 0 43% 0); }
    60% { clip-path: inset(40% 0 61% 0); }
    80% { clip-path: inset(92% 0 1% 0); }
    100% { clip-path: inset(43% 0 1% 0); }
}

/* Fill Bar */
@keyframes fillBar {
    from { width: 0; }
}

/* Heartbeat */
@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    10% { transform: scale(1.2); }
    20% { transform: scale(1); }
}

/* Float */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Glow Pulse */
@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(0, 255, 65, 0.6);
    }
}

/* Slide In Right */
@keyframes slideInRight {
    from {
        transform: translateX(-100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Slide In Left */
@keyframes slideInLeft {
    from {
        transform: translateX(100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Scale In */
@keyframes scaleIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Fade In */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Neon Flicker */
@keyframes neonFlicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
        text-shadow: 
            0 0 10px var(--neon-green),
            0 0 20px var(--neon-green),
            0 0 30px var(--neon-green),
            0 0 40px var(--glow-color);
    }
    20%, 24%, 55% {
        text-shadow: none;
    }
}

/* Border Glow */
@keyframes borderGlow {
    0%, 100% {
        border-color: var(--neon-green);
        box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
    }
    50% {
        border-color: var(--neon-blue);
        box-shadow: 0 0 40px rgba(0, 240, 255, 0.5);
    }
}

/* Shake */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Spin Glow */
@keyframes spinGlow {
    from {
        transform: rotate(0deg);
        filter: hue-rotate(0deg);
    }
    to {
        transform: rotate(360deg);
        filter: hue-rotate(360deg);
    }
}

/* Background Shift */
@keyframes bgShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Matrix Rain */
@keyframes matrixRain {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100vh); }
}

/* Particle Float */
@keyframes particleFloat {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translate(100px, -100px) scale(0);
        opacity: 0;
    }
}

/* Dash */
@keyframes dash {
    to {
        stroke-dashoffset: 0;
    }
}

/* Wave */
@keyframes wave {
    0% { transform: translateY(0) translateX(0); }
    25% { transform: translateY(-10px) translateX(10px); }
    50% { transform: translateY(0) translateX(20px); }
    75% { transform: translateY(10px) translateX(10px); }
    100% { transform: translateY(0) translateX(0); }
}

/* Zoom Bounce */
@keyframes zoomBounce {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* ===== UTILITY ANIMATION CLASSES ===== */

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in {
    animation: fadeIn 1s ease;
}

.slide-in-right {
    animation: slideInRight 0.8s ease;
}

.slide-in-left {
    animation: slideInLeft 0.8s ease;
}

.scale-in {
    animation: scaleIn 0.6s ease;
}

.float {
    animation: float 3s ease-in-out infinite;
}

.glow-pulse {
    animation: glowPulse 2s ease-in-out infinite;
}

.neon-flicker {
    animation: neonFlicker 3s linear infinite;
}

/* ===== HOVER EFFECTS ===== */

.hover-lift {
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 255, 65, 0.3);
}

.hover-glow {
    transition: all var(--transition-normal);
}

.hover-glow:hover {
    box-shadow: 0 0 30px var(--glow-color);
    border-color: var(--neon-green);
}

.hover-scale {
    transition: transform var(--transition-normal);
}

.hover-scale:hover {
    transform: scale(1.05);
}

.hover-rotate {
    transition: transform var(--transition-normal);
}

.hover-rotate:hover {
    transform: rotate(5deg);
}

/* ===== LOADING STATES ===== */

.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 3px solid var(--neon-green);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== TEXT ANIMATIONS ===== */

.typing-effect {
    overflow: hidden;
    border-left: 3px solid var(--neon-green);
    white-space: nowrap;
    animation: typing 3s steps(40) 1s 1 normal both, blink 0.8s infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

.text-gradient-animate {
    background: linear-gradient(
        90deg,
        var(--neon-green),
        var(--neon-blue),
        var(--neon-purple),
        var(--neon-green)
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: bgShift 3s linear infinite;
}

/* ===== PARTICLE EFFECTS ===== */

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--neon-green);
    border-radius: 50%;
    pointer-events: none;
    animation: particleFloat 3s ease-out forwards;
}

/* ===== BUTTON RIPPLE EFFECT ===== */

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(0, 255, 65, 0.5);
    transform: scale(0);
    animation: rippleEffect 0.6s ease-out;
    pointer-events: none;
}

@keyframes rippleEffect {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ===== SCROLL REVEAL ANIMATIONS ===== */

[data-aos] {
    opacity: 0;
    transition: all 0.8s ease;
}

[data-aos="fade-up"] {
    transform: translateY(30px);
}

[data-aos="fade-down"] {
    transform: translateY(-30px);
}

[data-aos="fade-right"] {
    transform: translateX(-30px);
}

[data-aos="fade-left"] {
    transform: translateX(30px);
}

[data-aos="zoom-in"] {
    transform: scale(0.9);
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* ===== 3D TILT EFFECT ===== */

[data-tilt] {
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

/* ===== PARALLAX EFFECT ===== */

[data-parallax] {
    transition: transform 0.3s ease;
}

/* ===== SPECIAL EFFECTS ===== */

/* Scan Line Effect */
.scan-line-effect {
    position: relative;
    overflow: hidden;
}

.scan-line-effect::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--neon-blue),
        transparent
    );
    animation: scan 2s ease-in-out infinite;
}

/* Hologram Effect */
.hologram {
    position: relative;
}

.hologram::before,
.hologram::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 255, 65, 0.1) 50%,
        transparent 100%
    );
    animation: scan 3s ease-in-out infinite;
    pointer-events: none;
}

.hologram::after {
    animation-delay: 1.5s;
}

/* Cyber Border */
.cyber-border {
    position: relative;
}

.cyber-border::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(
        45deg,
        var(--neon-green),
        var(--neon-blue),
        var(--neon-purple),
        var(--neon-green)
    );
    background-size: 400% 400%;
    border-radius: inherit;
    z-index: -1;
    animation: bgShift 3s ease infinite;
    filter: blur(5px);
}

/* Text Shadow Glow */
.text-glow {
    text-shadow:
        0 0 10px var(--neon-green),
        0 0 20px var(--neon-green),
        0 0 30px var(--neon-green),
        0 0 40px var(--glow-color);
}

/* Box Glow */
.box-glow {
    box-shadow:
        0 0 10px var(--glow-color),
        0 0 20px var(--glow-color),
        0 0 30px rgba(0, 255, 65, 0.3),
        inset 0 0 10px rgba(0, 255, 65, 0.1);
}

/* ===== TRANSITION UTILITIES ===== */

.transition-fast {
    transition: all var(--transition-fast);
}

.transition-normal {
    transition: all var(--transition-normal);
}

.transition-slow {
    transition: all var(--transition-slow);
}

/* ===== DELAY UTILITIES ===== */

.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; }
.delay-6 { animation-delay: 0.6s; }
.delay-7 { animation-delay: 0.7s; }
.delay-8 { animation-delay: 0.8s; }
.delay-9 { animation-delay: 0.9s; }
.delay-10 { animation-delay: 1s; }

/* ===== DURATION UTILITIES ===== */

.duration-fast { animation-duration: 0.3s; }
.duration-normal { animation-duration: 0.6s; }
.duration-slow { animation-duration: 1s; }
.duration-slower { animation-duration: 2s; }

/* ===== PERFORMANCE OPTIMIZATIONS ===== */

.will-change-transform {
    will-change: transform;
}

.will-change-opacity {
    will-change: opacity;
}

.gpu-accelerate {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}