.header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: #01111fb2;
  color: white;
  z-index: 50;
  padding-block: 25px;
  transition: padding 0.35s ease, background-color 0.35s ease;
}

.header.scrolled {
  padding-block: 10px;
  background-color: #01111fe6;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  transition: all 0.35s ease;
  position: relative;
  width: 100%;
}

.branding {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex-shrink: 0;
  z-index: 1;
}

.branding-link {
  display: inline-block;
  line-height: 0;
}

.header-logo {
  height: auto;
  width: 250px;
  /* max-width: 200px; */
  object-fit: contain;
  transition: height 0.35s ease;
}

.header.scrolled .header-logo {
  height: 45px;
}

.header-heading {
  font-size: 3.0rem;
  font-weight: 300;
  text-transform: uppercase;
  margin-bottom: 0;
  transition: font-size 0.35s ease;
}

.header-subtext {
  font-size: 0.7rem;
  font-weight: 300;
  text-align: right;
  margin-bottom: 0;
  padding-right: 5px;
  transition: font-size 0.35s ease;
  padding-left: 20px;
  color: #ccc;
}

.header.scrolled .header-heading {
  font-size: 2.125rem;
}

.header.scrolled .header-subtext {
  font-size: 0.6rem;
}

.nav {
  display: flex;
  justify-content: flex-end;
  position: relative;
  flex: 1;
  z-index: 1;
}

.header-items {
  display: flex;
  gap: 25px;
  list-style: none;
  font-weight: 300;
  font-size: 1.0rem;
  margin-bottom: 0;
  padding: 0;
  justify-content: flex-end;
  flex-wrap: nowrap;
}

.header-items li {
  cursor: pointer;
}

.header-items li a {
  text-decoration: none;
  color: white;
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  cursor: pointer;
  position: relative;
}

.menu-toggle img {
  width: 28px;
  height: 28px;
  filter: invert(1);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle i {
  font-size: 2rem;
}

.close-icon {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transform: scale(0.8);
}

.menu-toggle.active .menu-icon {
  opacity: 0;
  transform: scale(0.8);
}

.menu-toggle.active .close-icon {
  opacity: 1;
  transform: scale(1);
}

@media (max-width: 992px) {
  .header-logo {
    height: 50px;
    max-width: 180px;
  }

  .header.scrolled .header-logo {
    height: 40px;
    max-width: 150px;
  }

  .header-subtext {
    font-size: 0.7rem;
    text-align: center;
  }

  .header-content {
    justify-content: space-between;
  }

  .menu-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    transform: translateX(-100%);
    background-color: #01111f;
    transition: transform 0.4s ease;
    z-index: 100;
    overflow-y: auto;
  }

  .nav.active {
    transform: translateX(0);
  }

  .header-items {
    flex-direction: column;
    padding-block: 80px 30px;
    padding-inline: 20px;
    font-size: 1.25rem;
    width: 100%;
    align-items: flex-start;
    margin: 0;
  }

  .header-items li {
    padding: 15px 0;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  .header-items li:last-child {
    border-bottom: none;
  }

  .header-items li a {
    display: block;
    width: 100%;
    padding: 5px 0;
  }
}
