/* ==========================================================================
   Bishal Sharma — Portfolio Design System
   Modern, cohesive AI/ML Engineer aesthetic with dark/light theme support
   ========================================================================== */

:root {
  /* Dark Theme (Default) */
  --bg-base: #090d14;
  --bg-surface: #0f1624;
  --bg-surface-elevated: #162032;
  --bg-glass: rgba(15, 22, 36, 0.82);
  --bg-card: rgba(18, 26, 42, 0.75);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.15);
  --border-hover: rgba(16, 185, 129, 0.4);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --brand-teal: #10b981;
  --brand-cyan: #06b6d4;
  --brand-amber: #f59e0b;
  --brand-indigo: #6366f1;
  
  --accent-glow: rgba(16, 185, 129, 0.22);
  --accent-tag-bg: rgba(16, 185, 129, 0.12);
  --accent-tag-text: #34d399;
  
  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.25);
  --shadow-card: 0 12px 36px rgba(0, 0, 0, 0.35);
  --shadow-elevated: 0 24px 60px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 12px 40px -10px rgba(16, 185, 129, 0.35);

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  --transition-fast: 160ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 240ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 320ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light Theme Overrides */
[data-theme="light"] {
  --bg-base: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f1f5f9;
  --bg-glass: rgba(255, 255, 255, 0.88);
  --bg-card: rgba(255, 255, 255, 0.95);
  
  --border-subtle: rgba(15, 23, 42, 0.08);
  --border-medium: rgba(15, 23, 42, 0.14);
  --border-hover: rgba(13, 148, 136, 0.45);
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  
  --brand-teal: #0d9488;
  --brand-cyan: #0284c7;
  --brand-amber: #d97706;
  --brand-indigo: #4f46e5;
  
  --accent-glow: rgba(13, 148, 136, 0.16);
  --accent-tag-bg: rgba(13, 148, 136, 0.1);
  --accent-tag-text: #0f766e;
  
  --shadow-subtle: 0 4px 20px rgba(15, 23, 42, 0.04);
  --shadow-card: 0 12px 36px rgba(15, 23, 42, 0.06);
  --shadow-elevated: 0 24px 60px rgba(15, 23, 42, 0.08);
  --shadow-glow: 0 12px 35px -8px rgba(13, 148, 136, 0.25);
}

/* Base Reset & Core Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

img, svg, video, canvas, audio, iframe, embed, object {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--brand-teal), var(--brand-cyan));
  z-index: 100;
  transition: width 50ms linear;
}

/* Typography Helpers */
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-teal);
  margin-bottom: 0.75rem;
}

.text-gradient {
  background: linear-gradient(135deg, #ffffff 15%, var(--brand-teal) 70%, var(--brand-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

[data-theme="light"] .text-gradient {
  background: linear-gradient(135deg, #0f172a 20%, var(--brand-teal) 75%, var(--brand-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  z-index: 50;
  padding: 16px 0;
  transition: background-color var(--transition-normal),
              box-shadow var(--transition-normal),
              padding var(--transition-normal);
}

.site-header.scrolled {
  padding: 12px 0;
  background: var(--bg-glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-subtle);
}

.header-container {
  max-width: 1320px;
  width: 100%;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand-teal), var(--brand-cyan));
  box-shadow: var(--shadow-glow);
  transition: transform var(--transition-fast);
}

.brand:hover .brand-avatar {
  transform: scale(1.05) rotate(-3deg);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-text strong {
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.brand-role {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-secondary);
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  padding: 4px 6px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(8px);
}

[data-theme="light"] .nav-links {
  background: rgba(15, 23, 42, 0.03);
}

.nav-item {
  padding: 6px 14px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.nav-item:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

[data-theme="light"] .nav-item:hover {
  background: rgba(15, 23, 42, 0.05);
}

.nav-item.active {
  color: var(--brand-teal);
  background: var(--accent-tag-bg);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Theme Toggle Button */
.theme-toggle {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.theme-toggle:hover {
  color: var(--brand-teal);
  border-color: var(--border-medium);
  transform: translateY(-1px);
}

.sun-icon {
  display: none;
}
.moon-icon {
  display: block;
}

[data-theme="light"] .sun-icon {
  display: block;
}
[data-theme="light"] .moon-icon {
  display: none;
}

/* Header CTA Button */
.button-header {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand-teal), var(--brand-cyan));
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
  transition: all var(--transition-fast);
}

.button-header:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.45);
}

/* Mobile Menu Button */
.menu-button {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-primary);
}

.menu-button .bar {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--transition-normal), opacity var(--transition-normal);
}

