.custom-nav-container  ul li {
  list-style: none;
}
/* Sticky header */
#header {
  transition: transform 1s ease-in-out !important;
}

/* Header Styles */
.header {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  background: transparent;
  transition: transform 1.2s ease-in-out !important;
  /* backdrop-filter: blur(10px); */
}

.custom-nav-link.active {
  color: #f76d03!important; /* Change this to the color you want to use for the active link */
  font-weight: bold;
  border-bottom: 1px solid rgb(0, 213, 255);
}

.header.scrolled {
  background-color: #0E1759;
  /* Add your desired background color */
  transition: background-color 0.3s ease;
  /* Smooth transition */
}


/* Main Navigation Container */
.custom-nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Brand/Logo */
.nav-brand {
  width: 35%;
  display: flex;
  align-items: center;
}

.nav-brand img {
  width: 90%;
  transition: transform 0.3s ease;
}

.nav-brand img:hover {
  transform: scale(1.05);
}

/* Navigation Menu */
.custom-nav-menu {
  display: flex;
  gap: 2rem;
  align-items: center;
  list-style: none;
  padding-top: 1%;
}

.custom-nav-item {
  position: relative;
}

.custom-nav-link {
  color: white !important;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 0.5rem;
  transition: all 0.3s ease;
  position: relative;
}

.custom-nav-link::after {
  content: '';
  position: absolute !important;
  bottom: 0 !important;
  left: 50% !important;
  width: 0;
  height: 2px !important;
  background: #0E1759 !important;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.custom-nav-link:hover::after {
  width: 100% !important;
}

/* Dropdown Styles */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(255, 255, 255, 0.38);
  backdrop-filter: blur(10px);
  min-width: 200px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.dropdown-menu li {
  display: flex;
  align-items: center;
}
.dropdown-menu li img {
  padding-right: 10px;
  width: 30px;
  height: 20px;
}
.dropdown-menu li h2 {
 font-size: 15px;
 color: white;
}

.custom-dropdown-item {
  display: flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  color: white;
}

.custom-dropdown-item:hover {
  background: rgba(14, 23, 89, 0.1);
  transform: translateX(5px);
}

/* Login Button */
.nav-button {
  background: #0E1759;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.nav-button:hover {
  background: transparent;
  color: rgb(210, 211, 217);
  border-color: rgb(67, 74, 132);
}

/* Mobile Menu Toggle */
.custom-nav-toggle,
.custom-nav-close {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  transition: transform 0.3s ease;
}

.custom-nav-toggle:hover,
.custom-nav-close:hover {
  transform: scale(1.1);
}

/* Add slide animations for dropdown items */
@keyframes slideDown {
  from {
      opacity: 0;
      transform: translateY(-10px);
  }

  to {
      opacity: 1;
      transform: translateY(0);
  }
}

/* Show dropdown when active class is present */
.dropdown-menu.show {
  position: absolute;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  background: rgba(3, 31, 108, 0.72);
  margin-top: 1rem;
  margin-left: 1rem;
  transition: all 0.3s ease;
}

.dropdown-menu.show .custom-dropdown-item {
  animation: slideDown 0.3s ease forwards;
  opacity: 0;
}

.dropdown-menu.show .custom-dropdown-item:nth-child(1) {
  animation-delay: 0.1s;
}

.dropdown-menu.show .custom-dropdown-item:nth-child(2) {
  animation-delay: 0.2s;
}

.dropdown-menu.show .custom-dropdown-item:nth-child(3) {
  animation-delay: 0.3s;
}

/* Mobile Styles */
@media (min-width: 1112px) {


  .custom-nav-item:hover .dropdown-menu {
      opacity: 1;
      visibility: visible;
      transform: translateY(10px);
  }

  .custom-nav-link:hover {
      color: rgba(128, 128, 238, 0.96) !important;
      transition: all 0.5s ease;
  }

  .custom-dropdown-item {
      display: flex;
      align-items: center;
      padding: 0.75rem 1.5rem;
      color: white;
      text-decoration: none;
      transition: all 0.3s ease;
      width: 250px;
  }

  .custom-dropdown-item:hover {
      background: rgba(14, 23, 89, 0.1);
      transform: translateX(5px);
  }

  .custom-nav-link .dropdown-arrow {
      display: inline-block;
      margin-left: 5px;
      transition: transform 0.3s ease;
  }

  /* .custom-nav-link.active .dropdown-arrow {
      transform: rotate(180deg);
  } */
}

