:root {
  --bg: #0b1220;
  --card: #0f172a;
  --text: #e5e7eb;
  --muted: #94a3b8;
  --accent: #60a5fa;
  --accent-2: #22d3ee;
  --max: 1100px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif;
  line-height: 1.6;
}

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

a:hover {
  text-decoration: underline;
}

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

.center {
  text-align: center;
}

.mt-24 {
  margin-top: 24px;
}

/* Navbar */
.navbar {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
}

/* Brand container for photo + name in one row */
.brand {
  display: flex;
  align-items: center; /* keeps photo and name vertically centered */
  gap: 10px;
}

.header-photo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 6px 16px rgba(0,0,0,0.35);
  display: block;
}

.site-name {
  font-weight: 700;
  font-size: 18px;
  color: #ffffff; /* pure white */
  margin: 0;
  line-height: 1;
}

/* Nav links */
.nav-links {
  list-style: none;
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text);
  padding: 8px 10px;
  border-radius: 10px;
}

.nav-links a.active,
.nav-links a:hover {
  background: rgba(255, 255, 255, .08);
}

/* Mobile menu toggle */
#nav-toggle {
  display: none;
}

.hamburger {
  display: none;
  cursor: pointer;
  font-size: 22px;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
}

@media (max-width: 860px) {
  .hamburger {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 80px; /* aligns below brand (photo+name) */
    left: 0;
    right: 0;
    background: var(--card);
    flex-direction: column;
    padding: 10px 16px;
    display: none;
  }

  #nav-toggle:checked + .hamburger + .nav-links {
    display: flex;
  }

  .header-photo { width: 50px; height: 50px; }
  .site-name { font-size: 16px; }
}

/* Hero */
.hero {
  position: relative;
  min-height: 340px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.hero > img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  filter: brightness(.45);
}

.hero-text {
  position: absolute;
  text-align: center;
}

.hero-text h1 {
  font-size: 36px;
  margin: 0 0 8px;
}

.hero-text p {
  margin: 0 0 16px;
  color: var(--muted);
}

.cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Sections */
.section {
  max-width: var(--max);
  margin: 40px auto;
  padding: 0 18px;
}

.section.narrow {
  max-width: 900px;
}

.page-hero {
  max-width: var(--max);
  margin: 20px auto 0;
  padding: 0 18px;
}

.page-hero h1 {
  font-size: 30px;
  margin-bottom: 8px;
  color: #fff;
}

.page-hero p {
  color: var(--muted);
}

/* Profile */
.profile {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 18px;
  align-items: center;
}

.profile img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
}

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

.chip {
  display: inline-block;
  background: rgba(255, 255, 255, .08);
  padding: 6px 10px;
  border-radius: 999px;
  color: #e2e8f0;
}

@media (max-width: 700px) {
  .profile {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
}

/* Timeline */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.timeline li {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.timeline .time {
  color: var(--muted);
}

@media (max-width: 600px) {
  .timeline li {
    grid-template-columns: 1fr;
  }
  .timeline .time {
    font-weight: 600;
  }
}

/* Pills */
.pill-grid {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pill {
  background: linear-gradient(135deg, rgba(96, 165, 250, .18), rgba(34, 211, 238, .18));
  border: 1px solid rgba(148, 163, 184, .25);
  padding: 8px 12px;
  border-radius: 999px;
}

/* Cards / highlights */
.highlight-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.card {
  background: var(--card);
  border: 1px solid rgba(148, 163, 184, .2);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .25);
}

.card-body {
  padding: 14px;
}

.card h3 {
  margin: 6px 0 8px;
}

.card p {
  color: var(--muted);
  margin: 0 0 8px;
}

.card-link {
  font-weight: 600;
}

@media (max-width: 1050px) {
  .highlight-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* Gallery */
.gallery .grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

@media (max-width: 800px) {
  .gallery .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* Lists */
.list, .pubs, .news {
  max-width: 900px;
  margin: 0 auto;
  padding-left: 18px;
}

.news .time {
  display: inline-block;
  width: 90px;
  color: var(--muted);
}

/* Buttons */
.btn, .btn-outline {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 600;
}

.btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #081018;
  border: none;
}

.btn-outline {
  border: 1px solid rgba(148, 163, 184, .35);
  color: var(--text);
}

.btn, .btn-outline:hover {
  text-decoration: none;
}

/* Footer */
footer {
  max-width: var(--max);
  margin: 30px auto 40px;
  padding: 0 18px;
  color: var(--muted);
  text-align: center;
}
