/* --- Global & Hero --- */
.about-page {
  background: #000;
  color: #fff;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

.about-hero {
  height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

.hero-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1;
}

.gradient-text {
  background: linear-gradient(to bottom, #fff, #444);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --- Mission Tracker (Sticky Status Bar) --- */
.mission-tracker-wrapper {
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(15px);
  padding: 100px 5% 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.live-indicator {
  color: #c594f0;
  animation: pulse 2s infinite;
  font-family: monospace;
  font-size: 0.7rem;
}

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

.progress-track {
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  margin: 15px 0;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: #c594f0;
  transition: width 1.5s ease;
  box-shadow: 0 0 15px #c594f0;
}

.phase-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.step {
  opacity: 0.2;
  transition: 0.5s;
  font-family: monospace;
}

.step.active {
  opacity: 1;
  border-top: 1px solid #c594f0;
  padding-top: 5px;
}

.step-label {
  display: block;
  font-size: 0.65rem;
  color: #fff;
}

.step-status {
  font-size: 0.55rem;
  color: #c594f0;
}

/* --- Stats & Origin --- */
.origin-section {
  padding: 120px 0;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 80px;
  align-items: center;
}

.section-label {
  font-family: monospace;
  color: #c594f0;
  letter-spacing: 4px;
  font-size: 0.7rem;
  display: block;
  margin-bottom: 10px;
}

.section-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 3rem;
  margin-bottom: 25px;
  line-height: 1.1;
}

.accent-p {
  border-left: 2px solid #c594f0;
  padding-left: 20px;
  margin-top: 30px;
  font-style: italic;
  color: #888;
}

.stat-block {
  padding: 40px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
}

.stat-row {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.stat-num {
  font-size: 2.5rem;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  display: block;
}

.stat-desc {
  font-family: monospace;
  font-size: 0.65rem;
  color: #666;
  text-transform: uppercase;
}

/* --- Full Background Dossier Sections --- */
.dossier-full-bg {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 100px 0;
}

.bg-image-container {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #050505;
}

.parallax-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) brightness(0.35) contrast(1.2);
  background-attachment: fixed; /* Desktop parallax */
}

/* Technical Grid Overlay */
.bg-image-container::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: 2;
  pointer-events: none;
}

/* Scanline Effect */
.bg-image-container::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    rgba(197, 148, 240, 0) 0%,
    rgba(197, 148, 240, 0.05) 50%,
    rgba(197, 148, 240, 0) 100%
  );
  background-size: 100% 200%;
  animation: scanline 8s linear infinite;
  z-index: 3;
  pointer-events: none;
}

@keyframes scanline {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(100%);
  }
}

.bg-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 0%, #000 90%);
  z-index: 4;
}

/* Foreground Content Alignment */
.container.flex-start {
  display: flex;
  justify-content: flex-start;
  position: relative;
  z-index: 10;
}

.container.flex-end {
  display: flex;
  justify-content: flex-end;
  position: relative;
  z-index: 10;
}

.text-box.glass {
  max-width: 550px;
  background: rgba(10, 10, 10, 0.75);
  backdrop-filter: blur(25px);
  padding: 60px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 4px solid #c594f0;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8);
}

.tech-tags {
  display: flex;
  gap: 10px;
  margin-top: 25px;
}

.tech-tags span {
  font-family: monospace;
  font-size: 0.6rem;
  border: 1px solid rgba(197, 148, 240, 0.3);
  padding: 4px 10px;
  color: #c594f0;
}

.code-snippet {
  display: block;
  background: #000;
  padding: 15px;
  font-family: monospace;
  color: #00ff88;
  font-size: 0.75rem;
  margin-top: 25px;
  border-left: 2px solid #00ff88;
}

/* --- MOBILE OPTIMIZATION OVERRIDES --- */
@media (max-width: 900px) {
  .mission-tracker-wrapper {
    padding: 80px 15px 15px;
  }

  .phase-steps {
    gap: 4px;
  }

  .step-label {
    font-size: 0.55rem;
  }

  .hidden-mobile {
    display: none;
  }

  .hero-title {
    font-size: 3rem;
  }

  .section-title {
    font-size: 2.2rem;
  }

  .content-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .stat-row {
    flex-direction: row;
    justify-content: space-around;
  }

  .dossier-full-bg {
    min-height: 80vh;
    padding: 60px 0;
  }

  .parallax-bg {
    background-attachment: scroll; /* Fixes performance lag on touch */
  }

  .text-box.glass {
    padding: 40px 25px;
    margin: 0;
    max-width: 100%;
    width: 100%;
  }

  .container.flex-start,
  .container.flex-end {
    justify-content: center; /* Center cards on mobile */
  }
}
