/* ============================================================
   ACADEMIC CV — Style Sheet
   Aesthetic: Scholar's Study — warm, refined, typographically rich
   ============================================================ */

/* ─── Google Fonts are loaded in index.html ─── */

/* ═══════════════════════════════════════════════
   DESIGN TOKENS
   ═══════════════════════════════════════════════ */

:root {
  /* Palette */
  --color-bg:              #FAF8F5;
  --color-surface:         #FFFFFF;
  --color-sidebar:         #1C1F26;
  --color-sidebar-hover:   #272B34;
  --color-sidebar-text:    #B8B5AD;
  --color-sidebar-heading: #E8E6E0;
  --color-text:            #2D2A26;
  --color-text-secondary:  #6E6A63;
  --color-text-tertiary:   #9A9690;
  --color-accent:          #9B2335;
  --color-accent-hover:    #7A1C2A;
  --color-accent-light:    rgba(155, 35, 53, 0.08);
  --color-border:          #E6E2DC;
  --color-border-light:    #F0EDE8;
  --color-highlight:       #FEF7F0;
  --color-tag-bg:          #F0EDE8;
  --color-tag-text:        #5A5650;

  /* Typography */
  --font-display:  'Cormorant Garamond', 'Georgia', serif;
  --font-body:     'Plus Jakarta Sans', 'Helvetica Neue', sans-serif;
  --font-mono:     'IBM Plex Mono', 'Menlo', monospace;

  /* Spacing scale */
  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2.5rem;
  --space-2xl: 4rem;

  /* Layout */
  --sidebar-width: 280px;
  --content-max:   860px;
  --radius:        6px;
  --radius-lg:     12px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(44, 42, 38, 0.04), 0 1px 2px rgba(44, 42, 38, 0.06);
  --shadow-md:  0 4px 12px rgba(44, 42, 38, 0.06), 0 2px 4px rgba(44, 42, 38, 0.04);
  --shadow-lg:  0 10px 30px rgba(44, 42, 38, 0.08), 0 4px 8px rgba(44, 42, 38, 0.04);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration: 0.35s;
}


/* ═══════════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════════ */

*, *::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-body);
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
}

/* Subtle grain texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--duration) var(--ease-out);
}

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

img {
  max-width: 100%;
  display: block;
}

::selection {
  background: var(--color-accent);
  color: #fff;
}


/* ═══════════════════════════════════════════════
   TYPOGRAPHY
   ═══════════════════════════════════════════════ */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-text);
}

h1 { font-size: 2.6rem; font-weight: 500; letter-spacing: -0.01em; }
h2 { font-size: 1.9rem; font-weight: 500; }
h3 { font-size: 1.35rem; font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }

p {
  margin-bottom: var(--space-md);
}

strong {
  font-weight: 600;
}


/* ═══════════════════════════════════════════════
   LAYOUT — App Shell
   ═══════════════════════════════════════════════ */

.app {
  display: flex;
  min-height: 100vh;
}


/* ═══════════════════════════════════════════════
   SIDEBAR
   ═══════════════════════════════════════════════ */

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--color-sidebar);
  color: var(--color-sidebar-text);
  display: flex;
  flex-direction: column;
  z-index: 100;
  overflow-y: auto;
  transition: transform var(--duration) var(--ease-out);
}

/* Subtle gradient overlay on sidebar */
.sidebar::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.02) 0%,
    transparent 30%,
    transparent 70%,
    rgba(0,0,0,0.15) 100%
  );
}

.sidebar-header {
  padding: var(--space-xl) var(--space-lg) var(--space-lg);
  text-align: center;
  position: relative;
  z-index: 1;
}

.sidebar-photo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto var(--space-lg);
  border: 3px solid rgba(155, 35, 53, 0.5);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.sidebar-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--color-sidebar-heading);
  letter-spacing: 0.01em;
  margin-bottom: var(--space-xs);
}

.sidebar-role {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  font-weight: 600;
}

.sidebar-institution {
  font-size: 0.78rem;
  color: var(--color-sidebar-text);
  margin-top: var(--space-xs);
  opacity: 0.7;
}

/* Navigation */
.sidebar-nav {
  flex: 1;
  padding: var(--space-md) 0;
  position: relative;
  z-index: 1;
}

.sidebar-nav::before {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 0 auto var(--space-md);
}

.nav-link {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.6rem var(--space-lg);
  color: var(--color-sidebar-text);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: all var(--duration) var(--ease-out);
  position: relative;
  cursor: pointer;
  text-decoration: none;
}

