/* Fond cyberpunk avec effets futuristes */
.animated-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -2;
    overflow: hidden;
}

/* Particules cyberpunk - codes binaires flottants */
.particle {
    position: absolute;
    color: #00ff41;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    font-weight: bold;
    text-shadow: 0 0 10px #00ff41;
    animation: matrixRain 8s linear infinite;
    opacity: 0.8;
}

.particle::before {
    content: '01010110101001011010';
    display: block;
    white-space: nowrap;
}

.particle:nth-child(1) {
    left: 5%;
    animation-delay: 0s;
    animation-duration: 6s;
}

.particle:nth-child(1)::before {
    content: '1100101010';
}

.particle:nth-child(2) {
    left: 15%;
    animation-delay: 1s;
    animation-duration: 8s;
    color: #4caf50;
    text-shadow: 0 0 10px #4caf50;
}

.particle:nth-child(2)::before {
    content: '0011010110';
}

.particle:nth-child(3) {
    left: 35%;
    animation-delay: 2s;
    animation-duration: 7s;
    color: #66bb6a;
    text-shadow: 0 0 10px #66bb6a;
}

.particle:nth-child(3)::before {
    content: '1010011001';
}

.particle:nth-child(4) {
    left: 55%;
    animation-delay: 3s;
    animation-duration: 9s;
}

.particle:nth-child(4)::before {
    content: '0110101001';
}

.particle:nth-child(5) {
    left: 75%;
    animation-delay: 4s;
    animation-duration: 5s;
    color: #81c784;
    text-shadow: 0 0 10px #81c784;
}

.particle:nth-child(5)::before {
    content: '1001010110';
}

.particle:nth-child(6) {
    left: 85%;
    animation-delay: 5s;
    animation-duration: 10s;
    color: #a5d6a7;
    text-shadow: 0 0 10px #a5d6a7;
}

.particle:nth-child(6)::before {
    content: '0101101001';
}

@keyframes matrixRain {
    0% {
        transform: translateY(-100px);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(calc(100vh + 100px));
        opacity: 0;
    }
}

/* Grille cyberpunk */
.wave-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 65, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 65, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
    z-index: -1;
}

.wave-animation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(0, 255, 65, 0.3) 0%, transparent 30%),
        radial-gradient(circle at 80% 80%, rgba(76, 175, 80, 0.2) 0%, transparent 30%),
        radial-gradient(circle at 50% 50%, rgba(102, 187, 106, 0.1) 0%, transparent 40%);
    animation: pulseGlow 4s ease-in-out infinite alternate;
}

.wave-animation::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        transparent 40%,
        rgba(0, 255, 65, 0.05) 50%,
        transparent 60%
    );
    animation: scanLine 3s linear infinite;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

@keyframes pulseGlow {
    0% {
        opacity: 0.3;
        transform: scale(1);
    }
    100% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

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

/* Effets de glitch cyberpunk */
.cyberpunk-glitch {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -3;
}

.cyberpunk-glitch::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(0, 255, 65, 0.03) 25%,
        rgba(76, 175, 80, 0.02) 50%,
        rgba(0, 255, 65, 0.03) 75%,
        transparent 100%
    );
    animation: glitchMove 6s ease-in-out infinite;
}

@keyframes glitchMove {
    0%, 100% {
        transform: translateX(-100%) skewX(0deg);
        opacity: 0;
    }
    50% {
        transform: translateX(100%) skewX(5deg);
        opacity: 1;
    }
}

/* Hexagones cyberpunk flottants */
.hex-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -2;
}

.hex-pattern::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(0, 255, 65, 0.1) 2px, transparent 2px),
        radial-gradient(circle at 75% 75%, rgba(76, 175, 80, 0.1) 2px, transparent 2px);
    background-size: 100px 100px;
    animation: hexFloat 15s ease-in-out infinite;
}

@keyframes hexFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-20px) rotate(120deg);
    }
    66% {
        transform: translateY(20px) rotate(240deg);
    }
}