/* components.css — Botões, Cards, Tags, Nav, Timeline
   Depende de tokens.css e base.css
-------------------------------------------------- */

/* ── Botão Primário ──────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-primary);
  font-weight: var(--font-weight-default);
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-text-primary);
  padding: var(--space-3) var(--space-8);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition:
    background var(--duration-normal) var(--ease-out),
    box-shadow var(--duration-normal) var(--ease-out),
    border-color var(--duration-normal) var(--ease-out);
  text-decoration: none;
  white-space: nowrap;
}

.btn-outline {
  background: transparent;
  border: var(--border-accent);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background: var(--color-accent-electric-dim);
  box-shadow: var(--glow-accent);
}

.btn-ghost {
  background: transparent;
  border: var(--border-thin);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: var(--color-accent-mist-dim);
  border-color: rgba(182, 204, 215, 0.4);
}

/* ── Navigation ─────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-8);
  background: var(--color-bg-overlay);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: var(--border-thin);
  transition: background var(--duration-normal) var(--ease-out);
}

.nav-logo {
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-text-primary);
  font-weight: var(--font-weight-default);
}

.nav-logo span {
  font-weight: var(--font-weight-emphasis);
  color: var(--color-accent-electric-text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav-link {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-default);
  letter-spacing: var(--tracking-wide);
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent-electric);
  transition: width var(--duration-normal) var(--ease-out);
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--color-text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--color-text-primary);
}

.nav-link[href="#projects"] {
  font-weight: var(--font-weight-emphasis) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--color-text-primary);
  transition: all var(--duration-normal) var(--ease-out);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ── Tech Tag ────────────────────────────────────── */
.tech-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-default);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-accent-mist);
  border: 1px solid rgba(182, 204, 215, 0.22);
  border-radius: var(--radius-full);
  padding: var(--space-1) var(--space-3);
  white-space: nowrap;
  transition:
    border-color var(--duration-fast) var(--ease-out),
    color var(--duration-fast) var(--ease-out);
}

.tech-tag:hover {
  border-color: rgba(35, 61, 255, 0.45);
  color: var(--color-text-primary);
}

.tech-tag-icon {
  width: 13px;
  height: 13px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: transparent;
}

/* ── Card Projeto ────────────────────────────────── */
.card {
  background: var(--color-bg-raised);
  border: var(--border-thin);
  border-radius: var(--radius-md);
  padding: var(--space-8);
  transition:
    transform var(--duration-normal) var(--ease-out),
    border-color var(--duration-normal) var(--ease-out),
    box-shadow var(--duration-normal) var(--ease-out);
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(35, 61, 255, 0.32);
  box-shadow: var(--shadow-card);
}

.card-label {
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-accent-electric-text);
  margin-bottom: var(--space-2);
}

.card-title {
  font-size: var(--text-md);
  font-weight: var(--font-weight-default);
  color: var(--color-text-primary);
  margin-bottom: var(--space-3);
  line-height: var(--leading-tight);
}

.card-body {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-6);
}

.card-footer {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
}

/* ── Timeline (Experiência / Educação) ───────────── */
.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom,
      transparent,
      rgba(182, 204, 215, 0.3) 10%,
      rgba(182, 204, 215, 0.3) 90%,
      transparent);
}

.timeline-item {
  padding-left: var(--space-8);
  position: relative;
  margin-bottom: var(--space-6);
}

.exp-card-box {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  transition: background var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.exp-card-box:hover {
  border-color: rgba(182, 204, 215, 0.25);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.timeline-item.is-expanded .exp-card-box {
  border-color: rgba(35, 61, 255, 0.3);
}

.exp-card-header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}

.exp-card-logo {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(182, 204, 215, 0.15);
  object-fit: contain;
  flex-shrink: 0;
  background: var(--color-bg-deep);
  padding: 2px;
  margin-top: 2px;
}

.exp-card-meta-wrap {
  flex-grow: 1;
  min-width: 0;
}

.timeline-title-group {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-2) var(--space-3);
}

/* Horizontal scrollable tags row for collapsed & expanded cards */
.exp-tags-scroll-row {
  display: flex;
  flex-wrap: nowrap;
  gap: var(--space-2);
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 4px;
  margin-top: var(--space-2);
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.exp-tags-scroll-row::-webkit-scrollbar {
  height: 4px;
}

.exp-tags-scroll-row::-webkit-scrollbar-thumb {
  background: rgba(182, 204, 215, 0.25);
  border-radius: 4px;
}

.exp-tags-scroll-row .tech-tag {
  white-space: nowrap;
  flex-shrink: 0;
}

/* Card-level Toggle Button */
.exp-card-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 14px;
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-accent-mist);
  background: rgba(35, 61, 255, 0.08);
  border: 1px solid rgba(35, 61, 255, 0.22);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  align-self: flex-start;
  margin-left: auto;
}

.exp-card-toggle-btn:hover,
.exp-card-toggle-btn:focus-visible {
  background: rgba(35, 61, 255, 0.2);
  color: var(--color-text-primary);
  border-color: var(--color-accent-electric);
  transform: translateY(-1px);
}

.exp-card-toggle-icon {
  font-size: 10px;
  transition: transform 0.2s ease;
}

/* Collapsible details section */
.exp-card-details {
  transition: opacity 0.25s ease, margin 0.35s ease;
}

.timeline-item.is-collapsed .exp-card-details {
  display: none;
}

.timeline-item.is-expanded .exp-card-details {
  display: block;
  opacity: 1;
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(182, 204, 215, 0.12);
}

@media (max-width: 640px) {
  .exp-card-header {
    flex-wrap: wrap;
  }
  .exp-card-toggle-btn {
    width: 100%;
    justify-content: center;
    margin-top: var(--space-2);
  }
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -4px;
  top: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-accent-electric);
  box-shadow: 0 0 8px rgba(35, 61, 255, 0.5);
}

.timeline-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-3);
  margin-bottom: var(--space-1);
}

.timeline-role {
  font-size: var(--text-md);
  font-weight: var(--font-weight-default);
  color: var(--color-text-primary);
  line-height: var(--leading-tight);
}

.timeline-company {
  font-size: var(--text-sm);
  color: var(--color-accent-mist);
  letter-spacing: var(--tracking-wide);
}

.timeline-date {
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide);
  color: var(--color-text-muted);
  margin-left: auto;
}

.timeline-bullets {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-4);
  margin-bottom: var(--space-6);
}

.timeline-bullet {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  padding-left: var(--space-4);
  position: relative;
}

.timeline-bullet::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 1px;
  background: var(--color-accent-mist);
  opacity: 0.5;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

/* ── Métrica / Stat ──────────────────────────────── */
.stat-block {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.stat-number {
  font-size: var(--text-2xl);
  font-weight: var(--font-weight-emphasis);
  color: var(--color-text-primary);
  line-height: 1;
  letter-spacing: var(--tracking-tight);
}

.stat-label {
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* ── Social Link ─────────────────────────────────── */
.social-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-wide);
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
  padding: var(--space-2);
  border-radius: var(--radius-sm);
}

.social-link:hover,
.social-link:focus-visible {
  color: var(--color-text-primary);
}

.social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ── Divider ─────────────────────────────────────── */
.divider {
  width: 40px;
  height: 1px;
  background: var(--color-accent-electric);
  opacity: 0.6;
  margin: var(--space-6) 0;
}

/* ── Badge de Papel (SPEAKER / EXHIBITOR) ─────────── */
.role-badge {
  font-size: 10px;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  padding: 2px var(--space-2);
  border-radius: var(--radius-sm);
  font-weight: var(--font-weight-default);
}

