/* ===========================
   NEON DESIGN EXTRAS
   Дополнительные неоновые эффекты для уникального дизайна
   =========================== */

/* ===========================
   PARTICLES BACKGROUND
   =========================== */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.3;
    animation: particleFloat 20s linear infinite;
}

.particle:nth-child(2n) {
    background: var(--secondary-color);
    animation-duration: 25s;
}

.particle:nth-child(3n) {
    background: var(--accent-color);
    animation-duration: 30s;
    width: 3px;
    height: 3px;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-100px) translateX(100px) rotate(360deg);
        opacity: 0;
    }
}

/* ===========================
   NEON GRID LINES
   =========================== */
.neon-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background-image: 
        linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* ===========================
   SCAN LINE EFFECT
   =========================== */
.scanline {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.scanline::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: linear-gradient(transparent, rgba(0, 240, 255, 0.5), transparent);
    animation: scan 8s linear infinite;
}

@keyframes scan {
    0% {
        top: -5%;
    }
    100% {
        top: 105%;
    }
}

/* ===========================
   GLOW TEXT UTILITIES
   =========================== */
.text-glow-cyan {
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.8),
                 0 0 20px rgba(0, 240, 255, 0.6),
                 0 0 30px rgba(0, 240, 255, 0.4);
}

.text-glow-magenta {
    text-shadow: 0 0 10px rgba(255, 0, 255, 0.8),
                 0 0 20px rgba(255, 0, 255, 0.6),
                 0 0 30px rgba(255, 0, 255, 0.4);
}

.text-glow-yellow {
    text-shadow: 0 0 10px rgba(255, 255, 0, 0.8),
                 0 0 20px rgba(255, 255, 0, 0.6),
                 0 0 30px rgba(255, 255, 0, 0.4);
}

/* ===========================
   HOLOGRAPHIC CARDS
   =========================== */
.holo-card {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.holo-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(0, 240, 255, 0.1) 50%,
        transparent 70%
    );
    transform: rotate(0deg);
    transition: all 0.5s ease;
}

.holo-card:hover::before {
    transform: rotate(180deg);
}

.holo-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.3),
                0 0 60px rgba(0, 240, 255, 0.2);
}

/* ===========================
   CYBERPUNK BORDERS
   =========================== */
.cyber-border {
    position: relative;
    padding: 2px;
    background: linear-gradient(
        45deg,
        var(--primary-color),
        var(--secondary-color),
        var(--accent-color)
    );
    background-size: 300% 300%;
    animation: gradientShift 5s ease infinite;
    border-radius: 12px;
}

.cyber-border-content {
    background: var(--dark-bg);
    border-radius: 10px;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

/* ===========================
   NEON DIVIDERS
   =========================== */
.neon-divider {
    width: 100%;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--primary-color),
        var(--secondary-color),
        var(--accent-color),
        transparent
    );
    margin: 4rem 0;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

/* ===========================
   LIGHT RAYS
   =========================== */
.light-rays {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.ray {
    position: absolute;
    width: 1px;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(0, 240, 255, 0.3),
        transparent
    );
    animation: rayMove 10s linear infinite;
}

.ray:nth-child(1) { left: 10%; animation-delay: 0s; }
.ray:nth-child(2) { left: 30%; animation-delay: 2s; }
.ray:nth-child(3) { left: 50%; animation-delay: 4s; }
.ray:nth-child(4) { left: 70%; animation-delay: 6s; }
.ray:nth-child(5) { left: 90%; animation-delay: 8s; }

@keyframes rayMove {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateY(100%);
        opacity: 0;
    }
}

/* ===========================
   HEXAGON PATTERN
   =========================== */
.hex-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.03;
    background-image: 
        repeating-linear-gradient(
            0deg,
            rgba(0, 240, 255, 0.1) 0px,
            transparent 1px,
            transparent 60px
        ),
        repeating-linear-gradient(
            60deg,
            rgba(0, 240, 255, 0.1) 0px,
            transparent 1px,
            transparent 60px
        ),
        repeating-linear-gradient(
            120deg,
            rgba(0, 240, 255, 0.1) 0px,
            transparent 1px,
            transparent 60px
        );
}

/* ===========================
   NEON BADGES
   =========================== */
.neon-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid var(--primary-color);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
    animation: neonPulse 2s ease-in-out infinite;
}

.neon-badge.magenta {
    background: rgba(255, 0, 255, 0.1);
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.3);
}

.neon-badge.yellow {
    background: rgba(255, 255, 0, 0.1);
    border-color: var(--accent-color);
    color: var(--accent-color);
    box-shadow: 0 0 15px rgba(255, 255, 0, 0.3);
}

/* ===========================
   DATA STREAM EFFECT
   =========================== */
.data-stream {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.data-line {
    position: absolute;
    width: 1px;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent,
        var(--primary-color),
        transparent
    );
    opacity: 0.2;
    animation: dataFlow 5s linear infinite;
}

.data-line:nth-child(2n) {
    background: linear-gradient(
        to bottom,
        transparent,
        var(--secondary-color),
        transparent
    );
    animation-duration: 7s;
}

@keyframes dataFlow {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(100vh);
    }
}

/* ===========================
   GLITCH OVERLAY
   =========================== */
.glitch-overlay {
    position: relative;
}

.glitch-overlay::before,
.glitch-overlay::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.glitch-overlay::before {
    animation: glitchTop 3s linear infinite;
    color: #00f0ff;
    z-index: -1;
}

.glitch-overlay::after {
    animation: glitchBottom 2.5s linear infinite;
    color: #ff00ff;
    z-index: -2;
}

@keyframes glitchTop {
    0% { clip-path: inset(40% 0 61% 0); }
    20% { clip-path: inset(92% 0 1% 0); }
    40% { clip-path: inset(43% 0 1% 0); }
    60% { clip-path: inset(25% 0 58% 0); }
    80% { clip-path: inset(54% 0 7% 0); }
    100% { clip-path: inset(58% 0 43% 0); }
}

@keyframes glitchBottom {
    0% { clip-path: inset(25% 0 58% 0); }
    20% { clip-path: inset(54% 0 7% 0); }
    40% { clip-path: inset(58% 0 43% 0); }
    60% { clip-path: inset(40% 0 61% 0); }
    80% { clip-path: inset(92% 0 1% 0); }
    100% { clip-path: inset(43% 0 1% 0); }
}

/* ===========================
   RESPONSIVE ADJUSTMENTS
   =========================== */
@media (max-width: 768px) {
    .neon-grid {
        background-size: 30px 30px;
    }
    
    .particles-container .particle {
        width: 1px;
        height: 1px;
    }
    
    .light-rays,
    .data-stream,
    .scanline {
        display: none; /* Отключаем для производительности на мобильных */
    }
}
