#project-sidenav {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#project-sidenav.visible {
  opacity: 1;
  pointer-events: all;
}

.sidenav-section {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
}

.sidenav-section-label {
  font-family: "Poppins", sans-serif;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: rgba(255, 215, 0, 0.5);
  text-align: right;
  padding-right: 14px;
  margin-bottom: 4px;
  margin-top: 2px;
  transition: color 0.3s ease;
  user-select: none;
}

.sidenav-section:hover .sidenav-section-label {
  color: rgba(255, 215, 0, 0.9);
}

.sidenav-divider {
  width: 1px;
  height: 16px;
  background: linear-gradient(to bottom, rgba(255, 215, 0, 0.2), transparent);
  align-self: flex-end;
  margin-right: 18px;
  margin: 4px 18px 4px 0;
}

.sidenav-dot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 40px;
  height: 14px;
  padding: 0 6px;
  background: transparent;
  border: none;
  cursor: pointer;
  outline: none;
  gap: 0;
}

.sidenav-dot:focus-visible .sidenav-pip {
  outline: 2px solid #ffd700;
  outline-offset: 2px;
}

.sidenav-pip {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(180, 180, 180, 0.4);
  transition:
    background 0.2s ease,
    transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
    width 0.2s ease;
  flex-shrink: 0;
}

.sidenav-dot:hover .sidenav-pip {
  background: #ffd700;
  transform: scale(1.5);
}

.sidenav-dot.active .sidenav-pip {
  background: #ffd700;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
}

.sidenav-tooltip {
  position: absolute;
  right: calc(100% + 6px);
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  background: rgba(20, 20, 20, 0.95);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 6px;
  padding: 7px 12px;
  white-space: nowrap;
  font-family: "Poppins", sans-serif;
  font-size: 11px;
  color: #ffffff;
  line-height: 1.5;
  pointer-events: none;
  opacity: 0;
  transition:
    opacity 0.15s ease,
    transform 0.15s ease;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.sidenav-tooltip strong {
  color: #ffd700;
  font-weight: 600;
  font-size: 12px;
  display: block;
}

.sidenav-tooltip em {
  font-style: normal;
  color: rgba(200, 200, 200, 0.8);
  font-size: 10px;
}

.sidenav-dot:hover .sidenav-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

@media (max-width: 900px) {
  #project-sidenav {
    display: none;
  }
}
