/* latin-ext */
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 400;
  src: local('Lato Italic'), local('Lato-Italic'), url(https://fonts.gstatic.com/s/lato/v15/S6u8w4BMUTPHjxsAUi-qNiXg7eU0.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 400;
  src: local('Lato Italic'), local('Lato-Italic'), url(https://fonts.gstatic.com/s/lato/v15/S6u8w4BMUTPHjxsAXC-qNiXg7Q.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 700;
  src: local('Lato Bold Italic'), local('Lato-BoldItalic'), url(https://fonts.gstatic.com/s/lato/v15/S6u_w4BMUTPHjxsI5wq_FQftx9897sxZ.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 700;
  src: local('Lato Bold Italic'), local('Lato-BoldItalic'), url(https://fonts.gstatic.com/s/lato/v15/S6u_w4BMUTPHjxsI5wq_Gwftx9897g.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  src: local('Lato Regular'), local('Lato-Regular'), url(https://fonts.gstatic.com/s/lato/v15/S6uyw4BMUTPHjxAwXiWtFCfQ7A.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  src: local('Lato Regular'), local('Lato-Regular'), url(https://fonts.gstatic.com/s/lato/v15/S6uyw4BMUTPHjx4wXiWtFCc.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  src: local('Lato Bold'), local('Lato-Bold'), url(https://fonts.gstatic.com/s/lato/v15/S6u9w4BMUTPHh6UVSwaPGQ3q5d0N7w.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  src: local('Lato Bold'), local('Lato-Bold'), url(https://fonts.gstatic.com/s/lato/v15/S6u9w4BMUTPHh6UVSwiPGQ3q5d0.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

a {
  color: #1772d0;
  text-decoration: none;
}

a:focus,
a:hover {
  color: #f09228;
  text-decoration: none;
}

body,
td,
th,
tr,
p,
a {
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 16px;
}

strong {
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 14px;
}

heading {
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 22px;
}

papertitle {
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 700
}

name {
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 32px;
}

.one {
  width: 160px;
  height: 160px;
  position: relative;
}

.two {
  width: 160px;
  height: 160px;
  position: absolute;
  transition: opacity .2s ease-in-out;
  -moz-transition: opacity .2s ease-in-out;
  -webkit-transition: opacity .2s ease-in-out;
}

.fade {
  transition: opacity .2s ease-in-out;
  -moz-transition: opacity .2s ease-in-out;
  -webkit-transition: opacity .2s ease-in-out;
}

span.highlight {
  background-color: #ffffd0;
}

/* ------------------------------
   Modern "LLM" vibe overrides
   - keep HTML unchanged
   - dark-first, minimal, readable
------------------------------ */
:root {
  --bg: #0b1020;
  --panel: rgba(255, 255, 255, 0.06);
  --panel-strong: rgba(255, 255, 255, 0.10);
  --border: rgba(255, 255, 255, 0.12);
  --text: rgba(255, 255, 255, 0.86);
  --muted: rgba(255, 255, 255, 0.62);
  --brand: #7c5cff;
  --brand2: #19d3ff;
  --link: #9bb3ff;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
  --radius: 16px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f8fb;
    --panel: rgba(0, 0, 0, 0.03);
    --panel-strong: rgba(0, 0, 0, 0.06);
    --border: rgba(0, 0, 0, 0.10);
    --text: rgba(0, 0, 0, 0.84);
    --muted: rgba(0, 0, 0, 0.60);
    --link: #2f5cff;
    --shadow: 0 18px 50px rgba(10, 20, 40, 0.12);
  }
}

html {
  scroll-behavior: smooth;
}

body {
  background: radial-gradient(900px 500px at 20% 0%, rgba(124, 92, 255, 0.35), transparent 60%),
              radial-gradient(900px 500px at 80% 10%, rgba(25, 211, 255, 0.20), transparent 60%),
              var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: 0.1px;
}

/* Make the overall container feel less "table-y" */
body > table {
  background: transparent;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--brand2);
}

p {
  line-height: 1.7;
  color: var(--text);
}

heading {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

name {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.profile-title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--brand2);
  margin-top: -4px;
  margin-bottom: 14px;
}

.profile-photo {
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.profile-photo:hover {
  transform: scale(1.015);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.35);
}

.year-title {
  color: var(--muted);
  font-weight: 800;
  margin-top: 18px;
  margin-bottom: 8px;
}

/* Navbar: glass + blur */
.navbar.navbar-default.navbar-fixed-top {
  background: rgba(20, 24, 35, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}

@media (prefers-color-scheme: light) {
  .navbar.navbar-default.navbar-fixed-top {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(0, 0, 0, 0.08);
  }
}

.navbar-default .navbar-brand,
.navbar-default .navbar-nav > li > a {
  color: var(--text) !important;
}

.navbar-default .navbar-nav > li > a:hover {
  color: var(--brand2) !important;
}

/* Sections as soft cards (tables inside) */
a[id],
#research,
#news,
#pub,
#awards {
  scroll-margin-top: 92px;
}

/* Publication rows hover */
tr[onmouseover] td {
  transition: transform 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

tr[onmouseover]:hover td {
  background: var(--panel);
}

tr[onmouseover]:hover td:first-child {
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
}

tr[onmouseover]:hover td:last-child {
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
}

/* Make image cards cleaner */
img {
  image-rendering: auto;
}

img[alt="profile photo"] {
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

/* Simple pill/tags + buttons */
.llm-tags {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.llm-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.2px;
}

.llm-actions {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.llm-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.18), rgba(25, 211, 255, 0.10));
  border: 1px solid rgba(124, 92, 255, 0.35);
  color: var(--text);
  font-weight: 700;
  font-size: 13px;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.llm-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  border-color: rgba(25, 211, 255, 0.55);
}

.llm-btn.secondary {
  background: var(--panel);
  border: 1px solid var(--border);
  font-weight: 600;
}

/* Timeline (Experience) */
.timeline {
  position: relative;
  margin-top: 14px;
  padding-left: 18px;
}

.timeline:before {
  content: '';
  position: absolute;
  left: 6px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, rgba(124, 92, 255, 0.80), rgba(25, 211, 255, 0.25));
  border-radius: 999px;
}

.timeline-item {
  position: relative;
  display: flex;
  gap: 16px;
  padding: 12px 0;
}

.timeline-dot {
  width: 92px;
  height: 62px;
  border-radius: 20px;
  background: rgba(124, 92, 255, 0.18);
  border: 1px solid rgba(124, 92, 255, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  flex: 0 0 auto;
  margin-left: -6px; /* visually align with line */
}

.timeline-logo {
  width: 76px;
  height: 46px;
  object-fit: contain;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.85);
  padding: 2px;
}

@media (prefers-color-scheme: light) {
  .timeline-logo {
    background: rgba(255, 255, 255, 0.95);
  }
}

.timeline-content {
  flex: 1 1 auto;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 12px;
}

.timeline-title {
  font-weight: 800;
  letter-spacing: 0.2px;
  color: var(--text);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.timeline-time {
  font-weight: 700;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.timeline-subtitle {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.5;
}

.timeline-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}

/* Publications cards */
.pub-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 10px 0 4px;
}

.pub-card {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 14px;
  align-items: start;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.pub-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  border-color: rgba(25, 211, 255, 0.35);
}

.pub-thumb img {
  width: 108px;
  height: 80px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.pub-body {
  min-width: 0;
}

.pub-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.pub-title {
  font-weight: 900;
  letter-spacing: 0.15px;
  color: var(--text);
  line-height: 1.25;
}

.pub-meta {
  flex: 0 0 auto;
}

.pub-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.2px;
  color: rgba(255, 255, 255, 0.92);
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.65), rgba(25, 211, 255, 0.45));
  border: 1px solid rgba(255, 255, 255, 0.16);
  white-space: nowrap;
}

