
:root {
  --header-height: 6.2rem;

  --black-color: hsl(220, 24%, 12%);
  --black-color-light: hsl(220, 24%, 15%);
  --black-color-lighten: hsl(220, 20%, 18%);
  --white-color: #fff;
  --body-color: hsl(220, 100%, 97%);

  --normal-font-size: .938rem;

  --font-regular: 400;
  --font-semi-bold: 600;

  --z-tooltip: 10;
  --z-fixed: 100;
}

@media screen and (min-width: 1024px) {
  :root {
    --normal-font-size: 1rem;
  }
}


ul {
  list-style: none;
}

a {
  text-decoration: none;
}

.container-v4 {
  max-width: 1120px;
  margin-inline: 1.5rem;
}

.header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--colorTwo);
  box-shadow: 0 2px 16px hsla(220, 32%, 8%, .3);
  z-index: var(--z-fixed);
  overflow: visible;
}

.nav {
  height: var(--header-height);
}

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

.nav__data {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  column-gap: .25rem;
  font-weight: var(--font-semi-bold);
}

.nav__logo i {
  font-weight: initial;
  font-size: 1.25rem;
}

.nav__toggle {
  position: relative;
  width: 32px;
  height: 32px;
}

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

.nav__close {
  opacity: 0;
}

@media screen and (max-width: 1128px) {
    .dropdown__item:hover .dropdown__menu {
        max-height: 0;
    }
    
    .dropdown__item.open-dropdown > .dropdown__menu {
        max-height: 1000px ; 
        transition: max-height 0.4s ease-in;
    }

    .dropdown__item.open-dropdown .fa-angle-down {
        transform: rotate(180deg);
    }
    
    .nav__menu {
        overflow-y: auto;
    }
    .nav__icon-svg {
        display: none;
    }
    .nav__data {
      flex-direction: row-reverse;  
      width: 100%;
    }
  .nav__menu {
    position: fixed;
    left: 0;
    top: 5.5rem;
    width: 100%;
    height: 100vh;
    background-color: var(--colorTwo); 
    display: block; 
    
    padding: 4rem 1.5rem 2rem; 
    
    clip-path: circle(0% at 10% 5%); 
    transition: clip-path 0.6s cubic-bezier(0.65, 0, 0.35, 1);
    
    opacity: 1; 
    pointer-events: none;
    overflow-y: auto; 
    -webkit-overflow-scrolling: touch;
  }

  .show-menu {
    clip-path: circle(150% at 10% 5%);
    pointer-events: initial;
  }

  .nav__list {
    display: flex;
    flex-direction: column;
    row-gap: 0.5rem; 
    height: auto;
  }

  .dropdown__menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background-color: rgba(255,255,255,0.05); 
  }

  .dropdown__item.open-dropdown .dropdown__menu {
    max-height: 2200px;
  }

  .nav__link {
    font-size: 1.2rem;
    padding: 1rem;
    color: var(--colorTwo);
    background-color: transparent;
  }
}

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

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

.show-menu {
  opacity: 1;
  top: 5.5rem;
  pointer-events: initial;
}

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

.dropdown__item {
  cursor: pointer;
}

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

.dropdown__link, 
.dropdown__sublink {
  padding: 1.45rem;
    color: var(--colorTwo);
    background-color: var(--colorOne); 
    display: flex;
    align-items: center;
    column-gap: .5rem;
    font-weight: var(--font-semi-bold);
    transition: background-color .3s;
    text-align: center;
}

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

.dropdown__link:hover, 
.dropdown__sublink:hover {
  background-color: var(--colorFour);
  color: var(--colorTwo);
}

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



.dropdown__item:hover .dropdown__arrow {
  transform: rotate(180deg);
}

.dropdown__add {
  margin-left: auto;
}

.dropdown__sublink {
  background-color: var(--colorTwo);
}
.nav__list li a, .display-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

@media screen and (max-width: 340px) {
  .container-v4 {
    margin-inline: 1rem;
  }

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

@media screen and (min-width: 1128px) {
  .container-v4 {
    margin-inline: auto;
  }
.dropdown__item:hover .dropdown__menu, 
.dropdown__subitem:hover > .dropdown__submenu {
  max-height: 1000px;
  transition: max-height .4s ease-in;
}
  .nav {
    height: calc(var(--header-height) + 2rem);
    display: flex;
    justify-content: space-between;
  }
  .nav__toggle {
    display: none;
  }
  .nav__list {
        display: flex;
        column-gap: 3rem;
        align-items: flex-start;
        padding: 22px 0 0 0;
        margin: 0;
        height: auto;
  }
  .nav__icon-svg {
    width: 40px;
    height: 40px;
    
  }
  .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: 38%;
    top: 6rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s, top .3s;
  }


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

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

  .dropdown__item:hover .dropdown__menu {
    opacity: 1;
    top: 5rem;
    pointer-events: initial;
    transition: top .3s;
  }

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