/* =========================
   HEADER WRAPPER
========================= */

.site-header_wrapper {
  width: 100%;
  display: flex;
  margin-bottom: 20px;
  position: sticky;
  top: 0;
  z-index: 99999;
  background-color: rgba(0, 0, 0, 0.8);
}

.site-header_first {
  display: flex;
  width: 100%;
  padding: 15px 0;
  justify-content: space-around;
  align-items: center;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(77, 184, 255, 0.25);
  box-shadow:
    0 0 10px rgba(77, 184, 255, 0.15),
    0 0 25px rgba(77, 184, 255, 0.08);
  animation: headerGlow 2.8s infinite ease-in-out;
}

.site-header_first .logo h1 a {
  color: #ffffff;
}

.logo img {
  height: 120px;
  width: auto;
}

/* =========================
   HEADER ANIMATION
========================= */

@keyframes headerGlow {
  0% {
    box-shadow:
      0 0 8px rgba(77, 184, 255, 0.08),
      0 0 18px rgba(77, 184, 255, 0.04);
  }

  50% {
    box-shadow:
      0 0 18px rgba(77, 184, 255, 0.35),
      0 0 40px rgba(77, 184, 255, 0.18);
  }

  100% {
    box-shadow:
      0 0 8px rgba(77, 184, 255, 0.08),
      0 0 18px rgba(77, 184, 255, 0.04);
  }
}

/* =========================
   NAV STRUCTURE
========================= */

.main-navigation_wrapper {
  display: flex;
  align-items: center;
  position: relative;
}

.main-navigation {
  margin: auto;
}

/* =========================
   DESKTOP NAV
========================= */

.main-navigation ul {
  list-style: none;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 12px;
  margin: 0;
  padding: 0;
}

.main-navigation ul li {
  position: relative;
  display: flex;
  align-items: stretch;
  flex: 0 0 auto;
  margin: 0;
  list-style: none;
  width: auto;
}

.main-navigation ul li:not(:last-child)::after {
  content: none;
}

/* =========================
   NAV LINKS
========================= */

.main-navigation ul li a {
  position: relative;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 56px;
  padding: 14px 24px;

  box-sizing: border-box;

  border-radius: 999px;

  white-space: nowrap;
  text-align: center;

  color: #ffffff !important;

  font-family: "Acme", sans-serif;
  font-size: 1.08rem;
  font-weight: 700;

  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;

  background: rgba(77, 184, 255, 0.08);

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  border: 1px solid rgba(77, 184, 255, 0.45);

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 0 12px rgba(77, 184, 255, 0.18),
    0 0 24px rgba(77, 184, 255, 0.12),
    0 0 45px rgba(77, 184, 255, 0.08);

  overflow: hidden;

  transition: all 0.35s ease;
}

/* GLOW AURA */

.main-navigation ul li a::before {
  content: "";

  position: absolute;
  inset: 0;

  border-radius: inherit;

  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.12),
    transparent 35%,
    transparent 65%,
    rgba(77, 184, 255, 0.16)
  );

  pointer-events: none;
}

/* BOTTOM GLOW LINE */

.main-navigation ul li a::after {
  content: "";

  position: absolute;

  left: 50%;
  bottom: 6px;

  width: 45%;
  height: 2px;

  transform: translateX(-50%);

  border-radius: 999px;

  background: linear-gradient(90deg, transparent, #4db8ff, transparent);

  box-shadow:
    0 0 12px rgba(77, 184, 255, 0.8),
    0 0 26px rgba(77, 184, 255, 0.45);

  transition: all 0.35s ease;
}

.main-navigation ul li a:hover {
  color: #ffffff !important;

  text-decoration: none;

  transform: translateY(-4px);

  background: rgba(77, 184, 255, 0.14);

  border-color: rgba(77, 184, 255, 0.75);

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 0 18px rgba(77, 184, 255, 0.3),
    0 0 40px rgba(77, 184, 255, 0.18),
    0 0 80px rgba(77, 184, 255, 0.1);
}

.main-navigation ul li a:hover::after {
  width: 75%;
}

/* ACTIVE PAGE ONLY */

.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
  color: #ffffff;

  background: linear-gradient(
    135deg,
    rgba(77, 184, 255, 0.28),
    rgba(77, 184, 255, 0.12)
  );

  border-color: rgba(77, 184, 255, 0.75);

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 0 22px rgba(77, 184, 255, 0.4),
    0 0 45px rgba(77, 184, 255, 0.18),
    0 0 80px rgba(77, 184, 255, 0.08);
}

