/* Loader overlay */
.global-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  overflow: hidden;
  pointer-events: auto;
  background: #1a1a2e;
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}

.loader-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../images/platform/platform-banner.png");
  background-position: bottom center;
  background-repeat: no-repeat;
  background-size: cover;
  background-size: 400% 400%;
  animation: bgWave 6s ease infinite;
  z-index: -1;
} 

/* Wave blur keyframes */
@keyframes wave-blur {
  0%,
  100% {
    filter: blur(8px);
    opacity: 0.3;
    transform: translateY(10px) scale(0.95);
    color: #aaa;
    text-shadow: none;
  }
  20% {
    filter: blur(4px);
    opacity: 0.5;
    transform: translateY(6px) scale(0.97);
    color: #ccc;
  }
  40% {
    filter: blur(2px);
    opacity: 0.7;
    transform: translateY(3px) scale(0.99);
    color: #eee;
  }
  50%,
  60% {
    filter: blur(0);
    opacity: 1;
    transform: translateY(0) scale(1);
    color: #fff;
    text-shadow:
      0 0 10px rgba(255, 255, 255, 0.8),
      0 0 20px rgba(79, 195, 247, 0.6),
      0 0 30px rgba(33, 150, 243, 0.3);
  }
  70% {
    filter: blur(1px);
    opacity: 0.8;
    transform: translateY(2px) scale(0.99);
    color: #eee;
  }
  80% {
    filter: blur(3px);
    opacity: 0.6;
    transform: translateY(4px) scale(0.98);
    color: #ccc;
  }
}

@keyframes bgWave {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@media (max-width: 768px) {
  .loading-container {
    font-size: 2.5rem;
  }
}

@media (max-width: 480px) {
  .loading-container {
    font-size: 2rem;
  }
}

.loader-logo {
  height: 6rem;
  opacity: 0;
  transform: scale(0.85);
  animation: logoFadeIn 1s ease forwards;
}

@keyframes logoFadeIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}
