/* ===========================================
   style.css — full-height scrolling rows layout
   =========================================== */

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

:root {
  --accent: #2f5d8a;
  --text-main: #222;
  --text-muted: #5a5a5a;
  --bg: #fdfdfc;
  --bg-alt: #f4f6f8;
  --border: #e2e2e0;
}


html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text-main);
  background: var(--bg);
  line-height: 1.6;
}

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: normal;
}

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

a:hover {
  text-decoration: underline;
}


/* ---------- Top navbar ---------- */
#top-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6vw;
  background: rgba(31, 58, 86, 0.96);
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  border-bottom: 1px solid var(--border);
  z-index: 30;
}

.nav-logo {
  font-family: Georgia, serif;
  font-size: 1.1rem;
  color: #f4f6f8;
}

#top-navbar nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

#top-navbar nav a {
  font-size: 0.9rem;
  color: #c9d6e3;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

#top-navbar nav a:hover {
  color: #fff;
  text-decoration: none;
}

#top-navbar nav a.active {
  color: #fff;
  border-bottom-color: #7fa8d1;
}

/* push content below the fixed navbar, and fix anchor scroll offset */
body {
  padding-top: 60px;
}

.row {
  scroll-margin-top: 60px;
}

@media (max-width: 768px) {
  #top-navbar nav ul {
    gap: 0.8rem;
    flex-wrap: wrap;
  }

  #top-navbar {
    height: auto;
    flex-direction: column;
    padding: 0.8rem 4vw;
  }

  body {
    padding-top: 90px;
  }
}

/* ---------- Each row = full viewport height ---------- */
.row {
  min-height: auto;
  padding: 4rem 6vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-bottom: 1px solid var(--border);
}

.row:nth-of-type(even) {
  background: var(--bg-alt);
}

.row h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

/* ---------- Row 1: split hero (photo/info left, summary right) ---------- */
.row.split {
  flex-direction: row;
  align-items: self-start;
  gap: 9rem;
}

.col-left {
  flex: 0 0 300px;
  text-align: center;
}

.col-right {
  margin-bottom: 0.9rem;
  text-align: justify;
}

#profile-photo {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.2rem;
  display: block;
  box-shadow: 0 2px 0 2px #d7d7d7, 0 6px 14px #28415d;
}

.col-left h1 {
  font-size: 1.6rem;
  margin-bottom: 0.3rem;
}

#tagline {
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}

#contact-links {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 0.7rem;
  margin-bottom: 1.2rem;
}

#contact-links a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  font-size: 1rem;
  transition: background 0.15s, color 0.15s;
}

#contact-links a:hover {
  background: var(--accent);
  color: #fff;
  text-decoration: none;
}

#interest-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
}

#interest-tags li {
  font-size: 0.75rem;
  background: #eef2f6;
  color: var(--accent);
  padding: 0.25rem 0.6rem;
  border-radius: 12px;
}

.col-right h2 {
  font-size: 1.3rem;
  border: none;
  padding: 0;
  margin-bottom: 0.8rem;
}

.col-right p {
  max-width: 80ch;
  text-align: justify;
  margin-top: 9px;
}

/* ---------- Timeline entries ---------- */

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

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

.timeline-entry {
  position: relative;
  background: var(--bg);
  border-radius: 12px;
  padding: 1.2rem 1.5rem;
  margin-bottom: 1.5rem;
}

.timeline-entry::before {
  content: "";
  position: absolute;
  left: -32px;
  top: 1.4rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
}

.entry-dates {
  font-size: 0.9rem;
  color: #0980f4;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.3rem;
}

.timeline-entry h3 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
  font-weight: bolder;
}

.entry-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 0.2rem;
}

.entry-supervisor {
  font-size: 0.89rem;
  color: var(--accent);
  font-style: italic;
  margin-bottom: 0.7rem;
}

.entry-achievements {
  padding-left: 1.2rem;
  font-size: 0.93rem;
}

.entry-achievements li {
  margin-bottom: 0.35rem;
}

.timeline-entry {
  transition: box-shadow 0.2s ease;
  border: 1px solid transparent;
}

.timeline-entry:hover {
  border-color: var(--accent);
}

.timeline-entry::before {
  transition: transform 0.2s ease;
}

.timeline-entry:hover::before {
  transform: scale(1.5);
  background: var(--accent);
  border: 2px solid var(--bg-alt);
}

/* ---------- Publications / Projects / Skills ---------- */
.publication,
.project {
  margin-bottom: 1.2rem;
}

.pub-title,
.project h3 {
  font-weight: 600;
  font-size: 1.05rem;
}

.pub-meta,
.project p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.skill-group {
  margin-bottom: 1rem;
}

