@media screen and (max-width: 1000px) {
  header {
    height: 5em;
    width: 100%;
    box-shadow: 0.4rem 0.4rem 0.3rem rgba(0, 0, 0, 0.1);
    display: flex;
    padding: 0.5rem 0%;
    align-items: center;
    position: sticky;
    z-index: 200;
  }

  header .logo {
    height: 4rem;
    width: 4rem;
    margin: 1rem;
    background-image: url(../images/logo.png);
    background-position: center;
    background-size: contain; /* Use contain or cover based on your needs */
    background-repeat: no-repeat;
  }

  header .nav a {
    font-size: 1.3rem;
    margin: 0.5rem;
    color: black;
    font-weight: 100;
    text-decoration: none;
    position: relative;
  }

  header .nav a:hover .sub-nav {
    display: flex;
  }

  header .nav a:hover {
    color: rgb(71, 71, 71);
  }

  header .nav a.active {
    border-bottom: 0.01em solid black;
  }
}

header .icons {
  display: flex;
  margin-left: 1rem;
}

header .icons a {
  margin: 0.5rem;
}

.sub-nav {
  background: rgb(255, 255, 255);
  width: 15em;
  position: absolute;
  left: 0;
  display: flex;
  flex-direction: column;
  list-style: none;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
  border: 0.01em solid #e2e2e2;
  display: none;
}
