.journey-section {
  position: relative;
  padding: var(--space-3xl) 0;
  overflow: hidden;
  min-height: 100vh;
  background-color: rgba(30, 30, 30, 0.2);;
  
}


.journey-veil {
  position: absolute;
  inset: 0;
  z-index: 0; 
  pointer-events: none;
   background:
    radial-gradient(circle 400px at 20% 25%, rgba(255, 245, 220, 0.06) 0%, transparent 60%), 
    radial-gradient(circle 300px at 75% 40%, rgba(180, 200, 220, 0.05) 0%, transparent 65%),
    radial-gradient(circle 350px at 50% 75%, rgba(200, 230, 200, 0.04) 0%, transparent 70%), 
    linear-gradient(135deg, rgba(255, 245, 230, 0.015) 0%, transparent 50%, rgba(255, 255, 255, 0.01) 100%); 
  
  background-repeat: no-repeat, no-repeat, no-repeat, repeat;
  background-size: 80% 80%, 70% 70%, 90% 90%, 100% 100%;

}


.journey-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--space-3xl);
  position: relative;
  z-index: 2;
}


.path-svg-container {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.path-svg-container svg {
  width: 100%;
  height: 100%;
}


.path-background {
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 3;
  fill: none;
  stroke-linecap: round;
}

.path-progress {
  stroke: url(#pathGradient);
  stroke-width: 3;
  fill: none;
  stroke-linecap: round;
  stroke-dasharray: 5000;
  stroke-dashoffset: 5000;
  transition: stroke-dashoffset 0.5s ease-out;
  filter: drop-shadow(0 0 8px rgba(0, 230, 118, 0.4));
}


#pathGradient stop:first-child {
  stop-color: #00e676;
}

#pathGradient stop:last-child {
  stop-color: #4caf50;
}


.journey-steps {
  position: relative;
  z-index: 2;
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
}

.journey-step {
  position: relative;
  margin-bottom: 150px;
  padding-top: 80px;
  opacity: 0;             
  transform: translateY(40px);         
  transition: opacity 0.6s ease, transform 0.6s ease;
}


.journey-step.active {
  opacity: 1;
  transform: translateY(0);
}


.journey-step:nth-child(odd) {
  padding-left: 15%;
  padding-right: 15%;
  display: flex;
  justify-content: flex-end;
}


.journey-step:nth-child(even) {
  padding-left: 15%;
  padding-right: 15%;
  display: flex;
  justify-content: flex-start;
}


.step-node {
  position: absolute;
  width: 64px;
  height: 64px;
  background: var(--color-bg-secondary);
  border: 3px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: all 0.5s ease;
}


.journey-step:nth-child(odd) .step-node {
  left: 50%;
  top: 0;
  transform: translate(-50%, 0);
}

.journey-step:nth-child(even) .step-node {
  left: 50%;
  top: 0;
  transform: translate(-50%, 0);
}

.journey-step.active .step-node {
  border-color: var(--color-accent-primary);
  background: var(--color-bg-secondary);
  box-shadow:
    0 0 0 0 rgba(0, 230, 118, 0.4),
    0 0 30px rgba(0, 230, 118, 0.3),
    inset 0 0 20px rgba(0, 230, 118, 0.1);
  animation: nodeActivate 0.6s ease-out;
}


.journey-step:nth-child(odd) .step-content {
  margin-left: auto;
}


.journey-step:nth-child(even) .step-content {
  margin-right: auto;
}

.path-background,
.path-progress {
  stroke-width: 6;
  fill: none;
  stroke-linecap: square; 
}


@keyframes nodeActivate {
  0% {
    transform: translate(-50%, 0) scale(0.8);
    box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.7);
  }
  50% {
    box-shadow: 0 0 0 20px rgba(0, 230, 118, 0);
  }
  100% {
    transform: translate(-50%, 0) scale(1);
    box-shadow: 0 0 0 0 rgba(0, 230, 118, 0);
  }
}

.step-node-icon {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.4);
  transition: all 0.5s ease;
}

.journey-step.active .step-node-icon {
  color: var(--color-accent-primary);
  transform: scale(1.1);
}