@media (prefers-color-scheme: light) {
  .pub-badge {
    color: rgba(0, 0, 0, 0.75);
  }
}

.pub-badge.neutral {
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  border: 1px solid var(--border);
}

.pub-authors {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.55;
}

.pub-links {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pub-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 700;
  font-size: 12px;
}

.pub-link:hover {
  border-color: rgba(124, 92, 255, 0.45);
  color: var(--brand2);
}

/* ========== Research Section ========== */
.research-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.research-card {
  background: var(--panel-strong);
  border: 1px solid rgba(124, 92, 255, 0.18);
  border-radius: 16px;
  padding: 18px 18px;
  display: grid;
  grid-template-columns: 48px 1fr;
  grid-template-rows: auto auto;
  column-gap: 14px;
  row-gap: 6px;
  align-items: start;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.research-card:hover {
  transform: translateY(-3px);
  border-color: rgba(25, 211, 255, 0.35);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.research-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.22), rgba(25, 211, 255, 0.12));
  border: 1px solid rgba(124, 92, 255, 0.30);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--brand2);
  grid-row: 1 / span 2;
  grid-column: 1;
}

.research-title {
  font-weight: 900;
  font-size: 18px;
  color: var(--text);
  letter-spacing: 0.15px;
  grid-column: 2;
  grid-row: 1;
  align-self: center;
}

