.digimax-preloader {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff;
  z-index: 9000;
  transition: opacity 1s ease, visibility 1s ease;
  flex-direction: column;
  text-align: center;
}

/* Hide after loaded */
.digimax-preloader.loaded {
  opacity: 0;
  visibility: hidden;
}

/* Preloader content wrapper */
.preloader-animation {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Spinner */
.spinner {
  height: 9em;
  width: 9em;
  border: 3px solid rgba(0, 0, 0, 0.2);
  border-top-color: #000;
  border-radius: 50%;
  animation: spinner 1s linear infinite;
  margin-bottom: 1em;
}

/* Letters */
.loader {
  font: bold 5em "Poppins", sans-serif;
  user-select: none;
}

.animated-letters {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: letterBounce 0.7s forwards;
}

.animated-letters:nth-child(1) { animation-delay: 0.2s; }
.animated-letters:nth-child(2) { animation-delay: 0.3s; }
.animated-letters:nth-child(3) { animation-delay: 0.4s; }
.animated-letters:nth-child(4) { animation-delay: 0.6s; }
.animated-letters:nth-child(5) { animation-delay: 0.8s; }
.animated-letters:nth-child(6) { animation-delay: 0.9s; }
.animated-letters:nth-child(7) { animation-delay: 1.0s; }

/* Spinner rotation */
@keyframes spinner {
  to { transform: rotate(360deg); }
}

/* Letter fade-in + bounce */
@keyframes letterBounce {
  0% { opacity: 0; transform: translateY(20px); }
  60% { opacity: 1; transform: translateY(-5px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Zambia text pop-in */
#zambia-text {
  font-family: "Poppins", sans-serif;
  letter-spacing: 8px;
  color: #3b3b3b;
  margin-top: 0.5em;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.5s ease;
}

/* Pop-in active class */
#zambia-text.pop-in {
  opacity: 1;
  transform: scale(1);
}

/* Responsive */
@media (max-width: 767px) {
  .spinner { height: 7em; width: 7em; }
  .loader { font-size: 3.5em; }
}

@media (max-width: 500px) {
  .spinner { height: 5em; width: 5em; }
  .loader { font-size: 2em; }
}