/* Quantum Effects CSS - TachyonBuilt Theme */

/* Quantum particle background pattern */
.quantum-background {
    position: relative;
    overflow: hidden;
}

.quantum-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 30%, rgba(118, 75, 162, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(102, 126, 234, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

/* Quantum grid pattern */
.quantum-grid {
    position: relative;
}

.quantum-grid::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(102, 126, 234, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(102, 126, 234, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 1;
}

/* Neutrino particle animation */
@keyframes neutrino-flow {
    0% {
        transform: translateX(-100%) translateY(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateX(100vw) translateY(-20px) rotate(360deg);
        opacity: 0;
    }
}

.neutrino-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.neutrino-particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(102, 126, 234, 0.6);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
    animation: neutrino-flow 15s linear infinite;
}

.neutrino-particle:nth-child(1) { top: 10%; animation-delay: 0s; }
.neutrino-particle:nth-child(2) { top: 30%; animation-delay: 3s; }
.neutrino-particle:nth-child(3) { top: 50%; animation-delay: 6s; }
.neutrino-particle:nth-child(4) { top: 70%; animation-delay: 9s; }
.neutrino-particle:nth-child(5) { top: 90%; animation-delay: 12s; }

/* Superposition wave effect */
@keyframes superposition-wave {
    0%, 100% {
        opacity: 0.05;
        transform: scaleX(1) scaleY(1);
    }
    50% {
        opacity: 0.1;
        transform: scaleX(1.1) scaleY(0.9);
    }
}

.superposition-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at center, transparent 0%, rgba(102, 126, 234, 0.05) 100%);
    animation: superposition-wave 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

/* Tachyon trail effect */
@keyframes tachyon-trail {
    0% {
        transform: translateX(-50px);
        opacity: 0;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        transform: translateX(50px);
        opacity: 0;
    }
}

.tachyon-trail {
    position: absolute;
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(118, 75, 162, 0.5) 50%, 
        transparent 100%);
    animation: tachyon-trail 3s ease-in-out infinite;
    pointer-events: none;
}

/* Quantum entanglement connection lines */
.quantum-connections {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.quantum-connection {
    position: absolute;
    width: 1px;
    height: 200px;
    background: linear-gradient(180deg, 
        transparent 0%, 
        rgba(102, 126, 234, 0.2) 50%, 
        transparent 100%);
    transform-origin: top center;
    opacity: 0.5;
}

/* Apply quantum effects to specific sections */
.hero-section {
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 40%, rgba(102, 126, 234, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 70% 60%, rgba(118, 75, 162, 0.08) 0%, transparent 40%);
    pointer-events: none;
    z-index: 1;
}

/* Quantum shimmer for cards */
.quantum-card {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.quantum-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        #667eea, 
        #764ba2, 
        #667eea);
    background-size: 300% 300%;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.quantum-card:hover::before {
    opacity: 0.3;
    animation: quantum-shimmer 3s ease-in-out infinite;
}

@keyframes quantum-shimmer {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .quantum-grid::after {
        background-size: 30px 30px;
    }
    
    .neutrino-particle {
        width: 1px;
        height: 1px;
    }
}