/* ============================================
   MAIN PORTFOLIO — Minimalist Pro Light Mode
   ============================================ */

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

:root {
  --bg-primary: #ffffff;
  --bg-secondary: #fdfdfe;
  --bg-surface: #f7f9fc;
  --bg-glass: rgba(255, 255, 255, 0.9);
  --text-primary: #1a1c1e;
  --text-secondary: #3b3e45;
  --text-muted: #6b7280;
  --accent: #006494; /* Google Pro Blue */
  --accent-container: #d1e5f4;
  --on-accent-container: #001e2f;
  --border: #dee3eb;
  --sidebar-w: 260px;
  --radius-xl: 12px;
  --radius-lg: 10px;
  --radius-md: 8px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md: 0 3px 8px rgba(0,0,0,0.07);
  --shadow-lg: 0 8px 18px rgba(0,0,0,0.09);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---- Grain removed ---- */
.grain { display: none; }

/* ============ SIDEBAR ============ */
.sidebar {
  position: fixed;
  left: 0; top: 0; bottom: 0;
  width: var(--sidebar-w);
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 1.5rem 0;
  z-index: 100;
  transition: transform 0.35s ease;
}

.sidebar-logo {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0 1.25rem 1.5rem;
  margin-bottom: 0.5rem;
}

.back-home {
  width: 34px; height: 34px;
  border-radius: var(--radius-md);
  background: #ffffff;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.back-home svg { width: 15px; height: 15px; transition: transform 0.2s; }
.back-home:hover { border-color: var(--accent); color: var(--accent); transform: translateX(-2px); }

.logo-text { display: flex; flex-direction: column; gap: 0.15rem; }
.logo-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem; font-weight: 700;
  color: var(--text-primary);
}
.logo-role {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.63rem; font-weight: 500; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--text-muted);
}

/* Nav links */
.nav-links {
  list-style: none;
  flex: 1;
  overflow-y: auto;
  padding: 0 0.75rem;
}

.nav-links li { margin-bottom: 0.2rem; }

.nav-link {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.nav-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  opacity: 0.7;
}

.nav-link:hover { background: var(--border); color: var(--text-primary); }
.nav-link.active { 
  color: var(--on-accent-container); 
  background: var(--accent-container); 
  font-weight: 600;
}

/* Social */
.sidebar-social {
  display: flex; justify-content: center; gap: 0.6rem;
  padding: 1rem 1.25rem 0;
  margin-top: 0.5rem;
}

.soc-link {
  width: 34px; height: 34px;
  border-radius: var(--radius-md);
  background: #ffffff;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary); text-decoration: none;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}
.soc-link img, .soc-link svg { width: 15px; height: 15px; transition: all 0.2s; }
.soc-link img[alt="GitHub"] { filter: brightness(0); }
.soc-link:hover { border-color: var(--accent); border-radius: 50%; transform: translateY(-2px); }
.soc-link:hover svg { color: var(--accent); }

/* ============ MAIN CONTENT ============ */
.main-content {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  position: relative;
}

.main-content::before {
  content: '';
  position: absolute;
  top: 0; right: 0; width: 60vw; height: 60vh;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.04) 0%, transparent 60%);
  z-index: 0;
  pointer-events: none;
}

.mobile-topbar { display: none; }

/* Sections */
.section {
  display: flex;
  flex-direction: column;
  padding: 3rem 0;
  position: relative;
  z-index: 10;
}

.section-inner {
  padding: 0 3rem;
  max-width: 1250px;
  width: 100%;
  margin: 0 auto;
}

.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.section-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1.35rem;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.section-title em {
  font-style: normal;
  color: var(--accent);
}

/* ===== OVERVIEW SECTION ===== */
.overview-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2.25rem;
  align-items: start;
}

.overview-bio {
  padding: 1.5rem 1.75rem;
  border-radius: var(--radius-xl);
  background: var(--bg-surface);
  border: 1px solid var(--border);
}

.overview-text {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  text-align: left;
}

.overview-pills {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
  margin-bottom: 1.5rem;
}

.pill {
  font-family: 'Inter', sans-serif;
  font-size: 0.725rem;
  font-weight: 500;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  background: var(--accent-container);
  color: var(--on-accent-container);
  border: none;
}

/* External links */
.overview-links { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1.5rem; }

.ext-link {
  display: flex; align-items: center; gap: 0.85rem;
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
}

