/* Full-screen overlay */
#loader {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, #0a0a0a 0%, #000 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  overflow: hidden;
}

/* Center content */
.loader-content {
  text-align: center;
  color: white;
  font-family: 'Poppins', sans-serif;
  letter-spacing: 1px;
}

/* Spinning ring */
.ring {
  width: 70px;
  height: 70px;
  border: 4px solid rgba(255,255,255,0.1);
  border-top: 4px solid crimson;
  border-radius: 50%;
  margin: 0 auto 15px;
  animation: spin 0.8s cubic-bezier(0.5, 0.2, 0.3, 0.9) infinite;
}

/* Loading text + bouncing dots */
.text {
  font-size: 1rem;
  text-transform: uppercase;
  font-weight: 500;
  display: inline-block;
}

.dot {
  animation: blink 1.2s infinite;
}

.dot:nth-child(1) { animation-delay: 0s; }
.dot:nth-child(2) { animation-delay: 0.2s; }
.dot:nth-child(3) { animation-delay: 0.4s; }

/* Animations */
@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes blink {
  0%, 80%, 100% { opacity: 0; }
  40% { opacity: 1; }
}

/* Fade-out when done */
.fade-out {
  opacity: 0;
  transform: scale(1.05);
  transition: all 0.4s ease;
}
