/* 
 * Unified Particles Background CSS
 * Optimized for all devices
 */

/* Base container */
.particles-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    padding: 0;
    margin: 0;
}

/* Particles canvas container */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-dark, #0f172a);  /* Fallback to hex if variable not defined */
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    perspective: 1000;
    -webkit-perspective: 1000;
    transform: translate3d(0,0,0);
    -webkit-transform: translate3d(0,0,0);
    margin: 0;
    padding: 0;
}

/* Canvas element styling */
canvas.particles-js-canvas-el {
    position: absolute;
    width: 100% !important;
    height: 100% !important;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    padding: 0;
    pointer-events: none;
}

/* Uniform background with no fade gradient */
.particles-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.2); /* Light overlay to maintain visibility of particles */
    pointer-events: none;
    margin: 0;
    padding: 0;
}

/* Mobile optimization (below 768px) */
@media (max-width: 768px) {
    #particles-js {
        height: 100vh;
        max-height: -webkit-fill-available;
    }
    
    .particles-overlay {
        height: 100vh;
        max-height: -webkit-fill-available;
    }
}

/* Tablet optimization (768px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    /* Tablet-specific adjustments if needed */
} 