.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: opacity 0.3s ease;
}

.logo-img--white {
  display: block;
}

.logo-img--dark {
  display: none;
}

.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;
}

.dropdown-arrow {
  display: none;
}

.nav-dropdown-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  transform: translateY(10px);
  min-width: 300px;
  width: max-content;
  max-width: 480px;
  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;
}

.nav-dropdown-item.nav-dropdown-item--disabled,
.nav-item.nav-item--disabled,
.navbar-overlay.light-theme .nav-dropdown-item.nav-dropdown-item--disabled,
.navbar-overlay.light-theme .nav-item.nav-item--disabled {
  cursor: default !important;
  color: rgba(1, 16, 59, 0.4) !important;
  pointer-events: none !important;
  background-color: transparent !important;
}

.navbar-overlay:not(.light-theme) .nav-dropdown-item.nav-dropdown-item--disabled,
.navbar-overlay:not(.light-theme) .nav-item.nav-item--disabled {
  color: rgba(255, 255, 255, 0.3) !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--white {
  display: none;
}

.navbar-overlay.light-theme .logo-img--dark {
  display: block;
}

.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;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .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: none !important;
    text-decoration: none !important;
  }

  .navbar-overlay.light-theme .nav-item {
    border-bottom: none !important;
  }

  .nav-drawer .nav-item::after,
  .nav-drawer .nav-item:hover::after,
  .nav-drawer .nav-item.active::after {
    display: none !important;
    content: none !important;
  }

  .nav-drawer a,
  .nav-drawer .nav-item,
  .nav-drawer .nav-dropdown-item {
    text-decoration: none !important;
  }

  .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;
    cursor: pointer;
  }

  .dropdown-arrow {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-right: 2px solid rgba(255, 255, 255, 0.8);
    border-bottom: 2px solid rgba(255, 255, 255, 0.8);
    transform: rotate(45deg);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    margin-right: 4px;
    flex-shrink: 0;
  }

  .navbar-overlay.light-theme .dropdown-arrow {
    border-color: rgba(1, 16, 59, 0.7);
  }

  .nav-dropdown-wrapper.is-open .dropdown-arrow {
    transform: rotate(-135deg);
  }

  .nav-dropdown-menu {
    position: static;
    transform: none !important;
    width: 100%;
    box-shadow: none !important;
    background: transparent !important;
    margin: 0;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    pointer-events: none;
    padding: 0 0 0 14px;
    transition:
      max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
      opacity 0.25s ease,
      padding 0.35s ease,
      visibility 0.35s;
  }

  .nav-dropdown-wrapper.is-open .nav-dropdown-menu {
    max-height: 350px;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    padding: 6px 0 8px 14px;
  }

  .nav-dropdown-menu::before {
    display: none;
  }

  .nav-dropdown-item {
    height: auto;
    min-height: 36px;
    padding: 8px 10px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    background-color: transparent !important;
    color: rgba(255, 255, 255, 0.75) !important;
    border-radius: 4px;
    white-space: normal;
  }

  .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: 12px !important;
  left: 50%;
  transform: translateX(-50%) !important;
  z-index: 20;
  width: 36px !important;
  height: 36px !important;
  background: #0431b1 !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  cursor: pointer;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  color: #ffffff !important;
  opacity: 0;
  pointer-events: none;
  text-decoration: none;
  transition: none !important;
}

.scroll-section.slide-animated .scroll-down-btn,
.scroll-section.swiper-slide-active .scroll-down-btn {
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translateX(-50%) !important;
  transition: none !important;
}

.scroll-down-btn:hover,
.scroll-section.slide-animated .scroll-down-btn:hover {
  opacity: 1 !important;
  background: #0431b1 !important;
  transform: translateX(-50%) !important;
  transition: none !important;
}

.scroll-down-text {
  display: none !important;
}

.scroll-down-icon {
  width: 24px !important;
  height: 24px !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
  animation: none !important;
}

.scroll-down-icon svg {
  width: 24px !important;
  height: 24px !important;
  display: block;
}

.scroll-down-icon svg,
.scroll-down-icon path {
  fill: #ffffff !important;
  color: #ffffff !important;
}

@media (max-height: 660px) {
  .scroll-down-btn {
    bottom: 0 !important;
  }
}

@media (max-height: 620px) {
  .scroll-down-btn {
    bottom: 0 !important;
  }
}

@media (max-width: 1024px) {
  .scroll-down-btn {
    display: none !important;
  }

  .swiper-slide:first-child .scroll-down-btn,
  .swiper-slide[data-section-index="0"] .scroll-down-btn,
  .sec-hero .scroll-down-btn,
  .sec-about-1 .scroll-down-btn,
  .sec-contact-1 .scroll-down-btn,
  .sec-phase0-1 .scroll-down-btn,
  .sec-thirdeye-1 .scroll-down-btn,
  .sec-digital-1 .scroll-down-btn,
  .sec-market-1 .scroll-down-btn,
  .sec-operational-1 .scroll-down-btn,
  .sec-capacity-1 .scroll-down-btn {
    display: flex !important;
  }

  .swiper-slide:not(:first-child) .scroll-down-btn,
  .swiper-slide:not([data-section-index="0"]) .scroll-down-btn,
  .scroll-section:not(:first-child) .scroll-down-btn,
  .scroll-section:not([data-section-index="0"]) .scroll-down-btn {
    display: none !important;
  }
}

@media (max-width: 767px) {
  .scroll-down-btn {
    bottom: 12px !important;
  }

  .swiper-slide:not(:first-child) .scroll-down-btn,
  .swiper-slide:not([data-section-index="0"]) .scroll-down-btn,
  .scroll-section:not(:first-child) .scroll-down-btn,
  .scroll-section:not([data-section-index="0"]) .scroll-down-btn {
    display: none !important;
  }

  .scroll-down-text {
    display: none !important;
  }

  .scroll-down-icon {
    width: 24px !important;
    height: 24px !important;
  }

  .scroll-down-icon svg {
    width: 24px !important;
    height: 24px !important;
  }
}