.site-header.nav-open .menu-button .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.site-header.nav-open .menu-button .bar:nth-child(2) {
  opacity: 0;
}
.site-header.nav-open .menu-button .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 130px 0 80px;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  background: url("assets/ai-workspace-hero.png") center / cover no-repeat;
  opacity: 0.35;
  filter: saturate(1.2) brightness(0.75);
  transform: scale(1.02);
  transition: opacity var(--transition-normal);
}

[data-theme="light"] .hero-media {
  opacity: 0.15;
  filter: saturate(1.1) brightness(1.1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(16, 185, 129, 0.12), transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(6, 182, 212, 0.1), transparent 45%),
    linear-gradient(180deg, rgba(9, 13, 20, 0.75) 0%, var(--bg-base) 100%);
}

[data-theme="light"] .hero-overlay {
  background:
    radial-gradient(circle at 15% 20%, rgba(13, 148, 136, 0.08), transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(2, 132, 199, 0.06), transparent 45%),
    linear-gradient(180deg, rgba(248, 250, 252, 0.8) 0%, var(--bg-base) 100%);
}

.hero-ambient-glow {
  position: absolute;
  top: 20%;
  left: 50%;
  width: min(600px, 90vw);
  height: min(600px, 90vw);
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  filter: blur(80px);
}

.hero-container {
  position: relative;
  z-index: 2;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 48px);
  width: 100%;
}

.hero-content {
  max-width: 820px;
  width: 100%;
}

/* Status Availability Badge */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  max-width: 100%;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--accent-tag-text);
  margin-bottom: 20px;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.12);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--brand-teal);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-ring 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.hero h1 {
  font-size: clamp(2.3rem, 6vw, 5.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  color: var(--text-primary);
  word-break: break-word;
  overflow-wrap: break-word;
}

.hero-copy {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 680px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
}

/* Button UI Components */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.button.primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand-teal), var(--brand-cyan));
  box-shadow: var(--shadow-glow);
}

.button.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -8px rgba(16, 185, 129, 0.5);
}

.button.secondary {
  color: var(--text-primary);
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-subtle);
}

.button.secondary:hover {
  border-color: var(--brand-teal);
  color: var(--brand-teal);
  transform: translateY(-2px);
}

.button-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

/* Hero Social Chips */
.hero-socials {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 48px;
}

.social-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  backdrop-filter: blur(8px);
  transition: all var(--transition-fast);
}

.social-chip:hover {
  color: var(--brand-teal);
  border-color: var(--border-hover);
  background: var(--bg-surface-elevated);
  transform: translateY(-2px);
}

/* Hero Metrics Grid */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(12px);
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

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

.stat-icon-wrapper {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--accent-tag-bg);
  color: var(--brand-teal);
  flex-shrink: 0;
}

.stat-text {
  display: flex;
  flex-direction: column;
}

.stat-text strong {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.2;
}

.stat-text span {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   Common Section Styles
   ========================================================================== */
.section {
  padding: 110px 0;
  position: relative;
  width: 100%;
  max-width: 100%;
}

.section-container {
  max-width: 1320px;
  width: 100%;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 48px);
}

.section-heading {
  margin-bottom: 48px;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-top: 4px;
}

.section-subtext {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 620px;
  margin-top: 10px;
}

.section-heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 40px;
}

.section-heading-row .section-heading {
  margin-bottom: 0;
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: start;
}

.about-narrative {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.about-narrative .lead-text {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.6;
}

.about-narrative p {
  color: var(--text-secondary);
  font-size: 1.02rem;
  line-height: 1.75;
}

.about-narrative strong {
  color: var(--text-primary);
}

.about-highlights {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.highlight-check {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-tag-bg);
  color: var(--brand-teal);
  font-weight: 800;
  font-size: 0.8rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.highlight-item strong {
  display: inline;
  margin-right: 6px;
  font-weight: 700;
  color: var(--text-primary);
}

.highlight-item span {
  color: var(--text-secondary);
}

/* About Terminal Card */
.about-aside-card {
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.card-terminal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--border-subtle);
}

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

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

.term-title {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-left: 6px;
}

.card-terminal-body {
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.7;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.json-line {
  color: var(--text-secondary);
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: break-word;
}

.json-line.indent {
  padding-left: 20px;
}

.json-key {
  color: var(--brand-cyan);
}

.json-val {
  color: #a78bfa;
}

.json-val-accent {
  color: var(--brand-teal);
  font-weight: 600;
}

.card-terminal-footer {
  padding: 14px 24px;
  border-top: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.05);
}

.button-terminal {
  width: 100%;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
  background: var(--accent-tag-bg);
  color: var(--brand-teal);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.button-terminal:hover {
  background: var(--brand-teal);
  color: #ffffff;
}

/* ==========================================================================
   Projects Section
   ========================================================================== */
.filter-controls {
  display: flex;
  gap: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 5px;
  border-radius: var(--radius-full);
}

.filter-btn {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  color: var(--text-primary);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--brand-teal), var(--brand-cyan));
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-normal),
              border-color var(--transition-normal),
              box-shadow var(--transition-normal),
              opacity var(--transition-normal);
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-elevated), var(--shadow-glow);
}

