/* Loading Animation Styles */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
  display: flex;
  flex-flow: row nowrap;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
  transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.loading-logo {
  width: 350px;
  height: auto;
  max-width: 85vw;
  animation: logoPulse 2s ease-in-out infinite, logoGlow 2s ease-in-out infinite;
  filter: brightness(0) invert(1);
  transition: all 0.3s ease;
}

@keyframes logoPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.08);
    opacity: 0.95;
  }
}

@keyframes logoGlow {
  0%, 100% {
    filter: brightness(0) invert(1) drop-shadow(0 0 15px rgba(255, 255, 255, 0.4));
  }
  50% {
    filter: brightness(0) invert(1) drop-shadow(0 0 30px rgba(255, 255, 255, 0.7)) drop-shadow(0 0 45px rgba(255, 255, 255, 0.3));
  }
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-top: 10px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-text {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 3px;
  text-transform: uppercase;
  animation: textFade 2s ease-in-out infinite;
  margin-top: 5px;
}

@keyframes textFade {
  0%, 100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

/* Alternative: Logo with rotation and glow effect */
.loading-logo-advanced {
  width: 200px;
  height: auto;
  max-width: 80vw;
  animation: logoRotate 3s ease-in-out infinite, logoGlow 2s ease-in-out infinite;
  filter: brightness(0) invert(1);
}

@keyframes logoRotate {
  0%, 100% {
    transform: rotate(0deg) scale(1);
  }
  25% {
    transform: rotate(-5deg) scale(1.05);
  }
  75% {
    transform: rotate(5deg) scale(1.05);
  }
}

@keyframes logoGlow {
  0%, 100% {
    filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
  }
  50% {
    filter: brightness(0) invert(1) drop-shadow(0 0 30px rgba(255, 255, 255, 0.6));
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .loading-logo,
  .loading-logo-advanced {
    width: 250px;
  }
}

