header {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;

  background-color: black;
  color: white;

  padding-top: 2.5rem;
  padding-bottom: 3rem;

  text-align: left;
  font-size: larger;
}

.header-text {
  margin-left: 2em;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: start;
}

#name-head {
  text-align: left;
  font-size: xxx-large;
  font-weight: bold;
  margin: 0.25em 0;
}

#profile-image {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: 4px solid white;
  background-size: cover;
  background-position: center;
  transition: 0.1s ease;
}

/* header.css — mobile + smaller screens */

/* Base mobile (your existing block, kept) */
@media (max-width: 800px) {
  header {
    flex-direction: column;
    padding-bottom: 2.5rem; /* was 2em; gives the email line more room */
  }

  .header-text {
    margin: 0;
    align-items: center;
  }

  #name-head {
    font-size: xx-large;
    text-align: center;
  }

  #profile-image {
    width: 100px;
    height: 100px;
    margin-bottom: 1rem;
  }
}

/* Smaller phones */
@media (max-width: 520px) {
  header {
    padding-left: .75rem;
    padding-right: .75rem;
    padding-bottom: 3rem; /* a bit more breathing room */
  }

  #name-head {
    font-size: x-large;
    line-height: 1.5;
  }

  #profile-image {
    width: 86px;
    height: 86px;
    margin-bottom: .75rem;
  }

  .header-text > div {
    text-align: center;
  }
}

/* Very small devices */
@media (max-width: 360px) {
  header {
    padding-bottom: 3.25rem;
  }

  #name-head {
    font-size: large;
    line-height: 1.5;
  }

  #profile-image {
    width: 78px;
    height: 78px;
  }

  .header-text {
    font-size: 95%;
  }
}