.role-badge--speaker {
  background: rgba(35, 61, 255, 0.18);
  color: #93a8ff;
  border: 1px solid rgba(35, 61, 255, 0.3);
}

.role-badge--exhibitor {
  background: rgba(182, 204, 215, 0.12);
  color: var(--color-accent-mist);
  border: var(--border-thin);
}

.role-badge--listener {
  background: transparent;
  color: var(--color-text-muted);
  border: 1px solid rgba(182, 204, 215, 0.12);
}

/* ── Grid de Eventos ─────────────────────────────── */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-4);
}

.event-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-6);
  border: var(--border-thin);
  border-radius: var(--radius-md);
  background: var(--color-bg-raised);
  transition: border-color var(--duration-fast) var(--ease-out);
}

.event-card:hover {
  border-color: rgba(182, 204, 215, 0.35);
}

.event-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-2);
}

.event-card-name {
  font-size: var(--text-sm);
  color: var(--color-text-primary);
  line-height: var(--leading-tight);
}

.event-card-meta {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: var(--tracking-wide);
}

/* ── Hackathon List ──────────────────────────────── */
.hackathon-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-3);
}

.hackathon-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-4);
  border: 1px solid rgba(182, 204, 215, 0.15);
  border-radius: var(--radius-md);
  transition: border-color var(--duration-fast) var(--ease-out);
}

.hackathon-item:hover {
  border-color: rgba(35, 61, 255, 0.35);
}

.hackathon-name {
  font-size: var(--text-sm);
  color: var(--color-text-primary);
  line-height: var(--leading-tight);
}

.hackathon-meta {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: var(--tracking-wide);
}

/* ── Responsivo: nav mobile ─────────────────────── */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    background: var(--color-bg-overlay);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: var(--space-4) var(--space-8) var(--space-8);
    border-bottom: var(--border-thin);
    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition:
      opacity var(--duration-normal) var(--ease-out),
      transform var(--duration-normal) var(--ease-out),
      visibility var(--duration-normal) var(--ease-out);
  }

  .nav-links.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
    visibility: visible;
  }

  .nav-link {
    padding: var(--space-3) 0;
    width: 100%;
    border-bottom: 1px solid rgba(182, 204, 215, 0.08);
  }

  .nav-link::after {
    display: none;
  }
}

/* ── Exp Filter & Projects ─────────────────────── */
.exp-filter-bar {
  display: flex;
  flex-wrap: nowrap;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-block: 4px;
  padding-inline: 2px;
  cursor: grab;
}

.exp-filter-bar:active {
  cursor: grabbing;
}

.exp-filter-bar::-webkit-scrollbar {
  display: none;
}

.filter-btn {
  font-family: var(--font-primary);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide);
  color: var(--color-text-muted);
  background: transparent;
  border: 1px solid rgba(182, 204, 215, 0.22);
  border-radius: var(--radius-full);
  padding: var(--space-1) var(--space-3);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  flex-shrink: 0;
  white-space: nowrap;
  user-select: none;
}

.filter-btn:hover {
  border-color: rgba(35, 61, 255, 0.45);
  color: var(--color-text-primary);
}

.filter-btn.active {
  background: rgba(35, 61, 255, 0.15);
  color: var(--color-accent-electric-text);
  border-color: rgba(35, 61, 255, 0.4);
}

.placeholder-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-12);
  background: rgba(182, 204, 215, 0.02);
  border: 1px dashed rgba(182, 204, 215, 0.15);
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
}

.placeholder-icon {
  margin-bottom: var(--space-4);
  opacity: 0.5;
}

.placeholder-icon svg {
  width: 32px;
  height: 32px;
}

.placeholder-label {
  font-size: var(--text-md);
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
}

.placeholder-hint {
  font-size: var(--text-sm);
  max-width: 400px;
}

/* ── Lang Switcher & A11y ──────────────────────── */
.lang-switcher {
  display: flex;
  gap: var(--space-1);
  background: rgba(182, 204, 215, 0.05);
  padding: var(--space-1);
  border-radius: var(--radius-full);
}

.lang-btn {
  font-family: var(--font-primary);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-muted);
  background: transparent;
  border: none;
  border-radius: var(--radius-full);
  padding: var(--space-1) var(--space-3);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lang-btn.active {
  background: var(--color-accent-electric-text);
  color: var(--color-bg-base);
}

.a11y-trigger {
  background: transparent;
  border: 1px solid rgba(182, 204, 215, 0.2);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-text-muted);
  transition: all var(--duration-fast) var(--ease-out);
}

.a11y-trigger:hover,
.a11y-trigger[aria-expanded="true"] {
  color: var(--color-text-primary);
  border-color: var(--color-accent-electric-text);
  background: rgba(128, 153, 255, 0.1);
}

.a11y-trigger svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.a11y-panel {
  position: fixed;
  top: 70px;
  right: var(--space-4);
  background: var(--color-bg-raised);
  border: var(--border-thin);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  width: 280px;
  z-index: 900;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--duration-normal) var(--ease-out);
}

.a11y-panel.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.a11y-panel-title {
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: var(--border-thin);
}

.a11y-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-4);
}

.a11y-row:last-child {
  margin-bottom: 0;
}

.a11y-row-label {
  display: flex;
  flex-direction: column;
}

.a11y-row-label span {
  font-size: var(--text-sm);
  color: var(--color-text-primary);
}

.a11y-row-label small {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.font-size-controls {
  display: flex;
  gap: var(--space-1);
  background: rgba(182, 204, 215, 0.05);
  padding: var(--space-1);
  border-radius: var(--radius-sm);
}

.font-size-btn {
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: var(--font-primary);
}

.font-size-btn.active {
  background: var(--color-accent-electric-text);
  color: var(--color-bg-base);
}

.a11y-toggle {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 24px;
  cursor: pointer;
}

.a11y-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.a11y-toggle-track {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(182, 204, 215, 0.2);
  border-radius: 24px;
  transition: .3s;
}

.a11y-toggle-track:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: var(--color-text-muted);
  border-radius: 50%;
  transition: .3s;
}

.a11y-toggle input:checked+.a11y-toggle-track {
  background-color: var(--color-accent-electric-text);
}

.a11y-toggle input:checked+.a11y-toggle-track:before {
  transform: translateX(16px);
  background-color: var(--color-bg-base);
}

.a11y-toggle input:focus-visible+.a11y-toggle-track {
  outline: 2px solid var(--color-accent-electric-text);
  outline-offset: 2px;
}

/* ── Achievements Image ──────────────────────── */
.achievement-img {
  max-height: 48px;
  max-width: 150px;
  object-fit: contain;
  opacity: 0.9;
  transition: opacity var(--duration-fast) var(--ease-out);
}

.achievement-item:hover .achievement-img {
  opacity: 1;
}


/* ── Evidence Carousel & Lightbox ─────────────── */
.evidence-carousel {
  margin-top: var(--space-4);
  background: rgba(30, 45, 53, 0.35);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  border: 1px solid rgba(182, 204, 215, 0.12);
  max-width: 480px;
}

.evidence-label {
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-accent-electric-text);
  margin-bottom: var(--space-3);
  display: block;
}

.evidence-slider-container {
  display: flex;
  align-items: center;
  position: relative;
  gap: var(--space-2);
}

.evidence-viewport {
  overflow: hidden;
  width: 100%;
  border-radius: var(--radius-sm);
  background: rgba(10, 20, 25, 0.2);
}

