/* ──────────────────────────────────────────────────────────── */
/*  GLOBAL RESETS & BASE STYLES                                */
/* ──────────────────────────────────────────────────────────── */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #ffffff;
  color: #333333;
}

/* ──────────────────────────────────────────────────────────── */
/*  NAVIGATION BAR                                             */
/* ──────────────────────────────────────────────────────────── */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #2e2b2b;
  height: 80px;
  padding: 0 2rem;
}

.navbar-brand a {
  font-size: 1.75rem;
  text-decoration: none;
  color: #f5f5f5;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: 1.1rem;
}

.nav-links a {
  text-decoration: none;
  color: #f5f5f5;
  padding: 0.5rem;
  transition: background 0.3s;
}
.nav-links a {
  display: inline-block; /* be sure it respects line‑height */
  line-height: 80px; /* same as .navbar height          */
  padding: 0 0.75rem; /* keep only horizontal padding    */
}

.nav-links a:hover,
.nav-links a.active {
  background: #413d3d;
  border-radius: 4px;
}

/* ──────────────────────────────────────────────────────────── */
/*  INTRO TWO‑COLUMN LAYOUT                                    */
/* ──────────────────────────────────────────────────────────── */
main {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.intro-container {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  padding: 4rem 2rem;
}

/* LEFT COLUMN */
.intro-left {
  flex: 1 1 300px;
  max-width: 350px;
  text-align: center;
}

.profile-pic {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 1.5rem;
}

.subtitle {
  font-weight: 300;
  margin-top: 0.25rem;
}

.affiliation a {
  color: #0056b3;
  text-decoration: none;
}

.social-icons {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  font-size: 1.8rem;
}

.social-icons .bluesky-icon {
  width: 1.8rem;
  height: 1.8rem;
}
/* pick one colour for every icon */
.social-icons a {
  color: #0039a6; /* pick any colour you like */
}
.social-icons i,
.social-icons img {
  display: inline-block;
  width: 1.8rem;
  height: 1.8rem;
  vertical-align: middle;
}
/* RIGHT COLUMN */
.intro-right {
  flex: 2 1 500px;
}

.bio-section,
.interests-section {
  margin-bottom: 2rem;
}

/* Headings & Text */
h1,
h2 {
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
}

/* Lists */
ul {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

ul li {
  margin-bottom: 0.5rem;
}

/* ──────────────────────────────────────────────────────────── */
/*  FOOTER                                                     */
/* ──────────────────────────────────────────────────────────── */
footer {
  text-align: center;
  padding: 1rem;
  background: #f1f1f1;
  margin-top: 3rem;
}

/* ──────────────────────────────────────────────────────────── */
/*  RESPONSIVE BREAKPOINTS                                     */
/* ──────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  /* NAVBAR: stack links under the brand */
  .navbar {
    flex-direction: column;
    height: auto;
    padding: 1rem;
  }

  .nav-links {
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
    font-size: 1rem;
    align-items: center;
  }

  /* INTRO: stack columns */
  .intro-container {
    flex-direction: column;
    gap: 2rem;
    padding: 2rem 1rem;
  }

  .intro-left,
  .intro-right {
    max-width: 100%;
    flex: 1 1 100%;
  }

  /* Make text a bit smaller on phones */
  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  .profile-pic {
    max-width: 240px;
    margin-inline: auto;
  }
}

@media (max-width: 480px) {
  /* Even tighter spacing on very small screens */
  .nav-links a {
    padding: 0.4rem 0.6rem;
  }

  .intro-container {
    padding: 1.5rem 0.5rem;
  }

  .social-icons {
    font-size: 1.6rem;
    gap: 1rem;
  }
}
/* ──────────────────────────────────────────────────────────── */
/*  BURGER STYLES                                              */
/* ──────────────────────────────────────────────────────────── */
.burger {
  display: none; /* hidden on desktop */
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
}

.burger span {
  display: block;
  width: 100%;
  height: 3px;
  background: #f5f5f5;
  border-radius: 2px;
}

/* ─── small screens ─── */
@media (max-width: 768px) {
  .burger {
    display: flex;
  }

  /* hide the links by default */
  .nav-links {
    display: none;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    margin-top: 1rem;
    text-align: center;
  }

  /* show menu when nav-open class is added to <nav> */
  .navbar.nav-open .nav-links {
    display: flex;
  }
}
