/* ===== Custom Styles for Thai Quick Noodle ===== */

:root {
  --plum-900: #2a1424;
  --plum-800: #3a1c32;
  --plum-700: #4a2440;
  --plum-600: #5a2e4e;
  --plum-300: #d9a5c1;
  --plum-200: #e9ccdb;
  --amber-400: #F5C518;
  --amber-300: #fef08a;
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

/* Navbar scroll state */
.nav-scrolled {
  background: rgba(42, 20, 36, 0.95) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Floating stat card animations */
.stat-card {
  animation: float 6s ease-in-out infinite;
}

.stat-card:nth-child(2) {
  animation-delay: -2s;
  animation-duration: 7s;
}

.stat-card:nth-child(3) {
  animation-delay: -4s;
  animation-duration: 5s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

/* Menu card hover */
.menu-card {
  transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.menu-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Testimonial card hover */
.testimonial-card {
  transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
}

/* Scroll reveal animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }

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

  .reveal-delay-1 { transition-delay: 0.1s; }
  .reveal-delay-2 { transition-delay: 0.2s; }
  .reveal-delay-3 { transition-delay: 0.3s; }
  .reveal-delay-4 { transition-delay: 0.4s; }
}

/* Mobile menu transition */
#mobile-menu {
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

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

::-webkit-scrollbar-track {
  background: var(--plum-900);
}

::-webkit-scrollbar-thumb {
  background: var(--plum-600);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--amber-400);
}

/* Selection color */
::selection {
  background: var(--amber-400);
  color: var(--plum-900);
}