.skill-group h3 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin-bottom: 0.3rem;
}

/* ---------- Dot navigation ---------- */
#dot-nav {
  position: fixed;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  z-index: 20;
}

#dot-nav a {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  display: block;
}

#dot-nav a:hover {
  background: var(--accent);
}

#dot-nav a.active {
  background: var(--accent);
  transform: scale(1.1);
}

/* ---------- Footer (inside last row) ---------- */
footer {
  margin-top: 2rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .row.split {
    flex-direction: column;
    text-align: center;
    gap: 5rem;
  }

  .col-right p {
    max-width: 100%;
    margin: 13px auto;
    text-align: justify;
    hyphens: none;
    font-size: 0.9rem;
  }

  .col-left {
    flex: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .row {
    padding: 3rem 6vw;
    min-height: auto;
  }

  #dot-nav {
    display: none;
  }

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

  .news-date {
    width: auto;
  }
}

.about-columns {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.about-col {
  flex: 1;
  min-width: 200px;
}

.about-col h3 {
  font-family: -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.9rem;
}

/* Interests: dot-accent list */
.dot-list {
  list-style: none;
}

.dot-list li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.dot-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

/* Education: icon list */
.education-list {
  list-style: none;
}

.education-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.education-list li i {
  color: var(--accent);
  font-size: 1.05rem;
  margin-top: 0.2rem;
}

.edu-title {
  font-size: 0.95rem;
  font-weight: 500;
  margin: 0;
  color: var(--accent);
  font-weight: bolder;
}

.edu-sub {
  font-size: 0.80rem;
  font-style: italic;
  color: var(--text-muted);
  margin: 0;
}

.edu-gpa {
  font-size: 0.79rem;
  font-weight: bolder;
}

.pub-card {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.3rem;
  margin-bottom: 1.5rem;
}

.pub-image {
  width: 270px;
  height: 240px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  background: var(--bg-alt);
}

.pub-content {
  flex: 1;
}

.pub-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.pub-venue {
  font-size: 0.9rem;
  font-style: italic;
  color: var(--accent);
  margin-bottom: 0.6rem;
  font-weight: bolder;
}

.pub-desc {
  font-size: 0.99rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 0.6rem;
  text-align: justify;
  hyphens: auto;
  margin-right: 52px;
}

.pub-link {
  font-size: 0.9rem;
  color: var(--accent);
}

@media (max-width: 600px) {
  .pub-card {
    flex-direction: column;
  }

  .pub-image {
    width: 100%;
    height: 250px;
  }

  .pub-desc {
    font-size: 0.8rem;
    text-align: justify;
    hyphens: none;
    margin-right: auto;
  }
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}

.project-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.2rem 1.4rem;
}

.project-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

.project-card-top h3 {
  font-size: 1.05rem;
  margin: 0;
}

.project-card-top a {
  color: var(--text-main);
  font-size: 1.1rem;
}

.project-card-top a:hover {
  color: var(--accent);
  transform: scale(1.5)
}

.project-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0.8rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.project-tags span {
  font-size: 0.75rem;
  background: #dee1f1;
  color: var(--accent);
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
}

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

.project-card {
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 8px 20px rgba(47, 93, 138, 0.15);
}

.pub-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 8px 20px rgba(47, 93, 138, 0.15);
}

.coursework-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.course-pill {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  font-size: 0.85rem;
}

.course-name {
  padding: 6px 12px;
  background: var(--bg);
}

.course-grade {
  width: 90px;
  padding: 6px 4px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.8rem;
  white-space: nowrap;
  text-align: center;
  flex-shrink: 0;
}

.skills-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5.5rem;
}

.skill-cat-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.skill-bar-item {
  margin-bottom: 1rem;
}

.skill-bar-label {
  font-size: 0.88rem;
  margin-bottom: 0.3rem;
}

.skill-bar-track {
  height: 20px;
  border-radius: 10px;
  border: 2px solid var(--accent);
  padding: 2px;
  background: var(--bg-alt);
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  border-radius: 10px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.70rem;
  font-weight: 500;
  white-space: nowrap;
}

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

.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
}

.news-card {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  /* border: 1px solid var(--border); */
  border-radius: 12px;
  padding: 1rem 1.3rem;
  /* background: var(--bg); */
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.news-date {
  flex-shrink: 0;
  width: 90px;
  color: #0980f4;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.news-text {
  flex: 1;
}

.news-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 8px 20px rgba(47, 93, 138, 0.15);
}


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

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

.cv-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 0.4rem;
  padding: 0.6rem 1.3rem;
  background: var(--accent);
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.95rem;
  border-radius: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cv-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(47, 93, 138, 0.3);
  text-decoration: none;
}