/* ================= WRAPPER ================= */
.ftw-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 60px;
}

/* ================= LEFT ================= */
.ftw-left {
  max-width: 500px;
}

.ftw-sub {
  color: #ff4d2d;
  font-size: 14px;
  margin-bottom: 10px;
}

.ftw-left h2 {
  font-size: 42px;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 20px;
}

.ftw-left p {
  color: #ccc;
  line-height: 1.6;
}

/* ================= GRID ================= */
.ftw-grid {
  display: grid;
  grid-template-columns: repeat(3, 160px);
  gap: 25px;
  justify-content: end;
}

/* ================= CARD ================= */
.ftw-card {
  width: 160px;
  height: 160px;
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
  color: #fff;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* ICON */
.ftw-card img {
  width: 40px;
  margin-bottom: 10px;
}

/* ================= PERFECT ZIGZAG ================= */

/* RESET */
.ftw-card {
  transform: none;
}

/* LEFT COLUMN */
.ftw-card:nth-child(3n+1) {
  transform: translateY(20px);
}

/* CENTER COLUMN (TOP) */
.ftw-card:nth-child(3n+2) {
  transform: translateY(-50px);
}

/* RIGHT COLUMN */
.ftw-card:nth-child(3n) {
  transform: translateY(40px);
}

/* ================= HOVER ================= */
.ftw-card:hover {
  transform: scale(1.05);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

/* preserve zigzag on hover */
.ftw-card:nth-child(3n+1):hover {
  transform: translateY(20px) scale(1.05);
}

.ftw-card:nth-child(3n+2):hover {
  transform: translateY(-50px) scale(1.05);
}

.ftw-card:nth-child(3n):hover {
  transform: translateY(40px) scale(1.05);
}

/* TEXT */
.ftw-card span {
  font-size: 14px;
}

/* ================= TABLET ================= */
@media (max-width: 1024px) {

  .ftw-wrapper {
    flex-direction: column;
    align-items: flex-start;
  }

  .ftw-grid {
    grid-template-columns: repeat(3, 1fr);
    justify-content: center;
  }

  .ftw-card {
    width: 100%;
    height: auto;
    padding: 20px;
    transform: none !important;
  }
}

/* ================= MOBILE ================= */
@media (max-width: 767px) {

  .ftw-wrapper {
    flex-direction: column;
    gap: 40px;
  }

  .ftw-left h2 {
    font-size: 28px;
  }

  .ftw-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }

  .ftw-card {
    width: 100%;
    height: auto;
    padding: 20px;
    transform: none !important;
  }
}