.navbar {
  position: fixed;
  top: -10px;
  width: 100%;
  height: auto;
  min-height: 72px;
  background: transparent;
  z-index: 999;
  --bs-navbar-active-color: #fdbd10;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Force white hamburger icon */
.navbar-light .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-toggler {
  border: none !important;
  background: transparent !important;
  padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus,
.navbar-toggler:active,
.navbar-toggler:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}


.logo {
  width: 80px;

  animation: logoFocus 4s ease-in-out infinite;
}

@keyframes logoFocus {
  0% {
    transform: scale(1);
    filter: brightness(1);
  }

  50% {
    transform: scale(1.06);
    filter: brightness(1.15);
  }

  100% {
    transform: scale(1);
    filter: brightness(1);
  }
}

.navbar-nav {
  display: flex;
  align-items: center;
  padding-left: 30px;
}

.navbar,
.navbar .container,
.navbar-collapse {
  overflow: visible !important;
}

.nav-link {
  color: #fff;
  align-items: center;
  margin-top: -50px;
  font-family: "Plus Jakarta Sans", sans-serif !important;
  font-size: 16px;
  font-weight: 500;
  line-height: 100%;
  position: relative;
  padding-bottom: 6px;
  transition: color 0.3s ease;
  white-space: nowrap;
}

/* Underline */
.nav-link::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 3px;
  background-color: #fdbd10;
  transition: width 0.3s ease;

  pointer-events: none;
}

.nav-link:hover::before,
.nav-link.active::before {
  width: 100%;
}

.nav-link.dropdown-toggle:hover::before,
.nav-link.dropdown-toggle.active::before {
  width: 100%;
}



.nav-link:hover,
.nav-link.active {
  color: #fdbd10 !important;
}

/* Hover & Active only for nav-items inside .topnavbar */
.topnavbar .nav-link:hover::before,
.topnavbar .nav-link.active::before {
  width: 70%;
  margin-left: 9px;
}

.navbar-nav .nav-link.active::after {
  color: #ffffff;
}

.navbar-nav .nav-link.active:hover {
  color: #fdbd10;
}


/* Remove Bootstrap caret completely */
.dropdown-toggle::after {
  display: none !important;
}

/* Dropdown menu styling */
.dropdown-menu {
  border-radius: 12px;
  border: none;
  padding: 10px 0;
  background: rgba(17, 17, 17, 0.85) !important;
  backdrop-filter: blur(8px);

  z-index: 3000;
  pointer-events: auto;

  position: absolute;
  left: -23px;
  margin-top: 10px;
}


/* Dropdown items */
.dropdown-item {
  padding: 10px 20px;
  font-family: "Plus Jakarta Sans", sans-serif !important;
  font-size: 16px;
  font-weight: 500;
  line-height: 100%;
  color: #fff;
  position: relative;
  transition: color 0.3s ease;
}

.nav-item.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu {
  margin-top: 0;
}

.nav-item.dropdown {
  position: relative;
}

.dropdown-item::after {
  content: "";
  position: absolute;
  left: 20px;
  bottom: 6px;
  width: 0;
  height: 2px;
  background-color: #fdbd10;
  transition: width 0.3s ease;
}


/* Hover effect for items */
.dropdown-item:hover {
  color: #fdbd10;
  border-radius: 8px;
  background: linear-gradient(to top,
      rgba(17, 17, 17, 0.6) 0%,
      rgba(17, 17, 17, 0.35) 50%,
      rgba(17, 17, 17, 0) 100%) !important;
}

.dropdown-item:hover::after {
  width: calc(60% - 20px);
  /* full width minus padding */
}

.dropdown-icon {
  width: 12px;
  height: 12px;
  /* margin-top: 1px; */
  margin-left: 6px;
  transition: transform 0.3s ease;
  transform-origin: center;
}

.dropdown-toggle[aria-expanded="true"] .dropdown-icon {
  transform: rotate(180deg);
}

.navbar-collapse {
  display: flex;
  align-items: normal;
  opacity: 1;
  visibility: visible;
  margin-left: -30px;
}

.dropdown-menu {
  display: none;
}

.dropdown.show .dropdown-menu {
  display: block;
}



/* Rotate on HOVER (desktop only) */
@media (min-width: 992px) {
  .nav-item.dropdown:hover .dropdown-icon {
    transform: rotate(180deg);
  }
}