.evidence-slide-track {
  display: flex;
  transition: transform var(--duration-normal) var(--ease-out);
  width: 100%;
}

.evidence-slide {
  flex: 0 0 100%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 120px;
  background: rgba(0, 0, 0, 0.15);
  outline: none;
  cursor: pointer;
}

.evidence-slide:focus-visible {
  outline: 2px solid var(--color-accent-electric-text);
  outline-offset: -2px;
}

.evidence-thumb {
  max-height: 100px;
  max-width: 90%;
  object-fit: contain;
  border-radius: var(--radius-xs);
  transition: transform var(--duration-fast) var(--ease-out);
}

.evidence-slide:hover .evidence-thumb {
  transform: scale(1.04);
}

.evidence-arrow {
  background: rgba(182, 204, 215, 0.1);
  border: none;
  color: var(--color-text-muted);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-family: monospace;
  font-weight: bold;
  transition: background var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out), transform var(--duration-fast) var(--ease-out);
}

.evidence-arrow:hover {
  background: var(--color-accent-electric-text);
  color: var(--color-bg-base);
  transform: scale(1.1);
}

.evidence-dots {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.evidence-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(182, 204, 215, 0.25);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-out);
}

.evidence-dot.active {
  background: var(--color-accent-electric-text);
}

/* Lightbox Modal */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(30, 45, 53, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity var(--duration-normal) var(--ease-out), visibility var(--duration-normal) var(--ease-out);
  backdrop-filter: blur(4px);
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.lightbox-content {
  max-width: 85%;
  max-height: 80%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  position: relative;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.lightbox-caption {
  color: var(--color-text-primary);
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  text-align: center;
  letter-spacing: var(--tracking-wide);
  max-width: 600px;
  line-height: var(--leading-relaxed);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.lightbox-close {
  position: absolute;
  top: var(--space-6);
  right: var(--space-6);
  font-size: var(--text-3xl);
  background: none;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: color var(--duration-fast) var(--ease-out);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.lightbox-close:hover {
  color: var(--color-text-primary);
}

.lightbox-arrow {
  background: rgba(182, 204, 215, 0.08);
  border: 1px solid rgba(182, 204, 215, 0.15);
  color: var(--color-text-primary);
  font-size: var(--text-lg);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition: background var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out);
}

.lightbox-arrow:hover {
  background: rgba(35, 61, 255, 0.2);
  border-color: var(--color-accent-electric-text);
}

.lightbox-arrow.prev {
  left: var(--space-6);
}

.lightbox-arrow.next {
  right: var(--space-6);
}


/* ── Navbar Avatar Logo ────────────────────────── */
.nav-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(182, 204, 215, 0.4);
  transition: border-color var(--duration-fast) var(--ease-out), transform var(--duration-fast) var(--ease-out);
  display: block;
}

.nav-logo:hover .nav-avatar {
  border-color: var(--color-accent-electric-text);
  transform: scale(1.05);
}


/* ── Dynamic Card Logos ────────────────────────── */
.card-layout-with-logo {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  width: 100%;
}

.card-logo-container {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--color-bg-deep);
  border: 1px solid rgba(182, 204, 215, 0.12);
  padding: 4px;
}

.card-logo-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.card-logo-content {
  flex-grow: 1;
  min-width: 0;
}

/* ── Timeline Body Box ────────────────────────── */
.timeline-body-box {
  border: 1px solid rgba(182, 204, 215, 0.15);
  border-radius: var(--radius-md);
  padding: var(--space-5) var(--space-6);
  margin-top: var(--space-4);
  background: transparent;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.timeline-body-box .timeline-bullets {
  margin: 0;
  padding-left: var(--space-2);
}

.timeline-body-box .timeline-tags {
  margin: 0;
  padding-top: var(--space-1);
  padding-left: var(--space-6);
  /* Aligns with bullet point text */
}

/* ── Course Card & Credential Button ──────────── */
.course-card {
  display: block;
  padding: var(--space-6);
  border: var(--border-thin);
  border-radius: var(--radius-md);
  background: var(--color-bg-raised);
}

.credential-btn {
  margin-top: var(--space-2);
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--color-accent-electric-dim);
  /* Balanced fill color from Design System */
  border: 1px solid rgba(182, 204, 215, 0.2);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  color: var(--color-text-primary);
  text-decoration: none;
  transition: background var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out);
  font-family: 'Glacial Indifference', sans-serif;
  cursor: pointer;
}

.credential-btn:hover {
  background: rgba(35, 61, 255, 0.24);
  border-color: var(--color-accent-electric-text);
}

/* ── Universal Filter Bar Spacing & Responsive Horizontal Scroll ── */
.filter-bar {
  display: flex;
  flex-wrap: nowrap;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-block: 4px;
  padding-inline: 2px;
  cursor: grab;
}

.filter-bar:active {
  cursor: grabbing;
}

.filter-bar::-webkit-scrollbar {
  display: none;
}

/* ── Filter Counter Tag & Header Layout ────────────────── */
.filter-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
  width: 100%;
}

.filter-section-header .exp-filter-bar,
.filter-section-header .filter-bar,
.filter-section-header .project-filter-bar {
  margin-bottom: 0 !important;
  flex: 1 1 auto;
  min-width: 0;
}

.total-counter-tag {
  font-family: var(--font-primary);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide);
  color: var(--color-accent-mist);
  background: rgba(182, 204, 215, 0.05);
  border: 1px solid rgba(182, 204, 215, 0.18);
  border-radius: var(--radius-full);
  padding: var(--space-1) var(--space-3);
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-weight: var(--font-weight-emphasis);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all var(--duration-fast) var(--ease-out);
  flex-shrink: 0;
}


/* ── Navigation Dropdowns ──────────────────────── */
.nav-links li {
  position: relative;
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity var(--duration-fast) var(--ease-out), transform var(--duration-fast) var(--ease-out), visibility var(--duration-fast);
  background: var(--color-bg-raised);
  border: 1px solid rgba(182, 204, 215, 0.15);
  border-radius: var(--radius-md);
  padding: var(--space-2) 0;
  min-width: 220px;
  max-width: 280px;
  box-shadow: var(--shadow-lg);
  z-index: 100;
  max-height: 180px;
  overflow-y: auto;
  list-style: none;
}

.nav-links li:hover .nav-dropdown,
.nav-links li:focus-within .nav-dropdown {
  opacity: 1;
  pointer-events: all;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown::-webkit-scrollbar {
  width: 4px;
}

.nav-dropdown::-webkit-scrollbar-track {
  background: transparent;
}

.nav-dropdown::-webkit-scrollbar-thumb {
  background: rgba(182, 204, 215, 0.2);
  border-radius: var(--radius-full);
}

.nav-dropdown::-webkit-scrollbar-thumb:hover {
  background: rgba(182, 204, 215, 0.4);
}

.nav-dropdown-link {
  display: flex;
  flex-direction: column;
  padding: var(--space-2) var(--space-4);
  color: var(--color-text-primary);
  text-decoration: none;
  font-size: var(--text-xs);
  transition: background var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out);
  line-height: var(--leading-tight);
  text-align: left;
  font-family: var(--font-primary);
}

.nav-dropdown-link:hover {
  background: rgba(35, 61, 255, 0.15);
  color: var(--color-accent-electric-text);
}

.nav-dropdown-role {
  font-weight: var(--font-weight-emphasis);
  font-size: var(--text-xs);
}

.nav-dropdown-company {
  color: var(--color-text-muted);
  font-size: var(--text-xxs);
  margin-top: 2px;
}

