/* -----Navigation Bar----- */
.nav-bar {
  isolation: isolate;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  min-height: 5vh;
  width: 93%;
  padding: 0 5vw 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--clr-background);
  font-size: 1.125rem;
}

.nav-bar::after {
  content: "";
  position: absolute;
  left: -10%;
  width: 110%;
  min-height: 6vh;
  background: var(--clr-text);
  transform: skewX(-40deg);
  z-index: -1;
}

.nav-name {
  font-size: 1.5rem;
  font-family: Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-weight: bold;
}

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

.nav-links a {
  color: var(--clr-background);
  text-decoration: none;
}

.nav-links a:hover {
  border-bottom-width: 4px;
}

.nav-links span {
  font-weight: bold;
}

.progress {
  height: 2px;
  width: 0%;
  background-color: var(--clr-text);
  position: fixed;
  top: 6vh;
  left: 0;
  transform: skewX(-45deg);
  animation: progress 1s linear;
  animation-play-state: paused;
  animation-delay: calc(var(--scroll) * -1s);
  animation-iteration-count: 1;
  animation-fill-mode: both;
}

@media only screen and (max-width: 1000px) {
  .nav-bar {
    display: none;
  }
}
