

#preloader {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: var(--white); /* Uses your variable */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999; /* Higher than your nav (200) */
  transition: opacity 0.6s ease, visibility 0.6s;
}

.f95-loader-container {
  position: relative;
  width: 100px;
  height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.loader-center {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  color: var(--navy);
  font-size: 1.2rem;
  letter-spacing: -1px;
  z-index: 2;
}

.f95-circle {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 2px solid var(--blue); /* Uses your brand blue */
  border-radius: 50%;
  opacity: 0;
  animation: f95-pulse 2.5s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
}

/* Staggered animation for the "ripple" effect */
.f95-circle:nth-child(2) { animation-delay: 0.6s; border-color: var(--blue-light); }
.f95-circle:nth-child(3) { animation-delay: 1.2s; border-color: var(--mist-deep); }

.loader-text {
  font-family: 'Nunito', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gray-mid);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

@keyframes f95-pulse {
  0% { transform: scale(0.3); opacity: 0; }
  50% { opacity: 0.6; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* Class to hide the loader via JS */
.loader-hidden {
  opacity: 0;
  visibility: hidden;
}
