/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--brand-primary);
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 0 16px var(--brand-glow);
}

.btn-primary:hover {
  background-color: var(--brand-primary-hover);
  box-shadow: 0 4px 20px var(--brand-glow);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background-color: var(--bg-surface-hover);
  border-color: var(--border-color-focus);
  transform: translateY(-1px);
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background-color: var(--bg-surface);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  cursor: pointer;
  text-decoration: none;
}

.btn-icon:hover {
  color: var(--text-primary);
  border-color: var(--border-color-focus);
  background-color: var(--bg-surface-hover);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  background-color: var(--bg-surface);
  color: var(--text-secondary);
}

.badge-brand {
  background-color: var(--accent-blue-subtle);
  color: var(--brand-primary);
  border-color: rgba(59, 130, 246, 0.25);
}

.badge-emerald {
  background-color: var(--accent-emerald-subtle);
  color: var(--accent-emerald);
  border-color: rgba(16, 185, 129, 0.25);
}

.badge-purple {
  background-color: var(--accent-purple-subtle);
  color: var(--accent-purple);
  border-color: rgba(139, 92, 246, 0.25);
}

.badge-red {
  background-color: var(--accent-red-subtle);
  color: var(--accent-red);
  border-color: rgba(239, 68, 68, 0.25);
}

/* Hero Section (Commanding, Balanced & Clean) */
.hero-wrapper {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 1rem 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-avatar-wrapper {
  position: relative;
  margin-bottom: 1.5rem;
}

.hero-avatar-img {
  width: 104px;
  height: 104px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 3px solid var(--brand-primary);
  box-shadow: 0 0 24px var(--brand-glow);
  display: block;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.35rem 0.95rem 0.35rem 0.5rem;
  border-radius: var(--radius-full);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 0 16px var(--brand-glow);
  margin-bottom: 1.5rem;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.hero-pill-badge:hover {
  border-color: var(--brand-primary);
  transform: translateY(-1px);
}

.hero-pill-tag {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  background-color: var(--brand-glow);
  color: var(--brand-primary);
}

.hero-pill-text {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.hero-title {
  font-size: clamp(2.3rem, 5.5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
  margin: 0 0 1.25rem;
  color: var(--text-primary);
  max-width: 860px;
}

.hero-title-gradient {
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 50%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

:root[data-theme="dark"] .hero-title-gradient {
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 50%, #93c5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 2.25rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.75rem;
  flex-wrap: wrap;
}

.hero-social-strip {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-left: 0.5rem;
}

/* Interactive Terminal Window */
.terminal-window {
  background-color: var(--bg-canvas);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--elevated-shadow);
  width: 100%;
  max-width: 680px;
  margin: 0 auto 2.5rem;
  text-align: left;
}

.terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1rem;
  background-color: var(--bg-subtle);
  border-bottom: 1px solid var(--border-color);
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.terminal-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.dot-red { background-color: #ef4444; }
.dot-yellow { background-color: #f59e0b; }
.dot-green { background-color: #10b981; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.terminal-body {
  padding: 1.25rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.6;
}

.terminal-line {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #38bdf8;
  margin-bottom: 0.4rem;
}

.terminal-prompt {
  color: var(--text-muted);
  user-select: none;
}

.terminal-output {
  color: var(--text-secondary);
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.terminal-output-success {
  color: var(--accent-emerald);
}

/* Quantitative Metrics Bar */
.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
}

.hero-stat-card {
  padding: 1.25rem 1rem;
  border-radius: var(--radius-lg);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  text-align: center;
  transition: all var(--transition-fast);
}

.hero-stat-card:hover {
  border-color: var(--border-color-focus);
  transform: translateY(-2px);
}

.hero-stat-number {
  font-size: 1.85rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.hero-stat-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 500;
}

@media (max-width: 768px) {
  .hero-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
  }
  .hero-social-strip {
    margin-left: 0;
  }
}

/* Grids System */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
  }
}

/* Cards */
.card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  transition: all var(--transition-smooth);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card:hover {
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateY(-2px);
  box-shadow: var(--elevated-shadow);
}

/* Feature Spotlight Card (Compact, Refined & Modern) */
.spotlight-card {
  background: linear-gradient(145deg, var(--bg-surface), rgba(59, 130, 246, 0.04));
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.4rem;
  position: relative;
  overflow: visible;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.06);
}

.spotlight-card:hover {
  border-color: rgba(59, 130, 246, 0.45);
  box-shadow: 0 10px 25px -4px rgba(59, 130, 246, 0.12), var(--card-shadow);
  transform: translateY(-2px);
}

/* Horizontal Milestone Roadmap System (100% Non-Scrollable & Zero Overflow) */
.milestone-roadmap-wrapper {
  position: relative;
  width: 100%;
  overflow: visible;
  padding: 1.5rem 0 1rem;
}

.milestone-track {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding-top: 0.75rem;
}

/* Connecting Horizontal Line across nodes */
.milestone-track::before {
  content: '';
  position: absolute;
  top: calc(0.75rem + 23px);
  left: 10%;
  right: 10%;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6 0%, #10b981 50%, #8b5cf6 100%);
  border-radius: 2px;
  z-index: 1;
}

.milestone-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  min-width: 0;
  padding: 0 0.5rem;
  z-index: 2;
  cursor: pointer;
  outline: none;
  transition: transform var(--transition-fast);
}

.milestone-step:hover,
.milestone-step:focus-visible {
  transform: translateY(-2px);
}

/* Milestone Node Circle */
.milestone-node {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--bg-surface);
  border: 3px solid #3b82f6;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
  box-shadow: 0 0 0 5px var(--bg-canvas), 0 0 14px var(--brand-glow);
  transition: all var(--transition-spring);
  position: relative;
  flex-shrink: 0;
}