.ext-link:hover {
  background: #ffffff;
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.ext-icon {
  width: 38px; height: 38px;
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.ext-icon img { width: 18px; height: 18px; }
.ext-link[href*="github"] .ext-icon img { filter: brightness(0); }
.ext-info { flex: 1; }
.ext-label { display: block; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.9rem; font-weight: 600; color: var(--text-primary); }
.ext-sub { font-size: 0.725rem; color: var(--text-muted); }

.ext-arrow { width: 18px; height: 18px; color: var(--text-muted); flex-shrink: 0; transition: all 0.2s; }
.ext-link:hover .ext-arrow { color: var(--accent); transform: translate(3px, 0); }

/* Collab box */
.collab-box {
  display: flex; gap: 0.85rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-md);
  border-left: 3px solid #10b981;
  background: #ecfdf5;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #065f46;
}

.collab-pin { font-size: 1.1rem; flex-shrink: 0; }

/* ===== 3D MODEL WIDGET ===== */
.model-widget {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 3.5rem;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

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

.model-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--text-primary);
}

.model-hint {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.63rem;
  color: var(--text-muted);
}

.model-container {
  height: 280px;
  cursor: grab;
  position: relative;
  background: #fafafa;
}

.model-container:active { cursor: grabbing; }

.model-footer {
  padding: 0.75rem;
  border-top: 1px solid var(--border);
  display: flex; gap: 0.5rem;
}

.model-btn {
  flex: 1;
  padding: 0.45rem 0;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.725rem;
  text-align: center;
  text-decoration: none;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}

.model-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}

/* ===== BIOGRAPHY ===== */
.bio-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2.25rem;
}

.bio-text { 
  display: flex; 
  flex-direction: column; 
  gap: 1rem; 
  padding: 1.5rem 1.75rem;
  border-radius: var(--radius-xl);
  background: var(--bg-surface);
  border: 1px solid var(--border);
}
.bio-text p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-secondary);
  text-align: left;
}

.education-timeline { }
.timeline-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.timeline { position: relative; padding-left: 1.25rem; margin-bottom: 1.25rem; }
.timeline::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px; background: var(--border);
}

.tl-item {
  position: relative;
  padding: 0 0 1rem 0.85rem;
  display: flex; gap: 0.75rem;
}

.tl-dot {
  position: absolute; left: -6px; top: 4px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--bg-primary); border: 2px solid var(--accent);
  flex-shrink: 0;
}

.tl-content { display: flex; flex-direction: column; gap: 0.15rem; }
.tl-degree { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.9rem; font-weight: 600; color: var(--text-primary); }
.tl-note { font-family: 'JetBrains Mono', monospace; font-size: 0.68rem; color: var(--accent); font-weight: 500; }

.cv-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius-md);
  background: var(--accent);
  color: #ffffff;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s;
  box-shadow: 0 2px 6px rgba(0, 100, 148, 0.2);
  width: 100%;
}
.cv-btn svg { width: 16px; height: 16px; transition: transform 0.2s; }
.cv-btn:hover { background: #004d73; box-shadow: 0 4px 10px rgba(0, 100, 148, 0.3); }
.cv-btn:hover svg { transform: translateY(2px); }


/* ===== NEWS ===== */
.news-feed { display: flex; flex-direction: column; gap: 0.75rem; max-width: 850px; }

.news-item {
  padding: 0.95rem 1.35rem;
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  background: var(--bg-surface);
  display: grid;
  grid-template-columns: 85px 85px 1fr;
  align-items: center;
  gap: 1rem;
  transition: all 0.2s ease;
}

.news-item.featured { border-color: var(--accent); background: #ffffff; box-shadow: var(--shadow-sm); }
.news-item:hover { background: #ffffff; border-color: var(--border); box-shadow: var(--shadow-sm); }

.news-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.63rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--accent);
  text-align: center;
}

.news-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.news-text {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

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


/* ===== PROJECTS ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.project-card {
  padding: 1.35rem 1.5rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.project-card:hover { 
  transform: translateY(-4px); 
  box-shadow: var(--shadow-md); 
  border-color: var(--accent);
  background: #ffffff;
}

.project-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.project-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.project-desc {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  flex: 1;
}

.project-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1rem; }
.project-tags span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.63rem;
  font-weight: 500;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  color: var(--text-muted);
}

.project-link { margin-top: auto; color: var(--accent); font-weight: 600; text-decoration: none; font-size: 0.85rem; }


/* ===== PUBLICATIONS ===== */
.pub-list { display: flex; flex-direction: column; gap: 0.75rem; max-width: 950px; }

.pub-item {
  display: grid;
  grid-template-columns: 65px 1fr;
  gap: 1.25rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  align-items: start;
  transition: all 0.2s ease;
}
.pub-item:hover { 
  background: #ffffff;
  border-color: var(--accent); 
  box-shadow: var(--shadow-sm);
}

.pub-item.featured-pub {
  background: linear-gradient(135deg, #ffffff 0%, var(--accent-container) 100%);
  border: 1px solid rgba(0, 100, 148, 0.3); /* Based on --accent */
  box-shadow: var(--shadow-sm);
}

.pub-item.featured-pub:hover {
  background: linear-gradient(135deg, #ffffff 0%, #e0f0fa 100%);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.pub-badge {
  display: inline-flex;
  align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--on-accent-container);
  background: #ffeb3b; /* A nice highlight yellow/gold */
  background: linear-gradient(135deg, #ffd700 0%, #fdb931 100%);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  margin-left: 0.5rem;
  vertical-align: middle;
  box-shadow: 0 2px 4px rgba(253, 185, 49, 0.3);
}

.pub-year {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-container);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-md);
  text-align: center;
}

.pub-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.45;
  margin-bottom: 0.35rem;
}

.pub-venue {
  font-size: 0.825rem;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.pub-authors {
  font-size: 0.825rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.pub-links { display: flex; gap: 0.85rem; }
.pub-links a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.725rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s;
}
.pub-links a:hover { text-decoration: underline; }

.pub-cta { padding: 1.25rem 0 0; }

.scholar-btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.65rem 1.25rem;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
}
.scholar-btn img { width: 16px; height: 16px; filter: grayscale(1); }
.scholar-btn:hover { border-color: var(--accent); box-shadow: var(--shadow-md); transform: translateY(-1px); }


/* ===== BOOKS ===== */
.books-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; max-width: 950px; }

