/* Loading Screen Styles */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #000000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.8s ease-out, visibility 0.8s ease-out;
}

.loading-screen--hidden {
  opacity: 0;
  visibility: hidden;
}

.loading-logo {
  width: 150px;
  height: 150px;
  /* background: linear-gradient(135deg, #666666, #888888); */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
  color: #333333;
  font-weight: bold;
  letter-spacing: 2px;
  animation: logoBlinkSmooth 3s infinite ease-in-out;
  /* box-shadow: 0 0 30px rgba(102, 102, 102, 0.3); */
}

.loading-text {
  color: #666666;
  font-size: 18px;
  margin-top: 30px;
  letter-spacing: 3px;
  text-transform: uppercase;
  animation: textPulse 2s infinite ease-in-out;
}

.loading-progress {
  width: 200px;
  height: 3px;
  background: #333333;
  border-radius: 2px;
  margin-top: 40px;
  overflow: hidden;
  position: relative;
}

.loading-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #666666, #888888);
  border-radius: 2px;
  width: 0%;
  transition: width 0.3s ease;
  position: relative;
}

.loading-progress-bar::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: progressShine 3s infinite;
}

/* Animations */
@keyframes logoBlinkSmooth {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
    /* box-shadow: 0 0 30px rgba(102, 102, 102, 0.3); */
  }
  20% {
    opacity: 0.8;
    transform: scale(1.02);
    /* box-shadow: 0 0 40px rgba(102, 102, 102, 0.4); */
  }
  50% {
    opacity: 0.4;
    transform: scale(0.98);
    /* box-shadow: 0 0 15px rgba(102, 102, 102, 0.2); */
  }
  70% {
    opacity: 0.6;
    transform: scale(1.01);
    /* box-shadow: 0 0 35px rgba(102, 102, 102, 0.35); */
  }
}

@keyframes textPulse {
  0%,
  100% {
    opacity: 0.5;
  }

  50% {
    opacity: 1;
  }
}

@keyframes progressShine {
  0% {
    transform: translateX(-100%);
  }

  50%,
  100% {
    transform: translateX(100%);
  }
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }

  10%,
  30%,
  50%,
  70%,
  90% {
    transform: translateX(-5px);
  }

  20%,
  40%,
  60%,
  80% {
    transform: translateX(5px);
  }
}

@media (max-width: 768px) {
  .loading-logo {
    width: 120px;
    height: 120px;
    font-size: 48px;
  }
  .loading-logo > img {
    width: 120px;
  }

  .loading-text {
    font-size: 16px;
  }

  .loading-progress {
    width: 150px;
  }
}
