header .nav-bar {
  display: flex;
  min-width: 950px;
  justify-content: space-between;
  align-items: center;
  background-color: white;
  border-radius: 20px;
  height: 65px;
  box-shadow: 0px 5px 20px -5px rgba(0, 0, 0, 0.2);
  padding: 0 15px;
  padding-left: 20px;
  gap: 5px;
  top: 30px;
  position: fixed;
}
@media (max-width: 1100px) {
  header .nav-bar {
    min-width: auto;
    width: calc(100% - 100px);
  }
}
@media (max-width: 768px) {
  header .nav-bar {
    width: calc(100% - 50px);
  }
}
header .nav-bar .mobile-nav {
  position: relative;
  display: none;
}
@media (max-width: 1100px) {
  header .nav-bar .mobile-nav {
    display: flex;
  }
}
header .nav-bar .mobile-nav .mobile-menu-nav {
  position: fixed;
  width: calc(100% - 100px);
  left: 50px;
  top: 110px;
  background-color: #ffffff;
  border-radius: 20px;
  padding: 15px;
  box-shadow: 0px 5px 20px -5px rgba(0, 0, 0, 0.2);
  display: none;
  flex-direction: column;
  min-height: 200px;
  overflow-y: scroll;
}
@media (max-width: 768px) {
  header .nav-bar .mobile-nav .mobile-menu-nav {
    width: calc(100% - 50px);
    left: 25px;
  }
}
@media (max-height: 640px) {
  header .nav-bar .mobile-nav .mobile-menu-nav {
    height: 313px !important;
  }
}
header .nav-bar .mobile-nav .mobile-menu-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: none;
  flex-direction: column;
  animation: fade321 300ms forwards;
  filter: opacity(0);
  z-index: 2;
}
header .nav-bar .mobile-nav .mobile-menu-nav ul li:nth-child(2) .sub-menu.scrollDown {
  animation: scrollDown3124 500ms forwards;
}
@keyframes scrollDown3124 {
  0% {
    height: 0;
  }
  100% {
    height: 215px;
  }
}
header .nav-bar .mobile-nav .mobile-menu-nav ul li:nth-child(4) .sub-menu.scrollDown {
  animation: scrollDown31245 500ms forwards;
}
@keyframes scrollDown31245 {
  0% {
    height: 0;
  }
  100% {
    height: 165px;
  }
}
header .nav-bar .mobile-nav .mobile-menu-nav ul li a {
  box-sizing: border-box;
  border-radius: 10px;
  color: #262626;
  text-decoration: none;
  padding: 10px 14px;
  transition: 300ms ease all;
  background-color: white;
  font-family: "Messina Sans", "Inter", sans-serif;
  align-items: center;
  display: flex;
  gap: 10px;
}
header .nav-bar .mobile-nav .mobile-menu-nav ul li a i {
  font-size: 12px;
}
header .nav-bar .mobile-nav .mobile-menu-nav ul li a:hover, header .nav-bar .mobile-nav .mobile-menu-nav ul li a:focus {
  background-color: #f1ecff !important;
}
header .nav-bar .mobile-nav .mobile-menu-nav ul .sub-menu.scrollDown {
  display: flex;
  animation: scrollDown312 500ms forwards;
}
@keyframes scrollDown312 {
  0% {
    height: 0;
  }
  100% {
    height: 225px;
  }
}
header .nav-bar .mobile-nav .mobile-menu-nav ul .sub-menu {
  display: none;
  margin: 10px 0;
  filter: opacity(1);
}
header .nav-bar .mobile-nav .mobile-menu-nav ul .sub-menu li {
  position: static;
  display: none;
  justify-content: flex-start;
  align-items: center;
  animation: opacity123 350ms forwards;
}
@keyframes opacity123 {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
header .nav-bar .mobile-nav .mobile-menu-nav ul .sub-menu li .item-icon {
  width: 35px;
  height: 35px;
  object-fit: contain;
  padding: 5px;
  border: 1px solid #262626;
  border-radius: 8px;
  transition: 300ms ease all;
}
header .nav-bar .mobile-nav .mobile-menu-nav ul .sub-menu li a {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-direction: row-reverse;
  padding: 5px 10px;
  gap: 10px;
  height: 56px;
  border-radius: 10px;
}
header .nav-bar .mobile-nav .mobile-menu-nav ul .sub-menu li a:hover, header .nav-bar .mobile-nav .mobile-menu-nav ul .sub-menu li a:focus {
  background-color: #f1ecff !important;
  border: 1px solid #9b77f7 !important;
  color: #262626 !important;
}
header .nav-bar .mobile-nav .mobile-menu-nav ul .sub-menu li.fadeOut {
  animation: desopacity123 200ms forwards;
}
@keyframes desopacity123 {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
header .nav-bar .mobile-nav .mobile-menu-nav .contact-nav {
  margin-top: 15px;
  display: none;
  animation: fade321 300ms forwards;
  filter: opacity(0);
}
@media (max-width: 768px) {
  header .nav-bar .mobile-nav .mobile-menu-nav .contact-nav {
    width: 100%;
  }
}
header .nav-bar .mobile-nav .opened {
  animation-name: height123;
  animation-duration: 500ms;
}
@keyframes height123 {
  0% {
    height: 0;
  }
  100% {
    height: 313px;
  }
}
header .nav-bar .mobile-nav .closed {
  animation-name: height123reversed;
  animation-duration: 500ms;
}
@keyframes height123reversed {
  0% {
    height: 313px;
  }
  100% {
    height: 0;
  }
}
header .nav-bar .mobile-nav .mobile-btn img.hidden {
  opacity: 0;
  pointer-events: none;
}
header .nav-bar .mobile-nav .mobile-btn {
  display: none;
  justify-content: center;
  align-items: center;
  padding: 5px;
  border-radius: 7px;
  background-color: #f4f4f4;
  width: 44px;
  height: 44px;
}
@media (max-width: 1100px) {
  header .nav-bar .mobile-nav .mobile-btn {
    display: flex;
  }
}
header .nav-bar .mobile-nav .mobile-btn img {
  max-width: 24px;
  object-fit: contain;
  transition: opacity 200ms linear;
  opacity: 1;
}
header .nav-bar .home-btn {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  width: 115px;
  height: 35px;
}

header .nav-bar .home-btn::before {
  position: absolute;
  top: 0;
  left: 0;
  content: "";
  width: 10px;
  height: 100%;
  background: linear-gradient(90deg, #ffffff, #ffffff00);
  z-index: 2;
}

header .nav-bar .home-btn .bug,
header .nav-bar .home-btn .home {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  transition: transform 0.5s ease;
  z-index: 3;
}
header .nav-bar .home-btn .bug {
  top: auto;
  width: 25px;
  object-fit: contain;
  padding-left: 2.5%;
  transform: translateX(-105%);
  display: block;
  z-index: 1;
}
header .nav-bar .home-btn .home {
  transform: translateX(0);
}
header .nav-bar .home-btn:hover .bug, header .nav-bar .home-btn:focus .bug {
  transform: translateX(5px);
}
header .nav-bar .home-btn:hover .home, header .nav-bar .home-btn:focus .home {
  transform: translateX(30px);
}
header .nav-bar .nav-menu-desktop {
  display: flex;
  max-width: 650px;
  margin: 0;
  padding: 0;
  list-style: none;
  gap: 3px;
}
@media (max-width: 1100px) {
  header .nav-bar .nav-menu-desktop {
    display: none;
  }
}
header .nav-bar .nav-menu-desktop li {
  margin: 0;
  font-size: calc(12px + 0.25vw);
  position: relative;
}
header .nav-bar .nav-menu-desktop li a {
  box-sizing: border-box;
  border-radius: 10px;
  color: #262626;
  text-decoration: none;
  padding: 10px 14px;
  border: 1px solid white;
  transition: 300ms ease all;
  background-color: white;
  font-family: "Messina Sans", "Inter", sans-serif;
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
}
header .nav-bar .nav-menu-desktop li a i {
  font-size: 12px;
}
header .nav-bar .nav-menu-desktop li a:hover, header .nav-bar .nav-menu-desktop li a:focus {
  background-color: #f1ecff !important;
  outline: none;
}
header .nav-bar .nav-menu-desktop li .sub-menu {
  display: none;
  position: absolute;
  top: 62px;
  left: 0;
  width: 325px;
  flex-direction: column;
  background-color: white;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  list-style: none;
  gap: 10px;
  z-index: 1;
  box-shadow: 0px 0px 20px -5px rgba(0, 0, 0, 0.15);
  border-radius: 20px;
  padding: 15px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
header .nav-bar .nav-menu-desktop li .sub-menu li {
  position: static;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}
header .nav-bar .nav-menu-desktop li .sub-menu li .item-icon {
  width: 35px;
  height: 35px;
  object-fit: contain;
  padding: 5px;
  border: 1px solid #262626;
  border-radius: 8px;
  transition: 300ms ease all;
}
header .nav-bar .nav-menu-desktop li .sub-menu li a {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-direction: row-reverse;
  padding: 5px 10px;
  gap: 10px;
  height: 56px;
  border-radius: 10px;
}
header .nav-bar .nav-menu-desktop li .sub-menu li a:hover, header .nav-bar .nav-menu-desktop li .sub-menu li a:focus {
  background-color: #f1ecff !important;
  border: 1px solid #9b77f7 !important;
  color: #262626 !important;
  outline: none;
}
header .nav-bar .nav-menu-desktop li .visible {
  display: flex;
  opacity: 1;
}
header .nav-bar .contact-nav {
  width: 165px;
  border: 1px solid #262626;
  border-radius: 10px;
  padding: 9px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: calc(12px + 0.25vw);
  gap: 15px;
  text-decoration: none;
  color: #262626;
  transition: color 500ms ease, background-position 500ms ease;
  background: linear-gradient(90deg, transparent 50%, #262626 50%);
  background-size: 200% 100%;
  background-position: 0% 0%;
}
@media (max-width: 1100px) {
  header .nav-bar .contact-nav {
    display: none;
  }
}
@media (max-width: 768px) {
  header .nav-bar .contact-nav {
    height: 45px;
    justify-content: center;
    font-size: 15px;
  }
}
header .nav-bar .contact-nav:hover, header .nav-bar .contact-nav:focus {
  background-position: -100% 0%;
  color: white;
}
header .nav-bar .contact-nav:hover > img, header .nav-bar .contact-nav:focus > img {
  filter: invert(1) brightness(150%);
}
header .nav-bar .contact-nav img {
  width: 17px;
  height: 17px;
  object-fit: contain;
  transition: filter 400ms ease;
}
