/* Dark Matter Background Styles */
/* Extracted from dark-matter-background.js to fix CSP violations */

/* Twinkling Star Particles */
.star-particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #fff;
    border-radius: 50%;
    animation: twinkle 2s ease-in-out infinite alternate;
    z-index: 10;
}

@keyframes twinkle {
    0% { opacity: 0.05; transform: scale(0.5); box-shadow: 0 0 1px #fff; }
    100% { opacity: 0.15; transform: scale(1.5); box-shadow: 0 0 3px #fff, 0 0 5px rgba(255,255,255,0.1); }
}

/* Encryption Symbols */
.encryption-symbol {
    position: absolute;
    font-size: 24px;
    color: #00ffff;
    text-shadow: 0 0 2px currentColor;
    animation: symbol-float 4s ease-in-out infinite;
    pointer-events: none;
    z-index: 60;
    opacity: 0.1;
}

.encryption-symbol.orange { color: #ff6b00; }
.encryption-symbol.purple { color: #9b59b6; }
.encryption-symbol.red { color: #e74c3c; }
.encryption-symbol.yellow { color: #f39c12; }

@keyframes symbol-float {
    0% { opacity: 0; transform: translateY(20px) scale(0.5) rotate(0deg); }
    25% { opacity: 0.08; transform: translateY(0px) scale(1) rotate(90deg); }
    75% { opacity: 0.08; transform: translateY(-10px) scale(1.2) rotate(270deg); }
    100% { opacity: 0; transform: translateY(-30px) scale(0.3) rotate(360deg); }
}

/* Dark Matter Particles */
.dark-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #00ffff;
    border-radius: 50%;
    box-shadow: 0 0 2px #00ffff, 0 0 4px rgba(0, 255, 255, 0.1);
    animation: particle-float 6s ease-in-out infinite;
    transition: all 0.3s ease;
    z-index: 30;
    opacity: 0.15;
}

.dark-particle.mouse-attracted {
    transform: scale(1.5);
    box-shadow: 0 0 20px currentColor, 0 0 40px rgba(255, 255, 255, 0.3);
}

.dark-particle.encrypted {
    background: #ff6b00;
    box-shadow: 0 0 25px #ff6b00, 0 0 50px rgba(255, 107, 0, 0.8);
    animation: encrypt-pulse 2s ease-in-out infinite;
    transform: scale(1.5);
}

@keyframes particle-float {
    0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0.1; }
    50% { transform: translateY(-20px) rotate(180deg); opacity: 0.15; }
}

@keyframes encrypt-pulse {
    0% { opacity: 0.5; transform: scale(1) rotate(0deg); }
    50% { opacity: 1; transform: scale(1.3) rotate(180deg); }
    100% { opacity: 0.5; transform: scale(1) rotate(360deg); }
}

/* Particle Connections */
.particle-connection {
    position: absolute;
    height: 2px;
    background: linear-gradient(to right, transparent 0%, rgba(0, 255, 255, 0.1) 50%, transparent 100%);
    transform-origin: left center;
    pointer-events: none;
    z-index: 20;
    animation: connection-pulse 2s ease-in-out infinite;
    box-shadow: 0 0 1px rgba(0, 255, 255, 0.05);
    opacity: 0.08;
}

@keyframes connection-pulse {
    0%, 100% { opacity: 0.05; }
    50% { opacity: 0.1; }
}

/* Quantum Dots */
.quantum-dot {
    position: absolute;
    border-radius: 50%;
    animation: quantum-pulse 3s ease-in-out infinite;
    z-index: 40;
    opacity: 0.1;
}

.quantum-dot.electron {
    width: 4px;
    height: 4px;
    background: #00ffff;
    box-shadow: 0 0 2px #00ffff;
}

.quantum-dot.proton {
    width: 6px;
    height: 6px;
    background: #ff6b00;
    box-shadow: 0 0 3px #ff6b00;
}

.quantum-dot.neutron {
    width: 5px;
    height: 5px;
    background: #fff;
    box-shadow: 0 0 12px #fff;
}

@keyframes quantum-pulse {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.8; }
    50% { transform: scale(2) rotate(180deg); opacity: 1; }
}

/* Data Streams */
.data-stream {
    position: absolute;
    background: linear-gradient(45deg, #00ffff, #ff6b00, #00ffff);
    animation: stream-flow 3s linear infinite;
    box-shadow: 0 0 10px currentColor;
    z-index: 35;
}

.data-stream.vertical {
    width: 3px;
    height: 200px;
}

.data-stream.horizontal {
    width: 200px;
    height: 3px;
}

@keyframes stream-flow {
    0% { opacity: 0; transform: scale(0.5); }
    50% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.5); }
}

/* Encryption Waves */
.encryption-wave {
    position: absolute;
    border: 3px solid #00ffff;
    border-radius: 50%;
    animation: wave-expand 4s ease-out infinite;
    box-shadow: 0 0 20px currentColor;
    z-index: 25;
}

.encryption-wave.orange { border-color: #ff6b00; }
.encryption-wave.purple { border-color: #9b59b6; }

@keyframes wave-expand {
    0% { width: 10px; height: 10px; opacity: 1; transform: translate(-50%, -50%); }
    100% { width: 500px; height: 500px; opacity: 0; transform: translate(-50%, -50%); }
}

/* Neural Network */
.neural-node {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #00ffff;
    border-radius: 50%;
    box-shadow: 0 0 20px #00ffff;
    animation: neural-pulse 2s ease-in-out infinite;
    z-index: 45;
}

.neural-connection {
    position: absolute;
    height: 2px;
    background: linear-gradient(to right, #00ffff, #ff6b00, #00ffff);
    animation: connection-flow 3s ease-in-out infinite;
    transform-origin: left center;
    box-shadow: 0 0 5px currentColor;
    z-index: 25;
}

@keyframes neural-pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 20px #00ffff; }
    50% { transform: scale(1.5); box-shadow: 0 0 40px #00ffff, 0 0 60px rgba(0,255,255,0.5); }
}

@keyframes connection-flow {
    0% { opacity: 0.3; }
    50% { opacity: 1; }
    100% { opacity: 0.3; }
}

/* Binary Rain */
.binary-digit {
    position: absolute;
    color: #00ff00;
    font-family: "Courier New", monospace;
    font-weight: bold;
    animation: binary-fall 5s linear infinite;
    text-shadow: 0 0 8px currentColor;
    z-index: 50;
    font-size: 14px;
}

@keyframes binary-fall {
    0% { transform: translateY(-100vh); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(100vh); opacity: 0; }
}

/* Enhanced cursor effects - Improved smoothness */
.cursor-trail {
    position: fixed;
    width: 12px;
    height: 12px;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.8) 0%, rgba(0, 255, 255, 0.4) 50%, transparent 100%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1000;
    animation: trail-smooth-fade 1.2s ease-out forwards;
    will-change: transform, opacity;
}

@keyframes trail-smooth-fade {
    0% {
        opacity: 0.9;
        transform: scale(1) rotate(0deg);
        box-shadow: 0 0 20px rgba(0, 255, 255, 0.8), 0 0 40px rgba(0, 255, 255, 0.4);
    }
    30% {
        opacity: 0.7;
        transform: scale(1.1) rotate(90deg);
        box-shadow: 0 0 25px rgba(255, 107, 0, 0.6), 0 0 50px rgba(255, 107, 0, 0.3);
    }
    70% {
        opacity: 0.4;
        transform: scale(0.8) rotate(270deg);
        box-shadow: 0 0 15px rgba(155, 89, 182, 0.4), 0 0 30px rgba(155, 89, 182, 0.2);
    }
    100% {
        opacity: 0;
        transform: scale(0.3) rotate(360deg);
        box-shadow: 0 0 5px transparent;
    }
}

.mouse-trail {
    position: fixed;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.9) 0%, rgba(0, 255, 255, 0.3) 70%, transparent 100%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1000;
    animation: trail-elegant-fade 1.5s ease-out forwards;
    will-change: transform, opacity;
}

@keyframes trail-elegant-fade {
    0% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 15px rgba(0, 255, 255, 0.8);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.2);
        box-shadow: 0 0 20px rgba(0, 255, 255, 0.6);
    }
    100% {
        opacity: 0;
        transform: scale(0.4);
        box-shadow: 0 0 5px transparent;
    }
}