/* .preloader {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.924);
  z-index: 543345678;
  display: flex;
  justify-content: center;
  align-items: center;
}

.preloader .loader {
  width: 80px;
  height: 80px;
  background-color: transparent;
  border: 10px solid rgba(255, 255, 255, 0.2);
  border-top: 10px solid #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  box-shadow: 0 0 50px rgba(255, 255, 255, 0.748);
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
} */

/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/

#preloader {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  z-index: 9999999999;
  /* background-color: #381955; */
}

#preloader:before,
#preloader:after {
  content: "";
  background-color: #381955;
  position: absolute;
  inset: 0;
  width: 50%;
  height: 100%;
  transition: all 0.3s ease;
  z-index: -1;
}

#preloader:after {
  left: auto;
  right: 0;
}

#preloader .line {
  position: relative;
  overflow: hidden;
  margin: auto;
  width: 3px;
  height: 280px;
  transition: all 0.8s ease;
}

#preloader .line:before {
  content: "";
  position: absolute;
  /* background-color: #b08b34; */
  left: 0;
  top: 50%;
  width: 3px;
  height: 0%;
  transform: translateY(-50%);
  animation: lineincrease 1.3s ease-in-out forwards;
}

#preloader .line:after {
  content: "";
  position: absolute;
  background-color: color-mix(in srgb, #381955, transparent 95%);
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  transform: translateY(-100%);
  animation: linemove 1.2s linear infinite;
  animation-delay: 2s;
}

#preloader.loaded .line {
  opacity: 0;
  height: 100% !important;
}

#preloader.loaded .line:after {
  opacity: 0;
}

#preloader.loaded:before,
#preloader.loaded:after {
  animation: preloaderfinish 0.3s ease-in-out 0.5s forwards;
}

@keyframes lineincrease {
  0% {
    height: 0%;
  }
  100% {
    height: 100%;
  }
}

@keyframes linemove {
  0% {
    transform: translateY(200%);
  }
  100% {
    transform: translateY(-100%);
  }
}

@keyframes preloaderfinish {
  0% {
    width: 50%;
  }
  100% {
    width: 0%;
  }
}

/* Text Animation */
.preloader-text {
  font-size: 48px;
  color: #b08b34;
  display: flex;
  align-items: center;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.preloader-text span {
  display: inline-block;
  animation: wave 1.5s ease-in-out 1, delayRestart 4s ease 1.5s infinite;
}

/* Wave Animation */
@keyframes wave {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* Delay before restarting the animation */
@keyframes delayRestart {
  0% {
    opacity: 1;
  }
  99% {
    opacity: 1;
  }
  100% {
    opacity: 1;
  }
}

/* Slight Delay Between Each Letter */
.preloader-text span:nth-child(1) {
  animation-delay: 0.1s;
}
.preloader-text span:nth-child(2) {
  animation-delay: 0.2s;
}
.preloader-text span:nth-child(3) {
  animation-delay: 0.3s;
}
.preloader-text span:nth-child(4) {
  animation-delay: 0.4s;
}
.preloader-text span:nth-child(5) {
  animation-delay: 0.5s;
}
.preloader-text span:nth-child(6) {
  animation-delay: 0.6s;
}
.preloader-text span:nth-child(7) {
  animation-delay: 0.7s;
}
.preloader-text span:nth-child(8) {
  animation-delay: 0.8s;
}
.preloader-text span:nth-child(9) {
  animation-delay: 0.9s;
}
.preloader-text span:nth-child(10) {
  animation-delay: 1s;
}

/* Flickering Dots Animation */
.loading-dots {
  display: inline-flex;
  margin-left: 10px;
}

.loading-dots span {
  animation: flicker 1s infinite alternate;
  display: inline-block;
}

.loading-dots span:nth-child(1) {
  animation-delay: 0s;
}
.loading-dots span:nth-child(2) {
  animation-delay: 0.3s;
}
.loading-dots span:nth-child(3) {
  animation-delay: 0.6s;
}

/* Flicker Effect */
@keyframes flicker {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

/* Fade Out Animation */
@keyframes fadeOut {
  0% {
    opacity: 1;
    letter-spacing: 0px;
  }
  100% {
    opacity: 0;
    letter-spacing: 8px;
  }
}
