/* ============================================
   PORTFOLIO - Light-first with Dark Toggle
   ============================================ */

/* --- Local Font Imports (from ngrok) --- */
@font-face {
  font-display: swap;
  font-family: 'Roobert';
  font-style: normal;
  font-weight: 300 900;
  src: url(fonts/roobert-proportional-vf.woff2) format("woff2 supports variations"),
       url(fonts/roobert-proportional-vf.woff2) format("woff2-variations");
}

@font-face {
  font-display: swap;
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  src: url(fonts/jetbrainsmono-wght.woff2) format("woff2 supports variations"),
       url(fonts/jetbrainsmono-wght.woff2) format("woff2-variations");
}

@font-face {
  font-display: optional;
  font-family: 'JetBrains Mono';
  font-style: italic;
  font-weight: 100 800;
  src: url(fonts/jetbrainsmono-italic-wght.woff2) format("woff2 supports variations"),
       url(fonts/jetbrainsmono-italic-wght.woff2) format("woff2-variations");
}

@font-face {
  font-display: fallback;
  font-family: 'Family';
  font-style: normal;
  font-weight: 400;
  src: url(fonts/family-regular.woff2) format("woff2");
}

@font-face {
  font-display: optional;
  font-family: 'Family';
  font-style: italic;
  font-weight: 400;
  src: url(fonts/family-italic.woff2) format("woff2");
}

/* --- CSS Custom Properties (Light Theme) --- */
:root {
  --bg-base: #ffffff;
  --bg-elevated: #f8f9fa;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --bg-nav: rgba(255, 255, 255, 0.88);

  --text-strong: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-placeholder: #94a3b8;

  --border-base: #e2e8f0;
  --border-card: #e2e8f0;
  --border-hover: #cbd5e1;

  --accent-primary: #1e3a5f;
  --accent-primary-dim: rgba(30, 58, 95, 0.08);
  --accent-hover: #15294a;
  --accent-link: #2b5ea7;
  --accent-link-hover: #1e3a5f;

  --gradient-accent: linear-gradient(135deg, #1e3a5f, #2b5ea7);
  --gradient-card-border: linear-gradient(135deg, rgba(30, 58, 95, 0.4), rgba(43, 94, 167, 0.4));

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-card-hover: 0 4px 24px rgba(0, 0, 0, 0.10);
  --shadow-glow: 0 0 30px rgba(30, 58, 95, 0.1);

  --font-sans: 'Roobert', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Family', Georgia, 'Times New Roman', serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --nav-height: 64px;
  --container-max: 1100px;
  --container-narrow: 850px;

  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
}

/* --- Dark Theme Override --- */
[data-theme="dark"] {
  --bg-base: #0a0a0a;
  --bg-elevated: #111111;
  --bg-card: #161616;
  --bg-card-hover: #1c1c1c;
  --bg-nav: rgba(10, 10, 10, 0.85);

  --text-strong: #ffffff;
  --text-body: rgba(255, 255, 255, 0.75);
  --text-muted: rgba(255, 255, 255, 0.50);
  --text-placeholder: rgba(255, 255, 255, 0.35);

  --border-base: rgba(255, 255, 255, 0.08);
  --border-card: rgba(255, 255, 255, 0.10);
  --border-hover: rgba(255, 255, 255, 0.18);

  --accent-primary: #5b8fd9;
  --accent-primary-dim: rgba(91, 143, 217, 0.15);
  --accent-hover: #7da9e8;
  --accent-link: #6fa3e0;
  --accent-link-hover: #8fbfee;

  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-card-hover: 0 8px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px rgba(91, 143, 217, 0.15);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-body);
  background-color: var(--bg-base);
  padding-top: var(--nav-height);
  overflow-x: hidden;
  transition: background-color var(--transition-base), color var(--transition-base);
}

/* --- Progress Bar --- */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--gradient-accent);
  z-index: 1001;
  transition: width 300ms ease-out;
}

/* ========================
   NAVIGATION
   ======================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: var(--bg-nav);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-base);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-base), border-color var(--transition-base);
}

.nav-inner {
  max-width: var(--container-max);
  width: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-strong);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.nav-brand img {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
}

.nav-brand span {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  transition: color var(--transition-fast), background var(--transition-fast);
}

.nav-links a:hover,
.nav-links a:focus {
  color: var(--text-strong);
  background: var(--accent-primary-dim);
  text-decoration: none;
}

.nav-links a.active {
  color: var(--accent-primary);
  background: var(--accent-primary-dim);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  background: var(--accent-primary);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: var(--radius-full);
  text-decoration: none !important;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.nav-cta:hover {
  background: var(--accent-hover);
  transform: scale(1.03);
}

.nav-cta:active {
  transform: scale(0.97);
}

/* Theme Toggle Button */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-card);
  background: var(--bg-card);
  cursor: pointer;
  font-size: 18px;
  transition: all var(--transition-fast);
  margin-left: 8px;
  color: var(--text-muted);
}

