/* ==========================================================================
   PARTICLE SYSTEM STYLING
   ========================================================================== */

#particles-js,
#particles-canvas {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    pointer-events: none;
}

.particle-section {
    position: relative;
    overflow: hidden;
}

.particle-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, 
        transparent 0%, 
        var(--primary-bg) 70%);
    pointer-events: none;
    z-index: 1;
}

.particle-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Hero Particles */
.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Interactive Particles */
.interactive-particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
}

/* Particle Grid Background */
.particle-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(var(--glass-border) 1px, transparent 1px),
        linear-gradient(90deg, var(--glass-border) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.1;
    pointer-events: none;
}

/* Particle Orb */
.particle-orb {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle at center, 
        var(--accent-primary) 0%, 
        transparent 70%);
    filter: blur(40px);
    opacity: 0.1;
    pointer-events: none;
    animation: orbFloat 20s infinite linear;
}

@keyframes orbFloat {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(100px, 100px) rotate(90deg);
    }
    50% {
        transform: translate(0, 200px) rotate(180deg);
    }
    75% {
        transform: translate(-100px, 100px) rotate(270deg);
    }
}

/* Particle Connection Lines */
.particle-connection {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--accent-primary), 
        transparent);
    transform-origin: left center;
    pointer-events: none;
}

/* Particle Hover Effect */
.has-particle-hover:hover ~ .particle-container .particle {
    transition: transform 0.3s ease;
    transform: scale(1.2);
}

/* Responsive Particles */
@media (max-width: 768px) {
    .particle-orb {
        width: 200px;
        height: 200px;
    }
    
    .particle-grid {
        background-size: 30px 30px;
    }
}