/* ============================================
   loader.css — Intro Loader Animation Styles
   ============================================ */

#loader-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #0d0d0d;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

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

/* ---- Animated DevOps Logo Mark ---- */
.loader-logo {
  position: relative;
  width: 100px;
  height: 100px;
}

/* Outer spinning ring */
.loader-ring-outer {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: #a0f060;
  border-right-color: #a0f060;
  animation: spin-slow 2.5s linear infinite;
}

/* Inner spinning ring */
.loader-ring-inner {
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-bottom-color: #6c63ff;
  border-left-color: #6c63ff;
  animation: spin-slow 1.8s linear infinite reverse;
}

/* Center icon */
.loader-center {
  position: absolute;
  inset: 26px;
  border-radius: 50%;
  background: #1a1a18;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse-glow 2s ease-in-out infinite;
}

.loader-center img {
  width: 28px;
  height: 28px;
  filter: brightness(10);
  object-fit: contain;
}

/* Fallback if no icon image */
.loader-center-text {
  font-family: 'Space Mono', monospace;
  font-size: 18px;
  font-weight: 700;
  color: #a0f060;
  letter-spacing: -0.05em;
}

@keyframes spin-slow {
  to { transform: rotate(360deg); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(160, 240, 96, 0.15); }
  50% { box-shadow: 0 0 0 10px rgba(160, 240, 96, 0); }
}

/* ---- Loader Text ---- */
.loader-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 40px;
  color: #f0f0ea;
  letter-spacing: 0.08em;
  animation: fade-up 0.8s ease forwards;
  opacity: 0;
  animation-delay: 0.3s;
}

.loader-role {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  color: #555;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  animation: fade-up 0.8s ease forwards;
  opacity: 0;
  animation-delay: 0.6s;
  margin-top: -24px;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---- Progress Bar ---- */
.loader-progress-wrap {
  width: 180px;
  height: 2px;
  background: #222;
  border-radius: 2px;
  overflow: hidden;
  animation: fade-up 0.8s ease forwards;
  opacity: 0;
  animation-delay: 0.9s;
}

.loader-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #6c63ff, #a0f060);
  border-radius: 2px;
  transition: width 0.1s linear;
}

/* ---- Tech Tags scrolling ---- */
.loader-tags {
  display: flex;
  gap: 10px;
  animation: fade-up 0.8s ease forwards;
  opacity: 0;
  animation-delay: 1s;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 340px;
}

.loader-tag {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: #444;
  letter-spacing: 0.1em;
  padding: 3px 10px;
  border: 1px solid #222;
  border-radius: 100px;
  transition: color 0.3s, border-color 0.3s;
}

.loader-tag.lit {
  color: #a0f060;
  border-color: #a0f060;
}
