/* ═══════════════════════════════
   SERVICES SECTION
═══════════════════════════════ */
.services {
  padding: 100px 24px;
  background: #0c1120;
}

.services__wrap {
  max-width: 1320px;
  margin: 0 auto;
}

.services__title {
  text-align: center;
  font-size: var(--fs-section);
  font-weight: var(--fw-black);
  color: #fff;
  letter-spacing: var(--tracking-tight);
  margin-bottom: 56px;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 980px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .services__grid {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════
   SERVICE CARD — dark (default)
═══════════════════════════════ */
.service-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 28px;
  min-height: 260px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;

  background: rgba(17, 24, 39, .65);
  border: 1px solid rgba(148, 163, 184, .08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  box-shadow:
    0 2px 8px rgba(0, 0, 0, .25),
    0 12px 40px rgba(0, 0, 0, .20);

  transition:
    transform .3s cubic-bezier(.4, 0, .2, 1),
    box-shadow .3s ease,
    border-color .3s ease;
}

.service-card:hover {
  transform: translateY(-3px);
  border-color: rgba(29, 78, 216, .25);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, .25),
    0 20px 50px rgba(0, 0, 0, .30),
    0 0 0 1px rgba(29, 78, 216, .10);
}

/* ─── Icon ─── */
.service-card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  margin: 0 auto 16px;

  background: rgba(29, 78, 216, .10);
  color: var(--accent-light);

  transition: transform .3s ease;
}

.service-card__icon svg {
  width: 28px;
  height: 28px;
}

.service-card:hover .service-card__icon {
  transform: translateY(-2px);
}

/* ─── Title ─── */
.service-card__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  letter-spacing: -0.01em;
}

/* ─── Hover Overlay ─── */
.service-card__overlay {
  position: absolute;
  inset: 0;
  padding: 28px;

  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;

  background: rgba(10, 15, 26, .94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);

  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}

.service-card:hover .service-card__overlay {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.service-card__overlay-text {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(226, 232, 240, .65);
  margin: 0 auto 18px;
  max-width: 340px;
}

.service-card__overlay-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  color: var(--accent-light);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: color .2s ease;
}

.service-card__overlay-link:hover {
  color: #93c5fd;
}

/* ═══════════════════════════════
   LIGHT THEME
═══════════════════════════════ */
html[data-theme="light"] .services {
  background: #f3f5f8;
}

html[data-theme="light"] .services__title {
  color: #0f172a;
}

html[data-theme="light"] .service-card {
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, .12);
  backdrop-filter: none;
  box-shadow:
    0 1px 3px rgba(15, 23, 42, .04),
    0 8px 24px rgba(15, 23, 42, .06);
}

html[data-theme="light"] .service-card:hover {
  border-color: rgba(29, 78, 216, .20);
  box-shadow:
    0 2px 6px rgba(15, 23, 42, .04),
    0 16px 40px rgba(15, 23, 42, .10),
    0 0 0 1px rgba(29, 78, 216, .08);
}

html[data-theme="light"] .service-card__icon {
  background: rgba(29, 78, 216, .06);
  color: var(--accent);
}

html[data-theme="light"] .service-card__title {
  color: #0f172a;
}

html[data-theme="light"] .service-card__overlay {
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(16px);
}

html[data-theme="light"] .service-card__overlay-text {
  color: rgba(51, 65, 85, .70);
}

html[data-theme="light"] .service-card__overlay-link {
  color: var(--accent);
}

/* dark icon extra shadow */
html[data-theme="dark"] .service-card__icon {
  box-shadow: 0 4px 12px rgba(29, 78, 216, .15);
}