/* Loading Screen Styles */

/* Hide page content initially to prevent flash of old content */
body {
  visibility: hidden;
  opacity: 0;
}

body.loading-complete {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000000;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.loading-screen.hide {
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
}

.loader-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  max-width: 400px;
  width: 90%;
}

.loader-brand {
  font-family: 'Arial', sans-serif;
  font-size: 28px;
  font-weight: 300;
  letter-spacing: 8px;
  color: #ffffff;
  text-transform: uppercase;
  animation: fadeInUp 0.6s ease-out;
  user-select: none;
}

.loader-progress-container {
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  border-radius: 1px;
}

.loader-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ffffff 0%, rgba(255, 255, 255, 0.8) 100%);
  transition: width 0.3s ease-out;
  border-radius: 1px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  animation: progressGlow 1.5s ease-in-out infinite;
}

.loader-percentage {
  font-family: 'Arial', sans-serif;
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  animation: fadeIn 0.8s ease-out 0.2s both;
  user-select: none;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes progressGlow {
  0%, 100% {
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  }
  50% {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .loader-brand {
    font-size: 22px;
    letter-spacing: 6px;
  }
  
  .loader-percentage {
    font-size: 12px;
  }
  
  .loader-container {
    gap: 25px;
  }
}
