/* How It Works - Visual Step Flow Design */
#how-it-works {
  background: #ffffff;
  position: relative;
  overflow: hidden;
  padding: 5rem 0;
}

#how-it-works .container {
  position: relative;
  z-index: 2;
}

.steps-flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 4rem;
  padding: 2rem 0;
}

.flow-connector {
  position: absolute;
  top: 80px;
  left: 0;
  width: 100%;
  height: 200px;
  pointer-events: none;
  z-index: 0;
}

.flow-path {
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
  animation: draw-path 2s ease-out forwards;
  animation-delay: 0.5s;
}

@keyframes draw-path {
  to {
    stroke-dashoffset: 0;
  }
}

.step-flow-item {
  position: relative;
  text-align: center;
  z-index: 1;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.step-flow-item.revealed {
  opacity: 1;
  transform: translateY(0);
}

.step-flow-item:nth-child(2) {
  transition-delay: 0.2s;
}

.step-flow-item:nth-child(3) {
  transition-delay: 0.4s;
}

.step-flow-item:nth-child(4) {
  transition-delay: 0.6s;
}

.step-visual {
  position: relative;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.step-orbit {
  width: 140px;
  height: 140px;
  position: relative;
  animation: orbit-rotate 4s linear infinite;
}

@keyframes orbit-rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.step-orb {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF5893, #FF7AB5);
  box-shadow: 0 20px 60px rgba(255, 88, 147, 0.4),
              inset 0 -10px 20px rgba(0, 0, 0, 0.1);
  position: relative;
  animation: float 3s ease-in-out infinite;
}

.step-orb::before {
  content: '';
  position: absolute;
  top: 10%;
  left: 20%;
  width: 40%;
  height: 40%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.5), transparent);
  border-radius: 50%;
  filter: blur(10px);
}

.step-badge {
  width: 60px;
  height: 60px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: #FF5893;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 3px solid #FF5893;
  margin-top: -30px;
}

.step-info {
  padding: 0 1rem;
}

.step-heading {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.step-text {
  color: #666;
  line-height: 1.7;
  font-size: 0.95rem;
}

/* Hover effect */
.step-flow-item:hover .step-orb {
  transform: scale(1.1);
  box-shadow: 0 25px 70px rgba(255, 88, 147, 0.5),
              inset 0 -10px 20px rgba(0, 0, 0, 0.1);
}

.step-flow-item:hover .step-badge {
  transform: scale(1.15);
  background: linear-gradient(135deg, #FF5893, #FF7AB5);
  color: white;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
  .steps-flow {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }

  .flow-connector {
    display: none;
  }
}

@media (max-width: 768px) {
  #how-it-works {
    padding: 3rem 0;
  }

  .steps-flow {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .step-orbit {
    width: 120px;
    height: 120px;
  }

  .step-badge {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }

  .step-heading {
    font-size: 1.1rem;
  }

  .step-text {
    font-size: 0.9rem;
  }
}
