/* Page Loader Container */
#loader-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000; /* Dark background for glowing effect */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.6s ease;
}

/* Loader Content */
.loader {
  position: relative;
  width: 200px;
  height: 200px;
}

.loader img {
  width: 100%;
  height: auto;
  z-index: 2;
  position: relative;
}

/* Millet Particles */
.millet-particles {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.seed {
  position: absolute;
  width: 8px;
  height: 8px;
  background: #FFD700; /* Millet Glow Yellow */
  border-radius: 50%;
  animation: flyout 2s ease-out infinite;
  opacity: 0.8;
}

.seed:nth-child(1)  { animation-delay: 0s;   top: 0;   left: 0; }
.seed:nth-child(2)  { animation-delay: 0.1s; top: 0;   left: 0; }
.seed:nth-child(3)  { animation-delay: 0.2s; top: 0;   left: 0; }
.seed:nth-child(4)  { animation-delay: 0.3s; top: 0;   left: 0; }
.seed:nth-child(5)  { animation-delay: 0.4s; top: 0;   left: 0; }
.seed:nth-child(6)  { animation-delay: 0.5s; top: 0;   left: 0; }
.seed:nth-child(7)  { animation-delay: 0.6s; top: 0;   left: 0; }
.seed:nth-child(8)  { animation-delay: 0.7s; top: 0;   left: 0; }
.seed:nth-child(9)  { animation-delay: 0.8s; top: 0;   left: 0; }
.seed:nth-child(10) { animation-delay: 0.9s; top: 0;   left: 0; }
.seed:nth-child(11) { animation-delay: 1s;   top: 0;   left: 0; }
.seed:nth-child(12) { animation-delay: 1.1s; top: 0;   left: 0; }

@keyframes flyout {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0.9;
  }
  100% {
    transform: translate(
      calc(-60px + 120px * random()),
      calc(-60px + 120px * random())
    ) scale(0.3);
    opacity: 0;
  }
}

/* Hide loader on page load */
body.loaded #loader-wrapper {
  opacity: 0;
  pointer-events: none;
}

@keyframes flyout-js {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(var(--x), var(--y)) scale(0.3);
    opacity: 0;
  }
}

