/* preloader start */

@keyframes preloader-bg-animation {
  0% {
    background-position: center;
    transform: scale(1);
  }

  50% {
    background-position: center 51%;
    transform: scale(1.02);
  }

  100% {
    background-position: center;
    transform: scale(1);
  }
}

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: end;
  width: 100%;
  height: 100%;
  overflow: hidden;

  /* Fallback for browsers that don't support WebP */
  background: linear-gradient(0deg, rgb(1 4 10 / 56%) 0%, rgb(1 4 10 / 56%) 100%),
  linear-gradient(0deg, rgb(1 4 10 / 80%) 0%, rgb(1 4 10 / 80%) 100%),
  linear-gradient(0deg, #01040A 0%, #01040A 100%),
  #FFF;
  background-blend-mode: hard-light, multiply, saturation, normal;
  transition: opacity 0.8s ease;
}

#preloader::before {
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  content: "";
  background: url(../images/preload-img.jpg) center / cover no-repeat;
  mix-blend-mode: multiply;
  animation: preloader-bg-animation 5s ease-in-out infinite;
}

@supports (background: url(../images/preload-img.webp)) {
  #preloader::before {
    background: url(../images/preload-img.webp) center / cover no-repeat;
  }
}

.preloader-content {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 50px;
  margin-bottom: 50px;
}

.preloader-text {
  max-width: 524px;
  font-family: Satoshi-Medium, sans-serif;
  font-size: 24px;
  font-style: normal;
  font-weight: 500;
  font-feature-settings: 'liga' off;
  line-height: 1.33; /* 133.333% */
  color: var(--e-global-color-text);
  text-align: left;
}

.preloader-percentage {
  font-family: Satoshi-Light, sans-serif;
  font-size: 160px;
  font-style: normal;
  font-weight: 300;
  font-feature-settings: 'liga' off;
  line-height: 160px; /* 100% */
  color: var(--e-global-color-text);
  text-align: right;
  text-transform: capitalize;
}

.preloader-progress-container {
  width: 100%;
  height: 8px;
  margin-bottom: 10px;
  background-color: #222;
}

.preloader-progress-bar {
  width: 0;
  height: 100%;
  background-color: var(--e-global-color-text);
  transition: none;
}

@media (max-width: 768px) {
  .preloader-content {
    flex-direction: column;
    align-items: flex-start;
    padding: 0 20px;
    margin-bottom: 50px;
  }

  .preloader-text {
    max-width: 100%;
    margin-bottom: 20px;
    font-size: 16px;
  }

  .preloader-percentage {
    align-self: flex-end;
  }

  .home-hero-video {
    display: none;
  }

  .home-hero-video-mobile {
    display: block;
  }

}

/* preloader end */
