/**
 * A.R.C Technology — Loader v6.0
 * "Resilient Orbit" — Navy cosmos, breathing logo, orbital dots
 */

.loader {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: var(--color-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 2rem;
  transition: opacity 0.5s var(--ease-smooth), visibility 0.5s;
}

.loader--hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader__logo {
  width: 72px;
  height: 72px;
  animation: loader-breathe 2s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(0,212,255,0.4));
}

@keyframes loader-breathe {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 20px rgba(0,212,255,0.4)); }
  50% { transform: scale(1.08); filter: drop-shadow(0 0 35px rgba(0,212,255,0.6)); }
}

/* Orbital dots */
.loader__dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.loader__dots span,
.loader__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-teal);
  animation: loader-orbit 1.4s ease-in-out infinite;
}

.loader__dots span:nth-child(2),
.loader__dot:nth-child(2) { animation-delay: 0.15s; }
.loader__dots span:nth-child(3),
.loader__dot:nth-child(3) { animation-delay: 0.3s; }

@keyframes loader-orbit {
  0%, 80%, 100% { transform: scale(0.4); opacity: 0.3; }
  40% { transform: scale(1); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .loader__logo,
  .loader__dots span,
  .loader__dot {
    animation: none;
  }
}

.loader__text {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: var(--font-medium);
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
