/* ==========================================================================
   MODULE 05: NEXUS — SKILLS & EXPERTISE (TECHNICAL BENTO GRID)
   Interactive Bento layout, categorized tech chips, no arbitrary percentages.
   ========================================================================== */

.nexus-wrapper {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 8rem 2rem 5rem;
}

.nexus-header {
  margin-bottom: 3.5rem;
  text-align: left;
}

.nexus-title {
  font-family: var(--font-sans);
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--color-charcoal);
  line-height: 1.1;
  margin-bottom: 0.8rem;
}

.nexus-subtitle {
  font-size: 1.05rem;
  color: var(--color-slate);
  max-width: 680px;
  line-height: 1.7;
}

/* Category Filter Pills */
.nexus-filter-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.nexus-filter-btn {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.55rem 1.25rem;
  border-radius: 9999px;
  background: var(--bg-white);
  border: 1px solid var(--color-border);
  color: var(--color-slate);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.nexus-filter-btn:hover {
  color: var(--color-charcoal);
  border-color: var(--color-charcoal);
  transform: translateY(-2px);
}

.nexus-filter-btn.active {
  background: var(--color-charcoal);
  border-color: var(--color-charcoal);
  color: #FFFFFF;
}

/* Bento Grid Architecture */
.nexus-bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.8rem;
}

.nexus-bento-card {
  background: var(--bg-white);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 2.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  transition: transform 0.35s var(--ease-editorial), border-color 0.35s ease, box-shadow 0.35s ease;
}

.nexus-bento-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-slate);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08);
}

/* Bento Span Sizes */
.bento-col-8 {
  grid-column: span 8;
}

.bento-col-4 {
  grid-column: span 4;
}

.bento-col-6 {
  grid-column: span 6;
}

.bento-col-12 {
  grid-column: span 12;
}

.bento-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.bento-cat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--color-charcoal);
}

.bento-cat-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--color-charcoal);
  margin-bottom: 0.4rem;
}

.bento-cat-desc {
  font-size: 0.92rem;
  color: var(--color-slate);
  line-height: 1.6;
  margin-bottom: 1.8rem;
}

/* Skills Cluster Inside Bento */
.bento-skills-cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.tech-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 1.05rem;
  border-radius: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--color-border);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-charcoal);
  transition: all var(--transition-fast);
}

.tech-chip:hover {
  background: #FFFFFF;
  border-color: var(--color-emerald);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.15);
}

.tech-chip i {
  color: var(--color-muted-blue);
  font-size: 0.95rem;
}

.tech-chip-type {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--color-slate);
  text-transform: uppercase;
}

@media (max-width: 1024px) {
  .bento-col-8, .bento-col-4, .bento-col-6 {
    grid-column: span 12;
  }
}

