/* === Global Styles === */
:root {
  --color-dark-blue: #0A2342;
  --color-link: #1E4FA3;
  --color-link-hover: #163B7A;
  --color-text: #1B1B1B;
  --max-width: 760px;
  --accent-color: #E8A317;
}




body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--color-text);
  line-height: 1.6;
  background-color: #fff;
}

h1, h2, h3 {
  font-family: 'Merriweather', serif;
  color: var(--color-dark-blue);
}

a {
  color: var(--color-link);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-bottom 0.2s ease;
}

a:hover {
  color: var(--accent-color);
  /*border-bottom: 1px solid var(--accent-color);*/
}

/* === Layout Container (centered) === */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

/* === Navbar === */
.navbar {
  backdrop-filter: blur(6px);
  background-color: rgba(255, 255, 255, 0.85);
  /*border-bottom: 1px solid #ddd;*/
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.nav-left {
  display: flex;
  align-items: center;
}

.profile-thumb {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  margin-right: 0.75rem;
}

.nav-title .name {
  font-family: 'Merriweather', serif;
  font-weight: 700;
  display: block;
}

.nav-title .title {
  font-size: 0.85rem;
  opacity: 0.7;
}

.nav-links {
  display: flex;
  gap: 1rem;
}

.nav-links a {
  font-weight: 500;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-dark-blue);
}

/* === Hero Section === */
.hero {
  padding: 2.5rem 0 0 0;
}

.hero-content {
    position: relative;
  z-index: 2;  /* keep text above */
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 1.5rem;
  align-items: start;
}



.profile-large {
  width: 120px;
  border-radius: 5%;
}

.hero h1 {
  margin: 0 0 0.5rem 0;
}

.hero p {
  margin-bottom: 1rem;
}

.links a {
  font-weight: 500;
}

/* === Publications === */
.publications {
  margin-top: 2rem;
}

.publications h2 {
  margin-bottom: 1rem;
}

.publications ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.view-all {
  font-weight: 500;
}

/* === Footer === */
footer {
  /*border-top: 1px solid #ddd;*/
  color: var(--color-dark-blue);
  text-align: center;
  padding: 1rem 1rem;
  margin-top: 2rem;
  font-size: 0.95rem;
}

footer a {
  color: var(--color-link);
}

footer .socials {
  margin: 0.5rem 0;
}

footer .socials a {
  margin: 0 0.5rem;
  font-size: 1.2rem;
}

/* Limit footer logo size */
.footer-logo {
  max-width: 400px;
  height: auto;
  vertical-align: middle;
  opacity: 1;
}

.footer-wave {
  max-width: 400px;
  height: auto;
  vertical-align: middle;
  opacity: 0.2;
}


footer .copyright {
  font-size: 0.9rem;
  opacity: 0.7;
}

#wave-bg {
  position: fixed;
  top: 0; 
  left: 0; 
  width: 100vw;
  height: 100vh;
  z-index: -1;        /* Always behind content */
  pointer-events: none;
}

/* === Responsive Design === */
@media (max-width: 768px) {

  .navbar {
    position: sticky;
    top: 0;
    z-index: 1000;   /* ensure it's above canvas & dropdown */
  }

  .nav-links {
    display: none;
    position: fixed;        /* ← instead of absolute */
    top: 60px;              /* same vertical position */
    right: 1rem;
    background-color: rgba(255, 255, 255, 0.97);
    padding: 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    flex-direction: column;
    gap: 1rem;
    z-index: 1001;          /* above navbar */
  }

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

  .nav-toggle {
    display: block;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .profile-large {
    margin: 0 auto;
  }
}

@media (max-width: 400px){
    .footer-logo, .footer-wave {
        width: 90vw;
    }
}

@media (max-width: 480px) {
  #wave-bg {
    display: none !important;
  }
}

