/* ── PANEL TECH-STACK TILT ─────────────────────────────────────────────────────
   Satu kartu besar berisi semua logo teknologi. Panel miring 3D sebagai satu
   bidang mengikuti kursor, dengan kilau (glare) yang bergerak.

   Menggantikan 16 kartu terpisah — masing-masing tilt sendiri terlihat
   terpecah dan "aneh". Satu panel = kesan tech-stack card yang kohesif.
   ───────────────────────────────────────────────────────────────────────────── */

.tilt-stage {
  /* Ruang untuk panel miring tanpa terpotong */
  perspective: 1100px;
  perspective-origin: 50% 50%;
}

.tilt-panel {
  position: relative;
  padding: 1.75rem 1.6rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(17, 17, 20, 0.88);
  backdrop-filter: blur(14px);
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.5s var(--ease), border-color 0.4s var(--ease),
              box-shadow 0.4s var(--ease);
  overflow: hidden;
}

.tilt-panel.is-active {
  transition: transform 0.12s linear, border-color 0.4s var(--ease),
              box-shadow 0.4s var(--ease);
  border-color: rgba(255, 122, 69, 0.35);
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 122, 69, 0.12);
}

/* Kilau yang mengikuti kursor */
.tilt-glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  z-index: 1;
}

.tilt-content {
  position: relative;
  z-index: 2;
  /* Isi ikut sedikit terangkat — memperkuat kesan kedalaman */
  transform: translateZ(28px);
}

/* ── Grup teknologi di dalam panel ───────────────────────────────────────────── */

.tech-group { margin-bottom: 1.4rem; }
.tech-group:last-child { margin-bottom: 0; }

.tech-group-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--text-dim);
  margin: 0 0 0.75rem;
}

.tech-group-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line), transparent);
}

/* ── Baris logo ──────────────────────────────────────────────────────────────── */

.tech-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
}

/* Item logo: bersih, tanpa border — menyatu dengan panel */
.tech-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 0.4rem 0.6rem;
  border-radius: 10px;
  cursor: pointer;
  --tech-color: var(--accent);
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}

.tech-item:hover {
  background: color-mix(in srgb, var(--tech-color) 10%, transparent);
  transform: translateZ(12px) scale(1.06);
}

/* Logo dalam TILE SERAGAM (kotak rounded 256×256 yang sama untuk semua).
   Semua logo kini punya dimensi identik — baris grid pasti rata.
   Ukuran tile sedikit lebih besar dari logo transparan sebelumnya karena
   tile adalah elemen visual (bukan sekadar glyph). */
.tech-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  opacity: 0.92;
  transition: opacity 0.32s var(--ease), transform 0.32s var(--ease),
              filter 0.32s var(--ease);
}

.tech-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 7px;
}

.tech-item:hover .tech-icon {
  opacity: 1;
  transform: scale(1.1);
  filter: drop-shadow(0 3px 12px color-mix(in srgb, var(--tech-color) 55%, transparent));
}

.tech-name {
  font-size: 0.68rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-faint);
  text-align: center;
  line-height: 1.15;
  transition: color 0.3s var(--ease);
}

.tech-item:hover .tech-name { color: var(--text); }

/* Klik: pulse halus */
.tech-item.is-pulse .tech-icon { animation: tech-pulse 0.45s var(--ease); }

@keyframes tech-pulse {
  0%   { transform: scale(1); }
  45%  { transform: scale(0.88); }
  100% { transform: scale(1); }
}

/* ── Responsif ───────────────────────────────────────────────────────────────── */

@media (max-width: 720px) {
  .tech-row { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.4rem; }
  .tech-icon { width: 28px; height: 28px; }
  .tech-icon svg { border-radius: 6px; }
  .tech-name { font-size: 0.62rem; }
  .tilt-panel { padding: 1.35rem 1.1rem; }
}

@media (max-width: 420px) {
  .tech-row { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.3rem; }
  .tech-icon { width: 24px; height: 24px; }
  .tech-icon svg { border-radius: 5px; }
  .tech-name { font-size: 0.56rem; }
}

/* ── Layout section Tentang ──────────────────────────────────────────────────── */

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 960px) {
  .about-layout { grid-template-columns: 1fr; gap: 2rem; }
}

/* Panel teks: latar semi-solid supaya terbaca di atas background beranimasi */
.about-body {
  padding: 1.75rem 1.6rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(19, 19, 22, 0.82);
  backdrop-filter: blur(10px);
}

.about-body p {
  color: var(--text-dim);
  max-width: 62ch;
  margin: 0 0 1.15rem;
  line-height: 1.72;
}

.about-body p:last-child { margin-bottom: 0; }

/* ── Reduced motion ──────────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .tilt-panel,
  .tilt-panel.is-active {
    transform: none !important;
    transition: none;
  }
  .tilt-glare { display: none; }
  .tech-item { transition: none; }
  .tech-item:hover { transform: none; }
  .tech-item.is-pulse .tech-icon { animation: none; }
}
