/* =====================================================
   INTRO: PARTICLE BACKGROUND & LOADING SCREEN
===================================================== */
canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

#loader {
  position: fixed;
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 5;
}

.center-area {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* NEON RINGS */
.ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(129, 140, 248, 0.25);
}
.ring1 {
  width: 300px;
  height: 300px;
}
.ring2 {
  width: 420px;
  height: 420px;
}
.ring3 {
  width: 540px;
  height: 540px;
}

/* LOGO & TEXT ANIMATION */
.logo-intro {
  width: 210px;
  opacity: 0;
  transform: translateY(80px);
  transition: 1.2s ease;
  filter: drop-shadow(0 0 25px #818cf8);
  z-index: 3;
}

.logo-intro.show {
  opacity: 1;
  transform: translateY(0);
}

.org-text {
  margin-top: 18px;
  font-size: 22px;
  font-family: "Orbitron", sans-serif;
  letter-spacing: 18px;
  color: #e0e7ff;
  opacity: 0;
  transform: scale(0.8);
  text-shadow:
    0 0 6px #818cf8,
    0 0 20px #818cf8,
    0 0 40px #818cf8;
  transition: 1.6s cubic-bezier(0.17, 0.67, 0.35, 1.4);
}

.org-text.show {
  opacity: 1;
  letter-spacing: 10px;
  transform: scale(1);
}

.org-text.glow {
  animation: glowPulse 2s infinite alternate;
}

@keyframes glowPulse {
  from {
    text-shadow:
      0 0 6px #818cf8,
      0 0 20px #818cf8;
  }
  to {
    text-shadow:
      0 0 12px #818cf8,
      0 0 40px #818cf8,
      0 0 70px #818cf8;
  }
}

/* UI ELEMENTS */
.energy-line {
  width: 2px;
  height: 40px;
  background: linear-gradient(#818cf8, transparent);
  box-shadow: 0 0 10px #818cf8;
  margin-top: 10px;
}

.progress-wrapper {
  width: 300px;
  height: 10px;
  background: #1e293b;
  border-radius: 20px;
  margin-top: 10px;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(129, 140, 248, 0.2) inset;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #818cf8, #34d399);
}

.black-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0f172a;
  opacity: 0;
  transition: 1.5s;
  z-index: 20;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  pointer-events: none;
}

#welcome {
  font-family: "Orbitron", sans-serif;
  font-size: 38px;
  letter-spacing: 8px;
  opacity: 0;
  transition: 1s;
  color: #34d399;
  text-shadow: 0 0 15px #34d399;
}

#welcome.show {
  opacity: 1;
}
