.navbar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  max-height: 70px;
  z-index: 100;
  padding: 0 14px;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  background-color: #01103b;
  transition:
    background-color 0.4s ease,
    border-color 0.4s ease,
    box-shadow 0.4s ease;
}

.navbar-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.logo-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  z-index: 2;
  height: 100%;
}

.logo-img {
  height: 38px;
  width: auto;
  max-height: 40px;
  display: block;
  object-fit: contain;
  transition:
    filter 0.4s ease,
    opacity 0.4s ease;
}

.nav-menu {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 40px;
  z-index: 1;
}

.nav-item {
  color: #ffffff;
  text-decoration: none;
  font-family: var(--font-brand);
  font-size: 18px;
  font-weight: 700;
  line-height: normal;
  position: relative;
  padding: 4px 0;
  transition: color 0.4s ease;
}

.nav-item:hover,
.nav-item.active {
  color: #ffffff;
}

.nav-item:hover::after,
.nav-item.active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #ffffff;
  box-shadow: 0px 5px 30px rgba(0, 0, 0, 0.05);
  transition: background-color 0.4s ease;
}

.nav-item--dropdown {
  cursor: default;
}

.nav-dropdown-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  transform: translateY(10px);
  width: 300px;
  background: #ffffff;
  box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
  padding: 10px 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    visibility 0.25s;
  z-index: 200;
}

.nav-dropdown-menu::before {
  content: "";
  position: absolute;
  top: -16px;
  left: 0;
  width: 100%;
  height: 16px;
}

.nav-dropdown-wrapper:hover .nav-dropdown-menu,
.nav-dropdown-wrapper:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(8px);
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  height: 50px;
  padding: 0 16px;
  font-family: var(--font-brand, "Aptos", sans-serif);
  font-size: 18px;
  font-weight: 700;
  color: #141416 !important;
  text-decoration: none;
  background-color: #ffffff;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
  box-sizing: border-box;
  white-space: nowrap;
}

.nav-dropdown-item:hover,
.nav-dropdown-item.active {
  background-color: #c5daf3 !important;
  color: #0431b1 !important;
}

.navbar-overlay.light-theme .nav-dropdown-menu {
  background: #ffffff;
  box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.12);
}

.nav-actions {
  z-index: 2;
  display: flex;
  align-items: center;
}

