* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  position: relative;
  font-family: system-ui, sans-serif;
  background: #071c3b;
  color: #1f1f1f;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;

  background:
    radial-gradient(
      circle at 15% 55%,
      rgba(19, 85, 170, 0.25),
      transparent 28%
    ),
    radial-gradient(
      circle at 55% 85%,
      rgba(30, 80, 155, 0.18),
      transparent 30%
    ),
    linear-gradient(
      to bottom,
      #020917 0%,
      #041229 45%,
      #071c3b 100%
    );
}
.page {
    max-width: 850px;
    margin: -200px auto 0;
    padding: 40px 20px 60px;
    position: relative;
    z-index: 10;
}

.hero {
    width: 100%;
    min-height: 55vh;
    text-align: center;

    position: relative;
    overflow: hidden;
}

.hero-content {
    color: white;
    text-align: center;
    position: relative;
    z-index: 10;

}




h1 {
  font-size: 4rem;
  margin-bottom: 10px;
}

.tagline {
  font-size: 1.25rem;
  max-width: 650px;
  margin: 0 auto 25px;
}

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

.links a {
  color: white;
  background: #1f1f1f;
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration: none;
}

.links a:hover {
  transform: translateY(-2px);
}

.card {
  background: white;
  border: 2px solid #1f1f1f;
  border-radius: 24px;
  padding: 28px;
  margin-top: 50px;
  margin-bottom: 24px;
  box-shadow: 8px 8px 0 #1f1f1f;
}

.project {
  border-top: 1px solid #ddd;
  padding-top: 15px;
  margin-top: 15px;
}

.orcid-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-direction: row-reverse;
}

.orcid-link img {
  width: 18px;
  height: 18px;
  display: block;
}


.about img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 20px;
    border: 2px solid #1f1f1f;
    flex-shrink: 0;
}

@media (max-width: 700px) {
    .about {
        flex-direction: column;
        text-align: center;
    }
}

.profile-photo {
    width: 250px;
    height: auto;
    border-radius: 20px;
    display: block;
    margin: 0 auto;
}

.about {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.about-photo {
    height: 450px;
    overflow: hidden;
    border-radius: 24px;
}

.about-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 35% center;
}

.about-text {
    flex: 1;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.photo-grid figure {
  margin: 0;
}

.photo-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-radius: 18px;
  border: 2px solid #1f1f1f;
  transition: transform 0.2s ease;
}

.photo-grid img:hover {
  transform: scale(1.03);
}

.photo-grid figcaption {
  margin-top: 8px;
  font-size: 0.9rem;
  text-align: center;
}

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

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


#starfield {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}



.papers-page {
  max-width: 1100px;
  margin: -200px auto 0;
  padding: 0 20px 60px;
  position: relative;
  z-index: 10;
}

.paper-entry {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid #d8d8d8;
}

.paper-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 18px;
}

.paper-heading h2 {
  margin-top: 0;
  margin-bottom: 8px;
}

.paper-heading p {
  margin: 0;
}

.paper-button {
  flex-shrink: 0;
  color: white;
  background: #1f1f1f;
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration: none;
}

.paper-button:hover {
  transform: translateY(-2px);
}

.pdf-viewer {
  display: block;
  width: 100%;
  height: 750px;
  border: 2px solid #1f1f1f;
  border-radius: 16px;
  background: white;
}

@media (max-width: 700px) {
  .paper-heading {
    flex-direction: column;
  }

  .pdf-viewer {
    height: 600px;
  }
}

html,
body {
  min-height: 100%;
}

body.constellation-home {
  margin: 0;
  overflow-x: hidden;
  font-family: Georgia, "Times New Roman", serif;
  color: white;

  background:
    radial-gradient(
      circle at 15% 55%,
      rgba(19, 85, 170, 0.25),
      transparent 28%
    ),
    radial-gradient(
      circle at 55% 85%,
      rgba(30, 80, 155, 0.18),
      transparent 30%
    ),
    linear-gradient(
      to bottom,
      #020917 0%,
      #041229 45%,
      #071c3b 100%
    );
}

#starfield {
  position: fixed;
  inset: 0;
  z-index: 0;

  width: 100%;
  height: 100%;

  pointer-events: none;
}

