/* Particle effect for hero section */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    /* Hide particles on low-end devices */
    will-change: opacity;
}

.particle {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    /* Use hardware acceleration for particles */
    will-change: transform, opacity;
}

.particle-1 {
    width: 3px;
    height: 3px;
    background: var(--accent-cyan);
    box-shadow: 0 0 10px 2px rgba(106, 226, 255, 0.3);
    animation: float-particle 15s ease-in-out infinite;
}

.particle-2 {
    width: 5px;
    height: 5px;
    background: var(--accent-purple);
    box-shadow: 0 0 10px 2px rgba(164, 133, 255, 0.3);
    animation: float-particle 20s ease-in-out infinite;
}

.particle-3 {
    width: 2px;
    height: 2px;
    background: var(--accent-pink);
    box-shadow: 0 0 10px 2px rgba(255, 102, 196, 0.3);
    animation: float-particle 25s ease-in-out infinite;
}

@keyframes float-particle {
    0% {
        opacity: 0;
        transform: translate(0, 0);
    }
    25% {
        opacity: 0.5;
    }
    50% {
        opacity: 0.3;
    }
    75% {
        opacity: 0.5;
    }
    100% {
        opacity: 0;
        transform: translate(var(--x), var(--y));
    }
}

/* Hide particles for reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .particles-container {
        display: none;
    }
}

/* Hide particles for low-end devices */
.low-end-device .particles-container {
    display: none;
}
