
.section-wave-nav {
  position: absolute;
  bottom: -49px;
  left: 0;
  display: block;
  width: 100%;
  height: 69px;
  pointer-events: none;
  transform: scaleY(-1);
  z-index: 10;
}

.section-black {
  color: #184981;
  background-color: #184981;
  width: 100%;
}

.nav {
  position: relative;
  overflow: visible;
  display: flex;
  width: 100%;
  justify-content: center;
  z-index: 100;
}

.nav-content {
  position: relative;

  width: 100%;
  max-width: 1780px;

  padding: 0 40px;

  display: flex;
  align-items: center;
}

/* Brand */

.nav-brand {
  display: flex;
  align-items: center;
}

.nav-title {
  font-family: "Lilita One", sans-serif;
  font-weight: 800;
  margin-left: 20px;
  color: white;
}

/* Desktop Navigation */

.nav-links {
  margin-left: auto;

  display: flex;
  gap: 40px;
  align-items: center;

  color: white;
}

.nav-link {
  color: inherit;
  text-decoration: none;

  font-family: "Lilita One", sans-serif;
  font-size: 24px;
  font-weight: 400;

  position: relative;
}

.nav-link:hover {
  text-decoration: none;
}

.nav-link::after {
  content: "";

  position: absolute;
  left: 50%;
  bottom: -4px;

  width: 100%;
  height: 2px;

  background: currentColor;

  transform: translateX(-50%) scaleX(0);
  transform-origin: center;

  transition: transform 0.3s ease-in-out;
}

.nav-link:hover::after {
  transform: translateX(-50%) scaleX(1);
}

.nav-button {
  width: 230px;
  height: 57px;
  font-size: 24px;
}

/* Normal button */

button {
  width: 230px;
  height: 57px;

  background: linear-gradient(
    139.72deg,
    #ffffff 33.33%,
    #efece8 62.44%,
    #e4dfd8 82.91%
  );

  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);

  border-radius: 12px 36px;
  border: none;

  text-align: center;

  font-size: 26px;
  font-weight: 600;

  transition: all 0.3s ease-in-out;

  color: #000;
}

button:hover {
  border-radius: 12px;
}


/* -------------------------------- */
/* Mobile menu */
/* -------------------------------- */

.mobile-menu-button {
  display: none;

  margin-left: auto;

  width: 48px;
  height: 48px;

  padding: 10px;

  background: transparent;
  box-shadow: none;
  border: none;
  border-radius: 8px;

  cursor: pointer;

  position: relative;

  z-index: 1001;
}

.mobile-menu-button:hover {
  border-radius: 8px;
}

.mobile-menu-button span {
  display: block;

  width: 28px;
  height: 3px;

  margin: 5px auto;

  background: white;
  border-radius: 10px;

  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}


/* Turn hamburger into X */

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

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

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


/* Popup itself */

.mobile-menu {
  display: none;

  position: absolute;

  top: calc(100% + 15px);
  right: 20px;

  width: 250px;

  padding: 25px;

  background: #FFCC2A;

  border-radius: 20px;

  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.2);

  z-index: 1000;
}


/* Display popup when open */

.mobile-menu.active {
  display: flex;

  flex-direction: column;
  gap: 20px;

  animation: mobileMenuOpen 0.25s ease;
}

@keyframes mobileMenuOpen {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}


.mobile-nav-link {
  color: #184981;

  font-family: "Lilita One", sans-serif;
  font-size: 22px;

  text-decoration: none;

  padding: 8px 5px;
}

.mobile-nav-link:hover {
  text-decoration: none;
}


/* Donate button inside mobile popup */

.mobile-donate-button {
  display: flex;

  justify-content: center;
  align-items: center;

  min-height: 50px;

  padding: 10px 20px;

  font-family: "Lilita One", sans-serif;
  font-size: 20px;

  color: #000;
  text-decoration: none;

  background: linear-gradient(
    139.72deg,
    #ffffff 33.33%,
    #efece8 62.44%,
    #e4dfd8 82.91%
  );

  border-radius: 12px 30px;

  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);

  transition: 0.25s ease;
}

.mobile-donate-button:hover {
  border-radius: 12px;
}


/* -------------------------------- */
/* Mobile */
/* -------------------------------- */

.section-wave-mobile-nav {
  display: none;
}

@media (max-width: 900px) {

  .nav {
    width: 100%;
  }

  .nav-content {
    padding: 10px 20px;
  }

  /* Hide desktop nav */
  .nav-links {
    display: none;
  }

  /* Show hamburger */
  .mobile-menu-button {
    display: block;
  }

  .nav-title {
    font-size: 18px;
    margin-left: 10px;
  }

  .nav-logo {
    width: 100px;
    height: auto;
  }

  .section-wave-desktop {
    display: none;
  }

  .section-wave-mobile-nav {
    display: block;

    height: 40px;

    top: 100%;
    bottom: auto;

    z-index: 10;
  }
}