/* Process Steps Styling - Derun Studio - Wavy Flow */

/* Process Steps Container */
.process-steps-container {
  width: 100%;
  margin-top: 64px;
  position: relative;
}

/* Process Steps Grid - Alternating Wave Pattern */
.process-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
  padding: 80px 0;
  min-height: 500px;
}

/* Wavy Connecting Line - Dashed Horizontal */
.process-steps-grid::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 5%;
  right: 5%;
  height: 3px;
  background: transparent;
  transform: translateY(-50%);
  z-index: 0;
  background-image: repeating-linear-gradient(
    90deg,
    var(--derun-toprak) 0px,
    var(--derun-toprak) 15px,
    transparent 15px,
    transparent 25px
  );
  border-radius: 2px;
}

/* Connection Dots on the Wave Line */
.process-steps-grid::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 5%;
  right: 5%;
  height: 80px;
  transform: translateY(-50%);
  background-image: radial-gradient(
      circle at 12.5% 0%,
      var(--derun-toprak) 4px,
      transparent 4px
    ),
    radial-gradient(
      circle at 37.5% 100%,
      var(--derun-toprak) 4px,
      transparent 4px
    ),
    radial-gradient(
      circle at 62.5% 0%,
      var(--derun-toprak) 4px,
      transparent 4px
    ),
    radial-gradient(
      circle at 87.5% 100%,
      var(--derun-toprak) 4px,
      transparent 4px
    );
  background-size: 25% 100%;
  background-repeat: no-repeat;
  background-position: 0% center, 25% center, 50% center, 75% center;
  z-index: 0;
}

/* Alternating Position - Wave Pattern */
.process-step-card[data-step="1"] {
  align-self: start;
  margin-top: -40px;
}

.process-step-card[data-step="2"] {
  align-self: end;
  margin-bottom: -40px;
}

.process-step-card[data-step="3"] {
  align-self: start;
  margin-top: -40px;
}

.process-step-card[data-step="4"] {
  align-self: end;
  margin-bottom: -40px;
}

/* Process Step Card */
.process-step-card {
  position: relative;
  background: var(--nefes-beji);
  border: 2px solid var(--derun-toprak);
  border-radius: 24px 28px 26px 30px;
  padding: 48px 24px 32px 24px;
  text-align: center;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 2;
  box-shadow: 3px 3px 0px rgba(139, 106, 78, 0.1),
    6px 6px 0px rgba(139, 106, 78, 0.05);
  min-height: 260px;
}

/* Connection Dot to Wave Line */
.process-step-card::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--derun-toprak);
  border: 2px solid var(--white);
  border-radius: 50%;
  z-index: 1;
  box-shadow: 0 2px 8px rgba(139, 106, 78, 0.3);
  transition: all 0.4s ease;
}

/* Connection dot positioning - alternating */
.process-step-card[data-step="1"]::after,
.process-step-card[data-step="3"]::after {
  bottom: -46px;
  left: 50%;
  transform: translateX(-50%);
}

.process-step-card[data-step="2"]::after,
.process-step-card[data-step="4"]::after {
  top: -46px;
  left: 50%;
  transform: translateX(-50%);
}

.process-step-card:hover {
  transform: scale(1.05);
  border-color: var(--derun-toprak);
  background: var(--derun-toprak);
  box-shadow: 5px 5px 0px rgba(124, 154, 109, 0.2),
    10px 10px 0px rgba(124, 154, 109, 0.1);
  z-index: 10;
}

.process-step-card:hover::after {
  background: var(--derun-toprak);
  transform: translateX(-50%) scale(1.3);
}

/* Step Number */
.process-step-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 52px;
  height: 52px;
  background: var(--white);
  border: 3px solid var(--derun-toprak);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font--serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--derun-toprak);
  box-shadow: 0 6px 16px rgba(139, 106, 78, 0.2);
  transition: all 0.4s ease;
  z-index: 10;
}

.process-step-card:hover .process-step-number {
  background: var(--doga-yesil);
  color: var(--white);
  border-color: var(--doga-yesil);
  transform: translateX(-50%) rotate(360deg);
}

/* Step Icon */
.process-step-icon {
  font-size: 56px;
  margin-bottom: 20px;
  margin-top: 16px;
  transition: all 0.4s ease;
  line-height: 1;
}

.process-step-card:hover .process-step-icon {
  filter: invert(1);
  transform: scale(1.1);
}

/* Step Title */
.process-step-card .text-h5 {
  color: #000;
  align-items: center;
  transition: color 0.3s ease;
}

.process-step-card:hover .text-h5 {
  color: var(--nefes-beji);
}

/* Step Description */
.process-step-card .body-2 {
  color: #000;
  opacity: 0.8;
  line-height: 1.6;
  transition: color 0.3s ease;
}
.process-step-card:hover .body-2 {
  color: var(--nefes-beji);
}

/* Responsive: Tablet */
@media screen and (max-width: 991px) {
  .process-steps-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 60px 40px;
    padding: 60px 0;
    min-height: 600px;
  }

  .process-steps-grid::before {
    display: none;
  }

  .process-steps-grid::after {
    background-image: radial-gradient(
        circle at 25% 30%,
        var(--derun-toprak) 4px,
        transparent 4px
      ),
      radial-gradient(
        circle at 75% 70%,
        var(--derun-toprak) 4px,
        transparent 4px
      );
    background-size: 50% 100%;
    background-position: 0% center, 50% center;
  }

  /* Zigzag pattern for tablet */
  .process-step-card[data-step="1"] {
    align-self: start;
    margin-top: -20px;
    margin-bottom: 0;
  }

  .process-step-card[data-step="2"] {
    align-self: end;
    margin-top: 0;
    margin-bottom: -20px;
  }

  .process-step-card[data-step="3"] {
    align-self: start;
    margin-top: -20px;
    margin-bottom: 0;
  }

  .process-step-card[data-step="4"] {
    align-self: end;
    margin-top: 0;
    margin-bottom: -20px;
  }

  .process-step-card {
    padding: 40px 20px 28px 20px;
    min-height: 240px;
  }
}

/* Responsive: Mobile */
@media screen and (max-width: 767px) {
  .process-steps-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 40px 0;
    min-height: auto;
  }

  .process-steps-grid::before,
  .process-steps-grid::after {
    display: none;
  }

  /* Simple vertical flow for mobile */
  .process-step-card[data-step="1"],
  .process-step-card[data-step="2"],
  .process-step-card[data-step="3"],
  .process-step-card[data-step="4"] {
    align-self: center;
    margin: 0 auto;
  }

  .process-step-card::after {
    display: none;
  }

  .process-step-card {
    padding: 40px 24px 28px 24px;
    max-width: 340px;
    min-height: 240px;
  }

  .process-step-icon {
    font-size: 48px;
  }

  .process-step-number {
    width: 44px;
    height: 44px;
    font-size: 18px;
    border-width: 2px;
  }
}
