﻿/* Process section - clean zig-zag timeline */
@import url('base/_typography.css?v=6');

@import url('components/_step.css?v=6');
@import url('components/_effects.css?v=6');
@import url('components/_portfolio.css?v=6');
/* Responsive overrides last so media queries win over component defaults */
@import url('utils/_responsive.css?v=6');

.process-section {
  padding: 80px 40px 100px;
  text-align: center;
  color: white;
  position: relative;
  background: rgba(0, 0, 0, 0.3);
  overflow: hidden;
  max-width: 1400px;
  margin: 40px auto;
  border-radius: 40px;
}

/* Row of 5 steps, even steps pushed down to create the zig-zag.
   Zig-zag offset uses margin-top (NOT transform) so the entry
   fade/slide animation on .step-wrapper never breaks the layout. */
.timeline {
  position: relative;
  max-width: 1200px;
  margin: 60px auto 0;
  padding: 30px 0 40px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 70px;
}

.step-wrapper {
  position: relative;
  width: 175px;
  flex: 0 0 auto;
}

.step-wrapper:nth-child(even) {
  margin-top: 130px;
}

.step {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.step:hover {
  transform: scale(1.04);
}

.step:hover .step-icon {
  background: rgba(0, 132, 255, 0.15);
}

/* Connector lines between steps (angled, following the zig-zag) */
.step-wrapper::after {
  content: '';
  position: absolute;
  top: 62px;
  left: calc(50% + 48px);
  width: 200px;
  height: 4px;
  border-radius: 2px;
  background: var(--color-primary);
  opacity: 0.3;
  pointer-events: none;
  z-index: 1;
}

.step-wrapper:nth-child(odd)::after {
  transform: rotate(29deg);
  transform-origin: left center;
}

.step-wrapper:nth-child(even)::after {
  transform: rotate(-29deg);
  transform-origin: left center;
}

.step-wrapper:last-child::after {
  display: none;
}

/* Design icons inside the circles */
.step-icon img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(0, 132, 255, 0.35));
}

/* Per-step number badge colors (badge itself styled in _step.css) */
.step-wrapper:nth-child(2) .step-number {
  background: #1A90CD;
  box-shadow: 0 0 10px rgba(26, 144, 205, 0.5);
}

.step-wrapper:nth-child(3) .step-number {
  background: #3C6BE5;
  box-shadow: 0 0 10px rgba(60, 107, 229, 0.5);
}

.step-wrapper:nth-child(5) .step-number {
  background: linear-gradient(45deg, #6D1ECD, #0084FF);
  box-shadow: 0 0 10px rgba(0, 132, 255, 0.5);
}

/* Mobile / narrow: vertical list, no connectors */
@media (max-width: 1200px) {
  .timeline {
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding: 20px 0;
  }

  .step-wrapper {
    width: 100%;
    max-width: 300px;
  }

  .step-wrapper:nth-child(even) {
    margin-top: 0;
  }

  .step-wrapper::after {
    display: none;
  }
}
