/*=============== HEADER ===============*/
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--black-color);
  box-shadow: 0 2px 16px hsla(220, 32%, 8%, .3);
  z-index: var(--z-fixed);
}

.header   ul {
  list-style: none;
  /* Color highlighting when pressed on mobile devices */
  /*-webkit-tap-highlight-color: transparent;*/
}

/*=============== NAV ===============*/
.nav {
  height: var(--header-height);
}

.nav a {
  text-decoration: none;
  color: #FFF;
}

.nav__logo, 
.nav__burger, 
.nav__close {
  color: var(--white-color);
}

.nav__data {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--clr-primary);
}

.nav__logo {
  width: 150px;
  margin: 5rem 0 0 0;
}

.logo{
  width: 160px;
  /* margin: 90px 0 0 0; */
  position: relative;
  z-index: 99998;
}

@media (max-width: 1200px) {
    .nav__logo {
        width: 90px;
        margin: 45px 0 0 0;
    }
    .logo {
      width: 70px;
      margin-top: 2rem;
  }
}

.nav__toggle {
  position: absolute;
  right: 0;
  width: 62px;
  height: 62px;
  margin: 1rem;
  background-color: var(--clr-primary);
  cursor: pointer;
}

.nav__burger, 
.nav__close {
  position: absolute;
  width: max-content;
  height: max-content;
  inset: 0;
  margin: auto;
  font-size: 1.55rem;
  
  transition: opacity .1s, transform .4s;
}

.nav__close {
  opacity: 0;
}

/* Navigation for mobile devices */
@media screen and (max-width: 1199px) {
  .nav__menu {
    position: absolute;
    left: 0;
    top: 2.5rem;
    width: 100%;
    height: calc(100vh - 3.5rem);
    overflow: auto;
    pointer-events: none;
    opacity: 0;
    transition: top .4s, opacity .3s;
   /*  background-color: red; */
   z-index: 99999;
  }
  .nav__menu::-webkit-scrollbar {
    width: 0;
  }
  .nav__list {
    background-color: var(--clr-primary);
    padding-top: 1rem;
  }
}

.nav__link {
  color: var(--white-color);
  /* background-color: var(--black-color); */
  font-weight: var(--font-semi-bold);
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color .3s;
}

.nav__link:hover, .showitMobile > li:hover {
  background-color: var(--black-color-light);
}

/* Show menu */
.show-menu {
  opacity: 1;
  top: 3.5rem;
  pointer-events: initial;
}

/* Show icon */
.show-icon .nav__burger {
  opacity: 0;
  transform: rotate(90deg);
}
.show-icon .nav__close {
  opacity: 1;
  transform: rotate(90deg);
}

/*=============== DROPDOWN ===============*/
.dropdown__item {
  cursor: pointer;
}

.dropdown__arrow {
  font-size: 1.25rem;
  font-weight: initial;
  transition: transform .4s;
}

.dropdown__link, 
.dropdown__sublink {
  padding: 1.25rem 1.25rem 1.25rem 2.5rem;
  color: var(--white-color);
  /* background-color: var(--black-color-light); */
  background: rgba(20, 57, 31, .8); 
  display: flex;
  align-items: center;
  column-gap: .5rem;
  font-weight: var(--font-semi-bold);
  transition: background-color .3s;
}

.dropdown__link i, 
.dropdown__sublink i {
  font-size: 1.25rem;
  font-weight: initial;
}

.dropdown__link:hover, 
.dropdown__sublink:hover {
  /* background-color: var(--clr-primary); */
}

.dropdown__menu, 
.dropdown__submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease-out;
}

/* Show dropdown menu & submenu */
@media screen and (min-width: 1200px) {
  .dropdown__item:hover .dropdown__menu, 
  .dropdown__subitem:hover > .dropdown__submenu {
    max-height: 1000px;
    transition: max-height .4s ease-in;
  }

  /* Rotate dropdown icon */
  .dropdown__item:hover .dropdown__arrow {
    transform: rotate(180deg);
  }
}

.rotate-arrow {
  transform: rotate(180deg);
  transition: transform 0.3s;
}


/*=============== DROPDOWN SUBMENU ===============*/
.dropdown__add {
  margin-left: auto;
}

.dropdown__sublink {
  background-color: var(--black-color-lighten);
}

/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media screen and (max-width: 340px) {
  .container {
    margin-inline: 1rem;
  }

  .nav__link {
    padding-inline: 1rem;
  }
}

/* For large devices */
@media screen and (min-width: 1200px) {
  .container {
    margin-inline: auto;
  }

  .nav {
    height: calc(var(--header-height) + 2rem);
    display: flex;
    justify-content: center;
    width: 80%;
    margin: auto;
    background: rgba(20, 57, 31, .8); 
    position: relative;
    top: 20px;
  }
  .nav__toggle {
    display: none;
  }
  .nav__list {
    height: 100%;
    display: flex;
    column-gap: 3rem;
    list-style: none;
  }
  .nav__link {
    height: 100%;
    padding: 0;
    justify-content: initial;
    column-gap: .25rem;
  }
  
  .nav__link:hover {
    background-color: transparent;
  }

  .dropdown__item, 
  .dropdown__subitem {
    position: relative;
  }

  .dropdown__menu, 
  .dropdown__submenu {
    max-height: initial;
    overflow: initial;
    position: absolute;
    left: 0;
    top: 6rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s, top .3s;
    z-index: 99999;
  }

  .dropdown__link, 
  .dropdown__sublink {
    padding-inline: 1rem 3.5rem;
    width: 300px;
  }

  .dropdown__subitem .dropdown__link {
    padding-inline: 1rem;
  }

  .dropdown__submenu {
    position: absolute;
    left: 100%;
    top: .5rem;
  }

  /* Show dropdown menu */
  .dropdown__item:hover .dropdown__menu {
    opacity: 1;
    top: 5.5rem;
    pointer-events: initial;
    transition: top .3s;
  }

  /* Show dropdown submenu */
  .dropdown__subitem:hover > .dropdown__submenu {
    opacity: 1;
    top: 0;
    pointer-events: initial;
    transition: top .3s;
  }

  .dropdown__item .nav__link a {
    display: flex;
    align-items: center;
    height: 100%;
  }

  a.nav__link:hover, .nav__link > a:hover, .dropdown__link:hover, .dropdown__link:hover > a:hover, .dropdown__sublink:hover {
    color: var(--clr-tertiary);
  }
}

@media screen and (max-width: 1199px) {
  /* this is the style to add on click through javascript*/
  .showitMobile {
    opacity: 1;
    top: 5.5rem;
    pointer-events: initial;
    transition: top .3s;
    max-height: 1000px;
    transition: max-height .4s ease-in;
  }
  .dropdown__item .nav__link a {
    border:1px solid var(--black-color-lighten);
    padding: 1rem 2rem 1rem 0; 
    /* width: 40%; */
    border-radius: 5px;
    color: #FFF;
  }
  .dropdown__subitem .dropdown__link {

  }
}