/* ════════════════════════════════════════════════════════════════
   JOURNEY ELITE — VISION OS SPATIAL TIMELINE
   High-Density, Apple-Style Solid Architecture
════════════════════════════════════════════════════════════════ */

.journey-section {
  position: relative;
  padding: 100px 0 100px;
  overflow: hidden;
  background: transparent;
}

/* ── Spatial Timeline Container ── */
.spatial-timeline {
  position: relative;
  max-width: 680px;
  margin: 60px auto 0;
  display: flex;
  flex-direction: column;
  gap: 24px; /* High density, tight space */
  padding-left: 60px; /* Space for the track */
}

/* ── Glowing Track ── */
.spatial-track {
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, 
      transparent 0%, 
      rgba(163,207,43,0.8) 15%, 
      rgba(255,255,255,0.4) 50%, 
      transparent 100%);
  border-radius: 2px;
  box-shadow: 0 0 20px rgba(163,207,43,0.4);
}

/* ── Card Wrapper ── */
.spatial-card-wrap {
  position: relative;
  display: flex;
  align-items: center;
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

/* Reveal mechanism fallback (using existing JS .reveal class) */
.spatial-card-wrap.active,
.spatial-card-wrap.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Scroll-Driven Animation (Apple-style scaling) for supporting browsers */
@supports (animation-timeline: view()) {
  .spatial-card-wrap {
    opacity: 1; /* override default */
    transform: none; /* override default */
    animation: spatial-enter linear both;
    animation-timeline: view();
    animation-range: entry 5% cover 30%;
  }
}

@keyframes spatial-enter {
  0% {
    opacity: 0;
    transform: scale(0.9) translateY(40px);
    filter: blur(10px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0px);
  }
}

/* ── Time Orb ── */
.spatial-orb {
  position: absolute;
  left: -60px; /* align with the track */
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 22px;
  background: #111;
  border: 1px solid rgba(163,207,43,0.5);
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: #a3cf2b;
  font-family: 'Outfit', sans-serif;
  letter-spacing: 1px;
  z-index: 2;
  box-shadow: 0 0 15px rgba(0,0,0,0.8), inset 0 1px 2px rgba(255,255,255,0.1);
  transition: all 0.3s ease;
}

/* Hover Physics */
.spatial-card-wrap:hover .spatial-orb {
  background: #a3cf2b;
  color: #000;
  box-shadow: 0 0 20px rgba(163,207,43,0.6);
  transform: translateY(-50%) scale(1.1);
}

/* ── Spatial Card (Vision OS Glass) ── */
.spatial-card {
  width: 100%;
  background: rgba(20, 20, 20, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 20px 24px;
  display: flex;
  gap: 20px;
  align-items: center;
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.5), 
    inset 0 1px 1px rgba(255, 255, 255, 0.08); /* Top highlight */
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.3s ease, background 0.3s ease;
}

.spatial-card-wrap:hover .spatial-card {
  transform: scale(1.02) translateX(5px);
  border-color: rgba(163,207,43,0.3);
  background: rgba(30, 30, 30, 0.8);
}

/* ── Card Content ── */
.sc-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.1);
}

.sc-content h4 {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
  font-family: 'Cairo', sans-serif;
  letter-spacing: -0.3px;
}

.sc-content p {
  font-size: 13.5px;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
  margin: 0;
}

/* ── The "NOW" Special Card ── */
.spatial-card-now .spatial-card {
  background: rgba(163,207,43,0.05);
  border-color: rgba(163,207,43,0.3);
  box-shadow: 
    0 10px 40px rgba(163,207,43,0.1),
    inset 0 1px 1px rgba(163,207,43,0.2);
}

.spatial-card-now .sc-icon {
  background: linear-gradient(135deg, rgba(163,207,43,0.3), rgba(163,207,43,0.1));
  border-color: rgba(163,207,43,0.4);
}

.spatial-card-now .spatial-orb {
  background: #fff;
  color: #000;
  border-color: #fff;
  box-shadow: 0 0 20px rgba(255,255,255,0.6);
}

/* ── MOBILE RESPONSIVE ── */
@media (max-width: 768px) {
  .spatial-timeline {
    padding-left: 40px;
  }
  .spatial-track {
    left: 10px;
  }
  .spatial-orb {
    left: -42px;
    width: 36px;
    height: 18px;
    font-size: 8px;
  }
  .spatial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
  }
  .sc-icon {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
}
