/* ── TECHNOLOGY ── */
.technology-section {
  background: transparent;
  min-height: 100vh;
  z-index: 8;
}



.technology-section .display {
  text-align: center;
  max-width: 100%;
}

.technology-section .lead {
  text-align: center;
  max-width: 560px;
  margin: 12px auto 0;
}

/* 3 × 2 grid */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 64px;
}

/* Card — dark neomorphism */
.tech-card {
  background: var(--bg3);
  border-radius: 16px;
  padding: 36px 28px;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto auto;
  gap: 12px;
  position: relative;
  overflow: hidden;
  cursor: default;
  border: 1px solid var(--border);
  box-shadow:
    8px  8px  20px rgba(0, 0, 0, 0.50),
    -4px -4px 12px rgba(255, 255, 255, 0.03);
  opacity: 0;
  transform: translateY(24px);
  /* hover transitions only — GSAP owns opacity/transform on desktop */
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.tech-card > .tech-icon {
  grid-row: 1;
  grid-column: 1;
}

.tech-card > .tech-title {
  grid-row: 1;
  grid-column: 2;
}

.tech-card > .tech-desc {
  grid-row: 2;
  grid-column: 1 / -1;
}

.tech-card > .tech-tags {
  grid-row: 3;
  grid-column: 1 / -1;
}
/* Mobile fallback — IntersectionObserver adds .in */
.tech-card.in {
  opacity: 1;
  transform: none;
  transition: opacity 0.55s ease, transform 0.55s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  transition-delay: var(--card-delay, 0s);
}

/* Hover effects */
.tech-card:hover {
  transform: scale(1.03);
  box-shadow:
    12px 12px 28px rgba(0, 0, 0, 0.60),
    -4px -4px 12px rgba(255, 255, 255, 0.04),
    0 0 0 1.5px var(--card-accent, var(--b));
}

/* Per-card accent + glow tint */
.tech-card:nth-child(1) { --card-accent: var(--g); --card-delay: 0.00s }
.tech-card:nth-child(2) { --card-accent: var(--a); --card-delay: 0.08s }
.tech-card:nth-child(3) { --card-accent: var(--b); --card-delay: 0.16s }
.tech-card:nth-child(4) { --card-accent: var(--r); --card-delay: 0.24s }
.tech-card:nth-child(5) { --card-accent: var(--g); --card-delay: 0.32s }
.tech-card:nth-child(6) { --card-accent: var(--a); --card-delay: 0.40s }

.tech-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s;
  background: radial-gradient(circle at 0% 0%, var(--card-accent, transparent) 0%, transparent 55%);
  pointer-events: none;
}
.tech-card:hover::before { opacity: 0.07 }

/* Icon box */
.tech-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  border: 1px solid var(--border2);
  background: var(--surface);
  flex-shrink: 0;
}

.tech-title {
  font-family: var(--ff-b);
  font-size: 16px;
  font-weight: 600;
  margin-top: 0;
  display: flex;
  align-items: center;
}

.tech-desc {
  font-family: var(--ff-b);
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .tech-grid { grid-template-columns: repeat(2, 1fr) }
}
@media (max-width: 600px) {
  .tech-grid { grid-template-columns: 1fr }
}
