/* Custom styles for TA Boba Tea House */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Floating animation for hero card */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

/* Scroll reveal — progressive enhancement, only applies when JS runs */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Navbar scroll state */
.nav-scrolled {
  background: rgba(255, 255, 255, 0.97) !important;
  box-shadow: 0 1px 20px rgba(107, 58, 93, 0.08);
  backdrop-filter: blur(10px);
}

.nav-scrolled .nav-link {
  color: #462638 !important;
}

.nav-scrolled .mobile-link {
  color: #462638 !important;
}

.nav-scrolled #menu-icon-open,
.nav-scrolled #menu-icon-close {
  color: #462638 !important;
}

.nav-scrolled .font-serif {
  color: #462638 !important;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .animate-float {
    animation: none;
  }
  .reveal {
    transition: none;
  }
}

/* Selection color */
::selection {
  background: #D4A017;
  color: #23131a;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f5f0f4;
}
::-webkit-scrollbar-thumb {
  background: #b88fa3;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #8a4f65;
}
