/* ============================================
   WAREHOUSE JOURNEY — Supply Chain Timeline
   ============================================ */

.journey {
  position: relative;
  z-index: 2;
  padding: var(--space-32) var(--space-6);
  overflow: hidden;
}

.journey__inner {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}

.journey__header {
  text-align: center;
  margin-bottom: var(--space-20);
}

.journey__header .section-label {
  justify-content: center;
}

.journey__header .section-headline {
  max-width: 600px;
  margin-inline: auto;
}

.journey__header .section-desc {
  margin-inline: auto;
}

/* ── Timeline Track ── */
.journey__timeline {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-12) 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.journey__timeline::-webkit-scrollbar {
  display: none;
}

/* Main line */
.journey__track {
  position: absolute;
  top: 50%;
  left: 2%;
  right: 2%;
  height: 2px;
  background: rgba(0, 163, 255, 0.1);
  transform: translateY(-50%);
  z-index: 0;
}

/* Animated light flowing along track */
.journey__track-light {
  position: absolute;
  top: 0;
  left: 0;
  width: 120px;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--blue-electric), transparent);
  border-radius: 2px;
  animation: journey-light 6s linear infinite;
  box-shadow: 0 0 15px rgba(0, 163, 255, 0.4);
}

@keyframes journey-light {
  0%   { left: -120px; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { left: calc(100% + 120px); opacity: 0; }
}

/* ── Stage Nodes ── */
.journey__stage {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  min-width: 100px;
  flex-shrink: 0;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.journey__stage.visible {
  opacity: 1;
  transform: translateY(0);
}

.journey__stage-node svg {
  width: 22px;
  height: 22px;
}

/* Stage node circle */
.journey__stage-node {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(7, 17, 30, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid rgba(0, 163, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  position: relative;
  transition: all 0.4s var(--ease-out);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.journey__stage.active .journey__stage-node {
  border-color: var(--blue-electric);
  box-shadow: 0 0 25px rgba(0, 163, 255, 0.3), 0 4px 15px rgba(0, 0, 0, 0.4);
}

.journey__stage.active .journey__stage-node::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(0, 163, 255, 0.2);
  animation: pulse-ring 3s ease-out infinite;
}

/* Stage label */
.journey__stage-label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
  max-width: 90px;
  transition: color 0.4s;
}

.journey__stage.active .journey__stage-label {
  color: var(--text-primary);
}

/* Stage number */
.journey__stage-number {
  font-size: 9px;
  font-weight: 700;
  color: var(--text-tertiary);
  letter-spacing: 0.1em;
}

.journey__stage.active .journey__stage-number {
  color: var(--blue-electric);
}

/* ── Connector arrows ── */
.journey__connector {
  flex-shrink: 0;
  width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.journey__connector-arrow {
  width: 20px;
  height: 2px;
  position: relative;
}

.journey__connector-arrow::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 163, 255, 0.15);
}

.journey__connector-arrow::after {
  content: '';
  position: absolute;
  right: -4px;
  top: -3px;
  width: 8px;
  height: 8px;
  border-right: 2px solid rgba(0, 163, 255, 0.2);
  border-top: 2px solid rgba(0, 163, 255, 0.2);
  transform: rotate(45deg);
}

/* ── Responsive ── */
@media (max-width: 1300px) and (min-width: 769px) {
  .journey__timeline {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 163, 255, 0.3) transparent;
  }

  .journey__timeline::-webkit-scrollbar {
    display: block;
    height: 3px;
  }

  .journey__timeline::-webkit-scrollbar-track {
    background: transparent;
  }

  .journey__timeline::-webkit-scrollbar-thumb {
    background: rgba(0, 163, 255, 0.3);
    border-radius: 2px;
  }
}

@media (max-width: 1200px) {
  .journey__timeline {
    gap: var(--space-2);
    padding: var(--space-8) var(--space-4);
  }

  .journey__stage {
    min-width: 80px;
  }

  .journey__connector {
    width: 20px;
  }
}

@media (max-width: 768px) {
  .journey {
    padding: var(--space-20) var(--space-4);
  }

  .journey__timeline {
    flex-direction: column;
    gap: var(--space-6);
    align-items: flex-start;
    padding-left: var(--space-12);
  }

  .journey__track {
    top: 0;
    bottom: 0;
    left: var(--space-8);
    right: auto;
    width: 2px;
    height: 100%;
    transform: none;
  }

  .journey__track-light {
    width: 100%;
    height: 60px;
    background: linear-gradient(180deg, transparent, var(--blue-electric), transparent);
    animation: journey-light-vertical 6s linear infinite;
  }

  @keyframes journey-light-vertical {
    0%   { top: -60px; opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { top: calc(100% + 60px); opacity: 0; }
  }

  .journey__stage {
    flex-direction: row;
    min-width: auto;
  }

  .journey__connector {
    display: none;
  }
}