.nav-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%) scaleY(0);
  width: 3px;
  height: 60%;
  background: var(--color-accent);
  border-radius: 0 2px 2px 0;
  transition: transform var(--duration) var(--ease-out);
}

.nav-link:hover {
  color: var(--color-sidebar-heading);
  background: var(--color-sidebar-hover);
}

.nav-link.active {
  color: #fff;
}

.nav-link.active::before {
  transform: translateY(-50%) scaleY(1);
}

.nav-icon {
  width: 18px;
  height: 18px;
  opacity: 0.5;
  flex-shrink: 0;
}

.nav-link:hover .nav-icon,
.nav-link.active .nav-icon {
  opacity: 0.9;
}

.nav-badge {
  margin-left: auto;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  background: rgba(255,255,255,0.06);
  padding: 0.1em 0.5em;
  border-radius: 10px;
  color: var(--color-sidebar-text);
}

/* Sidebar footer */
.sidebar-footer {
  padding: var(--space-lg);
  position: relative;
  z-index: 1;
}

.sidebar-footer::before {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 0 auto var(--space-lg);
}

.sidebar-links {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
}

.sidebar-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--color-sidebar-text);
  transition: all var(--duration) var(--ease-out);
  background: rgba(255,255,255,0.04);
}

.sidebar-link:hover {
  color: #fff;
  background: var(--color-accent);
  transform: translateY(-2px);
}

.sidebar-link svg {
  width: 16px;
  height: 16px;
}


/* ═══════════════════════════════════════════════
   MOBILE HEADER
   ═══════════════════════════════════════════════ */

.mobile-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--color-sidebar);
  color: var(--color-sidebar-heading);
  z-index: 200;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-lg);
}

.mobile-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
}

.menu-toggle {
  background: none;
  border: none;
  color: var(--color-sidebar-heading);
  cursor: pointer;
  padding: var(--space-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-toggle svg {
  width: 22px;
  height: 22px;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 99;
  opacity: 0;
  transition: opacity var(--duration) var(--ease-out);
}

.sidebar-overlay.visible {
  opacity: 1;
}


/* ═══════════════════════════════════════════════
   MAIN CONTENT
   ═══════════════════════════════════════════════ */

.main {
  flex: 1;
  margin-left: var(--sidebar-width);
  min-height: 100vh;
}

.main-content {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-xl);
}


/* ═══════════════════════════════════════════════
   SECTION HEADER
   ═══════════════════════════════════════════════ */

.section-header {
  margin-bottom: var(--space-xl);
}

.section-title {
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-sm);
}

.section-line {
  width: 48px;
  height: 2.5px;
  background: var(--color-accent);
  border-radius: 2px;
}

.section-subtitle {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--color-text-tertiary);
  margin-top: var(--space-sm);
  letter-spacing: 0.02em;
}


/* ═══════════════════════════════════════════════
   ABOUT PAGE
   ═══════════════════════════════════════════════ */

.about-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

.about-greeting {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
  font-weight: 500;
}

.about-name {
  font-size: 3rem;
  font-weight: 400;
  margin-bottom: var(--space-xs);
  line-height: 1.1;
}

.about-tagline {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--color-text-secondary);
  font-weight: 400;
  font-style: italic;
  margin-bottom: var(--space-lg);
}

.about-bio {
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--color-text-secondary);
  max-width: 640px;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

.stat-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-md);
  text-align: center;
  transition: all var(--duration) var(--ease-out);
}

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

.stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-accent);
  display: block;
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.stat-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-tertiary);
  font-weight: 600;
}

.stat-source {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--color-text-tertiary);
  margin-top: var(--space-xs);
  opacity: 0.6;
}

/* Research Interests */
.about-section-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: var(--space-md);
  color: var(--color-text);
}

.interests-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-2xl);
}

.interest-tag {
  background: var(--color-accent-light);
  color: var(--color-accent);
  padding: 0.4em 1em;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 500;
  border: 1px solid rgba(155, 35, 53, 0.12);
  transition: all var(--duration) var(--ease-out);
}

.interest-tag:hover {
  background: var(--color-accent);
  color: #fff;
  transform: translateY(-1px);
}

/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.skill-group {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}

.skill-group-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-tertiary);
  margin-bottom: var(--space-sm);
  font-weight: 600;
}

.skill-items {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.skill-item {
  font-size: 0.82rem;
  color: var(--color-text);
  background: var(--color-tag-bg);
  padding: 0.25em 0.7em;
  border-radius: var(--radius);
  font-weight: 500;
}


/* ═══════════════════════════════════════════════
   TIMELINE (Experience & Education)
   ═══════════════════════════════════════════════ */

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

.timeline::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 1.5px;
  background: var(--color-border);
}