.research-desc {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
  grid-column: 2;
  grid-row: 2;
}

/* ========== News Section ========== */
.news-timeline {
  position: relative;
  margin-top: 14px;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.news-timeline:before {
  content: '';
  position: absolute;
  left: 6px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, rgba(25, 211, 255, 0.55), rgba(124, 92, 255, 0.20));
  border-radius: 999px;
}

.news-item {
  position: relative;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--panel-strong);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 12px 14px;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.news-item:before {
  content: '';
  position: absolute;
  left: -18px;
  top: 16px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(25, 211, 255, 0.85);
  box-shadow: 0 0 0 4px rgba(25, 211, 255, 0.15);
}

.news-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.25);
  border-color: rgba(25, 211, 255, 0.25);
}

.news-date {
  flex: 0 0 auto;
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 0.2px;
  color: rgba(255, 255, 255, 0.96);
  background: rgba(25, 211, 255, 0.26);
  border: 1px solid rgba(25, 211, 255, 0.45);
  padding: 6px 10px;
  border-radius: 999px;
  margin-top: 1px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

@media (prefers-color-scheme: light) {
  .news-date {
    color: rgba(0, 0, 0, 0.78);
    background: rgba(25, 211, 255, 0.18);
    border-color: rgba(25, 211, 255, 0.35);
  }
}

.news-content {
  flex: 1 1 auto;
  font-size: 16px;
  color: var(--text);
  line-height: 1.65;
}

/* ========== Awards Section ========== */
.awards-timeline {
  margin-top: 14px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px;
}

.awards-timeline:before {
  display: none;
}

.award-item {
  position: relative;
  display: flex;
  gap: 10px;
  align-items: center;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.08), rgba(255, 180, 0, 0.03));
  border: 1px solid rgba(255, 215, 0, 0.15);
  border-radius: 14px;
  padding: 12px 14px;
  flex: 1 1 calc(50% - 6px);
  min-width: 200px;
  max-width: 48%;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.award-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(255, 215, 0, 0.12);
}

.award-item:before {
  display: none;
}

.award-year {
  flex: 0 0 auto;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.2px;
  color: rgba(255, 255, 255, 0.96);
  background: rgba(255, 215, 0, 0.26);
  border: 1px solid rgba(255, 215, 0, 0.45);
  padding: 6px 10px;
  border-radius: 999px;
  margin-top: 1px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

@media (prefers-color-scheme: light) {
  .award-year {
    color: rgba(0, 0, 0, 0.78);
    background: rgba(255, 215, 0, 0.18);
    border-color: rgba(255, 215, 0, 0.35);
  }
}

.awards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.award-card {
  display: flex;
  gap: 14px;
  align-items: center;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.08), rgba(255, 180, 0, 0.03));
  border: 1px solid rgba(255, 215, 0, 0.15);
  border-radius: 14px;
  padding: 14px 16px;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.award-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 215, 0, 0.35);
  box-shadow: 0 12px 30px rgba(255, 215, 0, 0.12);
}

.award-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.25), rgba(255, 180, 0, 0.10));
  border: 1px solid rgba(255, 215, 0, 0.30);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #ffd700;
  flex: 0 0 auto;
}

.award-info {
  flex: 1 1 auto;
  min-width: 0;
}

.award-title {
  font-weight: 800;
  font-size: 14px;
  color: var(--text);
  letter-spacing: 0.15px;
}

.award-subtitle {
  margin-top: 4px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.award-date {
  margin-top: 6px;
  font-weight: 700;
  font-size: 11px;
  color: var(--brand2);
  letter-spacing: 0.3px;
}

/* Reduce table spacing a bit on mobile */
@media (max-width: 768px) {
  name { font-size: 28px; }
  heading { font-size: 19px; }
  body { padding-top: 66px; }
  .timeline-title { flex-direction: column; align-items: flex-start; }
  .pub-card { grid-template-columns: 1fr; }
  .pub-thumb img { width: 100%; height: 160px; }
  .pub-header { flex-direction: column; align-items: flex-start; }
  
  /* Responsive for Research, News, Awards */
  .research-grid { grid-template-columns: 1fr; }
  .news-item { flex-direction: column; gap: 8px; }
  .news-date { flex: none; width: fit-content; }
  .awards-grid { grid-template-columns: 1fr; }
  .awards-timeline { flex-direction: column; }
  .award-item { flex-direction: row; flex: 1 1 100%; max-width: 100%; min-width: auto; }
  .award-year { width: fit-content; flex-shrink: 0; }
  .award-card { flex-direction: column; align-items: flex-start; text-align: left; }
  .award-icon { margin-bottom: 8px; }
}
