/* CYBER EFFECTS CSS */

/* ========== GLITCH TEXT EFFECT ========== */
@keyframes glitch {
    0% {
        text-shadow: 0.05em 0 0 rgba(255, 0, 0, 0.75),
                    -0.05em -0.025em 0 rgba(0, 255, 0, 0.75),
                    -0.025em 0.05em 0 rgba(0, 0, 255, 0.75);
    }
    14% {
        text-shadow: 0.05em 0 0 rgba(255, 0, 0, 0.75),
                    -0.05em -0.025em 0 rgba(0, 255, 0, 0.75),
                    -0.025em 0.05em 0 rgba(0, 0, 255, 0.75);
    }
    15% {
        text-shadow: -0.05em -0.025em 0 rgba(255, 0, 0, 0.75),
                    0.025em 0.025em 0 rgba(0, 255, 0, 0.75),
                    -0.05em -0.05em 0 rgba(0, 0, 255, 0.75);
    }
    49% {
        text-shadow: -0.05em -0.025em 0 rgba(255, 0, 0, 0.75),
                    0.025em 0.025em 0 rgba(0, 255, 0, 0.75),
                    -0.05em -0.05em 0 rgba(0, 0, 255, 0.75);
    }
    50% {
        text-shadow: 0.025em 0.05em 0 rgba(255, 0, 0, 0.75),
                    0.05em 0 0 rgba(0, 255, 0, 0.75),
                    0 -0.05em 0 rgba(0, 0, 255, 0.75);
    }
    99% {
        text-shadow: 0.025em 0.05em 0 rgba(255, 0, 0, 0.75),
                    0.05em 0 0 rgba(0, 255, 0, 0.75),
                    0 -0.05em 0 rgba(0, 0, 255, 0.75);
    }
    100% {
        text-shadow: -0.025em 0 0 rgba(255, 0, 0, 0.75),
                    -0.025em -0.025em 0 rgba(0, 255, 0, 0.75),
                    -0.025em -0.05em 0 rgba(0, 0, 255, 0.75);
    }
}

.hero-title {
    animation: glitch 2s infinite;
}

/* ========== PULSING BORDER EFFECT ========== */
@keyframes borderPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(138, 43, 226, 0.7);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(138, 43, 226, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(138, 43, 226, 0);
    }
}

.btn-glow {
    animation: borderPulse 2s infinite;
}

/* ========== DATA STREAM EFFECT ========== */
.counter-item {
    position: relative;
    overflow: hidden;
}

.counter-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    animation: dataStream 3s infinite;
}

@keyframes dataStream {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* ========== HOLOGRAPHIC CARD EFFECT ========== */
.holographic-card {
    background: linear-gradient(
        135deg,
        rgba(138, 43, 226, 0.1) 0%,
        rgba(0, 206, 209, 0.1) 50%,
        rgba(138, 43, 226, 0.1) 100%
    );
    border: 1px solid rgba(138, 43, 226, 0.3);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.holographic-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    animation: hologramScan 3s infinite;
}

@keyframes hologramScan {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* ========== CYBER TERMINAL EFFECT ========== */
.terminal-effect {
    font-family: 'Courier New', monospace;
    background: #0f1419;
    border: 1px solid #00ff9d;
    position: relative;
    overflow: hidden;
}

.terminal-effect::after {
    content: '▋';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #00ff9d;
    animation: cursorBlink 1s infinite;
}

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

/* ========== CYBER LOADER STYLES ========== */
.cyber-loader {
    font-family: 'JetBrains Mono', monospace;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.loader-content {
    width: 600px;
    max-width: 90%;
    background: rgba(26, 31, 46, 0.95);
    border: 1px solid var(--primary);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 0 50px rgba(138, 43, 226, 0.5);
}

.loader-text {
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    text-align: center;
    animation: pulse 1.5s infinite;
}

.loader-progress {
    margin-bottom: 2rem;
}

.loader-progress .progress-bar {
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
    width: 0%;
    transition: width 0.3s ease;
}

.loader-progress .progress-text {
    text-align: right;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.loader-commands {
    color: #00ff9d;
    font-family: 'Courier New', monospace;
}

.loader-commands .command {
    opacity: 0;
    transition: opacity 0.5s ease;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.loader-commands .command:before {
    content: '> ';
    color: var(--primary);
}