@media (max-width: 768px) {
  .nav-dropdown {
    position: static !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: all !important;
    box-shadow: none !important;
    border: none !important;
    border-left: 2px solid rgba(182, 204, 215, 0.15) !important;
    border-radius: 0 !important;
    padding: 0 0 0 var(--space-4) !important;
    margin-left: var(--space-2) !important;
    margin-top: var(--space-2) !important;
    margin-bottom: var(--space-2) !important;
    max-height: 180px !important;
    overflow-y: auto !important;
    background: transparent !important;
    display: none !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    transition: none !important;
    /* disable transitions on mobile to prevent delays */
  }

  /* High-specificity selectors to override hover/focus-within hidden state on mobile */
  .nav-links li .nav-dropdown.open-mobile,
  .nav-dropdown.open-mobile {
    display: block !important;
  }

  .nav-links li:hover .nav-dropdown,
  .nav-links li:focus-within .nav-dropdown {
    display: none !important;
  }
}

/* Mobile subnavigation toggle */
.nav-item-row {
  display: contents;
}

.nav-mobile-toggle {
  display: none;
}

@media (max-width: 768px) {
  .nav-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    border-bottom: 1px solid rgba(182, 204, 215, 0.08);
  }

  /* Submenus are desktop-only — hide the chevron toggle on mobile */
  .nav-mobile-toggle {
    display: none !important;
  }

  .nav-link {
    width: auto !important;
    flex-grow: 1 !important;
    border-bottom: none !important;
    padding: var(--space-3) 0 !important;
  }

  .nav-dropdown-link {
    box-sizing: border-box !important;
    white-space: normal !important;
    word-break: break-word !important;
  }
}

/* ── Specific Achievements (Timeline Mini Footer) ── */
.specific-achievements-box {
  background: var(--color-bg-raised);
  border: 1px solid rgba(182, 204, 215, 0.08);
  border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-4);
  margin-top: var(--space-3);
  margin-bottom: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.specific-achievements-label {
  font-family: var(--font-primary);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  color: var(--color-text-muted);
  font-weight: var(--font-weight-emphasis);
}

.specific-achievements-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.specific-achievement-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-family: var(--font-primary);
}

.specific-achievement-tag {
  background: var(--color-accent-electric-dim);
  /* Matches courses' show credential button */
  color: var(--color-accent-electric-text);
  font-size: 9px;
  font-weight: var(--font-weight-emphasis);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  padding: 2px 8px;
  border-radius: var(--radius-xs);
  flex-shrink: 0;
  line-height: var(--leading-none);
  display: inline-flex;
  align-items: center;
  margin-top: 1px;
}

.specific-achievement-desc {
  font-size: var(--text-xs);
  line-height: var(--leading-relaxed);
  color: var(--color-text-primary);
  font-weight: var(--font-weight-default);
  /* Thin Glacial Indifference */
}

/* Ensure timeline alignment works on small viewports */
@media (max-width: 480px) {
  .specific-achievement-item {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-1);
  }

  .specific-achievement-tag {
    margin-top: 0;
  }
}

/* ── Company Logo Headline Ticker ──────────────── */
.company-ticker-wrapper {
  margin: var(--space-3) 0 var(--space-6) 0;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 12px 20px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.company-ticker-inner {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
}

.company-ticker-track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  padding: 4px;
}

.company-card {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  padding: 8px;
  box-sizing: border-box;
  flex-shrink: 0;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              background 0.25s var(--ease-out),
              border-color 0.25s var(--ease-out),
              box-shadow 0.25s var(--ease-out);
  position: relative;
  outline: none;
}

.company-card:hover,
.company-card:focus-visible {
  transform: translateY(-4px) scale(1.08);
  background: rgba(255, 255, 255, 0.16);
  border-color: var(--color-accent-teal, #00e5ff);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 16px rgba(0, 229, 255, 0.25);
}

.company-card:active {
  transform: translateY(-2px) scale(1.02);
}

.company-card-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  border-radius: 4px;
}

.company-card-name-tag {
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--color-text-primary);
  font-size: 10px;
  font-weight: var(--font-weight-emphasis);
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 10;
}

.company-card:hover .company-card-name-tag,
.company-card:focus-visible .company-card-name-tag {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.company-card-fallback {
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-emphasis);
  color: var(--color-text-primary);
}

/* ── Target Highlight Flash Animation ── */
.highlight-flash {
  animation: flashTarget 2.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

@keyframes flashTarget {
  0% {
    box-shadow: 0 0 0 2px var(--color-accent-teal, #00e5ff), 0 0 24px rgba(0, 229, 255, 0.5);
    transform: scale(1.01);
  }
  40% {
    box-shadow: 0 0 0 2px var(--color-accent-teal, #00e5ff), 0 0 32px rgba(0, 229, 255, 0.4);
    transform: scale(1.005);
  }
  100% {
    box-shadow: none;
    transform: scale(1);
  }
}

/* ── Company Mini-Modal (/experience-select) ──────────────── */
.company-select-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration-normal) var(--ease-out),
              visibility var(--duration-normal) var(--ease-out);
  padding: var(--space-4);
  box-sizing: border-box;
}

.company-select-modal.active {
  opacity: 1;
  visibility: visible;
}

.company-select-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 15, 26, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.company-select-modal-dialog {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 520px;
  background: var(--color-bg-card, #141e2e);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.55), 0 0 20px rgba(0, 229, 255, 0.08);
  transform: scale(0.95) translateY(12px);
  transition: transform var(--duration-normal) var(--ease-out);
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.company-select-modal.active .company-select-modal-dialog {
  transform: scale(1) translateY(0);
}

.company-select-modal-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--color-text-muted);
  font-size: 20px;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
  transition: all var(--duration-fast) var(--ease-out);
}

.company-select-modal-close:hover,
.company-select-modal-close:focus-visible {
  background: rgba(255, 255, 255, 0.18);
  color: var(--color-text-primary);
  border-color: var(--color-accent-teal);
}

.company-select-modal-header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  margin-bottom: var(--space-5);
}

.company-select-modal-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
  padding: 6px;
  box-sizing: border-box;
}

.company-select-modal-header-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.company-select-modal-title {
  font-family: var(--font-primary);
  font-size: var(--text-xl);
  font-weight: var(--font-weight-emphasis);
  color: var(--color-text-primary);
  margin: 0;
}

.company-select-modal-subtitle {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
}

.company-select-modal-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  overflow-y: auto;
  padding-right: 4px;
}

.company-select-modal-body::-webkit-scrollbar {
  width: 4px;
}
.company-select-modal-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.company-select-modal-section-title {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--color-accent-teal);
  margin: 0 0 var(--space-2) 0;
  font-weight: var(--font-weight-emphasis);
}

.company-select-modal-about-text {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--color-text-muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  padding: var(--space-4);
}

.company-select-modal-roles-scroll {
  max-height: 200px;
  overflow-y: auto;
}

.company-select-modal-roles-scroll::-webkit-scrollbar {
  width: 4px;
}
.company-select-modal-roles-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.company-select-modal-roles-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.company-modal-role-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  color: var(--color-text-primary);
  font-size: var(--text-xs);
  text-align: left;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
}

.company-modal-role-btn:hover,
.company-modal-role-btn:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--color-accent-teal);
  transform: translateX(4px);
}

.company-modal-role-title {
  font-weight: var(--font-weight-emphasis);
  color: var(--color-text-primary);
}

.company-modal-role-date {
  color: var(--color-text-muted);
  font-size: 11px;
}

.company-modal-role-arrow {
  color: var(--color-accent-teal);
  font-size: 14px;
  margin-left: 8px;
}

