/* ==========================================================================
   ALVACOLOR // BOOT SEQUENCE & PRELOADER
   ========================================================================== */

#preloader-overlay {
  position: fixed;
  inset: 0;
  background-color: #03060f;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.7s;
  overflow: hidden;
}

#preloader-overlay.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.boot-ambient {
  position: absolute;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(255, 133, 0, 0.18) 0%, rgba(0, 122, 255, 0.15) 45%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  animation: float-ambient 5s ease-in-out infinite alternate;
}

@keyframes float-ambient {
  0% { transform: scale(0.9) translate(-15px, -15px); }
  100% { transform: scale(1.1) translate(15px, 15px); }
}

.boot-box {
  position: relative;
  z-index: 2;
  width: 90%;
  max-width: 460px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Official Logo Container in Preloader */
.boot-logo-wrap {
  width: 150px;
  height: 105px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.boot-logo-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 20px rgba(255, 133, 0, 0.45));
  animation: logo-breathe 2.5s infinite ease-in-out;
}

@keyframes logo-breathe {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 16px rgba(255, 133, 0, 0.35)); }
  50% { transform: scale(1.05); filter: drop-shadow(0 0 25px rgba(0, 122, 255, 0.6)); }
}

.boot-title {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  font-weight: 900;
  letter-spacing: 3px;
  color: #ffffff;
  margin-bottom: 4px;
}

.boot-subtitle {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 2px;
  color: var(--alva-orange);
  text-transform: uppercase;
  margin-bottom: 24px;
  font-weight: 600;
}

/* Boot Progress Bar */
.boot-progress-wrap {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.boot-progress-bar {
  width: 0%;
  height: 100%;
  background: var(--grad-alva);
  box-shadow: 0 0 14px var(--alva-orange);
  transition: width 0.15s ease-out;
}

/* Terminal Log Lines in Preloader */
.boot-terminal-log {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-slate);
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.boot-percent {
  color: var(--alva-orange);
  font-weight: 700;
}

.boot-cursor {
  display: inline-block;
  width: 7px;
  height: 14px;
  background-color: var(--alva-blue);
  animation: blink 0.8s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