.theme-toggle:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  color: var(--text-strong);
}

.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: inline; }

[data-theme="dark"] .theme-toggle .icon-sun { display: inline; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-strong);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================
   LAYOUT
   ======================== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding: 80px 0;
}

.section--hero {
  padding: 100px 0 80px;
}

/* ========================
   HERO SECTION
   ======================== */
.hero {
  display: flex;
  align-items: center;
  gap: 60px;
}

.hero-content {
  flex: 1;
  min-width: 0;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--accent-primary-dim);
  border: 1px solid rgba(30, 58, 95, 0.2);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
}

[data-theme="dark"] .hero-pill {
  border-color: rgba(91, 143, 217, 0.25);
}

.hero-pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-primary);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-name {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
  color: var(--accent-primary);
}

.hero-title {
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.hero-bio {
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: 32px;
  text-align: justify;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.hero-link--primary {
  background: var(--accent-primary);
  color: #ffffff;
}

.hero-link--primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  text-decoration: none;
  color: #ffffff;
}

.hero-link--secondary {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  color: var(--text-body);
}

.hero-link--secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  color: var(--text-strong);
  text-decoration: none;
}

.hero-image {
  flex-shrink: 0;
  width: 280px;
  height: 280px;
  position: relative;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-xl);
  border: 2px solid var(--border-card);
  transition: border-color var(--transition-base), transform var(--transition-base);
}

.hero-image img:hover {
  border-color: var(--accent-primary);
  transform: scale(1.02);
}

.hero-image::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius-xl) + 2px);
  background: var(--gradient-card-border);
  z-index: -1;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.hero-image:hover::before {
  opacity: 1;
}

/* ========================
   PAGE HEADERS
   ======================== */
.page-header {
  text-align: center;
  padding: 60px 0 40px;
}

.page-header h1 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--accent-primary);
  margin-bottom: 12px;
}

.page-header p {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* ========================
   SECTION HEADERS
   ======================== */
.section-header {
  margin-bottom: 48px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-primary);
  margin-bottom: 12px;
}

.section-label::before {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--accent-primary);
  border-radius: 1px;
}

.section-title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  color: var(--text-strong);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* ========================
   CARDS - General
   ======================== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
  transition: background var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
}

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

/* ========================
   PUBLICATION CARDS
   ======================== */
.pub-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.pub-card {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}

.pub-card__image {
  flex-shrink: 0;
  width: 260px;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-base);
}

.pub-card__image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform var(--transition-slow);
}

.pub-card:hover .pub-card__image img {
  transform: scale(1.04);
}

.pub-card__content {
  flex: 1;
  min-width: 0;
}

.pub-card__title {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 10px;
}

.pub-card__title a {
  color: var(--text-strong);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.pub-card__title a:hover {
  color: var(--accent-primary);
  text-decoration: none;
}

.pub-card__authors {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 6px;
  line-height: 1.6;
}

.pub-card__authors a {
  color: var(--accent-link);
  text-decoration: none;
}

.pub-card__authors a:hover {
  color: var(--accent-link-hover);
  text-decoration: underline;
}

.pub-card__authors strong {
  color: var(--accent-primary);
  font-weight: 600;
}

.pub-card__journal {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 10px;
}

.pub-card__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.pub-card__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-primary);
  text-decoration: none;
  padding: 4px 12px;
  background: var(--accent-primary-dim);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.pub-card__link:hover {
  background: rgba(30, 58, 95, 0.15);
  color: var(--accent-hover);
  text-decoration: none;
}

.pub-card__citation {
  font-size: 13px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.pub-card__abstract {
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.7;
  text-align: justify;
  font-family: var(--font-serif);
  font-style: italic;
}

/* ========================
   CONFERENCE CARDS
   ======================== */
.conf-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.conf-card {
  overflow: hidden;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.conf-card__image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.conf-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.conf-card:hover .conf-card__image img {
  transform: scale(1.05);
}

/* Placeholder style when image is missing */
.conf-card__image img[src$="placeholder"] {
  display: none;
}

.conf-card__body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.conf-card__badge {
  display: inline-block;
  width: fit-content;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--radius-full);
  background: var(--accent-primary-dim);
  color: var(--accent-primary);
  margin-bottom: 10px;
}

.conf-card__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-strong);
  margin-bottom: 6px;
  line-height: 1.4;
}