.step-content {
  width: 100%;
  max-width: 1000px;
  max-height: none;
  overflow-y: auto;
  overflow-x: hidden;
  background: #222;
   background-image: 
    repeating-linear-gradient(
      45deg, 
      rgba(255,255,255,0.02) 0px, 
      rgba(255,255,255,0.02) 1px, 
      transparent 1px, 
      transparent 4px
    ),
    radial-gradient(circle at top left, rgba(255,255,255,0.03), transparent 70%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  position: relative;
  transition: all 0.5s ease;
  text-align: left;
  color: #fff;
  font-size: 1.25rem;
}


.step-content .section-wrapper {
  width: 100%;
  max-width: 100%;
  padding: 0;
  background: transparent;
}

.step-content .section-wrapper .section {
  padding: 0;
}

.step-content .section-wrapper .container {
  padding: 0;
  max-width: 100%;
}

.step-content .section {
  max-width: 100%;
  overflow: visible;
}

.step-content .container {
  max-width: 100%;
  padding: 0;
}

.step-content .section-wrapper h2,
.step-content .section-wrapper h3,
.step-content .section-wrapper p,
.step-content .section-wrapper .card-title,
.step-content .section-wrapper .card-text {
  color: var(--color-text-primary);
}

.step-content .section-wrapper .card-text,
.step-content .section-wrapper .subhead,
.step-content .section-wrapper ul li {
  color: var(--color-text-secondary);
}

.journey-step.active .step-content {
  border-color: rgba(0, 230, 118, 0.18);
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.3),
    0 0 40px rgba(0, 230, 118, 0.06);
}


.step-content .grid.cols-4 {
  grid-template-columns: repeat(3, 1fr);
}

.step-content .grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.step-content .grid.cols-2 {
  grid-template-columns: 1fr;

}

.step-content .card.pad {
  padding: var(--space-lg);
}


.step-content {
  flex-shrink: 0;
}

.step-content .grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
  display: flex;       
  flex-wrap: wrap;
  gap: var(--space-xl);
  justify-content: center; 
}

.step-content .grid.cols-2 .card img {
  width: 100%;
  height: auto;
  max-height: 350px;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}
.step-content img,
.step-content .card {
  width: 100%;
  height: auto;
  max-width: none;
  max-height: none;
}

.step-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(0, 230, 118, 0.08);
  border: 1px solid rgba(0, 230, 118, 0.12);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-sm);
}

.step-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-family: var(--font-display);
  color: var(--color-text-primary);
  margin-bottom: var(--space-md);
  line-height: 1.2;
}

.step-description {
  color: var(--color-text-secondary);
  font-size: 1.125rem;
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

.step-features {
  list-style: none;
  margin-top: var(--space-md);
}

.step-features li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-sm);
  font-size: 1rem;
  line-height: 1.6;
}

.step-features li::before {
  content: '\2713';
  color: var(--color-accent-primary);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}
.step-content {
  position: relative;
  z-index: 4;
}
.step-node {
  z-index: 5;
}
.step-content .section-wrapper,
.step-content .section-wrapper .section,
.step-content .section-wrapper .container,
.step-content .container {
  max-width: 100% ;
  padding: 0;
  margin: 0;
  overflow: visible;
}


.journey-end {
  text-align: center;
  padding: var(--space-xl) 0;
  position: relative;
  z-index: 2;
}

.journey-end-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto var(--space-md);
  background: var(--gradient-hero);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--color-bg-primary);
  box-shadow:
    0 0 60px rgba(0, 230, 118, 0.4),
    0 20px 40px rgba(0, 0, 0, 0.3);
}


@media (max-width: 1400px) {
  .step-content .grid.cols-4,
  .step-content .grid.cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  .journey-step:nth-child(odd),
  .journey-step:nth-child(even) {
    padding-left: 10%;
    padding-right: 10%;
  }

  .step-content {
    width: 80%;
    padding: var(--space-lg);
  }

  .step-content .grid.cols-4,
  .step-content .grid.cols-3,
  .step-content .grid.cols-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .journey-step {
    margin-bottom: 100px;
    max-width: 400px;
  }

  .journey-step:nth-child(odd),
  .journey-step:nth-child(even) {
    padding-left: 5%;
    padding-right: 5%;
    justify-content: center;
  }

  .step-content {
    width: 90%;
    max-height: 600px;
    padding: var(--space-md);
  }

  .step-node {
    width: 48px;
    height: 48px;
  }

  .step-node-icon {
    font-size: 1.2rem;
  }

  .step-content .grid {
    gap: var(--space-md);
  }
}

@media (max-width: 480px) {
  .step-content {
    width: 95%;
    padding: var(--space-sm);
  }
}
