/* =========================================
   ANIMATIONS CSS - CEK DESIL VGA KAMU
   ========================================= */

@keyframes neonPulse {
    0% { box-shadow: 0 0 5px var(--accent-neon), inset 0 0 5px var(--accent-neon); }
    50% { box-shadow: 0 0 20px var(--accent-neon), inset 0 0 10px var(--accent-neon); }
    100% { box-shadow: 0 0 5px var(--accent-neon), inset 0 0 5px var(--accent-neon); }
}

@keyframes scanline {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100vh); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes progressFill {
    from { width: 0%; }
    to { /* width set via inline style */ }
}

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

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

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

@keyframes revealBoom {
    0% { transform: scale(0.5); opacity: 0; filter: blur(10px); }
    70% { transform: scale(1.1); filter: blur(0px); }
    100% { transform: scale(1); opacity: 1; }
}

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

/* Animation Utilities */
.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out forwards;
}
.animate-fadeIn {
    animation: fadeIn 0.5s ease-out forwards;
}
.animate-pulse {
    animation: neonPulse 2s infinite;
}
.animate-shake {
    animation: shake 0.5s;
}
.animate-float {
    animation: float 4s ease-in-out infinite;
}
.animate-gradient {
    background-size: 200% auto;
    animation: gradientShift 3s linear infinite;
}
.cursor-blink {
    animation: blink 1s step-end infinite;
}

/* Staggered Delays */
.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; }

/* Scanning Overlay Styles */
.scanning-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: #000;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
}
.scanning-overlay::after {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 10px;
    background: rgba(0, 240, 255, 0.5);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.8);
    animation: scanline 2s linear infinite;
}
.terminal-text {
    color: var(--accent-neon);
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: var(--shadow-neon);
}
.scan-progress {
    width: 80%;
    max-width: 400px;
    height: 20px;
    border: 1px solid var(--accent-neon);
    padding: 2px;
}
.scan-bar {
    height: 100%;
    background: var(--accent-neon);
    width: 0%;
    transition: width 0.1s;
}

/* Cyber Matrix Scanner Keyframes */
@keyframes cyberLaser {
    0% { top: 2%; opacity: 0.85; }
    50% { top: 94%; opacity: 1; }
    100% { top: 2%; opacity: 0.85; }
}

@keyframes spinClockwise {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes spinCounterClockwise {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

@keyframes flashBurst {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}

.animate-laser {
    animation: cyberLaser 1.8s ease-in-out infinite;
}
.animate-spin-slow {
    animation: spinClockwise 8s linear infinite;
}
.animate-spin-reverse {
    animation: spinCounterClockwise 12s linear infinite;
}

