.horizontalScroll {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.track::-webkit-scrollbar {
  display: none;
}

.track:active {
  cursor: grabbing;
}

.hideScrollbar {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.panel {
  flex-shrink: 0;
  scroll-snap-align: start;
  padding: 0;
}

.panel[style*='inline: start'] {
  scroll-snap-align: start;
}

.panel[style*='inline: center'] {
  scroll-snap-align: center;
}

.panel[style*='inline: end'] {
  scroll-snap-align: end;
}

.panelLabel {
  padding: 1rem;
  font-family: var(--font-mono, monospace);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.7;
}

/* NAV DOTS */
.navDots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.75rem;
  z-index: 10;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: currentColor;
  border: 2px solid currentColor;
  opacity: 0.3;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot:hover {
  opacity: 0.7;
  transform: scale(1.2);
}

.dot.active {
  opacity: 1;
  transform: scale(1.3);
  box-shadow: 0 0 20px currentColor;
}

/* VARIANTS */

/* Minimal dots */
.navDots.minimal .dot {
  width: 8px;
  height: 8px;
  border: none;
  background: currentColor;
}

.navDots.minimal .dot.active {
  width: 24px;
  border-radius: 4px;
}

/* Line dots */
.navDots.line .dot {
  width: 24px;
  height: 2px;
  border-radius: 1px;
  border: none;
}

.navDots.line .dot.active {
  height: 4px;
}

/* Numbered dots */
.navDots.numbered {
  gap: 1.5rem;
}

.navDots.numbered .dot::after {
  content: attr(data-index);
  position: absolute;
  top: -1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  opacity: 0;
  transition: opacity 0.3s;
}

.navDots.numbered .dot:hover::after,
.navDots.numbered .dot.active::after {
  opacity: 1;
}

/* Glitch dots */
.dot.glitch {
  animation: glitch-dot 2s infinite;
}

@keyframes glitch-dot {
  0%, 95%, 100% {
    transform: translate(0);
  }
  96% {
    transform: translate(-2px, 2px);
  }
  97% {
    transform: translate(2px, -2px);
  }
  98% {
    transform: translate(-1px, -1px);
  }
}

/* PANEL VARIANTS */

/* Full height panels */
.horizontalScroll.fullHeight .panel {
  min-height: 100vh;
  height: 100vh;
}

/* Centered content panels */
.horizontalScroll.centered .panel {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Parallax panels */
.horizontalScroll.parallax .panel {
  position: relative;
}

.horizontalScroll.parallax .panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: inherit;
  z-index: -1;
  transform: translateY(var(--parallax-offset, 0));
}

/* TRANSITIONS */

.horizontalScroll.fade .panel {
  opacity: 0.3;
  transition: opacity 0.5s ease;
}

.horizontalScroll.fade .panel.active {
  opacity: 1;
}

.horizontalScroll.blur .panel {
  filter: blur(5px);
  transition: filter 0.5s ease;
}

.horizontalScroll.blur .panel.active {
  filter: blur(0);
}

/* SCROLLBAR */
.horizontalScroll.showScrollbar .track {
  scrollbar-width: thin;
  scrollbar-color: currentColor transparent;
}

.horizontalScroll.showScrollbar .track::-webkit-scrollbar {
  height: 8px;
}

.horizontalScroll.showScrollbar .track::-webkit-scrollbar-track {
  background: transparent;
}

.horizontalScroll.showScrollbar .track::-webkit-scrollbar-thumb {
  background: currentColor;
  border-radius: 4px;
}

/* DRAG INDICATOR */
.horizontalScroll .dragIndicator {
  position: absolute;
  top: 50%;
  left: 1rem;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.5;
  pointer-events: none;
  animation: drag-pulse 2s ease-in-out infinite;
}

@keyframes drag-pulse {
  0%, 100% {
    transform: translateY(-50%) translateX(0);
  }
  50% {
    transform: translateY(-50%) translateX(10px);
  }
}
