/* Navigation styles - Floating button with menu */

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  z-index: 998;
  cursor: pointer;
}

.nav-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.nav-toggle {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 1000;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(124, 109, 250, 0.5);
  transition: all 0.3s;
}

.nav-toggle:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 24px rgba(14, 59, 158, 0.5);
}

.nav-toggle-icon {
  font-size: 20px;
  line-height: 1;
  transition: transform 0.3s;
}

.nav-toggle.open .nav-toggle-icon {
  transform: rotate(45deg);
}

.nav-menu {
  position: fixed;
  bottom: 100px;
  right: 32px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
  pointer-events: none;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateX(20px) scale(0.9);
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
}

.nav-menu.open .nav-item {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: all;
}

.nav-menu.open .nav-item:nth-child(1) {
  transition-delay: 0.0s;
}

.nav-menu.open .nav-item:nth-child(2) {
  transition-delay: 0.05s;
}

.nav-menu.open .nav-item:nth-child(3) {
  transition-delay: 0.1s;
}

.nav-menu.open .nav-item:nth-child(4) {
  transition-delay: 0.15s;
}

.nav-label {
  font-family: 'Syne', sans-serif;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  background: var(--surface2);
  border: 1px solid var(--border2);
  color: var(--text);
  white-space: nowrap;
  letter-spacing: 0.06em;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.nav-dot {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--surface2);
  border: 1px solid var(--border2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  text-decoration: none;
  color: var(--text);
}

.nav-dot:hover,
.nav-dot.active {
  background: var(--accent);
  border-color: var(--accent);
}

@media (max-width: 700px) {
  .nav-toggle {
    bottom: 16px;
    right: 16px;
    width: 48px;
    height: 48px;
  }

  .nav-menu {
    bottom: auto;
    right: auto;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    flex-direction: row;
    gap: 16px;
    align-items: center;
    justify-content: center;
    width: 85vw;
    max-width: 400px;
  }

  .nav-menu::-webkit-scrollbar {
    display: none;
  }

  .nav-item {
    opacity: 0;
    transform: scale(0.8);
    flex-direction: column;
    gap: 6px;
    flex-shrink: 0;
  }

  .nav-menu.open .nav-item {
    opacity: 1;
    transform: scale(1);
  }

  .nav-label {
    font-size: 11px;
  }

  .nav-dot {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
}