.book-card {
  display: flex; gap: 1.15rem;
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  transition: all 0.25s ease;
}
.book-card:hover { 
  transform: translateY(-4px); 
  box-shadow: var(--shadow-md);
  background: #ffffff;
  border-color: var(--accent);
}

.book-spine {
  width: 10px;
  border-radius: 4px;
  background: var(--accent);
  flex-shrink: 0;
}

.book-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.book-desc {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.book-role {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-container);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-md);
  margin-bottom: 0.5rem;
}
.book-link { display: block; font-size: 0.825rem; font-weight: 600; color: var(--accent); text-decoration: none; }


/* ===== TALKS ===== */
.talks-list { display: flex; flex-direction: column; gap: 0.65rem; max-width: 850px; }

.talk-item {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 1.15rem;
  padding: 0.85rem 1.25rem;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  align-items: start;
  transition: all 0.2s ease;
}
.talk-item:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }

.talk-meta { display: flex; flex-direction: column; gap: 0.2rem; }
.talk-year { font-family: 'JetBrains Mono', monospace; font-size: 0.78rem; font-weight: 600; color: var(--accent); }
.talk-venue { font-size: 0.8rem; color: var(--text-secondary); }
.talk-title { margin-bottom: 0.25rem; }
.talk-title a { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.925rem; font-weight: 600; color: var(--text-primary); text-decoration: none; }
.talk-title a:hover { color: var(--accent); text-decoration: underline; }
.talk-type { font-family: 'JetBrains Mono', monospace; font-size: 0.725rem; color: var(--text-muted); }


/* ===== SERVICE ===== */
.service-container {
  padding: 1.5rem 1.75rem;
  border-radius: var(--radius-xl);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  max-width: 1100px;
}
.service-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 2rem; }
.service-cat {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.975rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.85rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--border);
}
.service-list { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.service-list li {
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--text-secondary);
  padding-left: 1rem;
  position: relative;
}
.service-list li::before {
  content: '';
  position: absolute; left: 0; top: 7px;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
}
.service-list a { color: var(--text-primary); font-weight: 500; text-decoration: none; }
.service-list a:hover { color: var(--accent); }


/* ===== TEACHING ===== */
.teaching-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; max-width: 1050px; }

.teach-card {
  padding: 1.5rem 1.25rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  transition: all 0.25s ease;
}
.teach-card:hover { 
  transform: translateY(-4px); 
  box-shadow: var(--shadow-md); 
  border-color: var(--accent);
  background: #ffffff;
}

#teaching.section, #miscellaneous.section {
  padding-bottom: 4rem;
}

.teach-icon { font-size: 1.5rem; margin-bottom: 0.75rem; }
.teach-card h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}
.teach-card p, .teach-card ul {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-secondary);
}
.teach-card ul { list-style: none; padding-left: 0; margin-top: 0.5rem; }
.teach-card ul li { margin-bottom: 0.35rem; padding-left: 1rem; position: relative; }
.teach-card ul li::before { content: '→'; position: absolute; left: 0; color: var(--accent); font-weight: bold; }

