/* ========== CUSTOM STYLES - BebasAsap ========== */

/* Hide scrollbar for carousel */
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

/* Smooth reveal animation for sections (used by IntersectionObserver) */
.section-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.section-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Chat message animation */
@keyframes messageSlideIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chat-message {
  animation: messageSlideIn 0.3s ease forwards;
}

/* Typing indicator dots */
@keyframes typingDot {
  0%, 60%, 100% {
    opacity: 0.2;
    transform: translateY(0);
  }
  30% {
    opacity: 1;
    transform: translateY(-4px);
  }
}

.typing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #a1a1aa;
  animation: typingDot 1.4s ease infinite;
}

.typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}

/* Active nav link underline */
.nav-active {
  color: #18181b !important;
  position: relative;
}

.nav-active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: #dc2626;
  border-radius: 1px;
}

/* Radio button custom (enhance native with theme) */
input[type="radio"] {
  accent-color: #dc2626;
}

/* Ensure smooth transitions on all interactive elements */
a, button {
  transition-property: color, background-color, border-color, opacity, transform, box-shadow;
  transition-duration: 150ms;
}

/* Modal backdrop animation */
#result-modal {
  transition: opacity 0.2s ease;
}

#result-modal:not(.hidden) {
  opacity: 1;
}

#result-modal.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Scroll to top button visibility */
#scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

/* Table responsive wrapper for mobile */
@media (max-width: 640px) {
  .table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* Print styles */
@media print {
  nav, #result-modal, #scroll-top, .chat-topic {
    display: none !important;
  }
}