.project-card.hidden {
  display: none;
}

.project-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.project-badge {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: var(--accent-tag-bg);
  color: var(--brand-teal);
  border: 1px solid rgba(16, 185, 129, 0.25);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.project-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
}

.project-title {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.project-desc {
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 24px;
}

.project-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.tech-tag {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

[data-theme="light"] .tech-tag {
  background: rgba(15, 23, 42, 0.04);
}

.project-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
}

.card-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--brand-teal);
  transition: transform var(--transition-fast), color var(--transition-fast);
}

.card-action-btn:hover {
  color: var(--brand-cyan);
  transform: translateX(3px);
}

.card-icon-link {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.card-icon-link:hover {
  color: var(--text-primary);
  border-color: var(--border-medium);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
}

/* Projects Call-to-Action (Bishal Builds) */
.projects-cta-wrapper {
  margin-top: 54px;
  margin-bottom: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  text-align: center;
}

.button-builds {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 36px;
  max-width: 100%;
  border-radius: 12px;
  background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
  color: #ffffff !important;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 10px 28px -6px rgba(16, 185, 129, 0.45), 0 4px 14px rgba(6, 182, 212, 0.25);
  cursor: pointer;
  transition: transform 220ms cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 220ms cubic-bezier(0.4, 0, 0.2, 1),
              filter 220ms cubic-bezier(0.4, 0, 0.2, 1);
}

.button-builds:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 20px 42px -8px rgba(16, 185, 129, 0.6), 0 8px 24px rgba(6, 182, 212, 0.4);
  filter: brightness(1.08);
  color: #ffffff !important;
}

.button-builds:active {
  transform: translateY(-1px) scale(0.99);
  box-shadow: 0 8px 20px -4px rgba(16, 185, 129, 0.4);
}

.button-builds svg {
  flex-shrink: 0;
  transition: transform 220ms ease;
}

.button-builds:hover svg {
  transform: translate(3px, -3px);
}

/* ==========================================================================
   Experience Section
   ========================================================================== */
.timeline-container {
  display: flex;
  flex-direction: column;
  gap: 32px;
  position: relative;
}

.timeline-card {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 28px;
}

.timeline-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.timeline-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 4px solid var(--brand-teal);
  box-shadow: 0 0 16px var(--brand-teal);
  z-index: 2;
  margin-top: 6px;
}

.timeline-line {
  position: absolute;
  top: 26px;
  bottom: -32px;
  width: 2px;
  background: linear-gradient(180deg, var(--brand-teal), var(--border-subtle));
}

.timeline-card:last-child .timeline-line {
  display: none;
}

.timeline-content {
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.timeline-content:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
}

.timeline-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.timeline-period {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--brand-teal);
}

.timeline-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  background: var(--accent-tag-bg);
  color: var(--accent-tag-text);
}

