.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 22px;
  height: 18px;
  cursor: pointer;
  z-index: 1100;
}

.hamburger span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile styles */
@media (max-width: 768px) {
  .nav-center,
    .nav-right {
      flex-direction: row;
      align-items: flex-start;
      gap: 12px;
      padding: 16px;
      flex-wrap: wrap;
    }



.glow-blob {
  display: none;
}

.glow-blob-blue {
  display: none;
}

  
  .nav-menu {
    position: fixed !important;
    inset: 0;
    height: 100dvh;
    min-height: 100dvh;
    background: transparent; /* background moved to pseudo-element to cover under navbar */
    display: flex; /* keep in flow for smooth transitions */
    flex-direction: column;
    z-index: 9999;
    padding: 80px 18px 24px; /* leave room for the header */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    /* animation states */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 240ms ease, transform 240ms ease, visibility 240ms ease;
  }

  /* Backdrop moved to body to avoid clipping by navbar container */
  .nav-menu::before { content: none; }

  body.menu-open::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(18, 16, 34, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 9998;
    pointer-events: none;
  }

  .nav-menu.show {
    position: fixed !important;
    inset: 0;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .navbar {
    justify-content: space-between;
    height: 52px;
    margin: 8px 16px;
    padding: 0 14px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 6px 12px;
    border-radius: 18px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: background 220ms ease, border-color 220ms ease, box-shadow 220ms ease, backdrop-filter 220ms ease;
  }

  /* Ensure fullscreen takeover when open */
  .navbar.menu-open {
    position: fixed;
    top: 10px; /* keep same vertical position */
    left: 0;
    right: 0;
    margin: 8px 16px; /* keep same margins */
    height: 52px; /* keep same height */
    border-radius: 18px; /* keep pill shape */
    background: rgba(255,255,255,0.08); /* opaque glass */
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 10000; /* above overlay */
  }

  .nav-center {
    position: static;
    transform: none;
    display: none; /* hidden until menu opens */
  }

  /* Stack links vertically in the fullscreen menu */
  .nav-menu.show .nav-center {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .nav-menu.show .nav-center .nav-link {
    font-size: 18px;
    color: #e6e7f2;
    opacity: 0.95;
    padding: 8px 6px;
  }

  /* Place actions at the bottom */
  .nav-menu.show .nav-right {
    margin-top: auto;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: flex-end;
    padding-left: 0;
    margin-left: 0;
  }

  /* Compact logo size on mobile to match the pill height */
  .logo {
    height: 28px;
  }

  .hamburger {
    display: flex;
  }
}
  @media (max-width: 768px) {
    html, body {
      width: 100%;
      overflow-x: hidden;
    }
  
    
    .navbar {
      padding: 0 16px;
    }
  
    .nav-center {
      position: static !important;
      left: auto;
      transform: none;
      width: 100%;
    }
  
    .nav-right {
      width: 100%;
      display: flex;
      flex-direction: row-reverse;
      align-items: center;
      justify-content: flex-end; 
    }
  
    .nav-menu {
      width: 100%;
    }
  
    .hamburger {
      z-index: 2000;
    }
  
    * {
      box-sizing: border-box;
    }
  }
  






/*  .glow-blob {
    display: none;
  }
  
  .glow-blob-blue {
    display: none;
  } */