/* Preloader covering the whole viewport */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #ffffff; /* adjust as per actual site */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  overflow: hidden;
}

/* Inner container */
.preloader-inner {
  text-align: center;
}

/* Logo if present */
.preloader-logo {
  width: 320px; /* adjust */
  margin-bottom: 30px; /* adjust */
  opacity: 1;
  animation: fadeInScale 0.8s ease-in-out;
}

/* Spinner container */
.spinner {
  display: flex;
  justify-content: center;
  align-items: center;
}

.spinner-dot {
  width: 16px;
  height: 16px;
  margin: 0 8px;
  border-radius: 50%;
  background-color: #333; /* or the brand accent color */
  opacity: 0.6;
  animation: dotMove 1.2s infinite ease-in-out;
}

.spinner-dot:nth-child(1) {
  animation-delay: 0;
}
.spinner-dot:nth-child(2) {
  animation-delay: 0.2s;
}
.spinner-dot:nth-child(3) {
  animation-delay: 0.4s;
}

/* Keyframes */

@keyframes dotMove {
  0%, 80%, 100% {
    transform: translateY(0);
    opacity: 0.6;
  }
  40% {
    transform: translateY(-20px);
    opacity: 1;
  }
}

@keyframes fadeInScale {
  0% {
    opacity: 0;
    transform: scale(0.7);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
