/* ===================================================
   Thexora Page Preloader
   Eliminates white screen flash during page load
   =================================================== */

/* Preloader overlay — covers entire viewport */
.thexora-preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fafafa;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 100000;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

/* When preloader is done, fade out smoothly */
.thexora-preloader.preloader-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Logo in preloader */
.preloader-logo {
  width: 80px;
  height: auto;
  margin-bottom: 1.5rem;
  animation: preloaderPulse 1.6s ease-in-out infinite;
}

/* Loading dots container */
.preloader-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Individual dots */
.preloader-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #035472;
  animation: preloaderBounce 1.2s ease-in-out infinite;
}

.preloader-dots span:nth-child(2) {
  animation-delay: 0.15s;
  background-color: #04698d;
}

.preloader-dots span:nth-child(3) {
  animation-delay: 0.3s;
  background-color: #fdb241;
}

/* Subtle pulse for logo */
@keyframes preloaderPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.85; }
}

/* Bounce animation for dots */
@keyframes preloaderBounce {
  0%, 80%, 100% {
    transform: scale(0.6);
    opacity: 0.4;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Prevent body scroll while preloader is active */
body.preloader-active {
  overflow: hidden;
}
