/* ==========================================================================
   AMINUL (MZR) — MASTER PORTFOLIO DESIGN SYSTEM (PRATHM.ME AESTHETIC)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=Silkscreen:wght@400;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Color Palette - Light Theme */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #fafafa;
  --bg-input: #f8fafc;
  --border-color: #e2e8f0;
  --border-light: #edf2f7;
  --border-hover: #cbd5e1;
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --brand-color: #000000;
  --brand-invert: #ffffff;
  --accent-blue: #0284c7;
  --accent-cyan: #06b6d4;
  --accent-emerald: #10b981;
  --accent-purple: #8b5cf6;
  
  --pill-bg: #000000;
  --pill-text: #ffffff;
  --pill-hover: #1e293b;
  
  --badge-bg: #f1f5f9;
  --badge-border: #e2e8f0;
  --badge-text: #334155;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --shadow-floating: 0 12px 30px -4px rgba(0, 0, 0, 0.15);

  --dot-color: rgba(15, 23, 42, 0.07);
  --font-logo: 'Silkscreen', monospace, cursive;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --max-width: 640px;
}

/* Dark Theme Overrides */
html.dark {
  --bg-primary: #09090b;
  --bg-secondary: #121215;
  --bg-tertiary: #18181b;
  --bg-card: #121215;
  --bg-card-hover: #18181c;
  --bg-input: #18181b;
  --border-color: #27272a;
  --border-light: #1f1f23;
  --border-hover: #3f3f46;
  
  --text-primary: #f4f4f5;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --text-dim: #a1a1aa;
  
  --brand-color: #ffffff;
  --brand-invert: #000000;
  
  --pill-bg: #f4f4f5;
  --pill-text: #09090b;
  --pill-hover: #e4e4e7;
  
  --badge-bg: #1c1c21;
  --badge-border: #2c2c34;
  --badge-text: #e4e4e7;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.6);
  --shadow-floating: 0 12px 35px -4px rgba(0, 0, 0, 0.7);

  --dot-color: rgba(255, 255, 255, 0.08);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  transition: background-color 0.25s ease, color 0.25s ease;
  overflow-x: hidden;
  padding-bottom: 90px; /* Space for floating search bar */
}

/* Dot Matrix Matrix Grid Pattern */
.dot-matrix-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 240px;
  background-image: radial-gradient(var(--dot-color) 1.2px, transparent 1.2px);
  background-size: 14px 14px;
  mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

