/* === Base Reset & Typography === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.7;
  color: #333;
  background: #fff;
  padding: 0 20px;
}

a {
  color: #1a0dab;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* === Layout === */
.container {
  max-width: 820px;
  margin: 0 auto;
  padding: 30px 0 60px;
}

/* === Header / Nav === */
header {
  text-align: center;
  margin-bottom: 10px;
}

header h1 {
  font-size: 2em;
  font-weight: normal;
  margin-bottom: 8px;
  color: #222;
}

nav {
  text-align: center;
  margin-bottom: 20px;
  font-size: 1em;
}

nav a {
  margin: 0 4px;
  color: #1a0dab;
}

nav .sep {
  color: #999;
  margin: 0 2px;
}

hr {
  border: none;
  border-top: 1px solid #ccc;
  margin: 20px 0;
}

/* === About Section === */
.about {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  margin-bottom: 10px;
}

.about-photo {
  flex-shrink: 0;
}

.about-photo img {
  width: 180px;
  border-radius: 4px;
}

.about-text p {
  margin-bottom: 12px;
}

/* === Section Headings === */
h2 {
  font-size: 1.35em;
  font-weight: normal;
  color: #222;
  margin-top: 28px;
  margin-bottom: 12px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 4px;
}

h3 {
  font-size: 1.05em;
  font-weight: bold;
  color: #444;
  margin-top: 18px;
  margin-bottom: 8px;
}

/* === Lists === */
ul {
  list-style: disc;
  margin-left: 22px;
  margin-bottom: 12px;
}

ul li {
  margin-bottom: 5px;
}

.news-list {
  list-style: none;
  margin-left: 0;
}

.news-list li {
  margin-bottom: 6px;
}

/* === Experience / Education Entries === */
.entry {
  margin-bottom: 18px;
}

.entry-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
}

.entry-header .org {
  font-weight: bold;
  color: #222;
}

.entry-header .location {
  color: #666;
  font-size: 0.92em;
}

.entry-role {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  font-style: italic;
  color: #555;
  margin-bottom: 4px;
}

.entry-role .dates {
  font-style: normal;
  color: #666;
  font-size: 0.92em;
}

.entry ul {
  margin-top: 4px;
  font-size: 0.95em;
}

/* === Publications === */
.pub-section {
  margin-bottom: 24px;
}

.pub-list {
  list-style: none;
  margin-left: 0;
  counter-reset: pub-counter;
}

.pub-list li {
  counter-increment: pub-counter;
  margin-bottom: 10px;
  padding-left: 30px;
  position: relative;
  font-size: 0.95em;
}

.pub-list li::before {
  content: "[" counter(pub-counter) "]";
  position: absolute;
  left: 0;
  color: #666;
  font-size: 0.9em;
}

.pub-list .me {
  font-weight: bold;
  color: #1a73e8;
}

.pub-list .venue {
  font-style: italic;
}

.pub-list .info {
  color: #666;
  font-size: 0.9em;
}

/* === Service === */
.service-inline {
  margin-bottom: 8px;
}

/* === Links bar === */
.links {
  margin-top: 6px;
  font-size: 0.95em;
}

.links a {
  margin-right: 14px;
}

.links a img {
  height: 20px;
  vertical-align: middle;
}

/* === Technical Tags === */
.tags {
  margin-bottom: 8px;
}

.tag {
  display: inline-block;
  padding: 2px 10px;
  margin: 2px 2px 2px 0;
  font-size: 0.8em;
  font-weight: 500;
  color: #444;
  background-color: #f0f2f5;
  border: 1px solid #dfe1e5;
  border-radius: 15px;
  white-space: nowrap;
}