@media (prefers-reduced-motion: reduce) {
  .company-ticker-track {
    animation: none;
    overflow-x: auto;
    width: 100%;
  }
}

/* ── Provider Ticker (courses-select) — Mirrors company-ticker ── */
.provider-ticker-wrapper {
  margin: var(--space-3) 0 var(--space-6) 0;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 12px 20px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.provider-ticker-inner {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
}

.provider-ticker-track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  padding: 4px;
}

/* Provider credential link in modal */
.provider-credential-item {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.provider-credential-item:last-child {
  border-bottom: none;
}

.provider-credential-bullet {
  color: var(--color-accent-teal);
  font-size: 14px;
  flex-shrink: 0;
}

.provider-credential-link {
  color: var(--color-accent-teal);
  text-decoration: none;
  font-weight: var(--font-weight-emphasis);
  transition: color var(--duration-fast) var(--ease-out);
}

.provider-credential-link:hover,
.provider-credential-link:focus-visible {
  color: var(--color-text-primary);
  text-decoration: underline;
}

.provider-credential-course-name {
  color: var(--color-text-muted);
  font-size: 11px;
}

@media (prefers-reduced-motion: reduce) {
  .provider-ticker-track {
    animation: none;
    overflow-x: auto;
    width: 100%;
  }
}

/* ── About the Company Panel ──────────────── */
.about-company-wrapper {
  margin-top: var(--space-3);
  margin-bottom: var(--space-1);
}

.about-company-btn {
  /* Inherits .credential-btn — same visual as Show Credential */
  gap: var(--space-2);
}

.about-company-btn-icon {
  font-size: 13px;
  line-height: 1;
  opacity: 0.8;
}

.about-company-panel {
  margin-top: var(--space-2);
  border: 1px solid rgba(182, 204, 215, 0.13);
  border-radius: var(--radius-sm);
  background: rgba(182, 204, 215, 0.03);
  padding: var(--space-4) var(--space-5);
  padding-top: var(--space-5);
  position: relative;
  max-height: 180px;
  overflow-y: auto;
  /* Panel stays inside description box — does not touch walls */
  box-sizing: border-box;
  width: 100%;
  /* Smooth reveal */
  animation: aboutCompanyIn var(--duration-normal) var(--ease-out);
}

@keyframes aboutCompanyIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.about-company-panel::-webkit-scrollbar {
  width: 3px;
}

.about-company-panel::-webkit-scrollbar-track {
  background: transparent;
}

.about-company-panel::-webkit-scrollbar-thumb {
  background: rgba(182, 204, 215, 0.2);
  border-radius: var(--radius-full);
}

.about-company-close {
  position: absolute;
  top: var(--space-2);
  right: var(--space-3);
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 11px;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: var(--radius-xs);
  line-height: 1;
  transition: color var(--duration-fast) var(--ease-out);
}

.about-company-close:hover,
.about-company-close:focus-visible {
  color: var(--color-text-primary);
  outline: 1px solid rgba(182, 204, 215, 0.3);
  outline-offset: 2px;
}

.about-company-content {
  /* Same typography as specific-achievement-desc */
  font-family: var(--font-primary);
  font-size: var(--text-xs);
  line-height: var(--leading-relaxed);
  color: var(--color-text-primary);
  font-weight: var(--font-weight-default);
}

/* ── Education & Volunteering Drawer Box ── */

.edu-vol-highlights-container {
  margin-top: var(--space-3);
  max-height: 120px;
  overflow-y: auto;
  padding: var(--space-3) var(--space-4);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  border: 1px solid rgba(182, 204, 215, 0.15);
  border-radius: var(--radius-md);
  background: rgba(182, 204, 215, 0.02);
  width: 100%;
  box-sizing: border-box;
}

.edu-vol-highlights-container::-webkit-scrollbar {
  width: 4px;
}

.edu-vol-highlights-container::-webkit-scrollbar-track {
  background: transparent;
}

.edu-vol-highlights-container::-webkit-scrollbar-thumb {
  background: rgba(182, 204, 215, 0.2);
  border-radius: var(--radius-full);
}

.highlight-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: var(--font-weight-emphasis);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  border-radius: var(--radius-sm);
  background: var(--color-bg-base);
  color: var(--color-text-muted);
  border: 1px solid rgba(182, 204, 215, 0.12);
  transition: all var(--duration-fast);
}

.highlight-tag:hover {
  border-color: rgba(35, 61, 255, 0.4);
  color: var(--color-text-primary);
}

.edu-vol-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  font-size: 14px;
  font-family: var(--font-primary);
  font-weight: var(--font-weight-emphasis);
  color: var(--color-accent-electric-text);
  background: var(--color-accent-electric-dim);
  border: 1px solid var(--color-accent-electric-border);
  border-radius: var(--radius-sm);
  transition: all var(--duration-fast);
  cursor: pointer;
  user-select: none;
  padding: 0;
  margin-top: var(--space-2);
}

.edu-vol-toggle-btn:hover {
  background: rgba(35, 61, 255, 0.25);
  transform: translateY(-1px);
}

.edu-vol-toggle-btn:focus-visible {
  outline: 2px solid var(--color-accent-electric-text);
  outline-offset: 2px;
}

/* ── Limits & Slider Navigation Styles ── */
.hidden-collapsed {
  display: none !important;
}

.section-toggle-container {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: var(--space-6);
  margin-bottom: var(--space-4);
  clear: both;
}

.section-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2) var(--space-6);
  font-family: var(--font-primary);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-emphasis);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--color-accent-electric-text);
  background: var(--color-accent-electric-dim);
  border: 1px solid var(--color-accent-electric-border);
  border-radius: var(--radius-sm);
  transition: all var(--duration-fast);
  cursor: pointer;
}

.section-toggle-btn:hover {
  background: rgba(35, 61, 255, 0.25);
  transform: translateY(-1px);
}

.slider-wrapper {
  position: relative;
  width: 100%;
}

.courses-slider-track,
.volunteering-slider-track {
  display: flex;
  gap: var(--space-4);
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: var(--space-4);
  scrollbar-width: none;
}

.courses-slider-track:not(.grid-view) .course-card,
.volunteering-slider-track .volunteer-card {
  flex: 0 0 380px;
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 480px) {

  .courses-slider-track:not(.grid-view) .course-card,
  .volunteering-slider-track .volunteer-card {
    flex: 0 0 280px;
  }
}

.courses-slider-track::-webkit-scrollbar,
.volunteering-slider-track::-webkit-scrollbar {
  display: none;
}

.courses-slider-track.grid-view,
.volunteering-slider-track.grid-view {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-4);
  overflow-x: visible;
  padding-bottom: 0;
}

.slider-controls {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-2);
}

.slider-arrow-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--color-accent-electric-text);
  background: var(--color-accent-electric-dim);
  border: 1px solid var(--color-accent-electric-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--duration-fast);
}

.slider-arrow-btn:hover {
  background: rgba(35, 61, 255, 0.25);
  transform: translateY(-1px);
}

.slider-arrow-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Hide arrows on mobile and adjust slider */
@media (max-width: 768px) {
  .slider-controls {
    display: none !important;
  }

  .courses-slider-track,
  .volunteering-slider-track {
    padding-bottom: 0;
  }
}

/* ── Volunteering Grid Display Override for Slider ── */
.volunteer-grid.slider-active {
  display: block !important;
}

/* ═══════════════════════════════════════════════════
   PROJECT CARD SYSTEM — Main Projects Section
   ═══════════════════════════════════════════════════ */

