.particles-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
  background: 
    /* Trikotniki */
    conic-gradient(from 0deg at 10% 10%, #e74c3c 120deg, transparent 120deg),
    conic-gradient(from 60deg at 90% 10%, #3498db 120deg, transparent 120deg),
    conic-gradient(from 120deg at 10% 90%, #27ae60 120deg, transparent 120deg),
    conic-gradient(from 180deg at 90% 90%, #9b59b6 120deg, transparent 120deg),
    /* Kvadrati */
    conic-gradient(from 45deg at 30% 30%, #f39c12 90deg, transparent 90deg, transparent 180deg, #e91e63 270deg, transparent 270deg),
    conic-gradient(from 135deg at 70% 30%, #ff5722 90deg, transparent 90deg, transparent 180deg, #00bcd4 270deg, transparent 270deg),
    conic-gradient(from 225deg at 30% 70%, #8bc34a 90deg, transparent 90deg, transparent 180deg, #673ab7 270deg, transparent 270deg),
    conic-gradient(from 315deg at 70% 70%, #ff4081 90deg, transparent 90deg, transparent 180deg, #f1c40f 270deg, transparent 270deg),
    /* Temno ozadje */
    linear-gradient(45deg, #2c3e50 0%, #34495e 25%, #2c3e50 50%, #34495e 75%, #2c3e50 100%);
  animation: colorShift 20s ease-in-out infinite;
}

@keyframes colorShift {
  0%, 100% {
    filter: hue-rotate(0deg) brightness(1.0) saturate(1.0);
  }
  33% {
    filter: hue-rotate(60deg) brightness(1.02) saturate(1.1);
  }
  66% {
    filter: hue-rotate(120deg) brightness(0.98) saturate(1.05);
  }
}


.particle {
  position: absolute;
  background: var(--text-color);
  border-radius: 50%;
  opacity: 0.9;
  animation: float 12s infinite linear;
}

.particle:nth-child(1) {
  width: 4px;
  height: 4px;
  left: 10%;
  animation-delay: 2.3s;
  animation-duration: 14s;
}

.particle:nth-child(2) {
  width: 6px;
  height: 6px;
  left: 20%;
  animation-delay: 7.1s;
  animation-duration: 16s;
}

.particle:nth-child(3) {
  width: 3px;
  height: 3px;
  left: 30%;
  animation-delay: 1.8s;
  animation-duration: 13s;
}

.particle:nth-child(4) {
  width: 5px;
  height: 5px;
  left: 40%;
  animation-delay: 5.4s;
  animation-duration: 15s;
}

.particle:nth-child(5) {
  width: 4px;
  height: 4px;
  left: 50%;
  animation-delay: 3.7s;
  animation-duration: 17s;
}

.particle:nth-child(6) {
  width: 7px;
  height: 7px;
  left: 60%;
  animation-delay: 10s;
  animation-duration: 20s;
}

.particle:nth-child(7) {
  width: 3px;
  height: 3px;
  left: 70%;
  animation-delay: 12s;
  animation-duration: 13s;
}

.particle:nth-child(8) {
  width: 5px;
  height: 5px;
  left: 80%;
  animation-delay: 14s;
  animation-duration: 17s;
}

.particle:nth-child(9) {
  width: 4px;
  height: 4px;
  left: 90%;
  animation-delay: 16s;
  animation-duration: 15s;
}

.particle:nth-child(10) {
  width: 6px;
  height: 6px;
  left: 15%;
  animation-delay: 18s;
  animation-duration: 19s;
}

.particle:nth-child(11) {
  width: 3px;
  height: 3px;
  left: 35%;
  animation-delay: 1s;
  animation-duration: 11s;
}

.particle:nth-child(12) {
  width: 5px;
  height: 5px;
  left: 55%;
  animation-delay: 3s;
  animation-duration: 16s;
}

.particle:nth-child(13) {
  width: 4px;
  height: 4px;
  left: 75%;
  animation-delay: 5s;
  animation-duration: 14s;
}

.particle:nth-child(14) {
  width: 6px;
  height: 6px;
  left: 95%;
  animation-delay: 7s;
  animation-duration: 18s;
}

.particle:nth-child(15) {
  width: 3px;
  height: 3px;
  left: 25%;
  animation-delay: 9s;
  animation-duration: 12s;
}

.particle:nth-child(16) {
  width: 5px;
  height: 5px;
  left: 45%;
  animation-delay: 11s;
  animation-duration: 17s;
}

.particle:nth-child(17) {
  width: 4px;
  height: 4px;
  left: 65%;
  animation-delay: 13s;
  animation-duration: 15s;
}

.particle:nth-child(18) {
  width: 6px;
  height: 6px;
  left: 85%;
  animation-delay: 15s;
  animation-duration: 19s;
}

.particle:nth-child(19) {
  width: 3px;
  height: 3px;
  left: 5%;
  animation-delay: 17s;
  animation-duration: 13s;
}

.particle:nth-child(20) {
  width: 7px;
  height: 7px;
  left: 25%;
  animation-delay: 19s;
  animation-duration: 21s;
}

.particle:nth-child(21) {
  width: 4px;
  height: 4px;
  left: 45%;
  animation-delay: 21s;
  animation-duration: 14s;
}

.particle:nth-child(22) {
  width: 5px;
  height: 5px;
  left: 65%;
  animation-delay: 23s;
  animation-duration: 18s;
}

.particle:nth-child(23) {
  width: 3px;
  height: 3px;
  left: 85%;
  animation-delay: 25s;
  animation-duration: 12s;
}

.particle:nth-child(24) {
  width: 6px;
  height: 6px;
  left: 15%;
  animation-delay: 27s;
  animation-duration: 20s;
}

.particle:nth-child(25) {
  width: 4px;
  height: 4px;
  left: 35%;
  animation-delay: 2s;
  animation-duration: 16s;
}

.particle:nth-child(26) {
  width: 5px;
  height: 5px;
  left: 55%;
  animation-delay: 4s;
  animation-duration: 15s;
}

.particle:nth-child(27) {
  width: 3px;
  height: 3px;
  left: 75%;
  animation-delay: 6s;
  animation-duration: 13s;
}

.particle:nth-child(28) {
  width: 7px;
  height: 7px;
  left: 95%;
  animation-delay: 8s;
  animation-duration: 22s;
}

.particle:nth-child(29) {
  width: 4px;
  height: 4px;
  left: 12%;
  animation-delay: 10s;
  animation-duration: 17s;
}

.particle:nth-child(30) {
  width: 6px;
  height: 6px;
  left: 88%;
  animation-delay: 12s;
  animation-duration: 19s;
}

@keyframes float {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.3;
  }
  90% {
    opacity: 0.3;
  }
  100% {
    transform: translateY(-100px) rotate(360deg);
    opacity: 0;
  }
}

/* Konfete - najživejše neonske barve */
.particle:nth-child(1) { background: #ff0040; }
.particle:nth-child(2) { background: #00ff80; }
.particle:nth-child(3) { background: #ff8000; }
.particle:nth-child(4) { background: #4000ff; }
.particle:nth-child(5) { background: #ff0080; }
.particle:nth-child(6) { background: #80ff00; }
.particle:nth-child(7) { background: #ff4000; }
.particle:nth-child(8) { background: #0080ff; }
.particle:nth-child(9) { background: #ff0020; }
.particle:nth-child(10) { background: #20ff00; }
.particle:nth-child(11) { background: #ff2000; }
.particle:nth-child(12) { background: #00ff40; }
.particle:nth-child(13) { background: #2000ff; }
.particle:nth-child(14) { background: #ff6000; }
.particle:nth-child(15) { background: #60ff00; }

/* Konfete oblike - več kvadratnih */
.particle:nth-child(2n) {
  border-radius: 0;
  transform: rotate(0deg);
}

.particle:nth-child(3n) {
  border-radius: 0;
  transform: rotate(45deg);
}

.particle:nth-child(4n) {
  border-radius: 0;
  transform: rotate(90deg);
}

.particle:nth-child(5n) {
  border-radius: 0;
  transform: rotate(135deg);
}

.particle:nth-child(6n) {
  border-radius: 0;
  transform: rotate(180deg);
}

.particle:nth-child(7n) {
  border-radius: 0;
  transform: rotate(225deg);
}

.particle:nth-child(8n) {
  border-radius: 0;
  transform: rotate(270deg);
}

.particle:nth-child(9n) {
  border-radius: 0;
  transform: rotate(315deg);
}

/* Nekaj krogov za raznolikost */
.particle:nth-child(10n) {
  border-radius: 50%;
}

/* Diamanti */
.particle:nth-child(11n) {
  border-radius: 0;
  transform: rotate(45deg) scale(0.8);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

/* Trikotniki */
.particle:nth-child(13n) {
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  border-radius: 0;
}

/* Mobile optimization */
@media (max-width: 768px) {
  .particle {
    opacity: 0.6;
  }
  
  .particle:nth-child(n) {
    animation-duration: 12s;
  }
}

@media (max-width: 480px) {
  .particle {
    opacity: 0.5;
  }
  
  .particle:nth-child(n) {
    animation-duration: 10s;
  }
}

/* Dodatni konfeti za več živahnosti */
.confetti-extra {
  position: fixed;
  top: -10px;
  width: 12px;
  height: 12px;
  background: var(--primary-color);
  animation: confettiFall 8s linear infinite;
  z-index: -1;
  opacity: 0.95;
}

.confetti-extra:nth-child(1) { left: 5%; background: #ff0040; animation-delay: 0.3s; }
.confetti-extra:nth-child(2) { left: 15%; background: #00ff80; animation-delay: 2.1s; }
.confetti-extra:nth-child(3) { left: 25%; background: #ff8000; animation-delay: 4.7s; }
.confetti-extra:nth-child(4) { left: 35%; background: #40ff00; animation-delay: 1.2s; }
.confetti-extra:nth-child(5) { left: 45%; background: #ff0080; animation-delay: 3.8s; }
.confetti-extra:nth-child(6) { left: 55%; background: #8000ff; animation-delay: 0.7s; }
.confetti-extra:nth-child(7) { left: 65%; background: #00ff40; animation-delay: 5.3s; }
.confetti-extra:nth-child(8) { left: 75%; background: #ff4000; animation-delay: 2.9s; }
.confetti-extra:nth-child(9) { left: 85%; background: #0080ff; animation-delay: 1.6s; }
.confetti-extra:nth-child(10) { left: 95%; background: #80ff00; animation-delay: 4.1s; }

/* Kvadratni konfeti */
.square-confetti {
  border-radius: 0 !important;
  width: 8px !important;
  height: 8px !important;
}

.confetti-extra:nth-child(11) { left: 7%; background: #ff2080; animation-delay: 6.2s; }
.confetti-extra:nth-child(12) { left: 14%; background: #20ff80; animation-delay: 0.9s; }
.confetti-extra:nth-child(13) { left: 21%; background: #ff8020; animation-delay: 3.4s; }
.confetti-extra:nth-child(14) { left: 28%; background: #8020ff; animation-delay: 7.1s; }
.confetti-extra:nth-child(15) { left: 35%; background: #20ff20; animation-delay: 1.8s; }
.confetti-extra:nth-child(16) { left: 42%; background: #ff20ff; animation-delay: 4.6s; }
.confetti-extra:nth-child(17) { left: 49%; background: #ff6020; animation-delay: 2.3s; }
.confetti-extra:nth-child(18) { left: 56%; background: #20ff60; animation-delay: 5.7s; }
.confetti-extra:nth-child(19) { left: 63%; background: #6020ff; animation-delay: 0.4s; }
.confetti-extra:nth-child(20) { left: 70%; background: #ff4020; animation-delay: 3.9s; }
.confetti-extra:nth-child(21) { left: 77%; background: #20ff40; animation-delay: 6.8s; }
.confetti-extra:nth-child(22) { left: 84%; background: #4020ff; animation-delay: 1.5s; }
.confetti-extra:nth-child(23) { left: 91%; background: #ff2040; animation-delay: 4.2s; }
.confetti-extra:nth-child(24) { left: 98%; background: #40ff20; animation-delay: 2.7s; }
.confetti-extra:nth-child(25) { left: 3%; background: #2040ff; animation-delay: 5.9s; }

/* Dodatni konfeti za popolno pokritost - najživejše barve */
.confetti-extra:nth-child(26) { left: 1%; background: #ff0060; animation-delay: 3.1s; }
.confetti-extra:nth-child(27) { left: 9%; background: #60ff00; animation-delay: 7.4s; }
.confetti-extra:nth-child(28) { left: 17%; background: #ff6000; animation-delay: 1.7s; }
.confetti-extra:nth-child(29) { left: 25%; background: #0060ff; animation-delay: 5.8s; }
.confetti-extra:nth-child(30) { left: 33%; background: #ff0020; animation-delay: 2.6s; }
.confetti-extra:nth-child(31) { left: 41%; background: #20ff00; animation-delay: 6.3s; }
.confetti-extra:nth-child(32) { left: 49%; background: #ff2000; animation-delay: 0.8s; }
.confetti-extra:nth-child(33) { left: 57%; background: #00ff20; animation-delay: 4.5s; }
.confetti-extra:nth-child(34) { left: 65%; background: #2000ff; animation-delay: 7.7s; }
.confetti-extra:nth-child(35) { left: 73%; background: #ff4000; animation-delay: 1.3s; }
.confetti-extra:nth-child(36) { left: 81%; background: #00ff40; animation-delay: 3.6s; }
.confetti-extra:nth-child(37) { left: 89%; background: #4000ff; animation-delay: 6.9s; }
.confetti-extra:nth-child(38) { left: 97%; background: #ff0020; animation-delay: 2.2s; }
.confetti-extra:nth-child(39) { left: 4%; background: #00ff60; animation-delay: 5.4s; }
.confetti-extra:nth-child(40) { left: 11%; background: #6000ff; animation-delay: 4.8s; }

@keyframes confettiFall {
  0% {
    transform: translateY(-100vh) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(720deg);
    opacity: 0;
  }
}
