.sticky-nav {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(40px);
  background: #1b1b3a;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 2px solid #2a2a4a;
  border-radius: 999px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
              opacity 0.4s ease,
              visibility 0.4s;
  opacity: 0;
  visibility: hidden;
  z-index: 1000;
  max-width: calc(100vw - 32px);
  
  /* CSS Variables for Indicator */
  --nav-indicator-width: 0px;
  --nav-indicator-left: 0px;
  --nav-indicator-opacity: 0;
}

.sticky-nav.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
}

.sticky-nav__indicator {
  position: absolute;
  background: #2a2a4a;
  border-radius: 999px;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  width: var(--nav-indicator-width);
  transform: translateX(var(--nav-indicator-left));
  opacity: var(--nav-indicator-opacity);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              width 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.3s ease;
  pointer-events: none;
}

.sticky-nav__home {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 1;
  color: white;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.sticky-nav__home:hover,
.sticky-nav__home:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  transform: scale(1.05);
  text-decoration: none;
}

.sticky-nav__home:active {
  transform: scale(0.95);
}

.sticky-nav__home svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.sticky-nav__links {
  position: relative; /* REQUIRED for indicator positioning */
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
  padding-right: 12px;
  mask-image: linear-gradient(to right, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, black 90%, transparent 100%);
}

.sticky-nav__links::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.sticky-nav__link {
  color: #fefefe;
  font-family: var(--font-family-sst-medium);
  font-size: var(--type-body-large-font-size);
  font-weight: 500;
  line-height: var(--type-body-large-line-height);
  padding: 12px 24px;
  border-radius: 999px;
  white-space: nowrap;
  text-decoration: none;
  position: relative;
  z-index: 1;
  transition: color 0.3s ease, background 0.2s ease;
}

.sticky-nav__link:hover {
  color: white;
}

.sticky-nav__link.is-active {
  color: white;
}

.sticky-nav__link.is-active span {
  background: linear-gradient(90deg, #00E5FF 0%, #FD04F4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 500;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .sticky-nav {
    bottom: 16px;
    padding: 6px;
    gap: 6px;
  }

  .sticky-nav__home {
    width: 40px;
    height: 40px;
  }

  .sticky-nav__home svg {
    width: 24px;
    height: 24px;
  }
  
  .sticky-nav__link {
    padding: 8px 14px;
    font-size: 13px;
  }
}