/* ===== Custom Styles for Sultan's Feast ===== */

@keyframes goldenPulse {
  0% { box-shadow: 0 0 0 0 rgba(248, 188, 95, 0.2); }
  70% { box-shadow: 0 0 20px 10px rgba(248, 188, 95, 0); }
  100% { box-shadow: 0 0 0 0 rgba(248, 188, 95, 0); }
}
.pulse-gold { animation: goldenPulse 3s infinite; }

/* Shimmer Sweep Effect */
.shimmer-btn {
  position: relative;
  overflow: hidden;
}
.shimmer-btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -100%;
  width: 50%;
  height: 200%;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.3), transparent);
  transform: rotate(45deg);
  transition: all 0.5s;
}
.shimmer-btn:hover::after { left: 150%; }

/* Menu leader dots */
.leader-dots {
  flex-grow: 1;
  border-bottom: 1px dotted #9c8f7d;
  margin: 0 10px;
  margin-bottom: 5px;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0d0d0d; }
::-webkit-scrollbar-thumb { background: #f8bc5f; border-radius: 10px; }

/* Material Symbols defaults */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Glassmorphism utilities */
.glass-nav {
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}

/* Loading screen */
#loader-screen {
  position: fixed;
  inset: 0;
  background: #0c0f0f;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity 0.8s ease-in-out, visibility 0.8s;
}
.loader-logo {
  animation: pulse-scale 2s infinite ease-in-out;
}
@keyframes pulse-scale {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 1; }
}

/* Scroll reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Tilt card */
.tilt-card {
  transform-style: preserve-3d;
  perspective: 1000px;
}
.tilt-card-inner {
  transition: transform 0.1s ease-out;
}

/* Glass panels */
.glass-panel {
  background: rgba(13, 13, 13, 0.7);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(248, 188, 95, 0.2);
}

/* Gold border helpers */
.gold-border-bottom {
  border-bottom: 1px solid #9c8f7d;
  transition: border-color 0.3s ease;
}
.gold-border-bottom:focus-within {
  border-bottom: 1px solid #f8bc5f;
}

/* 3D Tilt on hover */
.tilt-hover {
  transition: transform 0.3s ease;
}
.tilt-hover:hover {
  transform: perspective(1000px) rotateX(2deg) rotateY(2deg);
}

/* ===== Animations ===== */

/* Fade in + slide up for modals */
@keyframes modalFadeIn {
  from { opacity: 0; backdrop-filter: blur(0px); }
  to   { opacity: 1; backdrop-filter: blur(20px); }
}
@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(40px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-animate {
  animation: modalFadeIn 0.3s ease-out forwards;
}
.modal-animate > div {
  animation: modalSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Staggered fade-in for grid items */
@keyframes cardFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.menu-item,
.gallery-item {
  opacity: 0;
  animation: cardFadeIn 0.5s ease-out forwards;
}
.menu-item:nth-child(1), .gallery-item:nth-child(1) { animation-delay: 0.02s; }
.menu-item:nth-child(2), .gallery-item:nth-child(2) { animation-delay: 0.06s; }
.menu-item:nth-child(3), .gallery-item:nth-child(3) { animation-delay: 0.10s; }
.menu-item:nth-child(4), .gallery-item:nth-child(4) { animation-delay: 0.14s; }
.menu-item:nth-child(5), .gallery-item:nth-child(5) { animation-delay: 0.18s; }
.menu-item:nth-child(6), .gallery-item:nth-child(6) { animation-delay: 0.22s; }
.menu-item:nth-child(7), .gallery-item:nth-child(7) { animation-delay: 0.26s; }
.menu-item:nth-child(8), .gallery-item:nth-child(8) { animation-delay: 0.30s; }
.menu-item:nth-child(9), .gallery-item:nth-child(9) { animation-delay: 0.34s; }
.menu-item:nth-child(10), .gallery-item:nth-child(10) { animation-delay: 0.38s; }
.menu-item:nth-child(11), .gallery-item:nth-child(11) { animation-delay: 0.42s; }
.menu-item:nth-child(12), .gallery-item:nth-child(12) { animation-delay: 0.46s; }
.menu-item:nth-child(13), .gallery-item:nth-child(13) { animation-delay: 0.50s; }
.menu-item:nth-child(14), .gallery-item:nth-child(14) { animation-delay: 0.54s; }
.menu-item:nth-child(15), .gallery-item:nth-child(15) { animation-delay: 0.58s; }

/* Image reveal on hover — subtle zoom */
.menu-item img, .gallery-item img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.menu-item:hover img, .gallery-item:hover img {
  transform: scale(1.08);
}

/* Smooth page transitions */
#app {
  transition: opacity 0.25s ease;
}

/* Counting number animation */
@keyframes countUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.stat-number {
  animation: countUp 0.6s ease-out forwards;
}