.constellation-header {
  position: relative;
  z-index: 2;

  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  padding-top: 55px;
}

.constellation-header h1 {
  margin: 0;
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 500;
  letter-spacing: 1px;

  text-shadow:
    0 0 8px rgba(255, 255, 255, 0.35),
    0 0 25px rgba(110, 185, 255, 0.2);
}

.constellation-header p {
  margin: 14px 0 0;
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: rgba(220, 240, 255, 0.9);
}

.constellation-map {
  position: relative;
  z-index: 2;

  width: min(1300px, 100%);
  margin: 0 auto;
  padding: 0 30px 35px;
}

.constellation-map svg {
  display: block;
  width: 100%;
  height: auto;
}

.constellation-link {
  cursor: pointer;
  text-decoration: none;
  outline: none;
}

.constellation line {
  stroke: rgba(155, 205, 255, 0.58);
  stroke-width: 2;

  filter: drop-shadow(
    0 0 3px rgba(115, 190, 255, 0.45)
  );

  transition:
    stroke 0.25s ease,
    stroke-width 0.25s ease,
    opacity 0.25s ease;
}

.constellation circle {
  fill: #ffffff;

  filter:
    drop-shadow(0 0 4px white)
    drop-shadow(0 0 10px rgba(100, 185, 255, 0.95))
    drop-shadow(0 0 20px rgba(55, 130, 255, 0.55));

  transition:
    r 0.25s ease,
    filter 0.25s ease;
}

.constellation text {
  fill: rgba(255, 255, 255, 0.96);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;

  filter: drop-shadow(
    0 0 7px rgba(90, 170, 255, 0.55)
  );

  transition:
    fill 0.25s ease,
    font-size 0.25s ease,
    filter 0.25s ease;
}

.constellation text::after {
  content: "";
}

.constellation-link:hover line,
.constellation-link:focus line {
  stroke: white;
  stroke-width: 3.5;
}

.constellation-link:hover circle,
.constellation-link:focus circle {
  r: 11;

  filter:
    drop-shadow(0 0 6px white)
    drop-shadow(0 0 15px white)
    drop-shadow(0 0 28px rgba(70, 165, 255, 1));
}

.constellation-link:hover text,
.constellation-link:focus text {
  fill: #d7f1ff;
  font-size: 30px;
  filter:
    drop-shadow(0 0 5px white)
    drop-shadow(0 0 16px rgba(70, 165, 255, 0.9));
}

@media (max-width: 760px) {
  .constellation-header {
    width: calc(100% - 32px);
    padding-top: 32px;
    text-align: center;
  }

  .constellation-map {
    padding: 10px 5px 25px;
    overflow-x: auto;
  }

  .constellation-map svg {
    width: 850px;
    max-width: none;
  }
}



.home-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-left: 15px;
    margin-top: 15px;
    margin-bottom: 20px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 12px 22px;
    border-radius: 999px;
    background: #1f1f1f;
    border: 1px solid rgba(255,255,255,.2);
    backdrop-filter: blur(10px);
    transition:
        background .25s,
        transform .25s,
        box-shadow .25s;
}

.home-button:hover {
    background: rgba(35,90,150,.9);
    transform: translateY(-2px);
    box-shadow:
        0 0 10px rgba(120,190,255,.4),
        0 0 20px rgba(120,190,255,.2);
}

.home-arrow {
    transition: transform .25s;
}

.home-button:hover .home-arrow {
    transform: translateX(-3px);
}




.contact-form {

    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;

}

.contact-form label {

    display: flex;
    flex-direction: column;
    gap: 8px;
    font-weight: 600;

}

.contact-form input,
.contact-form textarea {

    font: inherit;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid #bbb;
    background: white;

}

.contact-form textarea {
    resize: vertical;

}

.contact-form button {

    width: fit-content;
    padding: 14px 28px;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    color: white;
    background: #1f5ea8;
    transition: .25s;

}

.contact-form button:hover {

    background: #3477c6;

}

.honeypot {
    position: absolute;
    left: -9999px;
}

.image-credit {
    margin-top: 10px;
    color: #9fb2c7;
    font-size: 0.78rem;
    line-height: 1.4;
}

.image-credit a {
    color: #8fd2ff;
}
