/* Particle Canvas Styles */
.particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Enhanced Particle System */
.particle-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

.particle-1 {
    width: 3px;
    height: 3px;
    background: rgba(99, 102, 241, 0.6);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
    animation: particle-float-1 20s infinite linear;
}

.particle-2 {
    width: 4px;
    height: 4px;
    background: rgba(255, 107, 107, 0.6);
    box-shadow: 0 0 15px rgba(255, 107, 107, 0.5);
    animation: particle-float-2 25s infinite linear;
}

.particle-3 {
    width: 2px;
    height: 2px;
    background: rgba(139, 92, 246, 0.6);
    box-shadow: 0 0 8px rgba(139, 92, 246, 0.5);
    animation: particle-float-3 30s infinite linear;
}

.particle-4 {
    width: 5px;
    height: 5px;
    background: rgba(16, 185, 129, 0.6);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
    animation: particle-float-4 35s infinite linear;
}

/* Particle Animations */
@keyframes particle-float-1 {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.8;
    }
    25% {
        transform: translate(100px, 100px) rotate(90deg);
        opacity: 0.4;
    }
    50% {
        transform: translate(200px, 0) rotate(180deg);
        opacity: 0.8;
    }
    75% {
        transform: translate(100px, -100px) rotate(270deg);
        opacity: 0.4;
    }
}

@keyframes particle-float-2 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(150px, -80px) scale(1.2);
    }
    66% {
        transform: translate(-150px, 80px) scale(0.8);
    }
}

@keyframes particle-float-3 {
    0% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(-200px, 150px);
    }
    100% {
        transform: translate(0, 0);
    }
}

@keyframes particle-float-4 {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(200px, -100px) rotate(90deg);
    }
    50% {
        transform: translate(-200px, -200px) rotate(180deg);
    }
    75% {
        transform: translate(-100px, 200px) rotate(270deg);
    }
    100% {
        transform: translate(0, 0) rotate(360deg);
    }
}

/* Particle Connections */
.particle-connection {
    position: absolute;
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.2));
    height: 1px;
    transform-origin: left center;
    z-index: 0;
    pointer-events: none;
}

/* Responsive Particle Adjustments */
@media (max-width: 768px) {
    .particle {
        display: none;
    }
    
    .particle-1, .particle-2 {
        display: block;
    }
}