.dot-nav {
  position: fixed;
  left: 26px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  background: rgba(5, 5, 6, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  padding: 14px 12px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
}

.dot-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dot-item {
  margin: 14px 0;
  position: relative;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.22);
  transition: transform 250ms ease, background 250ms ease, box-shadow 250ms ease, border-color 250ms ease;
  outline: none;
  display: block;
  padding: 0;
  position: relative;
}

.dot:hover {
  background: rgba(255, 255, 255, 0.6);
  transform: scale(1.25);
}

.dot.active {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.5);
  box-shadow: 0 0 16px rgba(230, 57, 70, 0.85), 0 0 32px rgba(230, 57, 70, 0.4);
}

.dot:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.5), 0 0 14px rgba(230, 57, 70, 0.6);
}

/* Tooltip on hover, focus, and briefly on section activation */
.dot::after {
  content: attr(data-title);
  position: absolute;
  left: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%) translateX(-6px);
  background: rgba(12, 12, 14, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 220ms ease, transform 220ms ease, visibility 220ms ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 10;
}

.dot:hover::after,
.dot:focus-visible::after,
.dot.show-tooltip::after {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

/* Mobile bottom nav variant: hide tooltips */
@media (max-width: 520px) {
  .dot-nav {
    left: 50%;
    top: auto;
    bottom: 16px;
    transform: translateX(-50%);
    padding: 10px 16px;
  }

  .dot-nav ul {
    display: flex;
    gap: 14px;
  }

  .dot-item {
    margin: 0;
  }

  .dot {
    width: 10px;
    height: 10px;
  }

  .dot.active {
    transform: scale(1.5);
  }

  .dot::after {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dot,
  .dot::after {
    transition: none !important;
  }
}
