.nav-header {
  z-index: 10;
  position: fixed;
  top: 0;
  display: flex;
  gap: 40px;
  justify-content: flex-end;
  align-items: center;
  background: black;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: 10px 100px;
  width: 100%;
  transition: background 0.3s ease, padding 0.3s ease;
}
.hed-box {
  display: flex;
  align-items: center;
}
.hed-box > i {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-right: 10px;
  font-size: 14px;
  color: #fff;
  transition: transform 0.3s ease;
}

.hed-box p {
  font-weight: 100;
}
.hed-box > i:hover {
  transform: scale(1.1);
}
.hed-box > a {
  color: var(--white);
  text-decoration: none;
  font-size: 10px;
  transition: color 0.3s ease;
}
.hed-box > a:hover {
  color: greenyellow;
}
.head-logo > a {
  padding: 5px 7px;
  background: black;
  border-radius: 4px;
  color: #fff;
  font-size: 14px;
}
.head-logo :hover {
  transform: scale(1.1);
}
nav {
  position: fixed;
  z-index: 9;
  top: 40px;
  width: 100%;
  background: #fff;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: all 0.2s ease-in-out;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.25);
}
nav .wrapper {
  position: relative;
  max-width: 1300px;
  padding: 0px 30px;
  height: 70px;
  line-height: 70px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  display: flex;
  align-items: center;
}
.logo > img {
  width: 180px;
}
.logo a.active {
  display: flex;
  align-items: center;
}
.wrapper .nav-links {
  display: inline-flex;
}
.nav-links li {
  list-style: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-links li:hover {
  transform: translateY(-3px);
}
nav input {
  display: none;
}
.nav-links li a {
  font-size: 14px;
  color: black;
  text-decoration: none;
  font-weight: 500;
  margin-left: 35px;
  -webkit-transition: 0.3s;
  -o-transition: 0.3s;
  transition: 0.3s;
}
/* .nav-links li a:hover {
  color: var(--blue);
} */

ul a:hover,
ul a.active {
  color: var(--blue);
}
.nav-links .mobile-item {
  display: none;
}
.drop-menu {
  padding: 20px;
}
.nav-links .drop-menu {
  position: absolute;
  background: #fff;
  border-radius: 8px;
  /* width: fit-content; */
  min-width: 240px;
  line-height: 35px;
  top: 85px;
  opacity: 0;
  z-index: 11;
  visibility: hidden;
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}
.nav-links li:hover .drop-menu,
.nav-links li:hover .mega-box {
  transition: all 0.3s ease;
  top: 70px;
  opacity: 1;
  visibility: visible;
}
.drop-menu li a {
  width: 100%;
  display: block;
  padding: 5px;
  font-weight: 400;
  font-size: 16px;
  border-radius: 0px;
  text-align: left;
  margin: 0;
}

.mega-box {
  position: absolute;
  left: 0;
  width: 100%;
  padding: 0 30px;
  top: 85px;
  opacity: 0;
  visibility: hidden;
}
.mega-box .content {
  background: #ffffff73;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: 25px 20px;
  display: flex;
  width: 100%;
  justify-content: space-between;
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}
.mega-box .content .row {
  width: calc(25% - 30px);
  line-height: 45px;
}
.content .row img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.content .row header {
  color: #f2f2f2;
  font-size: 20px;
  font-weight: 500;
}
.content .row .mega-links {
  margin-left: -40px;
  border-left: 1px solid rgba(255, 255, 255, 0.09);
}
.row .mega-links li {
  padding: 0 20px;
}
.row .mega-links li a {
  padding: 0px;
  padding: 0 20px;
  color: #3e3e3e;
  font-size: 17px;
  display: block;
}
.row .mega-links li a:hover {
  color: #3e3e3e;
}
.wrapper .btn {
  color: #3e3e3e;
  font-size: 20px;
  cursor: pointer;
  display: none;
}
.wrapper .btn.close-btn {
  position: absolute;
  right: 30px;
  top: 25px;
}
.desktop-item {
  position: relative;
  display: inline-block;
  text-decoration: none;
  color: #000;
}

.desktop-item i {
  display: inline-block;
  transition: transform 0.3s ease;
}

.desktop-item:hover i {
  transform: rotate(180deg);
}
.mobile-item {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.mobile-item i {
  display: inline-block;
  transition: transform 0.3s ease;
}

#showDrop:checked + .mobile-item i {
  transform: rotate(180deg);
}
@media only screen and (max-width: 438px) {
  nav {
    position: fixed;
    z-index: 99;
    top: 62px;
    left: 0;
  }
  .home-carousel {
    padding-top: 130px;
  }
  .head-logo > a {
    font-size: 10px;
  }
}
@media only screen and (max-width: 835px) {
  .nav-header {
    gap: 10px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding: 10px;
  }
}
@media screen and (max-width: 970px) {
  nav {
    transition: all 0.3s ease;
  }
  .wrapper .btn {
    display: block;
  }
  .wrapper .nav-links {
    position: fixed;
    height: 100vh;
    width: 100%;
    top: 0;
    left: -100%;
    background: #fff;
    display: block;
    padding: 70px 10px;
    line-height: 30px;
    overflow-y: auto;
    box-shadow: 0px 15px 15px rgba(0, 0, 0, 0.18);
    transition: all 0.3s ease;
  }
  /* custom scroll bar */
  ::-webkit-scrollbar {
    width: 10px;
  }
  ::-webkit-scrollbar-track {
    background: #242526;
  }
  ::-webkit-scrollbar-thumb {
    background: #3a3b3c;
  }
  #menu-btn:checked ~ .nav-links {
    left: 0%;
  }
  #menu-btn:checked ~ .btn.menu-btn {
    display: none;
  }
  #close-btn:checked ~ .btn.menu-btn {
    display: block;
  }
  .nav-links li {
    margin: 15px 10px;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .nav-links li:hover {
    transform: none;
  }
  .nav-links li a {
    /* padding: 10px 20px; */
    display: block;
    font-size: 20px;
    transition: all 0.3s ease;
    margin: 0 10px 0 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .drop-menu {
    padding: 0;
    transition: all 0.3s ease;
  }
  .drop-menu li a {
    padding: 0;
  }
  .nav-links .drop-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    /* background: #f2f2f2; */
    box-shadow: none;
    transition: max-height 0.3s ease;
  }
  #showDrop:checked ~ .drop-menu {
    max-height: 300px;
  }

  .nav-links .desktop-item {
    display: none;
  }
  .nav-links .mobile-item {
    display: block;
    color: #3e3e3e;
    font-size: 20px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
  }
  /* .nav-links .mobile-item:hover {
    background: #f2f2f2;
  } */
  .drop-menu li {
    margin: 0;
  }
  .drop-menu li a {
    font-size: 14px;
  }
  .mega-box {
    position: static;
    top: 65px;
    opacity: 1;
    visibility: visible;
    padding: 0 20px;
    max-height: 0px;
    overflow: hidden;
    transition: all 0.3s ease;
  }
  .mega-box .content {
    box-shadow: none;
    flex-direction: column;
    padding: 20px 20px 0 20px;
  }
  .mega-box .content .row {
    width: 100%;
    margin-bottom: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
  .mega-box .content .row:nth-child(1),
  .mega-box .content .row:nth-child(2) {
    border-top: 0px;
  }
  .content .row .mega-links {
    border-left: 0px;
    padding-left: 15px;
  }
  .row .mega-links li {
    margin: 0;
  }
  .content .row header {
    font-size: 19px;
  }
  /* Prevent scrolling on the body when menu is active */
  body.menu-open {
    overflow: hidden; /* Disable scrolling */
    height: 100vh; /* Prevent page height adjustment */
  }

  /* Mobile menu - open state */
  #menu-btn:checked ~ .nav-links {
    left: 0;
  }

  /* When the menu is open, apply the class to the body */
  #menu-btn:checked ~ * {
    position: fixed; /* Prevent background scroll */
    width: 100%;
  }
}
