/* ХАКЕРСКИЙ ЭФФЕКТ ДЛЯ ТРАНСГЕНЕРАТОРА */
.hack-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.hack-overlay.active {
    display: flex;
    opacity: 1;
    animation: glitchBackground 0.2s infinite;
}

.hack-content {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.matrix-rain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hack-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Orbitron', sans-serif;
    font-size: 5em;
    color: #0f0;
    text-shadow: 0 0 10px #0f0, 0 0 20px #0f0, 0 0 30px #0f0;
    white-space: nowrap;
    animation: hackText 2s linear;
}

.glitch-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.glitch-line {
    position: absolute;
    width: 100%;
    height: 1px;
    background: rgba(0, 255, 0, 0.5);
    animation: glitchLine 4s linear infinite;
}

@keyframes hackText {
    0% {
        clip-path: inset(0 100% 0 0);
        transform: translate(-50%, -50%) scale(0.5);
    }
    30% {
        clip-path: inset(0 0 0 0);
        transform: translate(-50%, -50%) scale(1.2);
    }
    35% {
        transform: translate(-50%, -50%) scale(1);
    }
    40% {
        text-shadow: 0 0 50px #0f0, 0 0 100px #0f0;
        transform: translate(-50%, -50%) scale(1.1);
    }
    45% {
        text-shadow: 0 0 10px #0f0, 0 0 20px #0f0;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        transform: translate(-52%, -48%) scale(1.05);
    }
    55% {
        transform: translate(-48%, -52%) scale(0.95);
    }
    60% {
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
    }
}

@keyframes glitchBackground {
    0% {
        background: rgba(0, 0, 0, 0.9);
    }
    50% {
        background: rgba(0, 20, 0, 0.9);
    }
    100% {
        background: rgba(0, 0, 0, 0.9);
    }
}

@keyframes glitchLine {
    0% {
        top: -50%;
        opacity: 0.5;
    }
    100% {
        top: 150%;
        opacity: 0;
    }
}

/* Неоновые частицы */
.hack-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #0f0;
    border-radius: 50%;
    animation: particleFly 1s linear;
}

@keyframes particleFly {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(var(--tx), var(--ty)) scale(0);
        opacity: 0;
    }
} 