.timeline-item {
  position: relative;
  padding-bottom: var(--space-xl);
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -32px;
  top: 6px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--color-bg);
  border: 2.5px solid var(--color-border);
  z-index: 1;
  transition: all var(--duration) var(--ease-out);
}

.timeline-item:hover .timeline-dot {
  border-color: var(--color-accent);
  background: var(--color-accent);
  box-shadow: 0 0 0 4px var(--color-accent-light);
}

.timeline-item.current .timeline-dot {
  border-color: var(--color-accent);
  background: var(--color-accent);
  box-shadow: 0 0 0 4px var(--color-accent-light);
}

.timeline-period {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-text-tertiary);
  letter-spacing: 0.02em;
  margin-bottom: var(--space-xs);
}

.timeline-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.timeline-org {
  font-size: 0.9rem;
  color: var(--color-accent);
  font-weight: 500;
  margin-bottom: 2px;
}

.timeline-dept {
  font-size: 0.82rem;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-sm);
}

.timeline-gpa {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--color-accent);
  background: var(--color-accent-light);
  display: inline-block;
  padding: 0.15em 0.7em;
  border-radius: var(--radius);
  margin-bottom: var(--space-sm);
}

.timeline-details {
  list-style: none;
  padding: 0;
}

.timeline-details li {
  position: relative;
  padding-left: 16px;
  font-size: 0.88rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-xs);
}

.timeline-details li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-border);
}

.timeline-teaching {
  margin-top: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: var(--color-highlight);
  border-radius: var(--radius);
  border-left: 2.5px solid var(--color-accent);
}

.timeline-teaching-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-tertiary);
  margin-bottom: var(--space-xs);
  font-weight: 600;
}

.timeline-teaching-list {
  list-style: none;
  padding: 0;
}

.timeline-teaching-list li {
  font-size: 0.82rem;
  color: var(--color-text-secondary);
  padding: 0.15em 0;
}


/* ═══════════════════════════════════════════════
   PUBLICATIONS
   ═══════════════════════════════════════════════ */

.pub-controls {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
}

.pub-filters {
  display: flex;
  gap: var(--space-xs);
}

.pub-filter {
  background: none;
  border: 1.5px solid var(--color-border);
  padding: 0.4em 1em;
  border-radius: 20px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all var(--duration) var(--ease-out);
}

.pub-filter:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.pub-filter.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

.pub-search {
  flex: 1;
  min-width: 200px;
  padding: 0.5em 1em;
  border: 1.5px solid var(--color-border);
  border-radius: 20px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--color-text);
  background: var(--color-surface);
  outline: none;
  transition: border-color var(--duration) var(--ease-out);
}

.pub-search::placeholder {
  color: var(--color-text-tertiary);
}

.pub-search:focus {
  border-color: var(--color-accent);
}

.pub-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pub-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-md);
  border-radius: var(--radius);
  transition: all var(--duration) var(--ease-out);
}

.pub-item:hover {
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

.pub-number {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--color-text-tertiary);
  padding-top: 3px;
  text-align: right;
}

.pub-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 3px;
  color: var(--color-text);
}

.pub-authors {
  font-size: 0.82rem;
  color: var(--color-text-secondary);
  margin-bottom: 3px;
  line-height: 1.5;
}

.pub-authors strong {
  color: var(--color-text);
  font-weight: 600;
}

.pub-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.pub-venue {
  font-size: 0.78rem;
  color: var(--color-accent);
  font-weight: 500;
  font-style: italic;
}

.pub-year {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--color-text-tertiary);
}

.pub-if {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  background: var(--color-tag-bg);
  padding: 0.15em 0.55em;
  border-radius: var(--radius);
  color: var(--color-tag-text);
}

.pub-doi {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--color-accent);
}

.pub-doi:hover {
  text-decoration: underline;
}

.pub-type-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.15em 0.55em;
  border-radius: var(--radius);
  font-weight: 600;
}

.pub-type-badge.book {
  background: #F3E8FF;
  color: #7C3AED;
}

.pub-type-badge.conference {
  background: #E0F2FE;
  color: #0369A1;
}

.pub-empty {
  text-align: center;
  padding: var(--space-2xl);
  color: var(--color-text-tertiary);
  font-style: italic;
}


/* ═══════════════════════════════════════════════
   TALKS
   ═══════════════════════════════════════════════ */

.talks-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.talk-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: var(--space-lg);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-border-light);
  transition: all var(--duration) var(--ease-out);
}

.talk-item:last-child {
  border-bottom: none;
}

.talk-date {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--color-text-tertiary);
  padding-top: 3px;
}