/* ── Projects Slider Track (mirrors courses-slider-track) ── */
.projects-slider-track {
  display: flex;
  gap: var(--space-6);
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: var(--space-4);
  scrollbar-width: none;
  align-items: stretch;
}

.projects-slider-track::-webkit-scrollbar {
  display: none;
}

.projects-slider-track .project-card {
  flex: 0 0 420px;
  max-width: 90vw;
  box-sizing: border-box;
}

@media (max-width: 640px) {
  .projects-slider-track .project-card {
    flex: 0 0 320px;
  }
}

/* ── Project Card (banner layout, vertical) ── */
.project-card {
  display: flex;
  flex-direction: column;
  background: var(--color-bg-raised);
  border: var(--border-thin);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition:
    transform var(--duration-normal) var(--ease-out),
    border-color var(--duration-normal) var(--ease-out),
    box-shadow var(--duration-normal) var(--ease-out);
  box-shadow: var(--shadow-card);
  position: relative;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: rgba(35, 61, 255, 0.35);
  box-shadow: var(--shadow-float);
}

/* ── Project Card — Image Carousel Area ── */
.project-card-carousel {
  position: relative;
  width: 100%;
  height: 200px;
  background: var(--color-bg-deep);
  overflow: hidden;
  flex-shrink: 0;
}

.project-carousel-viewport {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.project-carousel-track {
  display: flex;
  height: 100%;
  transition: transform var(--duration-normal) var(--ease-out);
}

.project-carousel-slide {
  flex: 0 0 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-deep);
  cursor: pointer;
  outline: none;
}

.project-carousel-slide:focus-visible {
  outline: 2px solid var(--color-accent-electric-text);
  outline-offset: -2px;
}

.project-carousel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform var(--duration-normal) var(--ease-out);
}

.project-carousel-slide:hover .project-carousel-img {
  transform: scale(1.03);
}

.project-carousel-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  width: 100%;
  height: 100%;
  color: rgba(182, 204, 215, 0.25);
}

.project-carousel-placeholder svg {
  width: 40px;
  height: 40px;
}

/* Carousel arrows overlaid on image */
.project-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: rgba(30, 45, 53, 0.72);
  border: 1px solid rgba(182, 204, 215, 0.2);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  color: var(--color-text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-family: monospace;
  font-weight: bold;
  font-size: 14px;
  transition: background var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out), transform var(--duration-fast) var(--ease-out);
  backdrop-filter: blur(4px);
}

.project-carousel-arrow:hover {
  background: rgba(35, 61, 255, 0.5);
  border-color: var(--color-accent-electric-text);
  transform: translateY(-50%) scale(1.1);
}

.project-carousel-arrow:focus-visible {
  outline: 2px solid var(--color-accent-electric-text);
  outline-offset: 2px;
}

.project-carousel-arrow.prev {
  left: var(--space-2);
}

.project-carousel-arrow.next {
  right: var(--space-2);
}

/* Carousel dots */
.project-carousel-dots {
  position: absolute;
  bottom: var(--space-2);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--space-1);
  z-index: 2;
}

.project-carousel-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(245, 249, 251, 0.35);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-out), transform var(--duration-fast) var(--ease-out);
  position: relative;
}

.project-carousel-dot::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
}

.project-carousel-dot:focus-visible {
  outline: 2px solid var(--color-accent-electric-text);
  outline-offset: 3px;
}

.project-carousel-dot.active {
  background: var(--color-text-primary);
  transform: scale(1.3);
}

/* ── Project Card — Body ── */
.project-card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: var(--space-6);
  gap: 0;
}

/* ── Project Card — Header (overline + title + status + date) ── */
.project-card-overline {
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-accent-electric-text);
  margin-bottom: var(--space-1);
}

.project-card-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-1);
}

.project-card-title {
  font-size: var(--text-md);
  font-weight: var(--font-weight-default);
  color: var(--color-text-primary);
  line-height: var(--leading-tight);
  margin: 0;
  flex-grow: 1;
}

.project-status-badge {
  flex-shrink: 0;
  font-size: 9px;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  padding: 2px var(--space-2);
  border-radius: var(--radius-sm);
  font-weight: var(--font-weight-emphasis);
  white-space: nowrap;
  margin-top: 3px;
}

.project-status-badge--inprogress {
  background: rgba(35, 61, 255, 0.18);
  color: #93a8ff;
  border: 1px solid rgba(35, 61, 255, 0.32);
}

.project-status-badge--completed {
  background: rgba(74, 222, 128, 0.1);
  color: var(--color-success);
  border: 1px solid rgba(74, 222, 128, 0.25);
}

.project-card-date {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: var(--tracking-wide);
  margin-bottom: 0;
}

/* ── Internal section divider — does not touch card edges ── */
.project-section-divider {
  width: calc(100% - var(--space-4));
  height: 1px;
  background: rgba(182, 204, 215, 0.12);
  margin: var(--space-4) auto;
  border: none;
  display: block;
}

/* ── Linked-to tags ── */
.project-linked-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.project-linked-label {
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-text-muted);
  font-weight: var(--font-weight-emphasis);
}

.project-linked-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.project-linked-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 3px var(--space-3);
  font-size: var(--text-xs);
  font-family: var(--font-primary);
  font-weight: var(--font-weight-default);
  letter-spacing: var(--tracking-wide);
  color: var(--color-accent-mist);
  background: rgba(182, 204, 215, 0.05);
  border: 1px solid rgba(182, 204, 215, 0.2);
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: border-color var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out), background var(--duration-fast) var(--ease-out);
}

.project-linked-tag:hover {
  border-color: rgba(35, 61, 255, 0.45);
  color: var(--color-text-primary);
  background: rgba(35, 61, 255, 0.08);
}

.project-linked-tag:focus-visible {
  outline: 2px solid var(--color-accent-electric-text);
  outline-offset: 2px;
}

.project-linked-icon {
  width: 16px;
  height: 16px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  opacity: 0.85;
}

/* ── Stack tags (horizontal scroll) ── */
.project-stack-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.project-stack-label {
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-text-muted);
  font-weight: var(--font-weight-emphasis);
}

.project-stack-track {
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.project-stack-track::-webkit-scrollbar {
  display: none;
}

.project-stack-track .tech-tag {
  flex-shrink: 0;
}

/* ── Description Box (JetBrains Mono, bg-deep, expandable) ── */
.project-desc-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.project-desc-box {
  background: var(--color-bg-deep);
  border: 1px solid rgba(182, 204, 215, 0.13);
  border-radius: var(--radius-md);
  padding: var(--space-6) var(--space-8);
  overflow: hidden;
  position: relative;
  transition: max-height var(--duration-slow) var(--ease-in-out);
  max-height: 120px;
}

.project-desc-box.expanded {
  max-height: 2000px;
}

.project-desc-box::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 48px;
  background: linear-gradient(to bottom, transparent, var(--color-bg-deep));
  pointer-events: none;
  transition: opacity var(--duration-fast) var(--ease-out);
}

.project-desc-box.expanded::after {
  opacity: 0;
}

.project-desc-inner {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 300;
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
}

.project-desc-inner>*:first-child {
  margin-top: 0 !important;
}

.project-desc-inner>*:last-child {
  margin-bottom: 0 !important;
}

.project-desc-inner strong,
.project-desc-inner b {
  font-weight: 400;
  color: var(--color-text-primary);
}

.project-desc-inner em {
  color: var(--color-accent-electric-text);
  font-style: normal;
}

.project-desc-inner p {
  margin: 0 0 var(--space-3);
}

.project-desc-inner p:last-child {
  margin-bottom: 0;
}

