/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #a1a1aa;
  /* zinc-400 */
  border-radius: 4px;
}

.dark ::-webkit-scrollbar-thumb {
  background: #27272a;
  /* zinc-800 */
}

::-webkit-scrollbar-thumb:hover {
  background: #71717a;
  /* zinc-500 */
}

.dark ::-webkit-scrollbar-thumb:hover {
  background: #3f3f46;
  /* zinc-700 */
}

/* Animation Keyframes */
@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes slideUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animation Classes */
.animate-fade-in {
  animation: fadeIn 1s ease-out forwards;
}

.animate-slide-up {
  animation: slideUp 0.8s ease-out forwards;
}

/* Back to Top Button */
#back-to-top {
  transition: all 0.3s ease;
}

#back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

#back-to-top.invisible {
  opacity: 0;
  visibility: hidden;
}