/* Custom scrollbar */
html {
  scrollbar-width: thin;
  scrollbar-color: rgba(232, 90, 120, 0.85) #1c1c22;
  scroll-behavior: smooth;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(22, 22, 28, 0.9);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(
    180deg,
    rgba(255, 120, 150, 0.9) 0%,
    rgba(220, 70, 100, 0.95) 100%
  );
  border-radius: 999px;
  border: 2px solid rgba(22, 22, 28, 0.9);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
    180deg,
    rgba(255, 150, 175, 1) 0%,
    rgba(235, 90, 120, 1) 100%
  );
}

/* Scroll hint bubble */
.scroll-hint {
  position: fixed;
  bottom: 1.35rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.65rem 0.3rem 0.7rem;
  background: rgba(28, 28, 34, 0.45);
  border: 1px solid rgba(232, 90, 120, 0.22);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: rgba(220, 200, 205, 0.75);
  font-family: var(--font);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  cursor: pointer;
  pointer-events: auto;
  opacity: 0.85;
  transition:
    opacity 0.4s ease,
    transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1),
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    color 0.25s ease;
  animation: scroll-hint-float 3s ease-in-out infinite;
}

.scroll-hint:hover {
  opacity: 1;
  color: rgba(255, 220, 228, 0.95);
  border-color: rgba(232, 90, 120, 0.45);
}

.scroll-hint.is-hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(10px) scale(0.9);
  pointer-events: none;
  animation: none;
}

.scroll-hint.is-scrolling {
  animation: none;
  transform: translateX(-50%) scale(1.14);
  border-color: rgba(232, 90, 120, 0.65);
  box-shadow:
    0 0 20px rgba(232, 74, 111, 0.4),
    0 0 40px rgba(232, 74, 111, 0.15);
  color: rgba(255, 230, 236, 1);
}

.scroll-hint.is-scrolling .scroll-hint-chevron {
  animation: scroll-chevron-burst 0.45s ease;
}

@keyframes scroll-hint-float {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(4px);
  }
}

@keyframes scroll-chevron-burst {
  0% {
    opacity: 0.4;
    transform: rotate(45deg) translateY(-3px);
  }
  40% {
    opacity: 1;
    transform: rotate(45deg) translateY(4px);
  }
  100% {
    opacity: 0.7;
    transform: rotate(45deg) translateY(0);
  }
}

.scroll-hint-chevron {
  display: block;
  width: 5px;
  height: 5px;
  border-right: 1.5px solid rgba(232, 110, 135, 0.9);
  border-bottom: 1.5px solid rgba(232, 110, 135, 0.9);
  transform: rotate(45deg) translateY(-1px);
  animation: scroll-chevron 2s ease-in-out infinite;
}

@keyframes scroll-chevron {
  0%,
  100% {
    opacity: 0.35;
    transform: rotate(45deg) translateY(-2px);
  }
  50% {
    opacity: 1;
    transform: rotate(45deg) translateY(1px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .scroll-hint,
  .scroll-hint-chevron {
    animation: none;
  }

  .scroll-hint.is-scrolling {
    transform: translateX(-50%);
  }

  .scroll-hint.is-scrolling .scroll-hint-chevron {
    animation: none;
  }
}
