/* ByteQuest's Future — fully 3D scroll journey */
.bq-future-page {
  --bq-gold: #f5c542;
  --bq-cyan: #3ba5f7;
  --bq-violet: #9d4edd;
  --bq-magenta: #ff4dd2;
  --bq-deep: #02010a;
  background: var(--bq-deep);
  color: #fff;
  overflow-x: hidden;
}

/* When this page is active, hide everything else on the site so the 3D
   experience fills the entire viewport */
body.bq-future-active {
  background: var(--bq-deep);
}

body.bq-future-active .header-top-news,
body.bq-future-active .rainbow-header,
body.bq-future-active .header-default,
body.bq-future-active .my_switcher,
body.bq-future-active .rainbow-footer,
body.bq-future-active .copyright-area,
body.bq-future-active .rbt-progress-parent,
body.bq-future-active .popup-mobile-menu {
  display: none !important;
}

body.bq-future-active .page-wrapper {
  background: var(--bq-deep);
  padding: 0;
  margin: 0;
}

.bq-future-journey {
  position: relative;
  width: 100%;
  height: 600vh;
  z-index: 2;
}

.bq-future-sticky {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: auto;
  opacity: 1;
  transition: opacity 0.4s ease;
}

.bq-future-sticky.is-out {
  opacity: 0;
  pointer-events: none;
}

#bq-future-canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: pan-y;
  outline: none;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(157, 78, 221, 0.15), transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 80%, rgba(59, 165, 247, 0.1), transparent 50%),
    var(--bq-deep);
}

/* Fixed topbar (minimal nav) */
.bq-future-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  padding: 22px 32px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(2, 1, 10, 0.7) 0%, transparent 100%);
}

.bq-future-topbar a,
.bq-future-topbar .bq-future-step {
  pointer-events: auto;
}

.bq-future-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.bq-future-back:hover {
  background: rgba(245, 197, 66, 0.12);
  border-color: rgba(245, 197, 66, 0.4);
  color: var(--bq-gold);
}

.bq-future-step {
  font-family: 'Courier New', monospace;
  font-size: 13px;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.45);
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  min-width: 90px;
  text-align: center;
}

.bq-future-progressbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 61;
  background: rgba(255, 255, 255, 0.04);
}

.bq-future-progressbar span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--bq-gold), var(--bq-magenta), var(--bq-violet), var(--bq-cyan));
  background-size: 200% 100%;
  box-shadow: 0 0 18px rgba(245, 197, 66, 0.7);
  transition: width 0.1s linear;
  animation: bq-prog-shift 4s linear infinite;
}

@keyframes bq-prog-shift {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* Scroll guide (only on first scene) */
.bq-future-scrollhint {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 55;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.bq-future-scrollhint.is-hidden {
  opacity: 0;
}

.bq-future-scrollhint .mouse {
  width: 24px;
  height: 38px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 14px;
  position: relative;
}

.bq-future-scrollhint .mouse::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  width: 3px;
  height: 8px;
  background: var(--bq-gold);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: bq-mouse-scroll 1.8s ease-in-out infinite;
}

@keyframes bq-mouse-scroll {
  0%, 100% { transform: translate(-50%, 0); opacity: 0; }
  50% { transform: translate(-50%, 12px); opacity: 1; }
}

/* Loading overlay */
.bq-3d-loading {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bq-deep);
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.bq-3d-loading.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.bq-3d-loading .spinner {
  width: 56px;
  height: 56px;
  border: 3px solid rgba(245, 197, 66, 0.18);
  border-top-color: var(--bq-gold);
  border-radius: 50%;
  animation: bq-spin 0.8s linear infinite;
}

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

/* Step markers are invisible — they just drive scroll height */
.bq-future-marker {
  position: relative;
  height: 100vh;
  z-index: 2;
  pointer-events: none;
}

@media (max-width: 767px) {
  .bq-future-topbar {
    padding: 16px 16px 12px;
  }
  .bq-future-back {
    padding: 8px 14px;
    font-size: 12px;
  }
  .bq-future-step {
    font-size: 11px;
    min-width: 80px;
  }
}
