.hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #ffffff;
}

.hero-section *,
.hero-section *::before,
.hero-section *::after {
  box-sizing: border-box;
}

.hero-banner-link {
  display: block;
  width: 100%;
  text-decoration: none;
}

.hero-banner-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}


.hero-navbar {
  position: absolute;
  top: 6px;
  left: 50%;
  z-index: 100;
  width: min(94%, 1050px);
  transform: translateX(-50%);
}
.desktop-menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 43px;
  padding: 0 30px;

  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.3);
  border-radius: 999px;

  box-shadow: 0 14px 35px rgba(99, 35, 127, 0.16);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.desktop-menu a {
  position: relative;
  color: #080808;
  font-family: "Roboto", Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.25s ease;
}

.desktop-menu a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;

  width: 0;
  height: 2px;
  border-radius: 20px;

  background: linear-gradient(90deg, #642c84, #159bde);
  transform: translateX(-50%);
  transition: width 0.25s ease;
}

.desktop-menu a:hover {
  color: #642c84;
}

.desktop-menu a:hover::after {
  width: 100%;
}

/* Mobile elements hidden on desktop */
.mobile-actions,
.mobile-menu {
  display: none;
}

/* Mobile nominate button */
.hero-register-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 38px;
  padding: 0 16px;

  color: #ffffff;
  font-family: "Roboto", Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;

  background: linear-gradient(135deg, #159bde, #642c84);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(99, 35, 127, 0.25);
}

/* Menu button */
.menu-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;

  width: 40px;
  height: 40px;
  padding: 0;

  background: rgba(2, 8, 23, 0.94);
  border: none;
  border-radius: 50%;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;

  background: #ffffff;
  border-radius: 20px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Laptop */
@media (max-width: 1100px) {
  .hero-navbar {
    width: 96%;
  }

  .desktop-menu {
    padding: 0 22px;
  }

  .desktop-menu a {
    font-size: 12px;
  }
}

/* Tablet and mobile */
@media (max-width: 950px) {
  .hero-navbar {
    top: 12px;
    right: 12px;
    left: auto;
    width: auto;
    transform: none;
  }

  .desktop-menu {
    display: none;
  }

  .mobile-actions {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .mobile-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;

    display: flex;
    flex-direction: column;
    gap: 6px;

    width: 245px;
    padding: 12px;

    background: rgba(7, 9, 20, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);

    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    pointer-events: none;

    transition:
      opacity 0.25s ease,
      visibility 0.25s ease,
      transform 0.25s ease;
  }

  .mobile-menu.show-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .mobile-menu a {
    display: block;
    padding: 11px 12px;

    color: #ffffff;
    font-family: "Roboto", Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;

    border-radius: 10px;
    transition: background 0.25s ease;
  }

  .mobile-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
  }
}

/* Mobile */
@media (max-width: 480px) {
  .hero-navbar {
    top: 8px;
    right: 8px;
  }

  .hero-register-btn {
    min-height: 34px;
    padding: 0 12px;
    font-size: 10px;
  }

  .menu-toggle {
    width: 34px;
    height: 34px;
  }

  .menu-toggle span {
    width: 16px;
  }

  .mobile-menu {
    width: min(220px, calc(100vw - 16px));
  }
}

/* Very small screens */
@media (max-width: 360px) {
  .hero-register-btn {
    padding: 0 9px;
    font-size: 9px;
  }

  .mobile-menu {
    width: calc(100vw - 16px);
  }
}