.milestone-step.current .milestone-node {
  border-color: #10b981;
  background-color: #10b981;
  color: #ffffff;
  box-shadow: 0 0 0 5px var(--bg-canvas), 0 0 18px rgba(16, 185, 129, 0.6);
  animation: pulse-dot 2.2s infinite ease-in-out;
}

.milestone-step:hover .milestone-node,
.milestone-step.active .milestone-node {
  transform: scale(1.15);
  border-color: #2563eb;
  background-color: #2563eb;
  color: #ffffff;
  box-shadow: 0 0 0 5px var(--bg-canvas), 0 0 22px var(--brand-glow);
}

.milestone-step.current:hover .milestone-node,
.milestone-step.current.active .milestone-node {
  border-color: #059669;
  background-color: #10b981;
  box-shadow: 0 0 0 5px var(--bg-canvas), 0 0 22px rgba(16, 185, 129, 0.8);
}

.milestone-year {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  white-space: nowrap;
}

.milestone-company {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand-primary);
  line-height: 1.3;
  margin-bottom: 0.2rem;
  transition: color var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.milestone-mini-logo {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  object-fit: contain;
  background-color: #ffffff;
  padding: 1px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.milestone-detail-company-logo-wrap {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.milestone-detail-company-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.milestone-step:hover .milestone-company,
.milestone-step.active .milestone-company {
  color: var(--accent-cyan);
}

.milestone-role {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* Sliding Pointer Arrow between Track & Detail Card */
.milestone-pointer-wrapper {
  position: relative;
  width: 100%;
  height: 14px;
  margin-top: 1.25rem;
  margin-bottom: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.milestone-roadmap-wrapper.is-hovered .milestone-pointer-wrapper {
  opacity: 1;
}

.milestone-pointer {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-bottom: 14px solid var(--border-color);
  transition: left 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.milestone-pointer::after {
  content: '';
  position: absolute;
  top: 2px;
  left: -10px;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 12px solid var(--bg-surface);
}

/* Interactive Spotlight Detail Card (Hidden by default; reveals on hover) */
.milestone-detail-card {
  position: relative;
  background-color: var(--bg-surface);
  border: 1px solid transparent;
  border-radius: var(--radius-xl);
  padding: 0 2.25rem;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  box-shadow: var(--elevated-shadow);
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), 
              max-height 0.32s cubic-bezier(0.16, 1, 0.3, 1), 
              padding 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.22s ease;
  max-width: 960px;
  margin: 0 auto;
}

.milestone-roadmap-wrapper.is-hovered .milestone-detail-card {
  opacity: 1;
  max-height: 900px;
  padding: 2rem 2.25rem;
  border-color: var(--border-color);
  pointer-events: auto;
  transform: translateY(0);
}

.milestone-detail-inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.milestone-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.75rem;
  border-bottom: 1px solid var(--border-color-subtle);
  padding-bottom: 1rem;
}

.milestone-detail-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.4rem;
}

.milestone-detail-period {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.milestone-detail-location {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.milestone-detail-role {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.25;
}

.milestone-detail-company {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brand-primary);
  margin-top: 0.25rem;
}

.milestone-detail-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.milestone-detail-responsibilities {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.milestone-detail-subhead {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
}

.milestone-detail-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.milestone-detail-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.milestone-detail-list .bullet-arrow {
  color: var(--brand-primary);
  font-weight: bold;
  flex-shrink: 0;
}

.milestone-detail-tech {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  border-top: 1px solid var(--border-color-subtle);
  padding-top: 1rem;
}

.tech-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
  .milestone-track {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.25rem;
    padding-top: 0.5rem;
  }
  .milestone-track::before {
    display: none;
  }
  .milestone-step {
    padding: 0 0.15rem;
  }
  .milestone-node {
    width: 38px;
    height: 38px;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
  }
  .milestone-year {
    font-size: 0.72rem;
  }
  .milestone-company {
    font-size: 0.75rem;
  }
  .milestone-role {
    display: none;
  }
  .milestone-pointer-wrapper {
    display: none;
  }
  .milestone-detail-card {
    padding: 1.25rem 1.25rem;
    margin-top: 1.25rem;
  }
  .milestone-detail-role {
    font-size: 1.15rem;
  }
}

/* Video Showcase Cards */
.video-card {
  border-radius: var(--radius-lg);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition-smooth);
}

.video-card:hover {
  border-color: var(--accent-red);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px -4px rgba(239, 68, 68, 0.2);
}

.video-thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background-color: #000;
  overflow: hidden;
}

.video-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.video-card:hover .video-thumb-img {
  transform: scale(1.05);
}

.video-play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgba(239, 68, 68, 0.9);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.5);
  transition: transform var(--transition-fast);
}