.contact-link {
  display: inline-block;
  margin-top: 0.75rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
}
.contact-link:hover { text-decoration: underline; }

/* ===== FOOTER ===== */
.site-footer {
  padding: 3rem 5rem;
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--border);
  background: #ffffff;
}
.site-footer p { font-size: 0.85rem; color: var(--text-muted); }
.footer-back { font-size: 0.85rem; font-weight: 600; color: var(--text-primary); text-decoration: none; }
.footer-back:hover { color: var(--accent); }

/* ===== HAMBURGER ===== */
.hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span {
  width: 24px; height: 2px; background: var(--text-primary);
  border-radius: 2px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
  .section-inner { padding: 0 3rem; }
  .overview-grid { grid-template-columns: 1fr; }
  .model-widget { position: static; }
}

@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }

  .hamburger { display: flex; }

  .mobile-topbar {
    display: flex; align-items: center; gap: 1rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 50;
    background: #ffffff;
    box-shadow: var(--shadow-sm);
  }
  .mobile-name { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1rem; font-weight: 700; color: var(--text-primary); }

  .main-content { margin-left: 0; }
  .section-inner { padding: 0 1.5rem; }
  .section { padding: 3rem 0; }
  .bio-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .books-grid { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr; }
  .teaching-grid { grid-template-columns: 1fr; }
  .news-item { grid-template-columns: auto 1fr; }
  .news-date { display: none; }
  .talk-item { grid-template-columns: 1fr; gap: 0.5rem; }
  .site-footer { flex-direction: column; gap: 1rem; text-align: center; padding: 2rem 1.5rem; }
}

/* Latest Publications Buttons & Modals */
.latest-pub-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin-bottom: 2rem;
  padding: 0.75rem 1.5rem;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-radius: 30px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}
.latest-pub-btn:hover { background: var(--bg-secondary); border-color: var(--border-hover); box-shadow: var(--shadow-md); }

.modal-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
  z-index: 1000;
  align-items: center; justify-content: center;
  padding: 1.5rem;
}
.modal-overlay.modal--open { display: flex; }

.modal-box {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 3rem;
  max-width: 720px; width: 100%;
  max-height: 85vh; overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.modal-close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  width: 40px; height: 40px;
  border-radius: 50%; border: none;
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 1.2rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.modal-close:hover { background: var(--border); color: var(--text-primary); transform: rotate(90deg); }

.modal-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.75rem; font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.modal-pub-item {
  display: flex; gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.modal-pub-year {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem; font-weight: 600;
  color: var(--accent);
  background: var(--accent-container);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-md);
  height: fit-content;
}

.modal-pub-title { margin-bottom: 0.5rem; }
.modal-pub-title a {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.1rem; font-weight: 700;
  color: var(--text-primary); text-decoration: none;
}
.modal-pub-title a:hover { color: var(--accent); text-decoration: underline; }

.modal-pub-venue {
  font-size: 0.9rem; color: var(--text-secondary);
  margin-bottom: 1rem;
}

.modal-pub-desc {
  font-size: 0.95rem; line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.modal-pub-cover {
  display: inline-block;
  font-size: 0.85rem; font-weight: 600;
  color: var(--accent); text-decoration: none;
}
.modal-pub-cover:hover { text-decoration: underline; }

.modal-pub-authors {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.modal-footer {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

/* Custom Checkboxes for Forms */
.custom-checkbox {
  display: flex;
  align-items: center;
  position: relative;
  padding-left: 32px;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--text-secondary);
  user-select: none;
  line-height: 1.4;
}

.custom-checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.custom-checkbox .checkmark {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  height: 20px;
  width: 20px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: all 0.2s ease;
}

.custom-checkbox:hover input ~ .checkmark {
  border-color: var(--accent);
}

.custom-checkbox input:checked ~ .checkmark {
  background-color: var(--accent);
  border-color: var(--accent);
}

.custom-checkbox .checkmark:after {
  content: "";
  position: absolute;
  display: none;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.custom-checkbox input:checked ~ .checkmark:after {
  display: block;
}

.custom-checkbox:hover {
  color: var(--text-primary);
}

/* Form Submit Button */
.form-submit-btn {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.8rem 1.6rem;
  background: var(--accent);
  color: #ffffff;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
  border: none;
  cursor: pointer;
  width: 100%;
  justify-content: center;
}

.form-submit-btn:hover {
  background: #0369a1;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.2);
}

.form-submit-btn svg {
  transition: transform 0.2s ease;
}

.form-submit-btn:hover svg {
  transform: translateX(4px);
}