.timeline-role {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.timeline-company {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.timeline-desc {
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 16px;
}

.timeline-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.timeline-bullets li {
  position: relative;
  padding-left: 20px;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.timeline-bullets li::before {
  content: "▹";
  position: absolute;
  left: 0;
  color: var(--brand-teal);
  font-weight: 800;
}

.timeline-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.timeline-stack .badge {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

/* ==========================================================================
   Skills Section
   ========================================================================== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.skill-group-card {
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-normal), border-color var(--transition-normal);
}

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

.skill-group-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.skill-icon-box {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.skill-icon-box.teal {
  background: rgba(16, 185, 129, 0.15);
  color: var(--brand-teal);
}
.skill-icon-box.blue {
  background: rgba(6, 182, 212, 0.15);
  color: var(--brand-cyan);
}
.skill-icon-box.purple {
  background: rgba(99, 102, 241, 0.15);
  color: var(--brand-indigo);
}
.skill-icon-box.amber {
  background: rgba(245, 158, 11, 0.15);
  color: var(--brand-amber);
}

.skill-group-header h3 {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.skill-group-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-pill {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.skill-pill:hover {
  color: var(--text-primary);
  border-color: var(--border-medium);
  transform: translateY(-2px);
}

.skill-pill.highlight {
  background: var(--accent-tag-bg);
  border-color: rgba(16, 185, 129, 0.3);
  color: var(--accent-tag-text);
  font-weight: 600;
}

/* ==========================================================================
   Credentials & Awards Section
   ========================================================================== */
.credentials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.credential-card {
  display: flex;
  flex-direction: column;
  padding: 30px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.credential-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-hover);
}

.credential-icon-badge {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}

.credential-icon-badge.cert {
  background: rgba(6, 182, 212, 0.12);
  color: var(--brand-cyan);
}

.credential-icon-badge.award {
  background: rgba(245, 158, 11, 0.15);
  color: var(--brand-amber);
}

.award-card {
  border-color: rgba(245, 158, 11, 0.25);
}

.award-card:hover {
  border-color: var(--brand-amber);
  box-shadow: 0 16px 40px -10px rgba(245, 158, 11, 0.25);
}

.credential-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.credential-type {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
}

.credential-type.award-tag {
  color: var(--brand-amber);
}

.credential-year {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.credential-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.3;
}

.credential-issuer {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand-teal);
  margin-bottom: 14px;
}

.credential-summary {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-box {
  padding: clamp(36px, 6vw, 64px);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 10% 20%, rgba(16, 185, 129, 0.12), transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(6, 182, 212, 0.1), transparent 40%),
    var(--bg-surface);
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-elevated);
}

.contact-header {
  max-width: 760px;
  margin-bottom: 48px;
}

.contact-header h2 {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

.contact-copy {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 30px;
}

.contact-quick-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.contact-primary-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--brand-teal), var(--brand-cyan));
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: var(--shadow-glow);
  transition: all var(--transition-fast);
}

.contact-primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -8px rgba(16, 185, 129, 0.5);
}

.contact-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  font-weight: 700;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.contact-copy-btn:hover {
  border-color: var(--brand-teal);
  color: var(--brand-teal);
  transform: translateY(-2px);
}

/* Contact Channels Grid */
.contact-channels {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.channel-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
  min-width: 0;
  max-width: 100%;
}

.channel-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-hover);
  background: var(--bg-surface-elevated);
}

.channel-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  color: var(--brand-teal);
  flex-shrink: 0;
}

[data-theme="light"] .channel-icon {
  background: rgba(15, 23, 42, 0.05);
}

.channel-details {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
  flex: 1;
}

.channel-details strong {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.channel-details span {
  font-size: 0.78rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  max-width: 100%;
}

.channel-arrow {
  margin-left: auto;
  font-size: 1.1rem;
  color: var(--text-muted);
  transition: transform var(--transition-fast), color var(--transition-fast);
}

.channel-card:hover .channel-arrow {
  transform: translateX(4px);
  color: var(--brand-teal);
}

.channel-status {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--brand-teal);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: var(--accent-tag-bg);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  padding: 40px 0;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-base);
}

.footer-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-brand {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--brand-teal);
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--brand-teal) !important;
  font-weight: 700;
  transition: all var(--transition-fast);
}

.back-to-top:hover {
  border-color: var(--brand-teal);
  transform: translateY(-2px);
}

/* ==========================================================================
   Project Details Modal
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
  animation: fadeIn 200ms ease forwards;
}

.modal-backdrop[hidden] {
  display: none;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-elevated);
  animation: scaleUp 240ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes scaleUp {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 24px 28px;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand-teal);
  text-transform: uppercase;
  margin-bottom: 6px;
  display: block;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
}

.modal-close-btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-medium);
  background: rgba(255, 255, 255, 0.05);
}

.modal-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.modal-section-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--brand-teal);
  margin-bottom: 8px;
}

.modal-body p {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.98rem;
}

.modal-highlights-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal-highlights-list li {
  position: relative;
  padding-left: 20px;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}

.modal-highlights-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--brand-teal);
  font-weight: 700;
}

.modal-tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 18px 28px;
  border-top: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.03);
}

/* ==========================================================================
   Toast Notification
   ========================================================================== */
.toast-notification {
  position: fixed;
  bottom: 28px;
  right: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--brand-teal);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: var(--shadow-card);
  z-index: 300;
  transform: translateY(100px);
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-normal);
}

.toast-notification.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.toast-notification svg {
  color: var(--brand-teal);
}

/* ==========================================================================
   Responsive Media Queries
   ========================================================================== */