.conf-card__desc {
  font-size: 13px;
  color: var(--text-body);
  line-height: 1.6;
  margin-bottom: 10px;
  flex: 1;
}

.conf-card__meta {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-top: auto;
}

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

@media (max-width: 600px) {
  .conf-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================
   FEATURED PUBLICATIONS (Home)
   ======================== */
.featured-pubs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.featured-pub {
  display: flex;
  flex-direction: column;
}

.featured-pub__image {
  width: 100%;
  height: 180px;
  overflow: hidden;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  border-bottom: none;
}

.featured-pub__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.featured-pub:hover .featured-pub__image img {
  transform: scale(1.06);
}

.featured-pub__body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.featured-pub__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-strong);
  margin-bottom: 8px;
  line-height: 1.5;
}

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

.featured-pub__title a:hover {
  color: var(--accent-primary);
}

.featured-pub__journal {
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 8px;
}

.featured-pub__citation {
  font-size: 12px;
  color: var(--text-placeholder);
  font-family: var(--font-mono);
  margin-top: auto;
}

/* ========================
   PROJECT SHOWCASE
   ======================== */
.showcase-list {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.showcase {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
  align-items: center;
}

.showcase--reverse .showcase__media { order: 2; }
.showcase--reverse .showcase__body { order: 1; }

.showcase__media {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  text-decoration: none;
}

a.showcase__media:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -20px rgba(15, 23, 42, 0.35);
}

