/* pillnav.css */
.pill-nav-container {
  display: none;
}

@media (max-width: 768px) {
  .pill-nav-container {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    padding: 1.5rem;
    pointer-events: none; /* Let clicks pass through except for the button */
  }

  .pill-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    pointer-events: auto; /* Re-enable clicks for the nav bar */
  }

  /* Hamburger Button */
  .mobile-menu-button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: transparent;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    padding: 0;
    position: relative;
    z-index: 1001; /* Above overlay */
  }

  .hamburger-line {
    width: 50px;
    height: 2px;
    background: #0a0a0a;
    border-radius: 1px;
    transition: background 0.3s ease;
  }

  .mobile-menu-button.is-open {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
  }

  /* Top Left Logo inside Mobile Nav */
  .mobile-nav-logo img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: contain;
  }

  /* Full Screen Overlay */
  .mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #0a0a0a;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    padding: 6rem 2rem 2rem 2rem;
    box-sizing: border-box;
    transform: translateX(100%);
    visibility: hidden;
    pointer-events: auto;
  }

  /* Close Button (if distinct from hamburger) */
  .mobile-menu-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #1f1f1f;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    font-size: 1.5rem;
  }

  /* Menu Links */
  .mobile-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .mobile-menu-item {
    overflow: hidden; /* For stagger fade up */
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 0.5rem;
  }

  .mobile-menu-link {
    display: block;
    color: #ffffff;
    text-decoration: none;
    font-size: 3rem;
    font-weight: 600;
    letter-spacing: -1px;
    line-height: 1.1;
    transform: translateY(100%); /* Initial state for GSAP */
  }

  /* Bottom Area */
  .mobile-menu-bottom {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding-bottom: 2rem;
  }

  /* Glass Pill Card */
  .mobile-glass-card {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.5rem 1.5rem 0.5rem 0.5rem;
    border-radius: 50px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  .mobile-glass-card-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.8;
  }

  .glass-card-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
    z-index: 2;
  }

  .glass-card-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    position: relative;
    z-index: 2;
  }

  .glass-card-title {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
  }

  .glass-card-status {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
  }

  .status-dot {
    width: 8px;
    height: 8px;
    background-color: #4ade80;
    border-radius: 50%;
  }

  /* Social Icons */
  .mobile-social-row {
    display: flex;
    gap: 1rem;
  }

  .mobile-social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #1f1f1f;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #fff;
    transition: background 0.2s ease;
  }

  .mobile-social-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
  }
}

/* Hide Webflow existing mobile menu explicitly on mobile */
@media screen and (max-width: 768px) {
  .menu-button.w-nav-button {
    display: none !important;
  }
  .w-nav-overlay {
    display: none !important;
  }
}

/* Hide the new pillnav entirely on desktop */
@media screen and (min-width: 769px) {
  .pill-nav-container {
    display: none !important;
  }
}
