/* ===== ДОПОЛНИТЕЛЬНЫЕ ЭФФЕКТЫ ДЛЯ ФУТЕРА ===== */

/* Голографический эффект для логотипа */
.footer-logo-img {
    position: relative;
    overflow: hidden;
}

.footer-logo-img::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(139, 69, 19, 0.1) 50%,
        transparent 70%
    );
    animation: hologramSweep 3s ease-in-out infinite;
    pointer-events: none;
}

/* Матричный дождь для фона */
.footer-matrix {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 0;
}

.matrix-column {
    position: absolute;
    top: -100%;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #8B4513;
    opacity: 0.1;
    animation: matrixFall linear infinite;
}

/* Пульсирующие точки подключения */
.connection-dots {
    position: absolute;
    top: 20%;
    left: 10%;
    right: 10%;
    bottom: 20%;
    z-index: 1;
}

.connection-dot {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #8B4513;
    border-radius: 50%;
    opacity: 0;
    animation: dotPulse 2s ease-in-out infinite;
}

.connection-line {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, #8B4513, transparent);
    opacity: 0;
    animation: lineConnect 3s ease-in-out infinite;
}

/* Энергетические волны */
.energy-waves {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    overflow: hidden;
    z-index: 1;
}

.energy-wave {
    position: absolute;
    bottom: 0;
    left: -100%;
    width: 200%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #8B4513, transparent);
    animation: waveMove 4s ease-in-out infinite;
}

.energy-wave:nth-child(2) {
    animation-delay: 1s;
    height: 1px;
    opacity: 0.7;
}

.energy-wave:nth-child(3) {
    animation-delay: 2s;
    height: 3px;
    opacity: 0.5;
}

/* Цифровой шум */
.digital-noise {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(139, 69, 19, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(139, 69, 19, 0.02) 0%, transparent 50%);
    animation: noiseFlicker 0.1s linear infinite;
    z-index: 0;
}

/* Светящиеся границы для колонок */
.footer-column {
    position: relative;
    padding: 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.footer-column::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid transparent;
    border-radius: 8px;
    background: linear-gradient(45deg, transparent, rgba(139, 69, 19, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.footer-column:hover::before {
    opacity: 1;
}

/* Анимированные иконки */
.animated-icon {
    display: inline-block;
    animation: iconFloat 3s ease-in-out infinite;
}

.animated-icon:nth-child(2n) {
    animation-delay: 0.5s;
}

.animated-icon:nth-child(3n) {
    animation-delay: 1s;
}

/* Терминальный курсор */
.terminal-cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background: #8B4513;
    margin-left: 2px;
    animation: cursorBlink 1s step-end infinite;
}

/* Глитч эффект для текста */
.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%;
    opacity: 0;
}

.glitch-text::before {
    color: #ff0000;
    animation: glitchTop 0.3s ease-in-out infinite;
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
}

.glitch-text::after {
    color: #00ff00;
    animation: glitchBottom 0.3s ease-in-out infinite;
    clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
}

/* Радарный эффект */
.radar-sweep {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    border: 1px solid rgba(139, 69, 19, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.3;
}

.radar-sweep::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 1px;
    background: #8B4513;
    transform-origin: 0 0;
    animation: radarSweep 4s linear infinite;
}

/* ===== АНИМАЦИИ ЭФФЕКТОВ ===== */

@keyframes hologramSweep {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    50% { transform: translateX(100%) translateY(100%) rotate(45deg); }
    100% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
}

@keyframes matrixFall {
    0% { 
        transform: translateY(-100vh); 
        opacity: 0; 
    }
    10% { 
        opacity: 0.1; 
    }
    90% { 
        opacity: 0.1; 
    }
    100% { 
        transform: translateY(100vh); 
        opacity: 0; 
    }
}

@keyframes dotPulse {
    0%, 100% { 
        opacity: 0; 
        transform: scale(0.5); 
    }
    50% { 
        opacity: 1; 
        transform: scale(1.2); 
    }
}

@keyframes lineConnect {
    0%, 100% { 
        opacity: 0; 
        width: 0; 
    }
    50% { 
        opacity: 0.5; 
        width: 100px; 
    }
}

@keyframes waveMove {
    0% { 
        left: -100%; 
        opacity: 0; 
    }
    50% { 
        opacity: 1; 
    }
    100% { 
        left: 100%; 
        opacity: 0; 
    }
}

@keyframes noiseFlicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.98; }
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

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

@keyframes glitchTop {
    0%, 100% { 
        opacity: 0; 
        transform: translateX(0); 
    }
    10%, 20% { 
        opacity: 1; 
        transform: translateX(-2px); 
    }
}

@keyframes glitchBottom {
    0%, 100% { 
        opacity: 0; 
        transform: translateX(0); 
    }
    15%, 25% { 
        opacity: 1; 
        transform: translateX(2px); 
    }
}

@keyframes radarSweep {
    0% { 
        transform: rotate(0deg); 
        width: 0; 
    }
    50% { 
        width: 100px; 
    }
    100% { 
        transform: rotate(360deg); 
        width: 0; 
    }
}

/* ===== ИНТЕРАКТИВНЫЕ ЭФФЕКТЫ ===== */

/* Эффект при наведении на футер */
.footer:hover .footer-particles .particle {
    animation-duration: 3s;
}

.footer:hover .laser-sweep {
    animation-duration: 4s;
}

.footer:hover .data-stream .data-bit {
    animation-duration: 0.5s;
}

/* Эффект при клике на статистику */
.stat-item:active {
    transform: translateY(-1px) scale(0.98);
}

/* Эффект загрузки для ссылок */
.footer a:active {
    position: relative;
    overflow: hidden;
}

.footer a:active::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 69, 19, 0.3), transparent);
    animation: loadingSwipe 0.6s ease-out;
}

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

/* Адаптивные эффекты */
@media (max-width: 768px) {
    .footer-particles,
    .laser-sweep,
    .data-stream {
        display: none; /* Отключаем сложные анимации на мобильных */
    }
    
    .footer-matrix {
        opacity: 0.5;
    }
}

@media (prefers-reduced-motion: reduce) {
    /* Уменьшаем анимации для пользователей с ограниченными возможностями */
    .footer-particles,
    .laser-sweep,
    .data-stream,
    .footer-matrix {
        animation: none;
    }
    
    .particle,
    .data-bit {
        opacity: 0.3;
        animation: none;
    }
}