.project-desc-inner img {
  max-width: 100%;
  border-radius: var(--radius-sm);
  margin: var(--space-3) 0;
  display: block;
}

.project-desc-inner img.centered {
  margin-left: auto;
  margin-right: auto;
}

.project-desc-inner ul,
.project-desc-inner ol {
  padding-left: var(--space-6);
  margin: var(--space-2) 0;
}

.project-desc-inner li {
  margin-bottom: var(--space-1);
}

.project-desc-inner h3,
.project-desc-inner h4,
.project-desc-inner h5 {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-emphasis);
  color: var(--color-text-primary);
  margin: var(--space-4) 0 var(--space-2);
  line-height: var(--leading-tight);
}

.project-desc-inner h3 {
  font-size: var(--text-base);
}

.project-desc-inner h4 {
  font-size: var(--text-sm);
}

.project-desc-inner h5 {
  font-size: var(--text-xs);
}

.project-desc-inner blockquote {
  border-left: 3px solid var(--color-accent-electric-text);
  background: rgba(182, 204, 215, 0.04);
  padding: var(--space-2) var(--space-4);
  margin: var(--space-3) 0;
  font-style: italic;
  color: var(--color-accent-mist);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.project-desc-inner pre {
  background: rgba(15, 23, 30, 0.6);
  border: 1px solid rgba(182, 204, 215, 0.1);
  border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-4);
  margin: var(--space-3) 0;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  line-height: var(--leading-relaxed);
  color: #c7d2fe;
}

.project-desc-inner code {
  font-family: var(--font-mono);
  font-size: 85%;
  background: rgba(182, 204, 215, 0.08);
  padding: 2px 5px;
  border-radius: var(--radius-sm);
  color: var(--color-text-primary);
}

.project-desc-inner pre code {
  background: transparent;
  padding: 0;
  border-radius: 0;
  color: inherit;
  font-size: inherit;
}

.project-desc-inner .text-center {
  text-align: center;
}

/* Description toggle button (matches section-toggle-btn style) */
.project-desc-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  font-family: var(--font-primary);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-emphasis);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--color-accent-electric-text);
  background: var(--color-accent-electric-dim);
  border: 1px solid rgba(35, 61, 255, 0.3);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  align-self: flex-start;
}

.project-desc-toggle:hover {
  background: rgba(35, 61, 255, 0.22);
  transform: translateY(-1px);
}

.project-desc-toggle:focus-visible {
  outline: 2px solid var(--color-accent-electric-text);
  outline-offset: 2px;
}

.project-desc-toggle-icon {
  width: 12px;
  height: 12px;
  transition: transform var(--duration-fast) var(--ease-out);
  flex-shrink: 0;
}

.project-desc-toggle[aria-expanded="true"] .project-desc-toggle-icon {
  transform: rotate(180deg);
}

/* ── Repository Link ── */
.project-repo-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-family: var(--font-primary);
  font-weight: var(--font-weight-default);
  letter-spacing: var(--tracking-wide);
  color: var(--color-accent-electric-text);
  text-decoration: none;
  border: 1px solid rgba(35, 61, 255, 0.3);
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-4);
  background: transparent;
  transition: background var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out);
  align-self: flex-start;
}

.project-repo-link:hover,
.project-repo-link:focus-visible {
  background: var(--color-accent-electric-dim);
  border-color: rgba(35, 61, 255, 0.5);
  color: var(--color-text-primary);
}

.project-repo-link svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* ── Project filter bar (same pattern as course filter) ── */
.project-filter-bar {
  display: flex;
  flex-wrap: nowrap;
  gap: var(--space-2);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-block: 4px;
  padding-inline: 2px;
  cursor: grab;
}

.project-filter-bar:active {
  cursor: grabbing;
}

.project-filter-bar::-webkit-scrollbar {
  display: none;
}

/* ── Responsive: mobile adjustments ── */
@media (max-width: 768px) {
  .project-card-carousel {
    height: 180px;
  }

  .project-card-body {
    padding: var(--space-4);
  }
}

/* ── Typography Override: Libre Baskerville for Specific Content ── */
.timeline-bullet,
.education-card .highlight-tag,
.volunteer-card .highlight-tag,
.project-desc-inner,
.project-desc-inner *,
#about-text-container p:not(:last-child),
.hero-tagline {
  font-family: var(--font-secondary) !important;
  line-height: var(--leading-relaxed);
}

/* Ensure tag texts inside Education and Volunteering are not all-uppercase (no caps lock) */
.education-card .highlight-tag,
.volunteer-card .highlight-tag {
  text-transform: none !important;
  letter-spacing: normal !important;
}

/* Ensure font changes do not cause tags or text boxes to overflow their boundaries */
.education-card .highlight-tag,
.volunteer-card .highlight-tag {
  display: inline-block;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

/* ══════════════════════════════════════════════════
   BLOG SECTION
   ══════════════════════════════════════════════════ */

/* ── Gradient fade between community → blog ──────── */
.blog-section-fade-top {
  height: 120px;
  background: linear-gradient(to bottom, var(--color-bg-deep), var(--color-bg-deep));
  position: relative;
  z-index: 0;
  pointer-events: none;
}

/* ── Blog section wrapper ────────────────────────── */
.blog-section {
  position: relative;
  background-color: var(--color-bg-deep);
  overflow: hidden;
  padding-block: var(--space-24);
}

/* Mesh background identical to hero */
.blog-section-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/mesh_background.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.10;
  pointer-events: none;
  z-index: 0;
}

/* Gradient overlay top (fade from community) */
.blog-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom, var(--color-bg-deep), transparent);
  z-index: 1;
  pointer-events: none;
}

/* Gradient overlay bottom (fade to footer) */
.blog-section-fade-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to top, var(--color-bg-deep), transparent);
  z-index: 1;
  pointer-events: none;
}

/* ── Blog section inner content ──────────────────── */
.blog-section-inner {
  position: relative;
  z-index: 2;
}

/* ── Blog section header ─────────────────────────── */
.blog-section-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.blog-overline {
  color: var(--color-accent-electric-text);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}

/* Blog title: Glacial Indifference — same font as hero name, slightly smaller */
.blog-title {
  font-family: 'Glacial Indifference', sans-serif;
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
  color: var(--color-text-primary);
  text-align: center;
}

/* ── Blog carousel ───────────────────────────────── */
.blog-carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.blog-carousel-viewport {
  overflow: hidden;
  width: 100%;
  border-radius: var(--radius-md);
}

.blog-carousel-track {
  display: flex;
  gap: 0;
  transition: transform 0.45s var(--ease-out);
  will-change: transform;
}

/* ── Blog carousel arrows ────────────────────────── */
.blog-carousel-arrow {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(182, 204, 215, 0.2);
  background: var(--color-bg-raised);
  color: var(--color-text-primary);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out),
    opacity var(--duration-fast) var(--ease-out);
  z-index: 3;
}

.blog-carousel-arrow:hover:not(:disabled) {
  background: var(--color-accent-electric-dim);
  border-color: var(--color-accent-electric-text);
}

.blog-carousel-arrow:disabled {
  opacity: 0.25;
  cursor: default;
}

/* Hide arrows on small screens — use drag/scroll instead */
@media (max-width: 639px) {
  .blog-carousel-arrow {
    display: none;
  }
}

/* ── Blog carousel dots ──────────────────────────── */
.blog-carousel-dots {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-6);
}

.blog-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  border: none;
  background: rgba(182, 204, 215, 0.25);
  cursor: pointer;
  padding: 0;
  transition: background var(--duration-fast) var(--ease-out),
    transform var(--duration-fast) var(--ease-out);
}

