:root {
  --bg: #ffffff;
  --bg-alt: #f7f8fa;
  --text: #1f2933;
  --muted: #5f6c7b;
  --border: #d9e2ec;
  --primary: #1f4e79;
  --primary-dark: #163a5c;
  --card-bg: #ffffff;
  --shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  --max-width: 1100px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

a:hover {
  text-decoration: underline;
}

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

/* =========================
   NAVIGATION
========================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.navbar {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand a {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}

.nav-links {
  display: flex;
  gap: 1.3rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text);
}

.nav-links a:hover {
  color: var(--primary);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.7rem;
  cursor: pointer;
}

/* =========================
   GENERAL SECTIONS
========================= */

.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

.alt-section {
  max-width: 100%;
  background: var(--bg-alt);
}

.alt-section > * {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

.section-heading {
  margin-bottom: 1.5rem;
}

.section-heading h2 {
  font-size: 2rem;
  margin: 0;
  color: var(--text);
}

.section-heading p {
  margin: 0;
  color: var(--muted);
}

/* =========================
   INTRO SECTION
========================= */

.intro-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3rem;
}

.intro-layout {
  display: grid;
  grid-template-columns: 145px 1fr;
  gap: 2.5rem;
  align-items: start;
}

.intro-photo-wrap {
  display: flex;
  justify-content: center;
}

.intro-photo {
  width: 145px;
  height: 145px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 1px solid var(--border);
  padding: 4px;
  background: #ffffff;
}

.intro-content h1 {
  font-size: 2.25rem;
  line-height: 1.15;
  margin: 0 0 1rem;
  color: var(--text);
}

.intro-text {
  max-width: 820px;
  font-size: 1.08rem;
  line-height: 1.75;
  margin: 0 0 1.4rem;
  color: var(--text);
}

.contact-card-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.2rem;
}

.contact-card {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #ffffff;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.contact-card:hover {
  text-decoration: none;
  border-color: var(--primary);
  background: #f4f8fb;
  color: var(--primary);
}

.contact-icon {
  font-weight: 700;
  color: var(--primary);
}

/* =========================
   DOTTED NEWS TIMELINE
========================= */

.compact-news {
  padding-top: 1.8rem;
}

.dotted-timeline {
  position: relative;
  margin-left: 0.45rem;
  padding-left: 1.7rem;
  border-left: 1px dotted #9aa7b3;
  max-width: 850px;
}

.dot-news-item {
  position: relative;
  margin-bottom: 1.35rem;
}

.dot-news-item:last-child {
  margin-bottom: 0;
}

.dot {
  position: absolute;
  left: -2.08rem;
  top: 0.42rem;
  width: 10px;
  height: 10px;
  background: var(--primary);
  border-radius: 50%;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 1px var(--primary);
}

.dot-news-content {
  padding-bottom: 0.1rem;
}

.dot-date {
  display: inline-block;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.15rem;
}

.dot-news-content p {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.6;
}

/* =========================
   EXPERIENCE
========================= */

.timeline {
  display: grid;
  gap: 1.5rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 70px 160px 1fr;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.timeline-logo {
  width: 60px;
  height: 60px;
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  padding: 0.5rem;
}

.timeline-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.timeline-date {
  color: var(--primary);
  font-weight: 700;
}

.timeline-content h3 {
  margin-top: 0;
  margin-bottom: 0.25rem;
}

.institution {
  color: var(--muted);
  font-weight: 600;
  margin-top: 0;
}

.timeline-content ul {
  margin-bottom: 0;
  padding-left: 1.2rem;
}

/* =========================
   EDUCATION
========================= */

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

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.4rem;
  box-shadow: var(--shadow);
}

.card h3 {
  margin-top: 0;
}

.card-logo {
  width: 70px;
  height: 70px;
  object-fit: contain;
  margin-bottom: 1rem;
}

.date {
  color: var(--primary);
  font-weight: 700;
}

/* =========================
   PUBLICATIONS
========================= */

.publication-list {
  display: grid;
  gap: 1.3rem;
}

.publication {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  background: var(--card-bg);
}

.publication h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.authors,
.venue {
  margin: 0.3rem 0;
  color: var(--muted);
}

.pub-links {
  display: flex;
  gap: 1rem;
  margin-top: 0.8rem;
  font-weight: 700;
}

/* =========================
   AWARDS
========================= */

.awards-list {
  display: grid;
  gap: 1rem;
}

.award-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.2rem 1.4rem;
}

.award-item h3 {
  margin: 0 0 0.25rem;
}

.award-item p {
  margin: 0;
  color: var(--muted);
}

.award-item span {
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}

/* =========================
   RESUME
========================= */

.resume-box {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.5rem 0;
}

.button {
  display: inline-block;
  padding: 0.75rem 1.1rem;
  border-radius: 6px;
  font-weight: 700;
  border: 1px solid var(--primary);
}

.button:hover {
  text-decoration: none;
}

.button.primary {
  background: var(--primary);
  color: #ffffff;
}

.button.primary:hover {
  background: var(--primary-dark);
}

.button.secondary {
  color: var(--primary);
  background: #ffffff;
}

/* =========================
   FOOTER
========================= */

.footer {
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 2rem 1rem;
  color: var(--muted);
  background: var(--bg-alt);
}

.footer p {
  margin: 0.3rem 0;
}

/* =========================
   RESPONSIVE DESIGN
========================= */

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem;
  }

  .nav-links.show {
    display: flex;
  }

  .intro-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .intro-photo-wrap {
    justify-content: flex-start;
  }

  .intro-content h1 {
    font-size: 2rem;
  }

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

  .timeline-logo {
    width: 65px;
    height: 65px;
  }

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

  .award-item {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .navbar {
    padding: 0.85rem 1rem;
  }

  .section,
  .intro-section {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .intro-photo {
    width: 115px;
    height: 115px;
  }

  .intro-content h1 {
    font-size: 1.8rem;
  }

  .intro-text {
    font-size: 1rem;
  }

  .section-heading h2 {
    font-size: 1.7rem;
  }

  .contact-card-row {
    gap: 0.55rem;
  }

  .contact-card {
    font-size: 0.9rem;
    padding: 0.45rem 0.7rem;
  }
}