.talk-event {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.talk-host {
  font-size: 0.85rem;
  color: var(--color-accent);
  font-weight: 500;
  margin-bottom: var(--space-xs);
}

.talk-topic {
  font-size: 0.88rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  font-style: italic;
}

.talk-location {
  font-size: 0.78rem;
  color: var(--color-text-tertiary);
  margin-top: var(--space-xs);
}


/* ═══════════════════════════════════════════════
   HONORS
   ═══════════════════════════════════════════════ */

.honors-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.honor-item {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: var(--space-md);
  padding: var(--space-md);
  border-radius: var(--radius);
  transition: all var(--duration) var(--ease-out);
}

.honor-item:hover {
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

.honor-year {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--color-text-tertiary);
  padding-top: 2px;
  text-align: right;
}

.honor-title {
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 2px;
}

.honor-org {
  font-size: 0.82rem;
  color: var(--color-text-secondary);
}


/* ═══════════════════════════════════════════════
   SERVICE
   ═══════════════════════════════════════════════ */

.service-group {
  margin-bottom: var(--space-2xl);
}

.service-group-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--color-border);
}

.service-item {
  padding: var(--space-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-md);
  transition: all var(--duration) var(--ease-out);
}

.service-item:hover {
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.service-role {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.service-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 3px;
}

.service-detail {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}

.service-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-text-tertiary);
  margin-top: var(--space-xs);
}

.service-status {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.15em 0.55em;
  border-radius: var(--radius);
  font-weight: 600;
  background: #ECFDF5;
  color: #065F46;
}

/* Reviewer lists */
.reviewer-columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xs) var(--space-xl);
}

.reviewer-item {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  padding: var(--space-xs) 0;
  border-bottom: 1px solid var(--color-border-light);
  transition: color var(--duration) var(--ease-out);
}

.reviewer-item:hover {
  color: var(--color-text);
}


/* ═══════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════ */

.fade-in {
  animation: fadeIn 0.5s var(--ease-out) forwards;
}

.slide-up {
  opacity: 0;
  transform: translateY(16px);
  animation: slideUp 0.5s var(--ease-out) forwards;
}

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

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Stagger delays for child elements */
.stagger > * { opacity: 0; animation: slideUp 0.45s var(--ease-out) forwards; }
.stagger > *:nth-child(1)  { animation-delay: 0.04s; }
.stagger > *:nth-child(2)  { animation-delay: 0.08s; }
.stagger > *:nth-child(3)  { animation-delay: 0.12s; }
.stagger > *:nth-child(4)  { animation-delay: 0.16s; }
.stagger > *:nth-child(5)  { animation-delay: 0.20s; }
.stagger > *:nth-child(6)  { animation-delay: 0.24s; }
.stagger > *:nth-child(7)  { animation-delay: 0.28s; }
.stagger > *:nth-child(8)  { animation-delay: 0.32s; }
.stagger > *:nth-child(9)  { animation-delay: 0.36s; }
.stagger > *:nth-child(10) { animation-delay: 0.40s; }
.stagger > *:nth-child(n+11) { animation-delay: 0.44s; }


/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .main-content {
    padding: var(--space-xl) var(--space-lg);
  }
}

@media (max-width: 768px) {
  .mobile-header {
    display: flex;
  }

  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
    box-shadow: 10px 0 30px rgba(0,0,0,0.3);
  }

  .sidebar-overlay.visible {
    display: block;
  }

  .main {
    margin-left: 0;
    padding-top: 60px;
  }

  .main-content {
    padding: var(--space-xl) var(--space-md);
  }

  .about-name {
    font-size: 2.2rem;
  }

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

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

  .talk-item {
    grid-template-columns: 1fr;
    gap: var(--space-xs);
  }

  .pub-item {
    grid-template-columns: 1fr;
  }

  .pub-number {
    text-align: left;
  }

  .honor-item {
    grid-template-columns: 1fr;
  }

  .honor-year {
    text-align: left;
  }

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

  .pub-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .pub-search {
    min-width: auto;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
  }

  .stat-card {
    padding: var(--space-md) var(--space-sm);
  }

  .stat-number {
    font-size: 1.6rem;
  }

  .about-name {
    font-size: 1.8rem;
  }
}


/* ═══════════════════════════════════════════════
   PRINT STYLES
   ═══════════════════════════════════════════════ */

@media print {
  .sidebar,
  .mobile-header,
  .sidebar-overlay {
    display: none !important;
  }

  .main {
    margin-left: 0;
  }

  .pub-item:hover,
  .honor-item:hover,
  .service-item:hover {
    background: none;
    box-shadow: none;
  }

  body::before {
    display: none;
  }
}