@media (max-width: 1080px) {
  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .credentials-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-channels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .site-header {
    padding: 12px 0;
  }

  .menu-button {
    display: flex;
  }

  .button-header {
    display: none;
  }

  .nav-links {
    position: fixed;
    top: 64px;
    left: 16px;
    right: 16px;
    max-width: calc(100vw - 32px);
    box-sizing: border-box;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px;
    border-radius: var(--radius-lg);
    background: var(--bg-surface);
    border: 1px solid var(--border-medium);
    box-shadow: var(--shadow-elevated);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: all var(--transition-normal);
    z-index: 60;
  }

  .site-header.nav-open .nav-links {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-item {
    padding: 10px 16px;
    text-align: center;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .timeline-card {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .timeline-indicator {
    display: none;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 72px 0;
  }

  .section-container,
  .hero-container,
  .header-container,
  .footer-container {
    padding: 0 16px;
  }

  .hero {
    padding-top: 100px;
    padding-bottom: 54px;
    min-height: auto;
  }

  .hero h1 {
    font-size: clamp(2.1rem, 8vw, 3.2rem);
  }

  .hero-copy {
    font-size: 1rem;
    margin-bottom: 24px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .stat-card {
    padding: 14px 16px;
  }

  .about-narrative .lead-text {
    font-size: 1.08rem;
  }

  .about-aside-card {
    max-width: 100%;
  }

  .card-terminal-body {
    padding: 18px 14px;
    font-size: 0.78rem;
  }

  .card-terminal-footer {
    padding: 12px 14px;
  }

  .section-heading-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 28px;
  }

  .section-heading {
    margin-bottom: 28px;
  }

  .section-heading h2 {
    font-size: clamp(1.75rem, 6vw, 2.4rem);
  }

  .filter-controls {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
    padding: 4px;
    gap: 4px;
    scrollbar-width: none;
  }

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

  .filter-btn {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 7px 14px;
    font-size: 0.8rem;
  }

  .button-builds {
    width: 100%;
    padding: 14px 16px;
    font-size: 0.88rem;
    gap: 8px;
    text-align: center;
    box-sizing: border-box;
  }

  .timeline-content {
    padding: 20px 16px;
  }

  .timeline-role {
    font-size: 1.22rem;
  }

  .skill-group-card {
    padding: 22px 16px;
  }

  .credentials-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .credential-card {
    padding: 22px 16px;
  }

  .contact-box {
    padding: 28px 16px;
    border-radius: var(--radius-lg);
  }

  .contact-header {
    margin-bottom: 28px;
  }

  .contact-header h2 {
    font-size: clamp(1.8rem, 6vw, 2.6rem);
  }

  .contact-copy {
    font-size: 1rem;
    margin-bottom: 22px;
  }

  .contact-quick-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 10px;
  }

  .contact-primary-btn,
  .contact-copy-btn {
    width: 100%;
    justify-content: center;
    padding: 12px 16px;
    box-sizing: border-box;
  }

  .contact-channels {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .channel-card {
    padding: 14px 14px;
    gap: 12px;
  }

  .channel-card.location-card {
    flex-wrap: wrap;
  }

  .channel-card.location-card .channel-status {
    margin-left: 0;
    margin-top: 4px;
  }

  .footer-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.84rem;
  }

  .toast-notification {
    left: 16px;
    right: 16px;
    bottom: 16px;
    justify-content: center;
  }

  .modal-backdrop {
    padding: 12px;
  }

  .modal-container {
    border-radius: var(--radius-lg);
  }

  .modal-header {
    padding: 18px 16px;
  }

  .modal-title {
    font-size: 1.25rem;
  }

  .modal-body {
    padding: 18px 16px;
    gap: 16px;
  }

  .modal-footer {
    padding: 14px 16px;
    flex-wrap: wrap;
    justify-content: stretch;
  }

  .modal-footer .button {
    flex: 1;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-socials {
    gap: 6px;
    margin-bottom: 36px;
  }

  .social-chip {
    padding: 6px 12px;
    font-size: 0.78rem;
  }

  .status-badge {
    font-size: 0.75rem;
    padding: 5px 12px;
  }
}

@media (max-width: 380px) {
  .header-container {
    padding: 0 12px;
  }

  .brand-text strong {
    font-size: 0.88rem;
  }

  .brand-role {
    display: none;
  }

  .brand-avatar {
    width: 34px;
    height: 34px;
    font-size: 0.82rem;
  }

  .header-actions {
    gap: 6px;
  }

  .theme-toggle,
  .menu-button {
    width: 34px;
    height: 34px;
  }

  .hero h1 {
    font-size: 1.95rem;
  }
}