.browser-frame {
  background: var(--card-bg, #ffffff);
  border: 1px solid var(--border-color, rgba(15, 23, 42, 0.12));
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 40px -24px rgba(15, 23, 42, 0.35);
}

.browser-frame__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: linear-gradient(180deg, #f1f5f9, #e2e8f0);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

[data-theme="dark"] .browser-frame__bar {
  background: linear-gradient(180deg, #1e293b, #0f172a);
  border-bottom-color: rgba(148, 163, 184, 0.18);
}

.browser-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}
.browser-dot--red { background: #ef4444; }
.browser-dot--yellow { background: #f59e0b; }
.browser-dot--green { background: #22c55e; }

.browser-frame__url {
  margin-left: 14px;
  font-size: 12px;
  color: #64748b;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  letter-spacing: 0.02em;
}

.browser-frame img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  object-position: top center;
}

.showcase__placeholder {
  border-radius: 14px;
  min-height: 320px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 12px;
  color: #ffffff;
  box-shadow: 0 18px 40px -24px rgba(15, 23, 42, 0.35);
}

.showcase__placeholder--purple {
  background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 60%, #c4b5fd 100%);
}

.showcase__placeholder-kicker {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.85;
}
.showcase__placeholder-title {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}
.showcase__placeholder-sub {
  font-size: 16px;
  opacity: 0.9;
}

.showcase__body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.showcase__eyebrow {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent, #2563eb);
}

.showcase__title {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.1;
}

.showcase__tagline {
  font-size: 18px;
  color: var(--text-secondary, #475569);
  margin: 0;
  font-weight: 500;
}

.showcase__desc {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--text-secondary, #475569);
  margin: 0;
}

.showcase__tags {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.showcase__tags li {
  background: var(--tag-bg, #f1f5f9);
  color: var(--tag-fg, #0f172a);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
}

.showcase__actions {
  margin-top: 10px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.showcase__note {
  font-size: 13px;
  color: var(--text-secondary, #64748b);
  font-style: italic;
}

@media (max-width: 820px) {
  .showcase {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .showcase--reverse .showcase__media { order: 0; }
  .showcase--reverse .showcase__body { order: 1; }
  .showcase__title { font-size: 28px; }
  .showcase__placeholder { min-height: 220px; padding: 28px; }
  .showcase__placeholder-title { font-size: 42px; }
  .showcase-list { gap: 56px; }
}

/* ========================
   PROJECT CARDS (legacy)
   ======================== */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.project-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}

.project-card__banner {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  position: relative;
  overflow: hidden;
}

.project-card__banner--green { background: linear-gradient(135deg, #059669, #34d399); }
.project-card__banner--blue { background: linear-gradient(135deg, #0284c7, #38bdf8); }
.project-card__banner--purple { background: linear-gradient(135deg, #7c3aed, #a78bfa); }
.project-card__banner--amber { background: linear-gradient(135deg, #d97706, #fbbf24); }

.project-card__banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.project-card__banner-text {
  color: #ffffff;
  font-weight: 800;
  font-size: 28px;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.project-card__body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-card__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-strong);
  margin-bottom: 8px;
}

.project-card__desc {
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 16px;
  flex: 1;
}

.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.project-tag {
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font-mono);
  border-radius: var(--radius-full);
  background: var(--accent-primary-dim);
  color: var(--accent-primary);
  letter-spacing: 0.02em;
}

.project-card__links {
  display: flex;
  gap: 12px;
  margin-top: auto;
}

.project-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-primary);
  text-decoration: none;
  padding: 6px 14px;
  background: var(--accent-primary-dim);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.project-card__link:hover {
  background: rgba(30, 58, 95, 0.15);
  text-decoration: none;
}

.project-card__link--secondary {
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border-card);
}

.project-card__link--secondary:hover {
  border-color: var(--border-hover);
  color: var(--text-strong);
  background: var(--bg-card-hover);
}

/* ========================
   CERTIFICATIONS
   ======================== */
.cert-category {
  margin-bottom: 48px;
}

.cert-category__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-strong);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-base);
  display: flex;
  align-items: center;
  gap: 10px;
}

.cert-category__title::before {
  content: '';
  width: 4px;
  height: 20px;
  background: var(--accent-primary);
  border-radius: 2px;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.cert-item {
  padding: 20px;
}

.cert-item__name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-strong);
  margin-bottom: 6px;
  line-height: 1.5;
}

.cert-item__issuer {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.cert-item__skills {
  font-size: 12px;
  color: var(--text-placeholder);
  font-style: italic;
  margin-bottom: 8px;
}

.cert-item__image {
  width: 100%;
  margin-top: 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-base);
  overflow: hidden;
}

.cert-item__image img {
  width: 100%;
  height: auto;
  display: block;
}

.cert-item__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent-link);
  text-decoration: none;
  margin-top: 8px;
  transition: color var(--transition-fast);
}

.cert-item__link:hover {
  color: var(--accent-link-hover);
  text-decoration: none;
}

.cert-item__link::after {
  content: '\2192';
  font-size: 14px;
  transition: transform var(--transition-fast);
}

.cert-item__link:hover::after {
  transform: translateX(3px);
}

.cert-item__credential {
  font-size: 12px;
  color: var(--text-placeholder);
  font-family: var(--font-mono);
  margin-top: 4px;
}

.cert-item__credential a {
  color: var(--accent-link);
  text-decoration: none;
}

.cert-item__credential a:hover {
  text-decoration: underline;
}

/* ========================
   STATS ROW (Home)
   ======================== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-bottom: 60px;
}

.stat-card {
  text-align: center;
  padding: 32px 20px;
}

.stat-card__number {
  font-size: 36px;
  font-weight: 800;
  color: var(--accent-primary);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.stat-card__label {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ========================
   TIMELINE
   ======================== */
.timeline {
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: var(--border-base);
}

.timeline-item {
  position: relative;
  margin-bottom: 32px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -29px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-primary);
  border: 2px solid var(--bg-base);
  z-index: 1;
}

.timeline-item__year {
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-mono);
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.timeline-item__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-strong);
  margin-bottom: 2px;
}

.timeline-item__subtitle {
  font-size: 14px;
  color: var(--text-muted);
}

/* ========================
   LIGHTBOX MODAL
   ======================== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 32px;
  cursor: zoom-out;
  animation: lightboxIn 0.25s ease;
}

.lightbox.active {
  display: flex;
}

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

.lightbox__img {
  max-width: 90vw;
  max-height: 88vh;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  cursor: default;
  animation: lightboxZoom 0.3s ease;
}

@keyframes lightboxZoom {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.lightbox__close {
  position: absolute;
  top: 20px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #ffffff;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
}

.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox__caption {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  max-width: 600px;
  padding: 8px 20px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: var(--radius-full);
}

/* Make cert & conf images clickable */
.cert-item__image,
.conf-card__image {
  cursor: zoom-in;
}

/* ========================
   ORGANIZATION LOGOS STRIP
   ======================== */
.org-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 20px 0;
}

.org-logo {
  height: 60px;
  width: 60px;
  object-fit: contain;
  transition: transform var(--transition-fast);
}

.org-logo:hover {
  transform: scale(1.1);
}

[data-theme="dark"] .org-logo {
  opacity: 0.9;
}

[data-theme="dark"] .org-logo:hover {
  opacity: 1;
}

@media (max-width: 600px) {
  .org-strip {
    gap: 24px;
  }
  .org-logo {
    height: 44px;
    width: 44px;
  }
}

/* ========================
   SKILLS SECTION
   ======================== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.skill-group {
  padding: 24px;
}

.skill-group__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-strong);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

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

.skill-tag {
  padding: 5px 14px;
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--radius-full);
  background: var(--accent-primary-dim);
  color: var(--accent-primary);
  border: 1px solid rgba(30, 58, 95, 0.15);
  transition: all var(--transition-fast);
}

.skill-tag:hover {
  background: rgba(30, 58, 95, 0.15);
  transform: translateY(-1px);
}

[data-theme="dark"] .skill-tag {
  border-color: rgba(91, 143, 217, 0.2);
}

/* ========================
   CTA SECTION
   ======================== */
.cta-section {
  text-align: center;
  padding: 80px 0;
}

.cta-box {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 60px 40px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.cta-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 2px;
  background: var(--gradient-accent);
}

.cta-box h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-strong);
  margin-bottom: 12px;
}

.cta-box p {
  color: var(--text-muted);
  margin-bottom: 28px;
  font-size: 16px;
}

.cta-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ========================
   BACK TO TOP
   ======================== */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--accent-primary);
  color: #ffffff;
  border: none;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(30, 58, 95, 0.3);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity var(--transition-base), transform var(--transition-base), background var(--transition-fast);
  z-index: 900;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

/* ========================
   FOOTER
   ======================== */
.footer {
  border-top: 1px solid var(--border-base);
  padding: 32px 0;
  text-align: center;
  transition: border-color var(--transition-base);
}

.footer p {
  font-size: 13px;
  color: var(--text-placeholder);
}

.footer a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer a:hover {
  color: var(--accent-primary);
}

/* ========================
   GENERAL LINKS
   ======================== */
a {
  color: var(--accent-link);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-link-hover);
}

