/* ================================================
   Tech Particles Falling Effect - IT/AI Theme
   Modern particles for technology company
   ================================================ */

/* Particles Container */
.sparkles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 500px; /* Increased from 300px for wider coverage */
    height: 100vh;
    pointer-events: none;
    z-index: 9998;
    overflow: hidden;
}

/* Individual Particle */
.sparkle {
    position: absolute;
    opacity: 0;
    animation: particle-fall linear forwards;
    filter: blur(0.3px);
}

/* Particle Sizes */
.sparkle.small {
    width: 3px;
    height: 3px;
}

.sparkle.medium {
    width: 5px;
    height: 5px;
}

.sparkle.large {
    width: 8px;
    height: 8px;
}

/* Tech-inspired Color Variants (Cyan, Blue, Purple, Indigo, Pink) */
.sparkle.color-cyan {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    box-shadow: 0 0 8px rgba(6, 182, 212, 0.8),
                0 0 16px rgba(8, 145, 178, 0.5);
}

.sparkle.color-blue {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.8),
                0 0 16px rgba(37, 99, 235, 0.5);
}

.sparkle.color-purple {
    background: linear-gradient(135deg, #a78bfa, #8b5cf6);
    box-shadow: 0 0 8px rgba(167, 139, 250, 0.8),
                0 0 16px rgba(139, 92, 246, 0.5);
}

.sparkle.color-violet {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    box-shadow: 0 0 8px rgba(139, 92, 246, 0.8),
                0 0 16px rgba(124, 58, 237, 0.5);
}

.sparkle.color-indigo {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    box-shadow: 0 0 8px rgba(99, 102, 241, 0.8),
                0 0 16px rgba(79, 70, 229, 0.5);
}

.sparkle.color-pink {
    background: linear-gradient(135deg, #ec4899, #db2777);
    box-shadow: 0 0 8px rgba(236, 72, 153, 0.8),
                0 0 16px rgba(219, 39, 119, 0.5);
}

.sparkle.color-teal {
    background: linear-gradient(135deg, #14b8a6, #0d9488);
    box-shadow: 0 0 8px rgba(20, 184, 166, 0.8),
                0 0 16px rgba(13, 148, 136, 0.5);
}

/* Shape Variants for Tech/AI Theme */
.sparkle.shape-circle {
    border-radius: 50%;
}

.sparkle.shape-square {
    border-radius: 1px;
}

.sparkle.shape-diamond {
    border-radius: 2px;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.sparkle.shape-hexagon {
    clip-path: polygon(30% 0%, 70% 0%, 100% 50%, 70% 100%, 30% 100%, 0% 50%);
}

.sparkle.shape-triangle {
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

/* Slower, Professional Falling Animation (8-12 seconds) */
@keyframes particle-fall {
    0% {
        opacity: 0;
        transform: translateY(-30px) translateX(0) rotate(0deg) scale(0.2);
    }
    5% {
        opacity: 0.7;
    }
    10% {
        opacity: 1;
        transform: translateY(5vh) translateX(calc(var(--drift) * 0.1)) rotate(calc(var(--rotation) * 0.2)) scale(1);
    }
    85% {
        opacity: 0.95;
        transform: translateY(88vh) translateX(calc(var(--drift) * 0.85)) rotate(calc(var(--rotation) * 1.8)) scale(0.85);
    }
    95% {
        opacity: 0.4;
    }
    100% {
        opacity: 0;
        transform: translateY(108vh) translateX(var(--drift)) rotate(calc(var(--rotation) * 2)) scale(0.3);
    }
}

/* Subtle Pulse Effect for Some Particles */
@keyframes particle-pulse {
    0%, 100% {
        filter: brightness(1) blur(0.3px);
    }
    50% {
        filter: brightness(1.4) blur(0.8px);
    }
}

.sparkle.pulse {
    animation: particle-fall linear forwards, particle-pulse 3s ease-in-out infinite;
}

/* Glow Effect for Premium Tech Look */
@keyframes particle-glow {
    0%, 100% {
        box-shadow: 0 0 8px currentColor,
                    0 0 16px currentColor;
    }
    50% {
        box-shadow: 0 0 12px currentColor,
                    0 0 24px currentColor,
                    0 0 36px currentColor;
    }
}

.sparkle.glow {
    animation: particle-fall linear forwards, particle-glow 2.5s ease-in-out infinite;
}

/* Data Stream Effect (vertical lines for tech theme) */
.sparkle.data-stream {
    width: 1px;
    height: 12px;
    border-radius: 50% / 20%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sparkles-container {
        width: 350px; /* Wider for mobile too */
    }
    
    .sparkle.small {
        width: 2px;
        height: 2px;
    }
    
    .sparkle.medium {
        width: 4px;
        height: 4px;
    }
    
    .sparkle.large {
        width: 6px;
        height: 6px;
    }
}
