/* PRELOADER SCREEN */
.preloader {
  position: fixed;
  inset: 0;
  background: #0b0f10; /* dark background */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  transition:
    opacity 0.6s ease,
    visibility 0.6s ease;
}

.preloader.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* CENTER CONTENT */
.loader-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

/* LOGO */
.loader-logo {
  width: 240px;
  animation: logoPulse 2.5s ease-in-out infinite;
}

/* subtle glow */
@keyframes logoPulse {
  0%,
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 0px rgba(209, 255, 69, 0.3));
  }
  50% {
    transform: scale(1.03);
    filter: drop-shadow(0 0 12px rgba(209, 255, 69, 0.6));
  }
}

/* BALL CONTAINER */
.loader {
  width: 80px;
  display: flex;
  justify-content: space-between;
  padding: 0;
  margin: 0;
}

/* BALL STYLE */
.ball {
  list-style: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #d1ff45;
  box-shadow: 0 0 10px rgba(209, 255, 69, 0.7);
}

/* ANIMATIONS */
.ball:nth-child(1) {
  animation: bounce 1.8s ease-in-out infinite;
}

.ball:nth-child(2) {
  animation: bounce 1.8s ease-in-out 0.3s infinite;
}

.ball:nth-child(3) {
  animation: bounce 1.8s ease-in-out 0.6s infinite;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0px);
    opacity: 0.7;
  }
  50% {
    transform: translateY(-18px);
    opacity: 1;
  }
}