.tag-ml { color: #1a73e8; background-color: #e8f0fe; border-color: #d2e3fc; }
.tag-med { color: #0d652d; background-color: #e6f4ea; border-color: #ceead6; }
.tag-quantum { color: #7b1fa2; background-color: #f3e5f5; border-color: #e1bee7; }
.tag-tool { color: #555; background-color: #f5f5f5; border-color: #e0e0e0; }

/* === Annotations === */
.annotation {
  display: inline-block;
  padding: 1px 8px;
  font-size: 0.82em;
  font-weight: 600;
  border-radius: 3px;
  vertical-align: middle;
}

.annotation.deployed {
  color: #0d652d;
  background-color: #e6f4ea;
  border: 1px solid #ceead6;
}

/* === Inline Stars Badges === */
p img[alt="Stars"] {
  height: 18px;
  vertical-align: middle;
  margin-left: 2px;
}

/* === Responsive === */
@media (max-width: 600px) {
  .about {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .about-photo img {
    width: 150px;
    margin-bottom: 12px;
  }

  .entry-header,
  .entry-role {
    flex-direction: column;
  }

  .entry-header .location,
  .entry-role .dates {
    font-size: 0.88em;
  }
}

/* === Sticky Navigation === */
.sticky-nav {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  padding: 10px 0;
  border-bottom: 1px solid #e0e0e0;
  text-align: center;
  font-size: 0.95em;
}

.sticky-nav a {
  margin: 0 6px;
  color: #1a0dab;
}

.sticky-nav .sep {
  color: #bbb;
  margin: 0 1px;
}

/* === Research Vision Enhanced === */
.vision-text {
  line-height: 2.0;
}

.vision-text strong {
  color: #1a73e8;
}

/* === Publication Link Buttons === */
.pub-list li a {
  display: inline-block;
  padding: 1px 7px;
  margin: 1px 1px;
  font-size: 0.88em;
  color: #1a73e8;
  background: #f0f6ff;
  border: 1px solid #d2e3fc;
  border-radius: 3px;
  text-decoration: none;
  transition: background 0.15s;
}

.pub-list li a:hover {
  background: #d2e3fc;
  text-decoration: none;
}

/* === Publication Category Tags === */
.pub-tags {
  display: block;
  margin-top: 4px;
}

.pub-tags .tag {
  font-size: 0.7em;
  padding: 1px 7px;
}

/* === Selected Publications Cards === */
.selected-pub {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 16px;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  background: #fafafa;
}

.selected-pub-img {
  flex: 0 0 280px;
  max-width: 280px;
}

.selected-pub-img img {
  display: block;
  width: 100%;
  max-width: 280px;
  height: auto;
  border-radius: 4px;
  border: 1px solid #e8e8e8;
}

.selected-pub-info {
  flex: 1;
  font-size: 0.93em;
}

.selected-pub-info .pub-title {
  font-weight: bold;
  color: #222;
  margin-bottom: 4px;
  line-height: 1.4;
}

.selected-pub-info .pub-authors {
  color: #555;
  margin-bottom: 4px;
}

.selected-pub-info .pub-authors .me {
  font-weight: bold;
  color: #1a73e8;
}

.selected-pub-info .pub-venue {
  font-style: italic;
  color: #666;
  margin-bottom: 6px;
}

.selected-pub-info .pub-links a {
  display: inline-block;
  padding: 1px 7px;
  margin: 1px 1px;
  font-size: 0.88em;
  color: #1a73e8;
  background: #f0f6ff;
  border: 1px solid #d2e3fc;
  border-radius: 3px;
  text-decoration: none;
  transition: background 0.15s;
}

.selected-pub-info .pub-links a:hover {
  background: #d2e3fc;
  text-decoration: none;
}

.selected-pub-info .pub-tags {
  margin-top: 6px;
}

@media (max-width: 600px) {
  .selected-pub {
    flex-direction: column;
    align-items: center;
  }
  .selected-pub-img {
    width: 70%;
    max-width: 300px;
  }
}

/* === Responsive additions === */
@media (max-width: 600px) {
  .sticky-nav {
    font-size: 0.85em;
    padding: 8px 0;
  }
  .sticky-nav a {
    margin: 0 3px;
  }
}
