/* ==========================================================================
   LOADER.CSS - Page Loading Animation
   ========================================================================== */

.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-content {
  text-align: center;
}

.loader-text {
  font-size: 2rem;
  font-weight: 700;
  color: #00d9ff;
  margin-bottom: 2rem;
  letter-spacing: 0.5rem;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.05);
  }
}

.loader-spinner {
  width: 80px;
  height: 80px;
  border: 4px solid rgba(0, 217, 255, 0.1);
  border-top: 4px solid #00d9ff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loader-dots {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 2rem;
}

.loader-dot {
  width: 12px;
  height: 12px;
  background: #00d9ff;
  border-radius: 50%;
  animation: bounce 1.4s ease-in-out infinite;
}

.loader-dot:nth-child(1) {
  animation-delay: -0.32s;
}

.loader-dot:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes bounce {
  0%, 80%, 100% {
    transform: scale(0);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

@media (max-width: 576px) {
  .loader-text {
    font-size: 1.5rem;
    letter-spacing: 0.3rem;
  }
  
  .loader-spinner {
    width: 60px;
    height: 60px;
  }
}