.main-navigation .current-menu-item > a::after,
.main-navigation .current_page_item > a::after {
  width: 75%;
}

/* =========================
   DEFAULT MOBILE BUTTONS
========================= */

.menu-toggle,
.menu-close {
  display: none;
}

/* =========================
   MOBILE MENU
========================= */

@media (max-width: 768px) {
  .site-header_first {
    justify-content: space-between;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(77, 184, 255, 0.35);
    box-shadow:
      0 0 12px rgba(77, 184, 255, 0.25),
      0 0 30px rgba(77, 184, 255, 0.15);
  }

  .main-navigation_wrapper {
    position: static;
    display: flex;
    align-items: center;
  }

  .main-navigation {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 999999;
  }

  .main-navigation ul {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    text-align: center;
    margin: 0;
    padding: 70px 20px 25px;
    gap: 16px;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(77, 184, 255, 0.22);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  }

  .main-navigation ul.active {
    display: flex !important;
  }

  .main-navigation ul li {
    display: flex;
    width: 100%;
    flex: none;
  }

  .main-navigation ul li a {
    display: flex;
    width: 100%;
    min-height: 58px;
    padding: 18px 24px;
    border-radius: 18px;
    white-space: nowrap;
  }

  .main-navigation ul li a::after {
    bottom: 8px;
  }

  .main-navigation ul li:not(:last-child)::after {
    content: none;
  }

  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    position: relative;
    cursor: pointer;
    z-index: 10001;
    border-radius: 50%;
    color: #ffffff;
    font-size: 34px;
    line-height: 1;
    background: linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.08),
      rgba(77, 184, 255, 0.08)
    );
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(14px);
    box-shadow:
      0 0 12px rgba(77, 184, 255, 0.18),
      0 0 28px rgba(77, 184, 255, 0.08),
      inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: all 0.35s ease;
    animation: hamburgerGlow 3s infinite ease-in-out;
  }

  .menu-toggle::before {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 1px solid rgba(77, 184, 255, 0.18);
    opacity: 0.7;
    animation: pulseRing 2.8s infinite ease-in-out;
  }

  .menu-toggle:hover {
    transform: translateY(-2px) scale(1.05);
    color: #4db8ff;
    box-shadow:
      0 0 18px rgba(77, 184, 255, 0.35),
      0 0 40px rgba(77, 184, 255, 0.15),
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }

  .menu-toggle:active {
    transform: scale(0.95);
  }

  .menu-close {
    display: none;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 40px;
    color: #ffffff;
    cursor: pointer;
    z-index: 10002;
    line-height: 1;
  }

  .menu-close.active {
    display: block;
  }

  @keyframes hamburgerGlow {
    0% {
      box-shadow:
        0 0 10px rgba(77, 184, 255, 0.08),
        0 0 20px rgba(77, 184, 255, 0.04);
    }

    50% {
      box-shadow:
        0 0 20px rgba(77, 184, 255, 0.35),
        0 0 45px rgba(77, 184, 255, 0.16);
    }

    100% {
      box-shadow:
        0 0 10px rgba(77, 184, 255, 0.08),
        0 0 20px rgba(77, 184, 255, 0.04);
    }
  }

  @keyframes pulseRing {
    0% {
      transform: scale(1);
      opacity: 0.45;
    }

    50% {
      transform: scale(1.08);
      opacity: 0.9;
    }

    100% {
      transform: scale(1);
      opacity: 0.45;
    }
  }
}
