/* Additional Cyberpunk Animations and Effects */

/* Neon Glow Text Animation */
@keyframes neon-flicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
        text-shadow:
            0 0 4px #fff,
            0 0 10px #fff,
            0 0 20px var(--primary-color),
            0 0 40px var(--primary-color),
            0 0 80px var(--primary-color);
    }
    20%, 24%, 55% {        
        text-shadow: none;
    }    
}

/* Hologram Effect */
.hologram {
    position: relative;
    display: inline-block;
}

.hologram::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    color: var(--secondary-color);
    z-index: -1;
    filter: blur(3px);
    opacity: 0.8;
    animation: hologram-glitch 3s infinite;
}

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

/* Cyberpunk Button */
.cyber-button {
    position: relative;
    padding: 1rem 2rem;
    border: 2px solid var(--primary-color);
    background: rgba(0, 255, 65, 0.1);
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s;
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%);
}

.cyber-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--primary-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cyber-button:hover {
    color: var(--bg-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 255, 65, 0.4);
}

.cyber-button:hover::before {
    width: 300px;
    height: 300px;
}

/* Data Stream Effect */
.data-stream {
    position: relative;
    overflow: hidden;
}

.data-stream::after {
    content: '010110100101011010010101101001';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    color: var(--primary-color);
    font-size: 0.8rem;
    opacity: 0.1;
    overflow: hidden;
    animation: data-flow 20s linear infinite;
}

@keyframes data-flow {
    0% { transform: translateY(100%); }
    100% { transform: translateY(-100%); }
}

/* Circuit Board Pattern */
.circuit-bg {
    position: relative;
}

.circuit-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.05;
    background-image: 
        linear-gradient(90deg, var(--primary-color) 1px, transparent 1px),
        linear-gradient(var(--primary-color) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: circuit-pulse 4s ease-in-out infinite;
}

@keyframes circuit-pulse {
    0%, 100% { opacity: 0.05; }
    50% { opacity: 0.1; }
}

/* Glitch Text Animation */
.glitch-text {
    position: relative;
    display: inline-block;
}

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

.glitch-text::before {
    animation: glitch-anim-1 0.5s infinite linear alternate-reverse;
    color: var(--secondary-color);
    z-index: -1;
}

.glitch-text::after {
    animation: glitch-anim-2 0.5s infinite linear alternate-reverse;
    color: var(--accent-color);
    z-index: -2;
}

/* Cyber Grid Animation */
@keyframes grid-flow {
    0% {
        background-position: 0 0, 0 0;
    }
    100% {
        background-position: 50px 50px, -50px -50px;
    }
}

/* Pulse Ring Effect */
.pulse-ring {
    position: relative;
}

.pulse-ring::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pulse-ring-anim 2s infinite;
}

@keyframes pulse-ring-anim {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

/* Loading Animation */
.cyber-loader {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(0, 255, 65, 0.1);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: cyber-spin 1s linear infinite;
    position: relative;
}

.cyber-loader::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 3px solid transparent;
    border-top-color: var(--secondary-color);
    border-radius: 50%;
    animation: cyber-spin 0.6s linear infinite reverse;
}

@keyframes cyber-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}