/* === КИБЕРПАНК-ЭФФЕКТЫ ДЛЯ ВСЕГО САЙТА === */

/* Сканирующая лента (можно добавить любому контейнеру) */
.scan-line {
    position: relative;
    overflow: hidden;
}

.scan-line::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #cc44ff, #00ff88, #cc44ff, transparent);
    animation: scan 3s linear infinite;
    pointer-events: none;
    z-index: 10;
}

@keyframes scan {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Мерцание неонового текста */
.neon-flicker {
    animation: flicker 3s infinite;
}

@keyframes flicker {
    0% { opacity: 1; }
    5% { opacity: 0.8; }
    10% { opacity: 1; }
    15% { opacity: 0.9; }
    20% { opacity: 1; }
    100% { opacity: 1; }
}

/* Карточки с эффектом заливки */
.glow-card {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.glow-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(204, 68, 255, 0.1), transparent);
    transition: left 0.5s;
    pointer-events: none;
}

.glow-card:hover::after {
    left: 100%;
}

.glow-card:hover {
    transform: translateX(5px);
    border-color: rgba(204, 68, 255, 0.6);
    box-shadow: 0 0 20px rgba(204, 68, 255, 0.2);
}

/* Анимация появления */
.fade-up {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

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

/* Задержки для последовательного появления */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.5s; }
.delay-4 { animation-delay: 0.7s; }

/* Глитч-эффект для заголовков */
.glitch-text {
    position: relative;
}

.glitch-text::before {
    content: attr(data-text);
    position: absolute;
    left: -2px;
    text-shadow: 2px 0 #ff00ff;
    top: 0;
    color: inherit;
    background: transparent;
    overflow: hidden;
    clip: rect(0, 900px, 0, 0);
    animation: glitch 3s infinite linear alternate-reverse;
    pointer-events: none;
}

@keyframes glitch {
    0% { clip: rect(42px, 9999px, 44px, 0); }
    20% { clip: rect(12px, 9999px, 85px, 0); }
    40% { clip: rect(48px, 9999px, 59px, 0); }
    60% { clip: rect(82px, 9999px, 9px, 0); }
    80% { clip: rect(13px, 9999px, 92px, 0); }
    100% { clip: rect(55px, 9999px, 35px, 0); }
}

/* Неоновая рамка при наведении */
.neon-border {
    transition: all 0.3s ease;
}

.neon-border:hover {
    box-shadow: 0 0 15px rgba(204, 68, 255, 0.5);
    border-color: #cc44ff !important;
}

/* Кастомный скроллбар (для всего сайта) */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(204, 68, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: #cc44ff;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #00ff88;
}

/* Адаптив для мобилок */
@media (max-width: 768px) {
    .glow-card:hover {
        transform: translateX(0);
    }
    .fade-up {
        animation-duration: 0.4s;
    }
}