/* Container Layout */
.app-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   HEADER SECTION
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(var(--bg-primary), 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.logo-link {
  text-decoration: none;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-text {
  font-family: var(--font-logo);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-primary);
  user-select: none;
  transition: transform 0.15s ease;
}

.logo-text:hover {
  transform: scale(1.03);
}

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

.icon-btn {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.icon-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

.icon-btn:active {
  transform: scale(0.95);
}

.icon-btn svg {
  width: 17px;
  height: 17px;
  stroke-width: 2;
}

/* ==========================================================================
   HERO / PROFILE CARD
   ========================================================================== */
.hero-section {
  padding-top: 24px;
  padding-bottom: 24px;
}

.profile-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.profile-header-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.avatar-wrapper {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 18px;
  border: 1.5px solid var(--border-color);
  padding: 3px;
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 14px;
  object-fit: cover;
  background: var(--bg-tertiary);
}

.profile-meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.name-heading {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.role-subtitle {
  font-size: 0.95rem;
  color: var(--text-dim);
  font-weight: 500;
  margin-top: 2px;
}

/* Availability Status Badge (Static Clean Indicator) */
.status-badge-wrap {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 6px;
  padding: 3px 10px 3px 8px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.22);
  border-radius: 20px;
  width: fit-content;
}

.status-pulse-dot {
  width: 7px;
  height: 7px;
  background-color: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: statusPulse 2s infinite;
  display: inline-block;
  flex-shrink: 0;
}

@keyframes statusPulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.status-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #059669;
  letter-spacing: 0.01em;
}

html.dark .status-label {
  color: #34d399;
}

/* Hero Action CTAs */
.hero-cta-row {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.btn-primary {
  background: var(--brand-color);
  color: var(--brand-invert);
  border: 1px solid var(--brand-color);
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

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

.btn-secondary:active {
  transform: scale(0.98);
}

/* ==========================================================================
   SECTION COMMON STYLES
   ========================================================================== */
.section-wrapper {
  padding-block: 22px;
  border-top: 1px solid var(--border-light);
}

.section-wrapper:first-of-type {
  border-top: 1px solid var(--border-light);
}

.section-heading {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.section-subhead {
  font-size: 0.88rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  margin-bottom: 4px;
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.about-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.about-item::before {
  content: "•";
  position: absolute;
  left: 4px;
  top: -1px;
  color: var(--text-primary);
  font-size: 1.1rem;
}

.about-highlight {
  color: var(--text-primary);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--border-hover);
  text-underline-offset: 3px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.about-highlight:hover {
  color: var(--accent-blue);
  text-decoration-color: var(--accent-blue);
}

/* ==========================================================================
   CONNECT SECTION (PILL BUTTONS)
   ========================================================================== */
.connect-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

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

.pill-btn {
  background: var(--pill-bg);
  color: var(--pill-text);
  border: 1px solid transparent;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.86rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
}

.pill-btn:hover {
  background: var(--pill-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.pill-btn:active {
  transform: scale(0.97);
}

.pill-btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

/* ==========================================================================
   EXPERIENCE SECTION
   ========================================================================== */
.experience-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.exp-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 6px 0;
}

.exp-logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.exp-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.exp-content {
  flex: 1;
}

.exp-header-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.exp-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.exp-period {
  font-size: 0.78rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-weight: 500;
  white-space: nowrap;
}

.exp-role-meta {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.exp-bullet {
  color: var(--text-muted);
}

/* ==========================================================================
   EDUCATION & LAW QUALIFICATIONS SECTION
   ========================================================================== */
.education-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.edu-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.edu-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.edu-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.12), rgba(99, 102, 241, 0.15));
  border: 1px solid rgba(2, 132, 199, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-blue);
  flex-shrink: 0;
}

.edu-logo.gold {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(217, 119, 6, 0.18));
  border-color: rgba(245, 158, 11, 0.3);
  color: #d97706;
}

html.dark .edu-logo.gold {
  color: #fbbf24;
}

.edu-content {
  flex: 1;
}

.edu-header-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.edu-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.edu-tag-pill {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  padding: 2px 7px;
  border-radius: 5px;
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  color: var(--badge-text);
  font-weight: 600;
}

.edu-period {
  font-size: 0.78rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-weight: 500;
  white-space: nowrap;
}

.edu-institution {
  font-size: 0.88rem;
  color: var(--text-secondary);
  font-weight: 600;
  margin-top: 2px;
}

.edu-desc {
  font-size: 0.84rem;
  color: var(--text-dim);
  line-height: 1.5;
  margin-top: 6px;
}

/* ==========================================================================
   ACTIVITY SECTION (GITHUB HEATMAP)
   ========================================================================== */
.activity-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.activity-months {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  margin-bottom: 8px;
  padding-left: 2px;
}

.heatmap-grid {
  display: grid;
  grid-template-rows: repeat(7, 11px);
  grid-auto-flow: column;
  grid-auto-columns: 11px;
  gap: 3.5px;
  width: max-content;
}

.heat-cell {
  width: 11px;
  height: 11px;
  border-radius: 2.5px;
  background-color: var(--bg-tertiary);
  transition: transform 0.1s ease, outline 0.1s ease;
  cursor: pointer;
  position: relative;
}

.heat-cell:hover {
  transform: scale(1.35);
  z-index: 10;
  outline: 1px solid var(--text-primary);
}

/* Heat Intensities */
.heat-0 { background-color: var(--bg-tertiary); border: 1px solid var(--border-light); }
.heat-1 { background-color: #86efac; } /* light green */
.heat-2 { background-color: #4ade80; }
.heat-3 { background-color: #22c55e; }
.heat-4 { background-color: #15803d; } /* dark green */

html.dark .heat-0 { background-color: #1c1c21; border-color: #27272a; }
html.dark .heat-1 { background-color: #064e3b; }
html.dark .heat-2 { background-color: #047857; }
html.dark .heat-3 { background-color: #10b981; }
html.dark .heat-4 { background-color: #34d399; }

.activity-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.legend-group {
  display: flex;
  align-items: center;
  gap: 4px;
}

.legend-cell {
  width: 9px;
  height: 9px;
  border-radius: 2px;
}

/* ==========================================================================
   PROJECTS SECTION & CARDS
   ========================================================================== */
.projects-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.project-card {
  border: 1px solid var(--border-color);
  border-radius: 18px;
  background: var(--bg-card);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* Halftone & Gradient Brand Backdrops */
.project-banner-wrapper {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow: hidden;
}

.project-banner-wrapper.dither-indigo {
  background: radial-gradient(circle at 50% 30%, #6366f1 0%, #4338ca 60%, #1e1b4b 100%);
}

.project-banner-wrapper.dither-amber {
  background: radial-gradient(circle at 50% 30%, #fbbf24 0%, #d97706 60%, #78350f 100%);
}

.project-banner-wrapper.dither-medical {
  background: radial-gradient(circle at 50% 30%, #38bdf8 0%, #0284c7 60%, #0c4a6e 100%);
}

.project-banner-wrapper.dither-election {
  background: radial-gradient(circle at 50% 30%, #2dd4bf 0%, #0d9488 50%, #134e4a 100%);
}

.project-banner-wrapper.dither-navy {
  background: radial-gradient(circle at 50% 30%, #3b82f6 0%, #1d4ed8 60%, #172554 100%);
}

.project-banner-wrapper.dither-burgundy {
  background: radial-gradient(circle at 50% 30%, #f43f5e 0%, #be123c 60%, #4c0519 100%);
}

.project-banner-wrapper.dither-govt {
  background: radial-gradient(circle at 50% 30%, #60a5fa 0%, #2563eb 60%, #1e3a8a 100%);
}

.project-banner-wrapper.dither-emerald {
  background: radial-gradient(circle at 50% 30%, #34d399 0%, #059669 60%, #064e3b 100%);
}

/* Dither Dot Texture Mask Overlay */
.dither-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.28) 1px, transparent 1px);
  background-size: 5px 5px;
  opacity: 0.75;
  pointer-events: none;
}

/* Realistic Browser Mockup Frame */
.mockup-window {
  width: 94%;
  max-width: 440px;
  height: 175px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(255, 255, 255, 0.2) inset;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  z-index: 2;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
  cursor: pointer;
}

html.dark .mockup-window {
  background: #18181b;
  box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}

.project-card:hover .mockup-window {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 22px 42px -10px rgba(0, 0, 0, 0.55);
}

.mockup-bar {
  height: 26px;
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  gap: 8px;
  flex-shrink: 0;
}

html.dark .mockup-bar {
  background: #1e1e24;
  border-bottom-color: #2e2e38;
}

.mockup-dots {
  display: flex;
  align-items: center;
  gap: 5px;
}

.mockup-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15) inset;
}
.mockup-dot.red { background: #ff5f56; }
.mockup-dot.yellow { background: #ffbd2e; }
.mockup-dot.green { background: #27c93f; }

.mockup-url-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 2px 10px;
  border-radius: 6px;
  font-size: 0.68rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html.dark .mockup-url-pill {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
  color: #a1a1aa;
}

.mockup-url-pill svg {
  width: 9px;
  height: 9px;
  flex-shrink: 0;
  color: #10b981;
}

.mockup-zoom-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  opacity: 0.7;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.mockup-window:hover .mockup-zoom-btn {
  opacity: 1;
  transform: scale(1.1);
  color: var(--text-primary);
}

.mockup-screen {
  flex: 1;
  background: #0f172a;
  position: relative;
  overflow: hidden;
}

.mockup-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}

.mockup-window:hover .mockup-screen img {
  transform: scale(1.04);
}

/* Lightbox Modal for Full Image Inspection */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(9, 9, 11, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.lightbox-modal.open {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-floating);
  animation: lightboxPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes lightboxPop {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.lightbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-secondary);
}

.lightbox-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lightbox-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

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

.lightbox-close-btn {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.15s ease;
}

.lightbox-close-btn:hover {
  background: var(--bg-card-hover);
  transform: scale(1.05);
}

.lightbox-body {
  overflow-y: auto;
  padding: 16px;
  display: flex;
  justify-content: center;
  background: var(--bg-tertiary);
}

.lightbox-img {
  width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
}

/* Project Card Info */
.project-info-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.project-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.project-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.project-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mini-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
}

.mini-link-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

.project-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Tech Badges / Tags */
.tech-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.tech-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  color: var(--badge-text);
  padding: 4px 9px;
  border-radius: 7px;
  font-size: 0.76rem;
  font-weight: 500;
}

.tech-tag svg, .tech-tag img {
  width: 13px;
  height: 13px;
  object-fit: contain;
}

.see-all-projects-btn {
  width: 100%;
  padding: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  margin-top: 14px;
  transition: all 0.2s ease;
}

.see-all-projects-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

/* ==========================================================================
   SKILLS MATRIX SECTION
   ========================================================================== */
.skills-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  color: var(--text-primary);
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 0.84rem;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
  user-select: none;
}

.skill-chip:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.skill-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}

.skill-icon svg {
  width: 100%;
  height: 100%;
}

/* ==========================================================================
   ACHIEVEMENTS SECTION
   ========================================================================== */
.achievements-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.achievement-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: relative;
  padding-left: 18px;
}

.achievement-row::before {
  content: "•";
  position: absolute;
  left: 2px;
  top: 0px;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.achievement-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.achievement-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.achievement-date {
  font-size: 0.78rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-weight: 500;
}

.achievement-desc {
  font-size: 0.86rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   VENN DIAGRAM SECTION (INTERSECTION OF EXCELLENCE)
   ========================================================================== */
.venn-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 30px 0;
  width: 100%;
}

.venn-svg {
  width: 100%;
  max-width: 440px;
  height: auto;
  overflow: visible;
}

.venn-circle {
  fill: transparent;
  stroke: var(--border-hover);
  stroke-width: 1.2;
  transition: all 0.3s ease;
}

.venn-circle:hover {
  stroke: var(--accent-blue);
  fill: rgba(2, 132, 199, 0.03);
}

.venn-text {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  fill: var(--text-dim);
  text-anchor: middle;
}

/* Center Avatar Badge on Venn */
.venn-center-avatar {
  position: absolute;
  top: 52%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid var(--bg-primary);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  overflow: hidden;
  background: var(--bg-card);
  z-index: 5;
}

.venn-center-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   BOTTOM FLOATING SEARCH PILL & COMMAND PALETTE
   ========================================================================== */
.floating-search-bar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
}

.search-pill-btn {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 10px 22px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: var(--shadow-floating);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-pill-btn:hover {
  transform: translateY(-2px) scale(1.02);
  border-color: var(--border-hover);
  box-shadow: 0 16px 36px -4px rgba(0, 0, 0, 0.2);
}

.search-pill-btn:active {
  transform: scale(0.97);
}

.kbd-shortcut {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
  margin-left: 4px;
}

/* Command Palette Dialog Modal */
.cmd-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 80px 16px 20px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.cmd-modal-backdrop.open {
  display: flex;
  opacity: 1;
}

.cmd-dialog-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  width: 100%;
  max-width: 540px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  animation: cmdSlideIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cmdSlideIn {
  from { transform: translateY(-12px) scale(0.97); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.cmd-search-header {
  display: flex;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-color);
  gap: 10px;
}

.cmd-search-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  font-size: 1.05rem;
  font-family: var(--font-sans);
  color: var(--text-primary);
}

.cmd-search-input::placeholder {
  color: var(--text-muted);
}

.cmd-results-list {
  max-height: 380px;
  overflow-y: auto;
  padding: 10px;
}

.cmd-group-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 8px 12px 4px;
  letter-spacing: 0.05em;
}

.cmd-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.12s ease;
}

.cmd-item:hover, .cmd-item.active {
  background: var(--bg-tertiary);
}

.cmd-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cmd-item-left svg {
  width: 16px;
  height: 16px;
  color: var(--text-dim);
}

.cmd-item-tag {
  font-size: 0.74rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* ==========================================================================
   MOBILE SLIDE-IN DRAWER
   ========================================================================== */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 90;
  display: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.drawer-backdrop.open {
  display: block;
  opacity: 1;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 280px;
  background: var(--bg-card);
  border-left: 1px solid var(--border-color);
  z-index: 95;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 14px;
}

.drawer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.drawer-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.15s ease;
}

.drawer-nav-link:hover {
  background: var(--bg-tertiary);
}

/* ==========================================================================
   FULL "PROJECTS / EVERYTHING I'VE SHIPPED" VIEW
   ========================================================================== */
.projects-catalog-page {
  display: none;
  padding-top: 16px;
}

.projects-catalog-page.active {
  display: block;
}

.home-view.hidden {
  display: none;
}

.catalog-top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.back-home-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 8px;
  transition: all 0.15s ease;
}

.back-home-btn:hover {
  background: var(--bg-tertiary);
}

.catalog-search-input-wrap {
  position: relative;
  flex: 1;
  max-width: 320px;
}

.catalog-search-input {
  width: 100%;
  padding: 8px 12px 8px 34px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: var(--bg-input);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.15s ease;
}

.catalog-search-input:focus {
  border-color: var(--brand-color);
}

.catalog-search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  width: 16px;
  height: 16px;
}

/* Toast Container */
.toast-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 150;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast-msg {
  background: var(--brand-color);
  color: var(--brand-invert);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 0.84rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  animation: toastFade 0.3s ease;
}

@keyframes toastFade {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
