/* Page Loader Styles */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0f1419 0%, #1a2a4d 50%, #253858 100%);
  background-size: 300% 300%;
  animation: gradientShift 4s ease-in-out infinite;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.8s ease-out, visibility 0.8s ease-out;
  overflow: hidden;
}

.page-loader::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 80%, rgba(77, 163, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(30, 203, 225, 0.1) 0%, transparent 50%);
  animation: particleFloat 6s ease-in-out infinite;
}

.loader-content {
  text-align: center;
  color: white;
  position: relative;
  z-index: 1;
}

.loader-text {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
  opacity: 0;
  background: linear-gradient(45deg, #4da3ff, #1ecbe1, #fbc02d, #4da3ff);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: 
    textFadeIn 0.8s ease-out 0.5s forwards,
    colorShift 3s ease-in-out infinite;
  text-shadow: 0 0 30px rgba(77, 163, 255, 0.3);
}

.loader-subtitle {
  font-size: 1.2rem;
  opacity: 0;
  animation: textFadeIn 0.8s ease-out 1s forwards;
  color: #b3d8ff;
  margin-bottom: 30px;
  text-shadow: 0 0 20px rgba(179, 216, 255, 0.2);
}

.loading-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 40px;
}

.loading-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(45deg, #4da3ff, #1ecbe1);
  animation: dotPulse 1.4s ease-in-out infinite both;
  box-shadow: 0 0 20px rgba(77, 163, 255, 0.4);
}

.loading-dots span:nth-child(1) { animation-delay: 0s; }
.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }

/* Keyframe Animations */
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes particleFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0.3; }
  50% { transform: translateY(-20px) rotate(180deg); opacity: 0.7; }
}

@keyframes textFadeIn {
  from { 
    opacity: 0; 
    transform: translateY(30px) scale(0.9); 
    filter: blur(10px);
  }
  to { 
    opacity: 1; 
    transform: translateY(0) scale(1); 
    filter: blur(0px);
  }
}

@keyframes colorShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes dotPulse {
  0%, 80%, 100% { 
    transform: scale(0.8); 
    opacity: 0.5;
    box-shadow: 0 0 10px rgba(77, 163, 255, 0.2);
  }
  40% { 
    transform: scale(1.2); 
    opacity: 1;
    box-shadow: 0 0 25px rgba(77, 163, 255, 0.8);
  }
}

.page-loader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.main-content {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease-out 0.5s, transform 1s ease-out 0.5s;
}

.main-content.loaded {
  opacity: 1;
  transform: translateY(0);
} 