/*=============== HEADER ===============*/
.header {
  width: 97%;
  background-color: var(--body-color);
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
  transition: 0.4s;
  /*For animation dark mode*/
}

/*=============== NAV ===============*/
.nav {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
 margin-left: 16%;
 margin-bottom: 0.5rem;
}

.nav__logo,
.nav__toggle,
.nav__close {
  color: var(--title-color);
}

.nav__logo {
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: -1px;
  display: inline-flex;
  align-items: center;
  column-gap: 0.5rem;
  transition: 0.3s;
}

.nav__logo-icon {
  font-size: 1.15rem;
  color: var(--first-color);
}

.nav__logo:hover {
  color: var(--first-color);
}

.nav__toggle {
  display: inline-flex;
  font-size: 1.25rem;
  cursor: pointer;
}


.newsletter {
  background-color: var(--first-color-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 1rem 1rem 1rem 1rem;
  padding: 4.5rem 0 4.25rem 0;
}

.nav__close {
  font-size: 1.5rem;
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  cursor: pointer;
}

.nav__list {
  display: flex;
  flex-direction: row;
  row-gap: 1.5rem;
  justify-content: space-evenly;
  width: 39rem;
}

.nav__link {
  color: var(--title-color);
  font-weight: var(--font-medium);
  transition: 0.5s;
}

.nav__link:hover {
  color: var(--first-color);
}

.active-link{
   position: relative;
   color: var(--first-color);
}

.active-link::after {
  content: "";
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--first-color);

}


/* Show menu */
.show-menu {
  right: 0;
}

/* Change background header */
.scroll-header {
  box-shadow: 0 1px 4px hsla(var(--hue), 4%, 15%, 0.1);
}


@media screen and (max-width: 767px) {
  .nav__menu {
    position: fixed;
    background-color: var(--container-color);
    width: 80%;
    height: 100%;
    top: 0;
    right: -100%;
    box-shadow: -2px 0 4px hsla(var(--hue), 24%, 15%, 0.1);
    padding: 4rem 0 0 3rem;
    border-radius: 1rem 0 0 1rem;
    transition: 0.3s;
    z-index: var(--z-fixed);
  }

  .nav {
    height: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    margin-left: 5%;
    margin-bottom: 1rem;
  }
  

  .header{
    height: 3rem;
   
  }
}

@media screen and (max-width: 580px){
  .nav {
    height: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.2rem;
    margin-left: 5%;
    margin-bottom: 0.9rem;
  }
  

  .header{
    height: 3rem;
   
  }
}


@media screen and (max-width: 380px){
  .nav {
    height: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.2rem;
    margin-left: 5%;
    margin-bottom: 0.9rem;
  }
  

  .header{
    height: 2.3rem;
   
  }
}