/* Background révolutionnaire avec système neural pharmaceutique */
.dynamic-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(26, 188, 156, 0.4) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(52, 152, 219, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 10%, rgba(155, 89, 182, 0.2) 0%, transparent 50%),
        linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 25%, #16213e 50%, #0f3460 75%, #000 100%);
}

/* Système de particules ADN */
.dna-system {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.dna-helix {
    position: absolute;
    width: 4px;
    height: 100vh;
    background: linear-gradient(180deg, 
        transparent 0%, 
        rgba(26, 188, 156, 0.8) 20%, 
        rgba(52, 152, 219, 0.9) 50%, 
        rgba(155, 89, 182, 0.8) 80%, 
        transparent 100%
    );
    animation: helixRotate 12s linear infinite;
    transform-origin: center;
}

.dna-helix:nth-child(1) { left: 10%; animation-delay: 0s; }
.dna-helix:nth-child(2) { left: 30%; animation-delay: -2s; }
.dna-helix:nth-child(3) { left: 50%; animation-delay: -4s; }
.dna-helix:nth-child(4) { left: 70%; animation-delay: -6s; }
.dna-helix:nth-child(5) { left: 90%; animation-delay: -8s; }

@keyframes helixRotate {
    0% { 
        transform: rotateY(0deg) rotateX(0deg) translateZ(0px);
        opacity: 0.3;
    }
    25% { 
        transform: rotateY(90deg) rotateX(45deg) translateZ(50px);
        opacity: 0.8;
    }
    50% { 
        transform: rotateY(180deg) rotateX(90deg) translateZ(0px);
        opacity: 1;
    }
    75% { 
        transform: rotateY(270deg) rotateX(135deg) translateZ(-50px);
        opacity: 0.8;
    }
    100% { 
        transform: rotateY(360deg) rotateX(180deg) translateZ(0px);
        opacity: 0.3;
    }
}

/* Molécules pharmaceutiques flottantes */
.molecule-cloud {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.molecule {
    position: absolute;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.3), transparent 70%);
    border: 2px solid rgba(26, 188, 156, 0.6);
    border-radius: 50%;
    animation: moleculeFloat 15s ease-in-out infinite;
}

.molecule::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    background: rgba(26, 188, 156, 0.8);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 
        0 0 20px rgba(26, 188, 156, 0.5),
        inset 0 0 10px rgba(255, 255, 255, 0.3);
}

.molecule::after {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 1px solid rgba(52, 152, 219, 0.3);
    border-radius: 50%;
    animation: moleculeRing 8s linear infinite;
}

@keyframes moleculeRing {
    0% { transform: rotate(0deg) scale(1); opacity: 0.8; }
    50% { transform: rotate(180deg) scale(1.2); opacity: 0.4; }
    100% { transform: rotate(360deg) scale(1); opacity: 0.8; }
}

.molecule:nth-child(1) {
    top: 15%; left: 8%; 
    animation-duration: 18s; animation-delay: -2s;
}
.molecule:nth-child(2) {
    top: 60%; left: 15%; 
    animation-duration: 22s; animation-delay: -8s;
}
.molecule:nth-child(3) {
    top: 25%; right: 12%; 
    animation-duration: 16s; animation-delay: -5s;
}
.molecule:nth-child(4) {
    bottom: 20%; right: 25%; 
    animation-duration: 20s; animation-delay: -12s;
}
.molecule:nth-child(5) {
    top: 45%; left: 45%; 
    animation-duration: 14s; animation-delay: -3s;
}
.molecule:nth-child(6) {
    bottom: 35%; left: 20%; 
    animation-duration: 25s; animation-delay: -15s;
}

@keyframes moleculeFloat {
    0%, 100% {
        transform: translate(0px, 0px) rotate(0deg) scale(1);
        filter: hue-rotate(0deg);
    }
    25% {
        transform: translate(40px, -30px) rotate(90deg) scale(1.1);
        filter: hue-rotate(90deg);
    }
    50% {
        transform: translate(-30px, 50px) rotate(180deg) scale(0.9);
        filter: hue-rotate(180deg);
    }
    75% {
        transform: translate(50px, 30px) rotate(270deg) scale(1.05);
        filter: hue-rotate(270deg);
    }
}

/* Réseau neural connecté */
.neural-network {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.neural-connection {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(26, 188, 156, 0.6) 20%, 
        rgba(52, 152, 219, 0.8) 50%, 
        rgba(155, 89, 182, 0.6) 80%, 
        transparent 100%
    );
    animation: neuralPulse 4s ease-in-out infinite;
    transform-origin: left center;
}

@keyframes neuralPulse {
    0%, 100% { 
        opacity: 0.3; 
        transform: scaleX(0.5) scaleY(1);
        filter: blur(0px);
    }
    50% { 
        opacity: 1; 
        transform: scaleX(1.2) scaleY(2);
        filter: blur(1px);
    }
}

.neural-connection:nth-child(1) {
    top: 20%; left: 10%; width: 200px; 
    transform: rotate(15deg); animation-delay: 0s;
}
.neural-connection:nth-child(2) {
    top: 40%; left: 60%; width: 150px; 
    transform: rotate(-25deg); animation-delay: 1s;
}
.neural-connection:nth-child(3) {
    top: 70%; left: 20%; width: 180px; 
    transform: rotate(45deg); animation-delay: 2s;
}
.neural-connection:nth-child(4) {
    top: 30%; right: 15%; width: 220px; 
    transform: rotate(-15deg); animation-delay: 3s;
}
.neural-connection:nth-child(5) {
    bottom: 25%; left: 45%; width: 160px; 
    transform: rotate(30deg); animation-delay: 0.5s;
}

/* Particules d'énergie quantique */
.quantum-field {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.quantum-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(26, 188, 156, 0.8);
    border-radius: 50%;
    animation: quantumFlow 6s ease-in-out infinite;
    box-shadow: 
        0 0 10px rgba(26, 188, 156, 0.8),
        0 0 20px rgba(52, 152, 219, 0.4),
        0 0 30px rgba(155, 89, 182, 0.2);
}

@keyframes quantumFlow {
    0%, 100% {
        opacity: 0;
        transform: scale(0.5) translateY(0px);
    }
    25% {
        opacity: 0.8;
        transform: scale(1.2) translateY(-40px);
    }
    50% {
        opacity: 1;
        transform: scale(1.5) translateY(-80px);
    }
    75% {
        opacity: 0.6;
        transform: scale(1) translateY(-120px);
    }
}

/* Distribution des particules quantiques */
.quantum-particle:nth-child(1) { top: 80%; left: 15%; animation-delay: 0s; }
.quantum-particle:nth-child(2) { top: 90%; left: 35%; animation-delay: 0.5s; }
.quantum-particle:nth-child(3) { top: 85%; left: 55%; animation-delay: 1s; }
.quantum-particle:nth-child(4) { top: 95%; left: 75%; animation-delay: 1.5s; }
.quantum-particle:nth-child(5) { top: 75%; left: 25%; animation-delay: 2s; }
.quantum-particle:nth-child(6) { top: 88%; left: 45%; animation-delay: 2.5s; }
.quantum-particle:nth-child(7) { top: 92%; left: 65%; animation-delay: 3s; }
.quantum-particle:nth-child(8) { top: 82%; left: 85%; animation-delay: 3.5s; }


@keyframes slideInFromLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}