#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--preloader-bg, #ffffff);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 1s ease, visibility 1s ease;
}

.icon {
  font-size: 72px;
  color: #2e2e2e;
  animation: rotateScale 3s ease-in-out infinite;
  transition: transform 0.5s ease, opacity 0.5s ease;
  opacity: 1;
  will-change: transform, opacity;
}

@keyframes rotateScale {
  0% {
    transform: rotate(0deg) scale(0.7);
    opacity: 0;
  }
  20% {
    transform: rotate(0deg) scale(1);
    opacity: 1;
  }
  50% {
    transform: rotate(180deg) scale(1.2);
    opacity: 1;
  }
  80% {
    transform: rotate(360deg) scale(1);
    opacity: 1;
  }
  100% {
    transform: rotate(360deg) scale(0.7);
    opacity: 0;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.end-animation {
  animation: fadeOut 1s forwards;
  pointer-events: none;
}
