*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background-color: #f5f5f7;
  color: #111827;
}

/* Layout */
.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ================= HEADER ================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 245, 247, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e5e7eb;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 0;
}

.logo a {
  font-weight: 700;
  font-size: 1.2rem;
  text-decoration: none;
  color: #111827;
}

.logo span {
  color: #2563eb;
}

.nav a {
  margin-left: 1rem;
  text-decoration: none;
  font-size: 0.92rem;
  color: #4b5563;
  font-weight: 500;
}

.nav a:hover {
  color: #111827;
}

/* ================= HERO ================= */
.hero {
  padding: 3rem 0;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 3.5rem;
  align-items: center;
}

.hero-kicker {
  color: #6b7280;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero h1 {
  margin: 0.3rem 0 1rem;
  font-size: 2.4rem;
}

.hero h1 span {
  color: #2563eb;
}

.hero-summary {
  line-height: 1.7;        /* improve readability */
}

.hero-summary {
  color: #4b5563;
  font-size: 0.98rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.55rem 1.2rem;
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
}

/* Primary button */
.primary-btn {
  background-color: #2563eb;
  color: #fff;
}

.primary-btn:hover {
  background-color: #1d4ed8;
}

/* Ghost button */
.ghost-btn {
  background: transparent;
  border: 1px solid #d1d5db;
  color: #111;
}

.ghost-btn:hover {
  background-color: #e5e7eb;
}

/* YouTube mini button */
.yt-mini-btn {
  background-color: #2563eb;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  padding: 0;
}

.yt-mini-btn:hover {
  background-color: #1d4ed8;
}

.yt-mini-btn i {
  padding-left: 1px;
}

.youtube-full-btn {
  background-color: #2563eb;     /* Same blue as view button */
  color: white;
  border-radius: 999px;
  padding: 0.55rem 1.2rem;
  font-size: 0.92rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
}

.youtube-full-btn:hover {
  background-color: #1d4ed8;
}

.youtube-full-btn i {
  font-size: 0.9rem;
  padding-left: 1px; /* center the triangle */
}


/* Hero Meta */
.hero-meta {
  margin-top: 1rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: #6b7280;
}

.hero-photo {
  margin-left: 4rem;
}

/* Photo */
.hero-photo img {
  width: 220px;
  height: 220px;
  border-radius: 999px;
  object-fit: cover;
  border: 4px solid #e5e7eb;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.25);
}

/* ================= SECTIONS ================= */
.section {
  padding: 1.0rem 0;
}

.section h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.section-subtitle {
  color: #6b7280;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* ================= CARDS ================= */
.card {
  background: #fff;
  border-radius: 1.1rem;
  padding: 1.3rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.1);
}

.about-card p {
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
  color: #374151;
}

/* Pills */
.pill-card {
  padding-bottom: 1rem;
}

.pill-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill-list li {
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: #f9fafb;
  border: 1px solid #d1d5db;
  font-size: 0.85rem;
}

/* Experience */
.experience-grid {
  display: grid;
  gap: 1.2rem;
}

.experience-card ul {
  padding-left: 1.1rem;
  margin: 0.4rem 0 0;
}

.experience-card li {
  color: #374151;
  font-size: 0.92rem;
  margin-bottom: 0.45rem;
}

.experience-header h3 {
  margin-bottom: 0.2rem;
  font-size: 1.1rem;
}

.company {
  font-size: 0.88rem;
  color: #4b5563;
}

/* .timeplace {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.8rem;
  color: #9ca3af;
} */

.timeplace {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.9rem;
  color: #1f2937;  /* darker */
  font-weight: 600; /* bold */
}

/* Publications */
.pubs-card ol {
  padding-left: 1.25rem;
}

.pubs-card li {
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: #374151;
}

/* Service */
.service-card li {
  margin-bottom: 0.45rem;
  font-size: 0.9rem;
}

/* Contact */
.contact-card p {
  font-size: 0.93rem;
}

.contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.contact-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
}

.contact-item i {
  color: #2563eb;
}

/* Footer */
.site-footer {
  border-top: 1px solid #e5e7eb;
  padding: 0.8rem 0;
  color: #6b7280;
  background: #fafafa;
  font-size: 0.85rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
}

.hero-meta {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem 1.6rem;   /* horizontal/vertical spacing */
  align-items: center;
}

.hero-meta .meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  color: #4b5563;
}

.hero-meta .meta-item a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
}

.hero-meta .meta-item a:hover {
  text-decoration: underline;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-photo {
    order: -1;
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
  }
}