/* ============================================
   TUANJAI THAI NOODLE — Custom Styles
   ============================================ */

/* --- Gold accent line --- */
.gold-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #c8a84e, #d4a843);
  border-radius: 2px;
}

.gold-line-light {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #c8a84e, #d4a843);
  border-radius: 2px;
}

/* --- Header scroll state --- */
#header.scrolled {
  background: rgba(15, 36, 64, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

#header.scrolled .nav-link {
  color: rgba(255, 255, 255, 0.85);
}

#header.scrolled .header-logo-text {
  color: #ffffff;
}

/* --- Hero animations --- */
.hero-bg {
  animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from { transform: scale(1); }
  to { transform: scale(1.05); }
}

.hero-badge {
  animation: fadeInUp 0.8s ease-out both;
}

.hero-badge { animation-delay: 0.2s; }

/* --- Card elevation --- */
.card-elevate {
  transform: translateY(0);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.card-elevate:hover {
  transform: translateY(-6px);
}

/* --- Scroll reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  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; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* --- Mobile menu --- */
#mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

#mobile-menu.open .mobile-link {
  animation: fadeInUp 0.4s ease-out both;
}

#mobile-menu.open .mobile-link:nth-child(1) { animation-delay: 0.05s; }
#mobile-menu.open .mobile-link:nth-child(2) { animation-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(3) { animation-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(4) { animation-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(5) { animation-delay: 0.25s; }

/* --- Menu toggle animation --- */
.menu-toggle.active .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active .menu-line:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active .menu-line:nth-child(3) {
  width: 6;
  margin-left: 0;
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* --- Focus styles --- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #c8a84e;
  outline-offset: 2px;
}

/* --- Selection --- */
::selection {
  background: rgba(200, 168, 78, 0.3);
  color: #1a365d;
}

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

::-webkit-scrollbar-track {
  background: #0f2440;
}

::-webkit-scrollbar-thumb {
  background: #2a4a7f;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #c8a84e;
}

/* --- Responsive adjustments --- */
@media (max-width: 768px) {
  .gold-line {
    width: 40px;
  }

  #hero h1 {
    font-size: 2.5rem;
  }

  #hero h1 br {
    display: none;
  }
}
