@use "../../../../styles/abstracts/variables" as *;

.steps {
  position: relative;
  padding: 8rem 2rem;
  overflow: hidden;
  color: #e5e7eb;
  font-family: $font-onest, sans-serif;

  /* ================= BACKGROUND HERO EFFECT ================= */
  .bgGlow {
    position: absolute;
    inset: -20%;
    background:
      radial-gradient(circle at top right, rgba(255, 183, 3, 0.12), transparent 45%),
      radial-gradient(circle at bottom left, rgba(99, 179, 237, 0.1), transparent 50%);
    z-index: 0;
  }

  .bgGrid {
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: linear-gradient(to bottom, black, transparent 70%);
    z-index: 0;
  }

  .inner {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
  }

  .heading {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: #ffb703;
  }

  .subtext {
    font-size: 1rem;
    margin-bottom: 4rem;
    opacity: 0.85;
  }

  .grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    position: relative;
  }

  .card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    padding: 2rem 1.5rem;
    flex: 1 1 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    transition: all 0.35s ease;
    cursor: pointer;
    backdrop-filter: blur(10px);

    &:hover {
      border-color: #ffb703;
      box-shadow: 0 25px 50px rgba(255, 183, 3, 0.2);
    }

    .iconWrapper {
      position: relative;
      width: 64px;
      height: 64px;
      margin-bottom: 1rem;

      .icon {
        width: 100%;
        height: 100%;
        color: #ffb703;
      }

      .connector {
        content: "";
        position: absolute;
        top: 50%;
        right: -50%;
        width: 100%;
        height: 4px;
        background: linear-gradient(90deg, #ffb703, #f59e0b);
        opacity: 0.3;
        border-radius: 2px;
        transform: translateY(-50%);
        transition: opacity 0.3s ease;

        &:hover {
          opacity: 0.5;
        }

        @media (max-width: 1024px) {
          display: none;
        }
      }
    }

    h3 {
      font-size: 1.25rem;
      font-weight: 600;
      margin-bottom: 0.5rem;
      color: #fff;
    }

    p {
      font-size: 0.95rem;
      opacity: 0.75;
    }
  }
}

/* ================= RESPONSIVENESS ================= */

@media (max-width: 1024px) {
  .grid {
    flex-direction: column;
    gap: 3rem;
  }

  .card .iconWrapper .connector {
    display: none;
  }
}

@media (max-width: 640px) {
  .steps {
    padding: 6rem 1rem;

    .heading {
      font-size: clamp(1.8rem, 6vw, 2.4rem);
    }
  }
}
