header {
  position: sticky;
  top: 0;
  z-index: 10;
  width: 100%;
  opacity: 0;
  animation: fadeDown 1s ease forwards;
}

@keyframes fadeDown {
  to {
    opacity: 1;
  }
}

nav {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  padding-bottom: 10px;
  padding-left: 15dvw;
  padding-right: 15dvw;

  animation: enhace-nav linear both;
  animation-timeline: scroll(root block);
  animation-range: 0 200px;
}

@keyframes enhace-nav {
  to {
    background-color: var(--inverted-bg-color);
    backdrop-filter: blur(5px);
    color: var(--inverted-font-color);
  }
}

nav img {
  border-radius: 50%;
  width: 64px;
  height: 64px;
  background-color: var(--casi-blanco);
}

.nav--icon-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

nav ul {
  display: flex;
  flex-direction: row;
  gap: 20px;
}

nav ul li {
  list-style: none;
  font-family: "custom-bold";
  font-size: 24px;
  position: relative;
}

nav ul li::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: var(--font-color);

  transition: width 0.3s linear;

  animation: enhace-after-element linear both;
  animation-timeline: scroll(root block);
  animation-range: 0 200px;
}

@keyframes enhace-after-element {
  to {
    background-color: var(--inverted-font-color);
  }
}

nav ul li:hover::after {
  width: 100%;
}

nav ul a {
  color: inherit;
  text-decoration: none;
}