@media (max-width: 1111px) {
  /* .dropdown-arrow{
    display:inline-block;
  } */
  .dropdown-menu.show {
      position: static;
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
      background: rgba(15, 6, 100, 0.72);

      margin-top: 1rem;
      margin-left: 1rem;
      transition: all 0.3s ease;
  }

  .custom-nav-toggle {
      display: flex;
      align-items: flex-end;
      justify-content: flex-end;
      font-size: 2rem;
      z-index: 1001;
      color: white;
  }

  .custom-nav-close {
      display: block;
      position: absolute;
      top: 0.5rem;
      right: 0.8rem;
      font-size: 2rem;
      color: white;
      transition: transform 0.3s ease;
  }

  .custom-nav-close:hover {
      transform: scale(1.1) !important;
      transition: transform 0.5s ease;
      color: rgb(150, 162, 243);
  }

  /* Cool rotation animation for close button */
  .custom-nav-close.active {
      /* transform: rotate(180deg); */
      transition: transform 0.5s ease;
  }

  .custom-nav-menu {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100vh;
      background: #0E1759;
      background-image: url(/assets/img/demo-hosting-mobile-menu-bg.jpg);
      background-position: center center;
      background-size: cover;
      background-repeat: no-repeat;
      flex-direction: column;
      justify-content: flex-start;
      align-items: flex-start;
      padding: 2rem;
      padding-top: 5rem;
      transform: translateY(-100%);
      transition: all 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
      visibility: hidden;
      overflow-y: auto;
  }

  .custom-nav-menu.active {
      transform: translateY(0);
      /* Slide in to natural position */
      visibility: visible;
  }

  /* Modify closing animation */
  .custom-nav-menu.closing {
      transform: translateY(-100%);
      /* Slide out to top */
      opacity: 1;
      /* Keep opacity 1 for consistent animation */
      visibility: visible;
      /* Keep visible during animation */
      /* transition: all 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55); */
  }

  .custom-nav-link {
      width: 100%;
      color: white;
      font-size: 1.2rem;
  }

  .custom-nav-item {
      padding-bottom: 10px;
      width: 100%;
      border-bottom: 1px solid rgba(255, 255, 255, 0.256);
  }

  /* Remove hover styles for dropdown */




  /* Add rotation animation to dropdown arrow */
  .custom-nav-link .dropdown-arrow {
      display: inline-block;
      margin-left: 5px;
      transition: transform 0.3s ease;
  }

  /* .custom-nav-link.active .dropdown-arrow {
      transform: rotate(180deg);
  } */

  /* Enhanced animation for menu closing */
  .custom-nav-menu.closing {
      transform: translateX(100%);
      opacity: 0;
  }

  .custom-dropdown-item {
      color: rgba(255, 255, 255, 0.8) !important;
  }

  .custom-dropdown-item:hover {
      background: rgba(255, 255, 255, 0.1) !important;
  }

  /* Animation for menu items */
  .custom-nav-menu.active .custom-nav-item {
      animation: slideIn 0.5s forwards;
      opacity: 0;
  }

  @keyframes slideIn {
      from {
          opacity: 0;
          transform: translateY(20px);
      }

      to {
          opacity: 1;
          transform: translateY(0);
      }
  }

  /* Stagger animation delay for menu items */
  .custom-nav-menu.active .custom-nav-item:nth-child(1) {
      animation-delay: 0.1s;
  }

  .custom-nav-menu.active .custom-nav-item:nth-child(2) {
      animation-delay: 0.2s;
  }

  .custom-nav-menu.active .custom-nav-item:nth-child(3) {
      animation-delay: 0.3s;
  }

  .custom-nav-menu.active .custom-nav-item:nth-child(4) {
      animation-delay: 0.4s;
  }

  .custom-nav-menu.active .custom-nav-item:nth-child(5) {
      animation-delay: 0.5s;
  }

  /* Brand/Logo */
  .nav-brand {
      width: 75%;
      display: flex;
      align-items: center;
  }

  .nav-brand img {
      width: 95%;
      transition: transform 0.3s ease;
  }

  .nav-button {
      /* width: 10%; */
      text-align: center;
      padding: 0.75rem;
      font-size: 1.2rem;
  }
  .custom-nav-link.active {
    border-bottom: none;
  }

}