/* Resonsive */
@media (max-width: 575.98px) {

  .logo {
    width: 60px;
  }

  .nav-link {
    font-size: 15px;
    margin-top: 0;
    justify-content: center;
  }

  .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 6%;
    width: 100%;
    padding: 20px 0;
    text-align: center;
    background: linear-gradient(to top,
        rgba(17, 17, 17, 0.6) 0%,
        rgba(17, 17, 17, 0.35) 50%,
        rgba(17, 17, 17, 0) 100%) !important;
    backdrop-filter: blur(8px);
  }

  .navbar-nav {
    align-items: center;
    gap: 36px;
    margin-top: 30px;
  }

  /* Dropdown stacks naturally */
  .navbar .nav-link {
    position: relative;
    display: block;
    text-align: center;
  }

  .navbar .nav-link span {
    display: inline-block;
    width: 100%;
    text-align: center;
  }

  .nav-item.dropdown {
    position: relative;
  }

  .dropdown-menu {
    /* left: 50% !important; */
    /* transform: translateX(-50%); */
    text-align: center;
    min-width: 200px;
    margin-top: 10px !important;
  }

  .dropdown-item,
  .dropdown-item:hover,
  .dropdown-item:focus {
    text-align: center;
  }
}

@media (min-width: 576px) and (max-width: 767.98px) {

  .logo {
    width: 60px;
  }

  .nav-link {
    font-size: 15px;
    margin-top: 0;
    justify-content: center;
  }

  .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 4.8%;
    width: 100%;
    padding: 35px 0;
    text-align: center;
    background: linear-gradient(to top,
        rgba(17, 17, 17, 0.6) 0%,
        rgba(17, 17, 17, 0.35) 50%,
        rgba(17, 17, 17, 0) 100%) !important;
    backdrop-filter: blur(8px);
  }

  .navbar-nav {
    align-items: center;
    gap: 25px !important;
    /* margin-top: 30px; */
  }

  /* Dropdown stacks naturally */
  .navbar .nav-link {
    position: relative;
    display: block;
    text-align: center;
    margin-top: -10px;
  }

  .navbar .nav-link span {
    display: inline-block;
    width: 100%;
    text-align: center;
  }

  .nav-item.dropdown {
    position: relative;
  }

  .dropdown-menu {
    /* left: 50% !important; */
    /* transform: translateX(-50%); */
    text-align: center;
    min-width: 200px;
    margin-top: 10px !important;
  }

  .dropdown-item,
  .dropdown-item:hover,
  .dropdown-item:focus {
    text-align: center;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {

  .logo {
    width: 60px;
  }

  .nav-link {
    font-size: 15px;
    margin-top: 0;
    justify-content: center;
  }

  .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 3.3%;
    width: 100%;
    padding: 35px 0;
    text-align: center;
    background: linear-gradient(to top,
        rgba(17, 17, 17, 0.6) 0%,
        rgba(17, 17, 17, 0.35) 50%,
        rgba(17, 17, 17, 0) 100%) !important;
    backdrop-filter: blur(8px);
  }

  .navbar-nav {
    align-items: center;
    gap: 25px !important;
    /* margin-top: 30px; */
  }

  /* Dropdown stacks naturally */
  .navbar .nav-link {
    position: relative;
    display: block;
    text-align: center;
    margin-top: -10px;
  }

  .navbar .nav-link span {
    display: inline-block;
    width: 100%;
    text-align: center;
  }

  .nav-item.dropdown {
    position: relative;
  }

  .dropdown-menu {
    /* left: 50% !important; */
    /* transform: translateX(-50%); */
    text-align: center;
    min-width: 200px;
    margin-top: 10px !important;
  }

  .dropdown-item,
  .dropdown-item:hover,
  .dropdown-item:focus {
    text-align: center;
  }
}


@media (min-width: 992px) and (max-width: 1199.98px) {

  .navbar-collapse {
    position: static;
    background: transparent;
    padding: 0;
  }

  .navbar-nav {
    gap: 24px;
  }

  .dropdown-menu {
    position: absolute;
    min-width: 220px;
    margin-top: 14px;
    text-align: left;
  }

  .dropdown-item {
    padding: 10px 20px;
    text-align: left;
  }
}


@media (min-width: 1200px) and (max-width: 1399.98px) {

  .navbar-nav {
    gap: 32px;
  }

  .dropdown-menu {
    min-width: 240px;
  }

  .dropdown-item {
    font-size: 16px;
  }
}


@media (min-width: 1400px) {

  .navbar-nav {
    gap: 36px;
  }
}