.blog-carousel-dot.active {
  background: var(--color-accent-electric-text);
  transform: scale(1.3);
}

/* ── Blog card (inspired by .project-card) ───────── */
.blog-card {
  min-width: 100%;
  width: 100%;
  flex-shrink: 0;
  border: 1px solid rgba(182, 204, 215, 0.12);
  border-radius: var(--radius-md);
  background: var(--color-bg-raised);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--duration-normal) var(--ease-out),
    box-shadow var(--duration-normal) var(--ease-out);
  cursor: default;
  outline: none;
}

.blog-card:focus-visible {
  outline: 2px solid var(--color-accent-electric-text);
  outline-offset: 3px;
}

.blog-card:hover {
  border-color: rgba(182, 204, 215, 0.25);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

/* ── Blog card cover ─────────────────────────────── */
.blog-card-cover {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: var(--color-bg-deep);
}

.blog-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-card-cover--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-bg-deep) 0%, var(--color-accent-electric-dim) 100%);
}

.blog-card-cover--placeholder svg {
  width: 60px;
  height: 36px;
  color: rgba(182, 204, 215, 0.25);
}

/* ── Blog card body ──────────────────────────────── */
.blog-card-body {
  padding: var(--space-6) var(--space-6) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex: 1;
}

.blog-card-date {
  font-family: var(--font-primary);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--color-text-muted);
}

.blog-card-title {
  font-family: 'Glacial Indifference', sans-serif;
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 700;
  line-height: var(--leading-tight);
  color: var(--color-text-primary);
}

.blog-card-summary {
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--color-text-muted);
  flex: 1;
}

.blog-card-read-btn {
  align-self: flex-start;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  cursor: pointer;
}

/* ── Blog reader modal ───────────────────────────── */
.blog-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: var(--space-4);
}

.blog-modal[hidden] {
  display: none !important;
}

.blog-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(14, 20, 24, 0.82);
  backdrop-filter: blur(6px);
  z-index: -1;
  cursor: pointer;
}

.blog-modal-container {
  position: relative;
  background: var(--color-bg-deep);
  border: 1px solid rgba(182, 204, 215, 0.12);
  border-radius: var(--radius-lg, 12px);
  max-width: 780px;
  width: 92%;
  max-height: 88vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  margin: 32px auto;
  outline: none;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  animation: blogModalIn 0.3s var(--ease-out) both;
  scrollbar-width: thin;
  scrollbar-color: rgba(182, 204, 215, 0.18) transparent;
}

.blog-modal-container::-webkit-scrollbar {
  width: 4px;
}

.blog-modal-container::-webkit-scrollbar-track {
  background: transparent;
}

.blog-modal-container::-webkit-scrollbar-thumb {
  background: rgba(182, 204, 215, 0.18);
  border-radius: var(--radius-full);
}

@keyframes blogModalIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.blog-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-5) var(--space-8);
  border-bottom: 1px solid rgba(182, 204, 215, 0.08);
  position: sticky;
  top: 0;
  background: var(--color-bg-deep);
  z-index: 10;
}

.blog-modal-meta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.blog-modal-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.blog-modal-share-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(182, 204, 215, 0.06);
  border: 1px solid rgba(182, 204, 215, 0.15);
  color: var(--color-text-muted);
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 500;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm, 6px);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
}

.blog-modal-share-btn:hover {
  background: rgba(35, 61, 255, 0.15);
  border-color: var(--color-accent-electric-text);
  color: var(--color-text-primary);
}

.blog-modal-share-btn.copied {
  background: rgba(22, 163, 74, 0.2);
  border-color: #22c55e;
  color: #4ade80;
}

.blog-modal-overline {
  font-family: var(--font-primary);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  color: var(--color-accent-electric-text);
}

.blog-modal-date {
  font-family: var(--font-primary);
  font-size: 10px;
  color: var(--color-text-muted);
  letter-spacing: var(--tracking-wide);
}

.blog-modal-close {
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 16px;
  cursor: pointer;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  transition: color var(--duration-fast) var(--ease-out);
  line-height: 1;
}

.blog-modal-close:hover,
.blog-modal-close:focus-visible {
  color: var(--color-text-primary);
  outline: 1px solid rgba(182, 204, 215, 0.3);
  outline-offset: 2px;
}

.blog-modal-title {
  font-family: 'Glacial Indifference', sans-serif;
  font-size: clamp(1.4rem, 3.2vw, 2.2rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-text-primary);
  padding: var(--space-8) var(--space-8) var(--space-6);
  margin: 0;
  border-bottom: 1px solid rgba(182, 204, 215, 0.08);
}

/* ── Blog modal body — Medium-inspired typography ── */
.blog-modal-body {
  padding: var(--space-8) var(--space-8) var(--space-12);
  font-family: var(--font-primary);
  /* Glacial Indifference for body */
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--color-text-primary);
  box-sizing: border-box;
}

.blog-modal-body h2 {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin: var(--space-10) 0 var(--space-3);
  color: var(--color-text-primary);
}

.blog-modal-body h3 {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin: var(--space-8) 0 var(--space-2);
  color: var(--color-text-primary);
}

.blog-modal-body p {
  margin-bottom: var(--space-5);
  color: var(--color-text-primary);
}

.blog-modal-body strong {
  font-weight: 700;
  color: var(--color-text-primary);
}

.blog-modal-body em {
  font-style: italic;
  color: var(--color-text-muted);
}

.blog-modal-body ul,
.blog-modal-body ol {
  padding-left: var(--space-6);
  margin-bottom: var(--space-4);
}

.blog-modal-body li {
  margin-bottom: var(--space-2);
  line-height: var(--leading-relaxed);
}

.blog-modal-body table {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: var(--space-6);
  font-family: var(--font-primary);
  font-size: var(--text-sm);
}

.blog-modal-body th,
.blog-modal-body td {
  border: 1px solid rgba(182, 204, 215, 0.15);
  padding: var(--space-2) var(--space-4);
  text-align: left;
}

.blog-modal-body th {
  background: rgba(182, 204, 215, 0.06);
  font-weight: 700;
  color: var(--color-text-muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
}

.blog-modal-body code {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.88em;
  background: rgba(35, 61, 255, 0.1);
  color: var(--color-accent-electric-text);
  padding: 1px 5px;
  border-radius: 3px;
}

.blog-modal-body pre {
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-sm);
  padding: var(--space-4) var(--space-5);
  overflow-x: auto;
  margin-bottom: var(--space-5);
}

.blog-modal-body pre code {
  background: none;
  color: var(--color-text-primary);
  padding: 0;
}

.blog-modal-body hr {
  border: none;
  border-top: 1px solid rgba(182, 204, 215, 0.12);
  margin: var(--space-8) 0;
}

.blog-modal-body blockquote {
  border-left: 3px solid var(--color-accent-electric-text);
  padding-left: var(--space-5);
  margin: var(--space-5) 0;
  font-style: italic;
  color: var(--color-text-muted);
}

/* ── Blog mobile responsive ──────────────────────── */
@media (max-width: 480px) {
  .blog-modal-container {
    margin-top: 0;
    max-height: 100dvh;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-top: none;
  }

  .blog-modal-header,
  .blog-modal-title,
  .blog-modal-body {
    padding-left: var(--space-5);
    padding-right: var(--space-5);
  }

  .blog-title {
    font-size: clamp(1.8rem, 8vw, 2.6rem);
  }

  .blog-card-cover {
    height: 160px;
  }
}