/* =============================================================================
   TEKNOLOJİLER — tech.css
   Gruplu kartlar + sayan yüzdeler + PURE CSS progress bar dolumu.
   Sadece global tokenler. HEX yok.
   ============================================================================= */

.tech { position: relative; }

.tech::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(60% 50% at 50% 0%, rgba(194, 168, 104, 0.06), transparent 70%);
  z-index: -1;
}

/* ------------------------------ ROZET ŞERİDİ ------------------------------ */
.tech__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.tech__badge {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-dim);
  padding: 0.5rem 1.05rem;
  border-radius: 100px;
  border: 1px solid var(--line-soft);
  background: rgba(243, 234, 216, 0.02);
  transition: color 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.tech__badge:hover {
  color: var(--gold-300);
  border-color: var(--gold-700);
  transform: translateY(-2px);
}

/* --------------------------------- GRID ----------------------------------- */
.tech__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.2rem, 2.5vw, 2rem);
}

.tech__card {
  padding: clamp(1.6rem, 3vw, 2.4rem);
  display: flex;
  flex-direction: column;
  gap: clamp(1.4rem, 2.5vw, 2rem);
}

.tech__card-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--line-soft);
}
.tech__card-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  color: var(--gold-400);
  background: linear-gradient(160deg, rgba(194, 168, 104, 0.14), rgba(194, 168, 104, 0.03));
  border: 1px solid var(--line);
  flex: 0 0 auto;
}
.tech__card-icon svg { width: 24px; height: 24px; }
.tech__card-title { font-size: var(--fs-h3); }

/* ------------------------------- BECERİLER -------------------------------- */
.tech__skills { display: grid; gap: clamp(1.1rem, 2vw, 1.5rem); }

.tech__skill-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.6rem;
}
.tech__skill-name { font-weight: 500; color: var(--text); }
.tech__skill-pct {
  font-family: var(--font-display);
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  color: var(--gold-300);
  font-variant-numeric: tabular-nums;
  flex: 0 0 auto;
}

/* Progress bar */
.tech-bar {
  position: relative;
  height: 7px;
  border-radius: 100px;
  background: var(--brown-800);
  border: 1px solid var(--line-soft);
  overflow: hidden;
}
.tech-bar__fill {
  display: block;
  height: 100%;
  width: 0;                 /* başlangıç: boş */
  border-radius: inherit;
  background: var(--grad-gold);
  box-shadow: 0 0 12px rgba(194, 168, 104, 0.45);
  transition: width 1.3s var(--ease-out);
  transition-delay: 0.15s;
}

/* Parıltı dokunuşu */
.tech-bar__fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(243, 234, 216, 0.45), transparent);
  transform: translateX(-100%);
}

/* Reveal olunca dolum + parıltı (PURE CSS) */
[data-reveal].is-visible .tech-bar__fill { width: var(--level); }
[data-reveal].is-visible .tech-bar__fill::after {
  animation: techShine 1.6s var(--ease-out) 0.5s 1;
}
@keyframes techShine {
  to { transform: translateX(100%); }
}

/* ------------------------------ RESPONSIVE -------------------------------- */
@media (max-width: 640px) {
  .tech__grid { grid-template-columns: 1fr; }
}

/* Hareket azaltma */
@media (prefers-reduced-motion: reduce) {
  .tech-bar__fill { transition: none; }
  [data-reveal].is-visible .tech-bar__fill { width: var(--level); }
  [data-reveal].is-visible .tech-bar__fill::after { animation: none; }
}

/* Rozet marka glyph'i */
.tech__badge { display: inline-flex; align-items: center; gap: .5rem; }
.tech__badge-ic { display: inline-grid; place-items: center; width: 18px; height: 18px; color: var(--gold-400); flex: none; }
.tech__badge-ic svg { width: 18px; height: 18px; display: block; }
.tech__badge:hover .tech__badge-ic { color: var(--gold-300); }
