/* =========================
   SERVICES SECTION
========================= */
.services {
  min-height: 100vh;
  padding: 120px clamp(6%, 8vw, 10%);
  background: linear-gradient(to bottom, #020409, #0a0d12);

  opacity: 0;
  transform: translateY(120px);
  pointer-events: none;

  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.services.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}


/* =========================
   TITLE
========================= */
.section-title {
  font-size: clamp(2.2rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 64px;
}

/* =========================
   GRID
========================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 36px;
}

/* =========================
   CARD
========================= */
.service-card {
  position: relative;              /* 🔥 REQUIRED */
  padding: 36px;
  border-radius: 18px;

  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);

  will-change: transform;
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
}

/* =========================
   WEBGL SLOT
========================= */
.service-webgl {
  width: 100%;
  height: 120px;
  margin-bottom: 22px;

  border-radius: 12px;
  overflow: hidden;

  pointer-events: none; /* canvas clicks block na kare */
}

/* subtle divider like Grok */
.service-webgl::after {
  content: "";
  display: block;
  height: 1px;
  margin-top: 12px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255,255,255,.15),
    transparent
  );
}

/* =========================
   TEXT
========================= */
.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(229, 231, 235, 0.65);
}

@media (max-width: 768px) {
  .services {
    min-height: auto;
    padding: 80px 20px;

    transform: translateY(60px); /* less jump */
  }

  .section-title {
    font-size: 1.9rem;
    margin-bottom: 42px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .service-card {
    padding: 26px;
    border-radius: 16px;
  }

  .service-card:hover {
    transform: translateY(-3px); /* mobile subtle */
  }

  .service-webgl {
    height: 90px;
    margin-bottom: 18px;
  }

  .service-card h3 {
    font-size: 1.1rem;
  }

  .service-card p {
    font-size: 0.92rem;
  }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .services {
    padding: 100px 6%;
    transform: translateY(80px);
  }

  .section-title {
    font-size: 2.4rem;
    margin-bottom: 54px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }

  .service-webgl {
    height: 105px;
  }
}
@media (min-width: 1600px) {
  .services {
    padding: 140px 10%;
  }

  .section-title {
    font-size: 3rem;
  }

  .services-grid {
    gap: 44px;
  }

  .service-card {
    padding: 44px;
  }
}