.video-card:hover .video-play-overlay {
  transform: translate(-50%, -50%) scale(1.1);
  background-color: #ef4444;
}

.video-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background-color: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
}

.video-body {
  padding: 1.25rem;
}

/* Modern Engineering Timeline */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
  max-width: 860px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 16px;
  bottom: 24px;
  width: 2px;
  background: linear-gradient(180deg, var(--brand-primary) 0%, rgba(59, 130, 246, 0.4) 60%, rgba(139, 92, 246, 0.2) 100%);
}

.timeline-item {
  position: relative;
  padding-left: 60px;
}

.timeline-node {
  position: absolute;
  left: 11px;
  top: 22px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--bg-surface);
  border: 3px solid var(--brand-primary);
  box-shadow: 0 0 0 4px var(--bg-canvas), 0 0 12px var(--brand-glow);
  transition: all var(--transition-fast);
  z-index: 2;
}

.timeline-node.current {
  border-color: var(--accent-emerald);
  box-shadow: 0 0 0 4px var(--bg-canvas), 0 0 16px rgba(16, 185, 129, 0.6);
  animation: pulse-dot 2s infinite ease-in-out;
}

.timeline-item:hover .timeline-node {
  transform: scale(1.15);
  box-shadow: 0 0 0 4px var(--bg-canvas), 0 0 18px var(--brand-glow);
}

.timeline-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 1.5rem 1.75rem;
  transition: all var(--transition-smooth);
  position: relative;
  box-shadow: var(--card-shadow);
}

.timeline-card:hover {
  border-color: rgba(59, 130, 246, 0.45);
  transform: translateX(4px);
  box-shadow: var(--elevated-shadow);
}

.timeline-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 0.35rem;
}

.timeline-role-title {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.timeline-company-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.timeline-company-name {
  font-size: 0.95rem;
  color: var(--brand-primary);
  font-weight: 700;
}

.timeline-period-pill {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.timeline-period-pill.current {
  background-color: var(--accent-emerald-subtle);
  border-color: rgba(16, 185, 129, 0.3);
  color: var(--accent-emerald);
}

.timeline-description {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.timeline-bullets-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
}

.timeline-bullet-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.timeline-bullet-icon {
  color: var(--brand-primary);
  font-size: 0.8rem;
  line-height: 1.4;
  flex-shrink: 0;
}

.timeline-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
}

/* Filter Tabs */
.filter-tabs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
  scrollbar-width: none;
}

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

.filter-tab {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.filter-tab:hover {
  color: var(--text-primary);
  border-color: var(--border-color-focus);
}

.filter-tab.active {
  background-color: var(--brand-primary);
  color: #ffffff;
  border-color: var(--brand-primary);
  box-shadow: 0 1px 6px var(--brand-glow);
}

/* Skills Grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1rem;
}

.skill-card {
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius-md);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all var(--transition-fast);
}

.skill-card:hover {
  border-color: var(--border-color-focus);
  transform: translateY(-1px);
}

.skill-icon-wrap {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background-color: var(--bg-surface-hover);
  border: 1px solid var(--border-color-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.skill-icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Cinema Modal Player */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-smooth);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-dialog {
  width: 100%;
  max-width: 900px;
  background-color: #0b0f19;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.85), 0 0 50px rgba(59, 130, 246, 0.2);
  transform: scale(0.95);
  transition: transform var(--transition-spring);
}

.modal-overlay.open .modal-dialog {
  transform: scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  background-color: #0f172a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-header h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 1rem;
}

.modal-header .btn-icon {
  color: #94a3b8;
  background-color: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  width: 32px;
  height: 32px;
}

.modal-header .btn-icon:hover {
  color: #ffffff;
  background-color: rgba(239, 68, 68, 0.8);
}

.modal-video-frame-wrap,
.modal-frame-wrap {
  aspect-ratio: 16 / 9;
  width: 100%;
  background-color: #000;
  position: relative;
  display: block;
}

.modal-video-frame-wrap iframe,
.modal-frame-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
