/* Header dropdown css Test JEET*/

/* .dropdown-mega .mega-menu {
   width: 700px;
   left: 50%;
   transform: translateX(-50%);
   border-radius: 8px;
   box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.mega-title {
   font-weight: 600;
   margin-bottom: 10px;
   color: #333;
}


.mega-menu .dropdown-item {
   padding: 8px 0;
}


.mega-menu .dropdown-item:hover {
   padding-left: 6px;
   transition: 0.2s;
}


@media (max-width: 991px) {
   .dropdown-mega .mega-menu {
      width: 100%;
      transform: none;
      left: 0;
   }
}





@media (min-width: 992px) {
   .dropdown-mega:hover .dropdown-menu {
      display: block;
   }
}





.mega-links .dropdown-item span{

    font-size: 20px;
    font-weight: 600;
}


.mega-links .dropdown-item i {
   font-size: 20px;                 
   width: 42px;
   height: 42px;
   padding: 5px; 
   margin-right: 2px;
   align-items: center;
   justify-content: center;
   border-radius: 12px;
 
   background: linear-gradient(135deg, #0d6efd, #20295a);
   color: #fff;
   transition: all 0.8s ease;
}


.mega-links .dropdown-item:hover i {
   transform: scale(1.15);
   background: linear-gradient(135deg, #4f9cff, #0d6efd);
   box-shadow: 0 8px 20px rgba(13,110,253,0.35);
}




.main-title-dropdown{
   background: #333;
   color: aliceblue;
   padding: 10px;
   margin: 0;
   text-align: center;
   justify-content: center;
   border-radius: 25px;

}

.icon-space{
   margin-left: 5px;
}



.dropdown-menu .dropend .dropdown-menu {
   top: 0;
   left: 100%;
   margin-top: -0.125rem;
}

  */



/* Reset */

.menu, .submenu {
  list-style: none;
  /* padding: 0 15px !important; */
  padding: 0 0px !important;
}

/* Main menu */
.menu > li {
  position: relative;
}

.menu > li > a {
  /* padding: 8px !important; */
  padding: 8px 5px !important;
   color: #2b2b2b;
   font-weight: 600;
   font-size: 14px;
   display: block;
   text-decoration: none;
}

/* Submenus */
.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 300px;
  display: none;

  /* Glassmorphism */
  /* background: rgba(186, 186, 186, 0.15); */
  background: #dad1d1;
  backdrop-filter: blur(50px);
  -webkit-backdrop-filter: blur(50px);

  /* border-radius: 12px; */
  /* border: 1px solid rgba(255, 255, 255, 0.25); */

  /* box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.25); */
}

/* Nested submenu */
.submenu .submenu {
  top: 0;
  left: 100%;
}

/* Show submenu on hover */
/* .has-submenu:hover > .submenu {
  display: block;
} */

/* Links */
.submenu a {
  padding: 10px 14px;
  display: block;
   color: #2b2b2b;
  text-decoration: none;
    transition: 
    background 0.25s ease,
    border 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.submenu a:hover {
   animation: glassPulse 0.6s ease-in-out forwards;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.45),
    rgba(255, 255, 255, 0.25)
  );
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #1f2a44;
}

@keyframes glassPulse {
  0% {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.25);
  }
  50% {
    backdrop-filter: blur(16px);
    background: rgba(255, 255, 255, 0.4);
  }
  100% {
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.35);
  }
}



.menu-item.open > .submenu {
  display: block;
}
.submenu .menu-item {
  position: relative;
}

.submenu .menu-item > .submenu {
  top: 0;
  left: 100%;
}


/* new style */


.menu a {
  position: relative;
  display: flex;
  align-items: center;
  /* justify-content: space-between; */
  /* padding: 10px 14px; */
  padding: 10px 10px;
  text-decoration: none;
  transition: color 0.3s ease;
  overflow: hidden;
}

a.new-li{
  justify-content: space-between;
}


.menu a i {
  transition: transform 0.3s ease;
}

/* Left icon slide + scale */
.menu a:hover i:first-child {
  transform: translateX(6px) scale(1.1);
}


.arrow i {
  transition: transform 0.35s cubic-bezier(.68,-0.55,.27,1.55);
}

.menu-item.has-submenu:hover > a .arrow i {
  transform: rotate(90deg);
}


.submenu {
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 0.35s cubic-bezier(.4,0,.2,1);
}

/* Show submenu */
.menu-item:hover > .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}


.submenu li {
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
}

.menu-item:hover > .submenu > li {
  opacity: 1;
  transform: translateX(0);
}

.menu-item:hover > .submenu > li:nth-child(1) { transition-delay: 0.05s; }
.menu-item:hover > .submenu > li:nth-child(2) { transition-delay: 0.1s; }
.menu-item:hover > .submenu > li:nth-child(3) { transition-delay: 0.15s; }
.menu-item:hover > .submenu > li:nth-child(4) { transition-delay: 0.2s; }
.menu-item:hover > .submenu > li:nth-child(5) { transition-delay: 0.25s; }
.menu-item:hover > .submenu > li:nth-child(6) { transition-delay: 0.3s; }


.menu a:hover {
  /* color: #6c63ff; */
  color: #ffffff;
  text-shadow: 0 0 8px rgba(108, 99, 255, 0.4);
}


.menu a::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 100%;
  /* background: rgba(108, 99, 255, 0.08); */
  background: #20295a;
  transition: width 0.3s ease;
  z-index: -1;
}

.menu a:hover::before {
  width: 100%;
}




/* For mobile menu */

/* Mobile only */
/* =============================
   DESKTOP (hover dropdown)
============================= */
/* Desktop multi-level */
@media (min-width: 992px) {
   .dropdown-submenu {
      position: relative;
   }

   .dropdown-submenu > .dropdown-menu {
      top: 0;
      left: 100%;
      margin-top: -1px;
   }
}
















/* Text-animation */


.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

/* Base state */
.nav-link.active {
    /* color: #0d6efd; */
}

.nav-link.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 100%;
     background: linear-gradient(90deg, #20295a, #6610f2);
    background-size: 200% 100%;
    animation: sweep 6s linear infinite;
}

@keyframes sweep {
    0% { background-position: 200% center; }
    100% { background-position: 0% center; }
}




/* .nav-link {
    transition: all 0.3s ease;
}

.nav-link.active {
    color: #0d6efd;
    animation: textWave 2s ease-in-out infinite;
}

@keyframes textWave {
    0%   { transform: translateY(0); }
    50%  { transform: translateY(-3px); }
    100% { transform: translateY(0); }
} */




  .nav-link {
    transition: all 0.3s ease;
}

  .nav-link.active {
    background: linear-gradient(90deg, #20295a, #6610f2);
    background-size: 200% auto;
    animation: gradientMove 6s linear infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@keyframes gradientMove {
    0% { background-position: 200% center; }
    100% { background-position: 0% center; }
}
