/* =========================================================
   GLOBAL NAVBAR
========================================================= */

/* WRAPPER */
.navbar-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  pointer-events: none;
}

/* NAV */
.navbar {
  max-width: 1200px;
  margin: 24px auto;
  padding: 14px 28px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  pointer-events: auto;

  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);

  border: 1px solid rgba(255,182,187,0.45);
  border-radius: 999px;
  /*border-radius: 0;*/

  box-shadow:
    0 18px 50px rgba(31,41,55,0.14),
    inset 0 1px 0 rgba(255,255,255,0.85);

  transition:
    transform 0.4s ease,
    opacity 0.4s ease;
}

/* HIDE ON SCROLL */
.navbar.hidden {
  transform: translateY(-120%);
  opacity: 0;
}

/* LOGO */
/* LOGO WITH ICON */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;

  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.logo img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}


/* LINKS (DESKTOP) */
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  color: #1f2937;
  position: relative;
}

/* LINK UNDERLINE */
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background: #cf333e;
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* =========================================================
   HAMBURGER
========================================================= */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: #1f2937;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

/* HAMBURGER → CLOSE */
.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translateY(6px);
}

.nav-toggle.active span:nth-child(2) {
  transform: rotate(-45deg) translateY(-6px);
}

/* =========================================================
   MOBILE MENU
========================================================= */
@media (max-width: 900px) {

  .navbar {
    /*border-radius: 22px;*/
    border-radius: 0;
    margin-top: 0;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 90px;
    left: 50%;
    transform: translateX(-50%) translateY(-12px);

    flex-direction: column;
    gap: 22px;

    width: calc(100% - 48px);
    padding: 32px;

    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);

    border-radius: 26px;
    border: 1px solid rgba(255,182,187,0.45);

    box-shadow:
      0 30px 80px rgba(31,41,55,0.18);

    opacity: 0;
    pointer-events: none;

    transition:
      opacity 0.35s ease,
      transform 0.45s cubic-bezier(.22,1,.36,1);
  }

  /* OPEN */
  .nav-links.active {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
  }

  /* LINK ANIMATION */
  .nav-links li {
    opacity: 0;
    transform: translateY(10px);
    transition:
      opacity 0.3s ease,
      transform 0.3s ease;
  }

  .nav-links.active li {
    opacity: 1;
    transform: translateY(0);
  }

  /* STAGGER */
  .nav-links.active li:nth-child(1) { transition-delay: 0.05s; }
  .nav-links.active li:nth-child(2) { transition-delay: 0.1s; }
  .nav-links.active li:nth-child(3) { transition-delay: 0.15s; }
  .nav-links.active li:nth-child(4) { transition-delay: 0.2s; }
  .nav-links.active li:nth-child(5) { transition-delay: 0.25s; }
}
