/* ══════════════════════════════════════
   TECH STACK - assets/css/tech-stack.css
   ══════════════════════════════════════ */

/* ── CSS VARS (required for standalone use) ── */
:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --secondary: #ec4899;
  --gradient: linear-gradient(135deg, #6366f1, #ec4899);
  --gradient-soft: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(236,72,153,0.08));
  --text-dark: #2c3e50;
  --text-mid: #64748b;
  --text-light: #94a3b8;
  --bg-section: #f1f5f9;
  --border: #e2e8f0;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* ── SECTION WRAPPER ── */
.tech-section {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 40%, #4c1d95 70%, #831843 100%);
  padding: 90px 0;
  position: relative;
  overflow: hidden;
}
.tech-section::before {
  content: '';
  position: absolute; top: -120px; right: -120px;
  width: 500px; height: 500px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%; pointer-events: none;
}
.tech-section::after {
  content: '';
  position: absolute; bottom: -100px; left: -100px;
  width: 400px; height: 400px;
  background: rgba(255,255,255,0.03);
  border-radius: 50%; pointer-events: none;
}

/* ── TAG ── */
.tech-tag {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 6px 18px; border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.2);
  margin-bottom: 16px;
}

/* ── TITLE ── */
.tech-title {
  font-size: clamp(28px, 3.5vw, 46px);
  font-weight: 800; color: #fff;
  letter-spacing: -1px; line-height: 1.15;
  margin-bottom: 16px;
}
.tech-title span {
  color: rgba(255,255,255,0.55);
}

/* ── SUBTITLE ── */
.tech-subtitle {
  font-size: 16px;
  color: rgba(255,255,255,0.65);
  max-width: 620px;
  line-height: 1.8;
  margin-bottom: 56px;
}

/* ── CATEGORY TABS ── */
.tech-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.tech-tab {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.65);
  font-size: 13px; font-weight: 600;
  padding: 8px 20px; border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.tech-tab:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
}
.tech-tab.active {
  background: var(--gradient);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 16px rgba(99,102,241,0.4);
}

/* ── GRID ── */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* ── TECH CARD ── */
.tech-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  padding: 28px 20px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  cursor: default;
}
.tech-card::before {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.tech-card:hover {
  background: rgba(255,255,255,0.13);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
}
.tech-card:hover::before {
  transform: scaleX(1);
}

/* ── ICON ── */
.tech-card-icon {
  width: 60px; height: 60px;
  border-radius: 16px;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  margin: 0 auto 16px;
  transition: all 0.3s;
}
.tech-card:hover .tech-card-icon {
  background: rgba(255,255,255,0.18);
  transform: scale(1.08);
}

/* ── NAME & CATEGORY ── */
.tech-card-name {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}
.tech-card-cat {
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── BADGE (optional "Popular" label) ── */
.tech-badge {
  position: absolute;
  top: 12px; right: 12px;
  background: var(--gradient);
  color: #fff;
  font-size: 9px; font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ── BOTTOM ROW (stats/note) ── */
.tech-footer {
  margin-top: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.tech-footer-stat {
  text-align: center;
}
.tech-footer-stat-num {
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 6px;
}
.tech-footer-stat-label {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
}
.tech-footer-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.15);
}

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .tech-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 991px) {
  .tech-section { padding: 70px 0; }
  .tech-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .tech-footer { gap: 24px; }
  .tech-footer-divider { display: none; }
}
@media (max-width: 600px) {
  .tech-section { padding: 60px 0; }
  .tech-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .tech-card { padding: 20px 14px; }
  .tech-card-icon { width: 48px; height: 48px; font-size: 22px; }
  .tech-tabs { gap: 8px; }
  .tech-tab { font-size: 12px; padding: 6px 14px; }
}