/*****************************************
*       THEME DARK OR LIGHT              *
******************************************/
#theme-switch {
  height: 44px;
  width: 44px;
  border-radius: 50%;
  background-color: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#theme-switch svg {
  fill: var(--primary-color);
  width: 27px;
  height: 27px;
}

#theme-switch svg:last-child {
  display: none;
}

.darkmode #theme-switch svg {
  display: none;
}

.darkmode #theme-switch svg:last-child {
  display: block;
}

#theme-switch:hover {
  background-color: rgb(94 94 94 / 0.1);
  box-shadow: 0 8px 23px rgb(0 0 0 / 0.1);
}

#theme-switch:focus-visible,
.hamburger:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}

.hamburger {
  display: none;
}

header.active {
  background-color: var(--header-active);
  box-shadow: 0 5px 10px rgb(0 0 0 / 0.15);
}

.link-contact-top {
  display: none;
}

.main-head {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background-color: var(--header-bg-color);
  z-index: 100;
  height: var(--header-height);
  padding: 0 var(--layout-gutter);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, var(--layout-content-max));
  height: 100%;
  margin: 0 auto;
}

.fixed-header {
  background: var(--bg-blur);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.main-head .logo .title-logo {
  color: var(--color-primary);
  font-family: Yellowtail, Montserrat, sans-serif, cursive !important;
  text-transform: capitalize;
  font-weight: 800;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  transition: 0.3s ease;
}

.main-head .logo .title-logo span {
  color: var(--color-secondary);
  font-family: Yellowtail, Montserrat, sans-serif, cursive !important;
  font-weight: 800;
  cursor: pointer;
  font-size: inherit;
  transition: 0.3s ease;
}

.main-head .logo .title-logo:hover,
.main-head .logo .title-logo span:hover {
  transform: scale(1.1);
}

.nav-header {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  margin-left: clamp(28px, 5vw, 120px);
  gap: 20px;
}

.nav-header nav ul {
  position: relative;
  display: flex;
  flex-direction: row;
  gap: 20px;
}

.nav-header nav ul li {
  list-style-type: none;
}

.nav-header nav ul li .nav__link {
  position: relative;
  text-decoration: none;
  text-transform: capitalize;
  color: var(--color-primary);
  letter-spacing: 0.5px;
  user-select: none;
}

.nav-header nav ul li a.active {
  color: var(--color-secondary);
}

.nav-header nav ul li .nav__link.active::after {
  content: "";
  position: absolute;
  background-color: var(--link-active-bg-color);
  height: 3px;
  width: 100%;
  bottom: -10px;
  left: 0;
  transition: width 0.4s ease;
}

.nav-header nav ul li .nav__link::after {
  content: "";
  position: absolute;
  background-color: var(--color-secondary);
  height: 3px;
  width: 0;
  left: 0;
  bottom: -10px;
  transition: all 0.4s ease;
}

.nav-header nav ul li a:hover {
  color: var(--color-secondary);
}

.nav-header nav ul li a:hover::after {
  width: 100%;
}

.close_icon {
  position: absolute;
  font-size: 25px;
  top: 18px;
  right: 250px;
  z-index: 110;
  color: var(--color-primary);
  cursor: pointer;
  display: none;
}

.toggle_icon {
  display: none;
  font-size: 35px;
  cursor: pointer;
  margin-right: 10px;
  margin-top: 13px;
}

@media only screen and (max-width: 768px) {
  .main-head {
    width: 100%;
  }
}

@media only screen and (max-width: 1168px) {
  .hamburger {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: transparent;
  }

  .hamburger .line {
    display: block;
    width: 28px;
    height: 2px;
    background: var(--color-primary);
    margin: 4px 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .hamburger.active .line:first-child {
    transform: translateY(10px) rotate(45deg);
  }

  .hamburger.active .line:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .line:last-child {
    transform: translateY(-10px) rotate(-45deg);
  }

  body.menu-open {
    overflow: hidden;
  }

  header {
    display: flex;
    width: 100%;
  }

  .nav-bar {
    height: 0;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    width: 100vw;
    transition: all 0.5s ease;
    overflow: hidden;
  }

  .nav-header nav ul {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 15px;
    line-height: 20px;
  }

  .nav-bar ul .menu_item {
    margin: 40px auto 0;
    transition: 0.5s;
    opacity: 0;
  }

  .nav-bar.active ul .menu_item {
    opacity: 1;
    font-size: 1.3rem;
  }

  .nav-bar ul li a {
    margin-bottom: 10px;
  }

  .nav-bar ul li a:hover {
    margin-bottom: 10px;
  }

  .nav-bar.active {
    height: calc(100dvh - var(--header-height));
    background: var(--bg-blur);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .main-head.fixed-header .nav-bar.active {
    background: var(--header-bg-color);
  }

  .main-head {
    z-index: 100;
    position: fixed;
    width: 100%;
  }

  .nav-header {
    margin-left: 0;
  }
}
