/* technologies.css */
.tech-counter-line {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.tech-tabs-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin-bottom: 36px;
}
.tech-tabs-wrap::-webkit-scrollbar { display: none; }

.tech-tabs {
  display: flex;
  gap: 8px;
  width: max-content;
  padding: 6px;
  background: rgba(255,255,255,.05);
  border-radius: 50px;
  margin: 0 auto;
}
.tech-tab {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 20px;
  border-radius: 50px;
  border: none;
  background: transparent;
  color: rgba(255,255,255,.55);
  font-family: var(--font-head);
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}
.tech-tab i { font-size: .85rem; }
.tech-tab:hover { color: var(--white); background: rgba(255,255,255,.08); }
.tech-tab.active {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(26,110,245,.4);
}

.tech-panel { display: none; }
.tech-panel.active {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
  animation: fadeInUp .35s ease;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.tech-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 18px 12px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-sm);
  cursor: default;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition),
              border-color var(--transition), background var(--transition);
}
.tech-badge::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 2px;
  background: #6D28D9;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s ease;
}
.tech-badge.visible::after,
.tech-badge:hover::after { transform: scaleX(1); }
.tech-badge:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,.1);
  border-color: var(--accent);
  box-shadow: 0 6px 20px rgba(26,110,245,.25);
}
.tech-badge-icon {
  font-size: 2rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
}
.tech-badge-icon i.fa,
.tech-badge-icon i.fas { font-size: 1.6rem; color: var(--accent); }
.tech-badge-name {
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 600;
  color: rgba(255,255,255,.85);
  text-align: center;
  line-height: 1.3;
}

@media (max-width: 768px) {
  .tech-panel.active { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
  .tech-tab { padding: 8px 14px; font-size: .78rem; }
}
@media (max-width: 480px) {
  .tech-panel.active { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); }
}
