/* ================= NAVBAR ================= */
.container {
  max-width: 90% !important;
  z-index: 10;
}
#header {
  position: relative;
  z-index: 9999;
}
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  padding: 30px 0;
  background-color: #060606 !important;
  transition: all 0.3s ease;
}
.cursor-glow {
  position: fixed;
  pointer-events: none;
  z-index: 1; /* VERY LOW */
}
.cursor-glow {
  position: fixed; /* important */
  top: 0;
  left: 0;
  width: 400px;
  height: 400px;

  background: radial-gradient(circle, rgba(23, 126, 210, 0.5), transparent 70%);
  transform: translate(-50%, -50%);

  pointer-events: none;
  z-index: 9999;

  filter: blur(60px);
  opacity: 0.7;
}
/* 🔥 DARKER HOVER */
.navbar:hover {
  background: rgba(0, 0, 0, 0.98); /* almost solid black */
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
}
/* TOGGLER */
.navbar-toggler {
  border-color: #fff;
}

.navbar-toggler-icon {
  filter: invert(1);
}

/* LOGO */
.navbar-brand {
  font-size: 28px;
}

/* NAV LINKS */
.navbar-nav .nav-link {
  color: #fff !important;
  margin: 0 15px;
  font-weight: light;
  font-size: 18px;
}
.navbar-nav .nav-link:hover {
  border-radius: 15px;
  background-color: #0c8ce8 !important;
}
/* DROPDOWN */
.dropdown-menu {
  border-radius: 12px;
  padding: 10px 0;
  background-color: #141130;
  /* border-bottom: 2px solid #276a92; */
  position: relative;
}

/* Side gradient borders */
.dropdown-menu::before,
.dropdown-menu::after {
  content: "";
  position: absolute;
  width: 2px;
  /* background-color: #000; */

  /* background: linear-gradient(to top, #276a92, transparent); */
  top: -3px;
  bottom: 0px;
  border-radius: 40px;
}

.dropdown-menu::before {
  left: 1px;
  height: 100%;
}

.dropdown-menu::after {
  right: 1px;
  height: 100%;
}

.dropdown-item {
  padding: 8px 20px;
  color: white;
  border-radius: 30px;
}
.dropdown-toggle::after {
  /* display: none; */
}
/* remove bootstrap default arrow */
.dropdown-toggle::after {
  content: "\f107"; /* chevron-down */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  border: none; /* remove default caret styles */
  margin-left: 6px;
  font-size: 12px;
  vertical-align: middle;
}
.dropdown-toggle[aria-expanded="true"]::after {
  transform: rotate(180deg);
  transition: 0.3s ease;
}
.dropdown-item:hover {
  background-color: #0c8ce8;
  color: white;
}

/* BUTTON */
.btn-transparent-nav {
  position: relative;
  background: transparent;
  color: #fff;
  border: 1px solid #fff;
  border-radius: 30px;
  padding: 15px 30px;
  overflow: hidden;
  z-index: 1;
}

/* Left se aane wala layer */
.btn-transparent-nav::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: rgb(22, 174, 239);
  z-index: -1;
  transition: 0.9s ease;
  border-radius: 30px;
}

/* Hover effect */
.btn-transparent-nav:hover::before {
  width: 100%;
}

/* Text color change */
.btn-transparent-nav:hover {
  color: #000;
}

/* MOBILE */
.mobile-search {
  color: #fff;
  font-size: 20px;
}
.search-box {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #000;
  padding: 10px;
  display: none;
}

.search-box input {
  width: 100%;
  padding: 10px;
  border-radius: 25px;
  border: none;
  outline: none;
}

@media (max-width: 991px) {
  .navbar .container {
    display: flex;
    justify-content: space-between;
  }

  .navbar-brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  /* .btn-transparent {
    display: none;
  } */

  .navbar-collapse {
    background: #000;
    margin-top: 15px;
    padding: 15px;
    border-radius: 10px;
  }
}

/* DESKTOP ONLY HOVER */
@media (min-width: 992px) {
  .navbar .dropdown:hover .dropdown-menu {
    display: block;
  }
}

/* MOBILE FIX */
@media (max-width: 991px) {
  .navbar {
    background: #000 !important;
  }

  .navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
  }

  /* ✅ Logo always center FIXED */
  .navbar-brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
  }

  /* ✅ Toggle left */
  .navbar-toggler {
    z-index: 3;
  }

  /* ✅ Search right */
  .mobile-search {
    z-index: 3;
    cursor: pointer;
  }

  /* ✅ Menu open hone par niche aaye (logo ko push na kare) */
  .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #000;
    padding: 15px;
    border-radius: 0 0 10px 10px;
    z-index: 1;
  }

  /* Button hide */
  /* .btn-transparent {
    display: none;
  } */
}
@media (max-width: 991px) {
  /* 🔥 Convert dropdown into left slider */
  .navbar-collapse {
    position: fixed !important;
    top: 0;
    left: -100%;
    width: 80%;
    height: 100vh;
    background: #000;
    padding: 20px;
    z-index: 9999;
    transition: left 0.4s ease !important;
  }

  /* ✅ When open */
  .navbar-collapse.show {
    left: 0;
  }

  /* ❌ Kill bootstrap height animation */
  .navbar-collapse.collapsing {
    height: auto !important;
    transition: none !important;
  }

  /* 🔥 Better spacing */
  .navbar-nav {
    margin-top: 40px;
  }

  .navbar-nav .nav-link {
    display: block;
    margin: 15px 0;
    font-size: 20px;
  }
  .mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .mobile-menu-header img {
    height: 45px;
  }

  .close-menu {
    font-size: 28px;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
  }
}
@media (max-width: 991px) {
  .navbar-collapse {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    height: 100vh;
    background: #000;
    padding: 20px;
    z-index: 9999;
    transition: left 0.4s ease;
    /* display: block; ✅ no !important */
  }

  /* ✅ ONLY this controls visibility */
  .navbar-collapse.show {
    left: 0;
  }

  /* 🔥 disable bootstrap height animation cleanly */
  .navbar-collapse.collapsing {
    height: auto !important;
    transition: none;
  }
  .mobile-menu-header {
    position: relative;
    z-index: 10001;
  }

  .close-menu {
    position: absolute;
    right: 10px;
    top: 10px;
    z-index: 10002;
    pointer-events: auto;
  }
}