/* ========================
   SCROLL ANIMATIONS
   ======================== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================
   RESPONSIVE DESIGN
   ======================== */

@media (max-width: 1024px) {
  .featured-pubs {
    grid-template-columns: 1fr;
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    gap: 40px;
  }

  .hero-image {
    width: 220px;
    height: 220px;
  }

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

@media (max-width: 768px) {
  :root {
    --nav-height: 56px;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-base);
    flex-direction: column;
    padding: 24px;
    gap: 4px;
    border-top: 1px solid var(--border-base);
    z-index: 999;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 14px 16px;
    font-size: 16px;
    border-radius: var(--radius-md);
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    flex-direction: column-reverse;
    text-align: center;
    gap: 32px;
  }

  .hero-bio {
    text-align: left;
  }

  .hero-links {
    justify-content: center;
  }

  .hero-pill {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-image {
    width: 200px;
    height: 200px;
  }

  .pub-card {
    flex-direction: column;
  }

  .pub-card__image {
    width: 100%;
    max-height: 200px;
  }

  .pub-card__image img {
    width: 100%;
    object-fit: cover;
  }

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

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .section {
    padding: 48px 0;
  }

  .section--hero {
    padding: 48px 0 40px;
  }

  .cta-box {
    padding: 40px 24px;
  }

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

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero-name {
    font-size: 32px;
  }

  .stats-row {
    grid-template-columns: 1fr 1fr;
  }

  .stat-card {
    padding: 20px 12px;
  }

  .stat-card__number {
    font-size: 28px;
  }

  .page-header h1 {
    font-size: 28px;
  }

  .hero-links {
    flex-direction: column;
    align-items: center;
  }

  .hero-link {
    width: 100%;
    justify-content: center;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
  }
}

/* ========================
   VISIT COUNTERS
   ======================== */
.visit-counters {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 8px 20px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--border-color, rgba(15,23,42,0.12));
  box-shadow: 0 2px 8px rgba(15,23,42,0.06);
  color: #0f172a;
}
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.live-badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 6px 2px rgba(239,68,68,0.5);
  animation: pulse-dot 1.8s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px 2px rgba(239,68,68,0.5); }
  50% { opacity: 0.5; box-shadow: 0 0 3px 1px rgba(239,68,68,0.3); }
}
.live-badge__text {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ef4444;
}
.visit-counter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.visit-counter__value {
  font-weight: 800;
  font-size: 15px;
  color: #0f172a;
}
.visit-counter__label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary, #475569);
}
.visit-counter__sep {
  color: var(--text-secondary, #94a3b8);
  font-size: 18px;
  line-height: 1;
}