.btn-conversation {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  height: auto;
  padding: 10px 18px;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: #0431b1;
  color: #ffffff;
  border-radius: 0;
  font-family: var(--font-brand);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0px;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.btn-conversation:hover {
  background-color: #022384;
}

.navbar-overlay.light-theme {
  background-color: #ffffff;
  box-shadow: 0px 5px 30px rgba(0, 0, 0, 0.05);
}

.navbar-overlay.light-theme .nav-item {
  color: #01103b;
}

.navbar-overlay.light-theme .nav-item:hover,
.navbar-overlay.light-theme .nav-item.active {
  color: #0431b1;
}

.navbar-overlay.light-theme .nav-item:hover::after,
.navbar-overlay.light-theme .nav-item.active::after {
  background-color: #0431b1;
}

.navbar-overlay.light-theme .logo-img {
  filter: brightness(0) saturate(100%) invert(18%) sepia(50%) saturate(1475%)
    hue-rotate(188deg) brightness(97%) contrast(92%);
}

.navbar-overlay.light-theme .btn-conversation {
  background-color: #0431b1;
  color: #ffffff;
}

.navbar-overlay.light-theme .btn-conversation:hover {
  background-color: #03258c;
}

.hamburger-toggle,
.drawer-close,
.nav-backdrop {
  display: none;
}

@media (max-width: 1024px) {
  .dots-navigation {
    z-index: 90 !important;
  }

  .navbar-overlay {
    height: 60px;
    max-height: 60px;
    padding: 0 20px;
    z-index: 999;
  }

  .logo-img {
    height: 32px;
  }

  .hamburger-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1000;
  }

  .hamburger-bar {
    width: 100%;
    height: 2.5px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
  }

  .navbar-overlay.light-theme .hamburger-bar {
    background-color: #01103b;
  }

  .nav-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    height: 100dvh;
    background-color: #01103b;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.3);
    transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1002;
    display: flex;
    flex-direction: column;
    padding: 70px 24px 30px;
    box-sizing: border-box;
    justify-content: space-between;
  }

  .navbar-overlay.light-theme .nav-drawer {
    background-color: #ffffff;
  }

  .nav-drawer.is-active {
    right: 0;
  }

  .drawer-close {
    display: block;
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 32px;
    line-height: 1;
    color: #ffffff;
    cursor: pointer;
    padding: 4px 8px;
    z-index: 1003;
  }

  .navbar-overlay.light-theme .drawer-close {
    color: #01103b;
  }

  .nav-menu {
    position: static;
    transform: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
    width: 100%;
    z-index: 1;
  }

  .nav-item {
    font-size: 18px;
    padding: 8px 0;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .navbar-overlay.light-theme .nav-item {
    border-bottom: 1px solid rgba(1, 16, 59, 0.08);
  }

  .nav-dropdown-wrapper {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-dropdown-wrapper .nav-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .nav-dropdown-menu {
    position: static;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    width: 100%;
    box-shadow: none !important;
    background: transparent !important;
    padding: 4px 0 8px 16px;
    margin: 0;
  }

  .nav-dropdown-menu::before {
    display: none;
  }

  .nav-dropdown-item {
    height: 36px;
    padding: 0 10px;
    font-size: 15px;
    font-weight: 600;
    background-color: transparent !important;
    color: rgba(255, 255, 255, 0.75) !important;
    border-radius: 4px;
  }

  .navbar-overlay.light-theme .nav-dropdown-item {
    color: rgba(1, 16, 59, 0.7) !important;
  }

  .nav-dropdown-item:hover,
  .nav-dropdown-item:active,
  .nav-dropdown-item.active {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
  }

  .navbar-overlay.light-theme .nav-dropdown-item:hover,
  .navbar-overlay.light-theme .nav-dropdown-item:active,
  .navbar-overlay.light-theme .nav-dropdown-item.active {
    background-color: #c5daf3 !important;
    color: #0431b1 !important;
  }

  .nav-actions {
    margin-top: auto;
    width: 100%;
    padding-top: 20px;
  }

  .btn-conversation {
    width: 100%;
    height: 46px;
    font-size: 16px;
    justify-content: center;
  }

  .nav-backdrop {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: rgba(1, 16, 59, 0.55);
    backdrop-filter: blur(3px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    z-index: 1001;
  }

  .nav-backdrop.is-active {
    opacity: 1;
    pointer-events: auto;
  }
}

body.no-scroll {
  overflow: hidden !important;
}

.scroll-down-btn {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: #ffffff !important;
  opacity: 0.8 !important;
  text-decoration: none;
  transition:
    opacity 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}

.scroll-down-btn:hover {
  opacity: 1 !important;
  color: #ffffff !important;
  transform: translateX(-50%) translateY(3px) !important;
}

.scroll-down-text {
  font-family: Aptos, var(--font-brand);
  font-size: 16px;
  font-weight: 700;
  line-height: normal;
  color: #ffffff !important;
  opacity: 0.8 !important;
  text-transform: uppercase;
  text-align: center;
  letter-spacing: 1px;
  font-feature-settings:
    "liga" off,
    "clig" off;
  transition:
    opacity 0.25s ease,
    color 0.25s ease;
}

.scroll-down-btn:hover .scroll-down-text {
  opacity: 1 !important;
  color: #ffffff !important;
}

.scroll-down-icon {
  width: 24px;
  height: 24px;
  color: #ffffff !important;
  opacity: 0.8 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: bounceDown 2.2s infinite ease-in-out;
  transition:
    opacity 0.25s ease,
    color 0.25s ease;
}

.scroll-down-btn:hover .scroll-down-icon {
  opacity: 1 !important;
  color: #ffffff !important;
}

.scroll-down-icon svg,
.scroll-down-icon path {
  fill: currentColor;
}

@keyframes bounceDown {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(6px);
  }
  60% {
    transform: translateY(3px);
  }
}

@media (max-height: 660px) {
  .scroll-down-btn {
    bottom: 10px;
  }
}

@media (max-height: 620px) {
  .scroll-down-btn {
    bottom: 6px;
  }
}
