/* ======================================
   YUMMY-FI - PREMIUM RESTAURANT WEBSITE
   World-Class UI/UX Design System
   ====================================== */

/* =====================================
   1. CSS CUSTOM PROPERTIES (Brand Colors)
   ===================================== */
:root {
  /* Primary Brand Colors */
  --color-primary: #7A0C0C;
  /* Deep Maroon */
  --color-secondary: #8B1A1A;
  /* Rich Burgundy */
  --color-accent: #F4B400;
  /* Golden Yellow */
  --color-accent-dark: #DFA200;
  /* Mustard Gold */

  /* Background Colors */
  --bg-cream: #FFF8F3;
  /* Warm Cream */
  --bg-dark: #4E0A0A;
  /* Dark Brown-Red */

  /* Text Colors */
  --text-light: #FFFFFF;
  /* Pure White */
  --text-off-white: #F5F5F5;
  /* Soft Off-White */
  --text-dark: #4E0A0A;
  /* Dark Brown-Red */

  /* Effects */
  --glow-gold: rgba(244, 180, 0, 0.4);
  --shadow-dark: rgba(78, 10, 10, 0.3);
  --shadow-light: rgba(0, 0, 0, 0.1);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #7A0C0C 0%, #8B1A1A 100%);
  --gradient-hero: linear-gradient(20deg, #7A0C0C 0%, #8B1A1A 100%);
  --gradient-card: linear-gradient(135deg, #FFF8F3 0%, #FFE9C6 100%);

  /* Typography */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 50px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Z-Index */
  --z-navbar: 1000;
  --z-modal: 1100;
  --z-tooltip: 1200;
}

/* =====================================
   2. RESET & BASE STYLES
   ===================================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-cream);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-normal);
}

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* =====================================
   3. TYPOGRAPHY
   ===================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

p {
  margin-bottom: var(--space-sm);
}

.text-accent {
  color: var(--color-accent);
}

.text-white {
  color: var(--text-light);
}

.text-center {
  text-align: center;
}

/* =====================================
   4. UTILITY CLASSES
   ===================================== */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-3xl) 0;
}

.section-dark {
  background: var(--gradient-primary);
  color: var(--text-light);
}

.section-cream {
  background: var(--bg-cream);
}

.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.grid {
  display: grid;
}

/* =====================================
   5. BUTTONS (Animated Style - btn-17)
   ===================================== */
.btn,
.btn *,
.btn :after,
.btn :before,
.btn:after,
.btn:before {
  border: 0 solid;
  box-sizing: border-box;
}

.btn {
  -webkit-tap-highlight-color: transparent;
  -webkit-appearance: button;
  appearance: button;
  background-color: #000;
  background-image: none;
  color: #fff;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 100%;
  font-weight: 900;
  line-height: 1.5;
  margin: 0;
  -webkit-mask-image: -webkit-radial-gradient(#000, #fff);
  mask-image: radial-gradient(#000, #fff);
  padding: 0;
  text-transform: uppercase;
  text-decoration: none;
}

.btn:disabled {
  cursor: default;
  opacity: 0.6;
}

.btn:-moz-focusring {
  outline: auto;
}

.btn svg {
  display: inline-block;
  vertical-align: middle;
  width: 20px;
  height: 20px;
  fill: currentColor;
  margin-right: 8px;
}

.btn [hidden] {
  display: none;
}

.btn {
  border-radius: 99rem;
  border-width: 2px;
  padding: 0.8rem 2.5rem;
  z-index: 0;
}

.btn,
.btn .text-container {
  overflow: hidden;
  position: relative;
}

.btn .text-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn .text {
  display: block;
  position: relative;
}

.btn:hover .text {
  -webkit-animation: move-up-alternate 0.3s forwards;
  animation: move-up-alternate 0.3s forwards;
}

@-webkit-keyframes move-up-alternate {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(80%);
  }

  51% {
    transform: translateY(-80%);
  }

  to {
    transform: translateY(0);
  }
}

@keyframes move-up-alternate {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(80%);
  }

  51% {
    transform: translateY(-80%);
  }

  to {
    transform: translateY(0);
  }
}

.btn:after,
.btn:before {
  --skew: 0.2;
  background: #fff;
  content: "";
  display: block;
  height: 102%;
  left: calc(-50% - 50% * var(--skew));
  pointer-events: none;
  position: absolute;
  top: -104%;
  transform: skew(calc(150deg * var(--skew))) translateY(var(--progress, 0));
  transition: transform 0.2s ease;
  width: 100%;
}

.btn:after {
  --progress: 0%;
  left: calc(50% + 50% * var(--skew));
  top: 102%;
  z-index: -1;
}

.btn:hover:before {
  --progress: 100%;
}

.btn:hover:after {
  --progress: -102%;
}

/* ===== PRIMARY BUTTON (Golden Yellow) ===== */
.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-primary);
  box-shadow: 0 4px 15px var(--glow-gold);
}

.btn-primary:after,
.btn-primary:before {
  background: var(--color-primary);
}

.btn-primary:hover {
  color: #fff;
}

/* ===== SECONDARY BUTTON (Outlined) ===== */
.btn-secondary {
  background-color: transparent;
  color: var(--text-light);
  border: 2px solid var(--text-light);
  box-shadow: none;
}

.btn-secondary:after,
.btn-secondary:before {
  background: var(--text-light);
}

.btn-secondary:hover {
  color: var(--color-primary);
}

/* ===== WHATSAPP BUTTON (Green) ===== */
.btn-whatsapp {
  background-color: #25D366;
  color: #fff;
  font-size: 1rem;
  padding: 1rem 2.5rem;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp:after,
.btn-whatsapp:before {
  background: #128C7E;
}

.btn-whatsapp:hover {
  color: #fff;
}

/* WhatsApp Icon */
.whatsapp-icon {
  width: 20px;
  height: 20px;
  display: inline-block;
  vertical-align: middle;
  fill: currentColor;
}

/* =====================================
   6. NAVIGATION BAR
   ===================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: var(--color-primary);
  box-shadow: 0 2px 20px var(--shadow-dark);
  z-index: var(--z-navbar);
  transition: var(--transition-normal);
}

.navbar.scrolled {
  height: 60px;
  background: rgba(122, 12, 12, 0.98);
  backdrop-filter: blur(10px);
}

.navbar .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.nav-logo-img {
  height: 40px;
  width: auto;
  border-radius: 50%;
  object-fit: cover;
}

.nav-logo-text {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-link {
  color: var(--text-light);
  font-size: 1rem;
  font-weight: 500;
  padding: var(--space-xs) 0;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover {
  color: var(--color-accent);
  transform: scale(1.05);
}

/* Navbar CTA Button (smaller version of btn for navbar) */
.nav-cta-btn {
  padding: 0.5rem 1.2rem !important;
  font-size: 0.85rem !important;
}

.nav-cta-btn .whatsapp-icon {
  width: 16px;
  height: 16px;
}

/* Mobile Menu */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
}

.nav-toggle span {
  width: 25px;
  height: 2px;
  background: var(--text-light);
  transition: var(--transition-normal);
}

@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--color-primary);
    flex-direction: column;
    padding: var(--space-lg);
    gap: var(--space-md);
    transform: translateY(-150%);
    opacity: 0;
    transition: var(--transition-normal);
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }
}

/* =====================================
   7. HERO SECTION - GoDaddy Style Video BG
   ===================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: 70px;
}

/* Video Background Container */
.hero-video-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  overflow: hidden;
  background: #000;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  object-fit: cover;
}

/* YouTube Video Background (Fallback) */
.hero-video-youtube {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100vw;
  height: 56.25vw;
  /* 16:9 aspect ratio */
  min-height: 100vh;
  min-width: 177.78vh;
  /* 16:9 aspect ratio */
  pointer-events: none;
  /* Prevent clicking on YouTube overlay */
  border: none;
  z-index: 0;
}

/* Hide YouTube when local video is playing */
.hero-video-container.local-playing .hero-video-youtube {
  display: none;
}

/* Show YouTube when local video fails */
.hero-video-container.youtube-fallback .hero-video {
  display: none;
}

.hero-video-container.youtube-fallback .hero-video-youtube {
  display: block;
}

/* Fallback for video */
.hero-video-fallback {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-hero);
  z-index: -1;
}

/* Dark Gradient Overlay - GoDaddy Style */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom,
      rgba(0, 0, 0, 0.4) 0%,
      rgba(0, 0, 0, 0.2) 50%,
      rgba(0, 0, 0, 0.5) 100%);
  z-index: 1;
  pointer-events: none;
}

/* Play Button Overlay */
.hero-play-btn {
  position: absolute;
  bottom: 40px;
  right: 40px;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.4);
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: playBtnPulse 2s ease-in-out infinite;
}

.hero-play-btn svg {
  width: 28px;
  height: 28px;
  fill: #fff;
  margin-left: 4px;
  transition: transform 0.3s ease;
}

.hero-play-btn:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  transform: scale(1.1);
  box-shadow: 0 0 30px rgba(244, 180, 0, 0.5);
}

.hero-play-btn:hover svg {
  fill: var(--color-primary);
  transform: scale(1.1);
}

@keyframes playBtnPulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
  }

  50% {
    box-shadow: 0 0 0 15px rgba(255, 255, 255, 0);
  }
}

/* Video Modal */
.video-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.video-modal.active {
  opacity: 1;
  visibility: visible;
}

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(10px);
}

.video-modal-content {
  position: relative;
  width: 90%;
  max-width: 1000px;
  background: #000;
  border-radius: 16px;
  overflow: hidden;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6);
}

.video-modal.active .video-modal-content {
  transform: scale(1) translateY(0);
}

.video-modal-close {
  position: absolute;
  top: -50px;
  right: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}

.video-modal-close svg {
  width: 24px;
  height: 24px;
  fill: #fff;
}

.video-modal-close:hover {
  background: var(--color-accent);
  transform: rotate(90deg);
}

.video-modal-close:hover svg {
  fill: var(--color-primary);
}

.video-modal-player {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  background: #000;
}

/* Hero Content */
.hero-content {
  text-align: center;
  z-index: 2;
  padding: var(--space-lg);
  max-width: 900px;
}

.hero-title {
  color: var(--text-light);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  margin-bottom: var(--space-md);
  text-shadow: 2px 4px 30px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1s ease forwards;
}

.hero-title .emoji {
  display: inline-block;
  animation: bounce 2s ease-in-out infinite;
}

/* Rotating Text Animation */
.hero-brand {
  display: block;
  font-size: clamp(2.5rem, 8vw, 5rem);
  color: #ffffff;
  text-shadow: 2px 4px 30px rgba(0, 0, 0, 0.6);
  margin-bottom: var(--space-xs);
  /* 3D Zoom from back to front animation */
  /* Delay 0.5s so page loads first, then animation plays */
  animation: zoomFromBack 1.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
  transform-style: preserve-3d;
  perspective: 1000px;
  /* Start invisible until animation plays */
  opacity: 0;
}

/* Yummy-Fi: Zoom from back to front animation */
@keyframes zoomFromBack {
  0% {
    opacity: 0;
    transform: scale(0.2) translateZ(-800px);
    filter: blur(15px);
    letter-spacing: 0.8em;
  }

  30% {
    opacity: 0.5;
    filter: blur(8px);
    letter-spacing: 0.4em;
  }

  60% {
    opacity: 0.85;
    filter: blur(2px);
    letter-spacing: 0.05em;
  }

  100% {
    opacity: 1;
    transform: scale(1) translateZ(0);
    filter: blur(0);
    letter-spacing: normal;
  }
}

.rotating-text-wrapper {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  position: relative;
  min-width: 200px;
  width: auto;
  max-width: 95vw;
  height: auto;
  overflow: hidden;
  vertical-align: middle;
  background: var(--color-accent);
  color: var(--color-primary);
  padding: 0.2em 0.8em;
  border-radius: 12px;
  margin: 0.2em 0;
  font-size: clamp(1.3rem, 5vw, 2.5rem);
  box-shadow: 0 4px 25px rgba(244, 180, 0, 0.4);
}

.rotating-text {
  display: inline-flex;
  position: relative;
  white-space: nowrap;
  font-weight: 700;
  justify-content: center;
}

.rotating-text .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(100%);
  animation: charReveal 0.4s ease forwards;
}

.rotating-text .char.exit {
  animation: charExit 0.3s ease forwards;
}

@keyframes charReveal {
  0% {
    opacity: 0;
    transform: translateY(100%);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes charExit {
  0% {
    opacity: 1;
    transform: translateY(0);
  }

  100% {
    opacity: 0;
    transform: translateY(-120%);
  }
}

/* Small Screen / Mobile Styles */
@media (max-width: 480px) {
  .hero-brand {
    font-size: 2.5rem;
  }

  .rotating-text-wrapper {
    font-size: 1.3rem;
    min-width: 160px;
    padding: 0.15em 0.6em;
    border-radius: 10px;
  }
}

/* Medium screens */
@media (min-width: 481px) and (max-width: 768px) {
  .hero-brand {
    font-size: 3rem;
  }

  .rotating-text-wrapper {
    font-size: 1.5rem;
    min-width: 180px;
    padding: 0.18em 0.7em;
  }
}

/* Large Screen Fixes - Reduce text size */
@media (min-width: 992px) {
  .hero-brand {
    font-size: 3rem;
  }

  .rotating-text-wrapper {
    font-size: 1.6rem;
    min-width: 220px;
    padding: 0.2em 0.8em;
  }
}

@media (min-width: 1200px) {
  .hero-brand {
    font-size: 3.2rem;
  }

  .rotating-text-wrapper {
    font-size: 1.75rem;
    min-width: 240px;
    padding: 0.2em 0.9em;
  }
}

@media (min-width: 1600px) {
  .hero-brand {
    font-size: 3.5rem;
  }

  .rotating-text-wrapper {
    font-size: 1.9rem;
    min-width: 260px;
    padding: 0.2em 1em;
  }
}

.hero-subtitle {
  color: var(--text-off-white);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  margin-bottom: var(--space-xl);
  opacity: 0;
  animation: fadeInUp 1s ease 0.3s forwards;
  min-height: 1.8em;
  text-shadow: 1px 2px 10px rgba(0, 0, 0, 0.4);
}

/* Typing Text Effect */
.typing-text {
  display: inline;
}

.typing-cursor {
  display: inline-block;
  margin-left: 2px;
  font-weight: 300;
  color: var(--color-accent);
  animation: cursorBlink 0.6s ease-in-out infinite;
}

@keyframes cursorBlink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.hero-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeInUp 1s ease 0.5s forwards;
}

/* Parallax Scroll Effect for Hero */
.hero.scrolled .hero-video {
  transform: translate(-50%, calc(-50% + var(--scroll-offset, 0px))) scale(1.1);
}

.hero.scrolled .hero-content {
  transform: translateY(calc(var(--scroll-offset, 0px) * 0.3));
  opacity: calc(1 - var(--scroll-progress, 0) * 0.7);
}

/* =====================================
   8. WHY NOT 7+ APPS SECTION
   ===================================== */
.why-not-apps {
  background: var(--bg-cream);
  padding: var(--space-3xl) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-header h2 {
  color: var(--text-dark);
  margin-bottom: var(--space-sm);
}

.section-header p {
  color: #666;
  font-size: 1.1rem;
}

.pain-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.pain-card {
  background: white;
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: var(--transition-normal);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.pain-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--color-accent);
  transform: scaleX(0);
  transition: var(--transition-normal);
}

.pain-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px var(--shadow-light);
}

.pain-card:hover::before {
  transform: scaleX(1);
}

.pain-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-md);
  background: var(--bg-cream);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  position: relative;
}

.pain-card h4 {
  color: var(--text-dark);
  margin-bottom: var(--space-xs);
}

.pain-card p {
  color: #666;
  font-size: 0.95rem;
}

.yummy-solution {
  margin-top: var(--space-2xl);
  text-align: center;
  padding: var(--space-xl);
  background: white;
  border-radius: var(--radius-lg);
  border: 2px solid var(--color-accent);
}

.yummy-solution h3 {
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.yummy-solution p {
  color: var(--color-primary);
  font-weight: 600;
  font-size: 1.2rem;
}

/* =====================================
   9. MENU SHOWCASE
   ===================================== */
.menu-showcase {
  background: var(--gradient-primary);
  padding: var(--space-3xl) 0;
  position: relative;
  overflow: hidden;
}

.menu-showcase .section-header h2 {
  color: var(--text-light);
}

.menu-showcase .section-header p {
  color: var(--text-off-white);
}

.menu-carousel {
  position: relative;
  overflow: hidden;
  padding: var(--space-lg) 0;
}

.menu-carousel-wrapper {
  overflow: hidden;
  margin: 0 auto;
  padding: var(--space-sm);
}

.menu-track {
  display: flex;
  gap: var(--space-lg);
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  padding: var(--space-sm) var(--space-sm);
  will-change: transform;
}

.menu-card {
  flex: 0 0 280px;
  min-width: 280px;
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.menu-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.menu-card-image {
  height: 200px;
  background: var(--bg-cream);
  overflow: hidden;
  position: relative;
}

.menu-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.menu-card:hover .menu-card-image img {
  transform: scale(1.1);
}

.menu-card-badge {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  background: var(--color-accent);
  color: var(--color-primary);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.9rem;
}

.menu-card-content {
  padding: var(--space-md);
}

.menu-card-content h4 {
  color: var(--text-dark);
  margin-bottom: var(--space-xs);
}

.menu-card-content p {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: var(--space-sm);
}

.menu-card-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
}

.carousel-controls {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.carousel-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-primary);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-normal);
}

.carousel-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 5px 20px var(--glow-gold);
}

@media (max-width: 768px) {
  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: var(--space-xs);
  margin-top: var(--space-md);
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: var(--transition-normal);
}

.carousel-dot.active {
  background: var(--color-accent);
  transform: scale(1.2);
}

/* =====================================
   10. FRESH INGREDIENTS
   ===================================== */
.fresh-ingredients {
  background: var(--bg-cream);
  padding: var(--space-3xl) 0;
  overflow: hidden;
}

.ingredients-track {
  display: flex;
  gap: var(--space-lg);
  animation: scroll 25s linear infinite;
}

.ingredient-card {
  flex: 0 0 180px;
  background: white;
  padding: var(--space-md);
  border-radius: var(--radius-md);
  text-align: center;
  transition: var(--transition-normal);
}

.ingredient-card:hover {
  transform: translateY(-5px);
  background: var(--color-accent);
}

.ingredient-card:hover .ingredient-icon {
  transform: scale(1.2);
}

.ingredient-icon {
  font-size: 3rem;
  margin-bottom: var(--space-xs);
  transition: var(--transition-normal);
}

.ingredient-card h5 {
  color: var(--text-dark);
  font-size: 1rem;
}

/* =====================================
   11. SIGNATURE PARCELS (3D Cards)
   ===================================== */
.signature-parcels {
  background: var(--bg-cream);
  padding: var(--space-3xl) 0;
  position: relative;
}

.signature-parcels .section-header h2 {
  color: var(--text-dark);
}

.signature-parcels .section-header p {
  color: #666;
}

.parcels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
}

.parcel-card {
  background: #fff;
  border: 2px solid var(--color-accent);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  transition: var(--transition-normal);
  transform-style: preserve-3d;
  perspective: 1000px;
}

.parcel-card:hover {
  transform: translateY(-15px) rotateX(5deg) rotateY(-5deg);
  box-shadow: 0 30px 60px var(--shadow-dark);
}

.parcel-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-md);
  background: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  animation: gentleRotate 4s ease-in-out infinite;
}

.parcel-card h4 {
  color: var(--text-dark);
  margin-bottom: var(--space-sm);
  font-size: 1.5rem;
}

.parcel-card p {
  color: #666;
  margin-bottom: var(--space-md);
}

.parcel-price {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-primary);
}

.parcel-price span {
  font-size: 1rem;
  font-weight: 400;
  color: #666;
}

/* =====================================
   12. WHY CHOOSE YUMMY-FI (Personas)
   ===================================== */
.why-choose {
  background: var(--bg-cream);
  padding: var(--space-3xl) 0;
  position: relative;
}

.why-choose::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg,
      transparent,
      transparent 10px,
      rgba(122, 12, 12, 0.02) 10px,
      rgba(122, 12, 12, 0.02) 20px);
  pointer-events: none;
}

.personas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
  position: relative;
  z-index: 1;
}

.persona-card {
  background: white;
  padding: var(--space-xl);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--color-accent);
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.persona-card:nth-child(even) {
  border-left-color: var(--color-primary);
}

.persona-card:hover {
  transform: translateX(10px);
  box-shadow: 0 10px 30px var(--shadow-light);
  background: linear-gradient(135deg, white 0%, #FFF8F3 100%);
}

.persona-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 60px;
  height: 60px;
  background: var(--glow-gold);
  border-radius: 0 0 0 100%;
  opacity: 0;
  transition: var(--transition-normal);
}

.persona-card:hover::after {
  opacity: 1;
}

.persona-emoji {
  font-size: 3rem;
  margin-bottom: var(--space-sm);
}

.persona-card h4 {
  color: var(--text-dark);
  margin-bottom: var(--space-xs);
}

.persona-card p {
  color: #666;
  font-size: 0.95rem;
}

/* =====================================
   13. TESTIMONIALS
   ===================================== */
.testimonials {
  background: var(--gradient-primary);
  padding: var(--space-3xl) 0;
  overflow: hidden;
}

.testimonials .section-header h2 {
  color: var(--text-light);
}

.testimonials-carousel {
  position: relative;
  padding: var(--space-lg) 0;
}

.testimonials-track {
  display: flex;
  gap: var(--space-lg);
  transition: transform 0.5s ease;
}

.testimonial-card {
  flex: 0 0 350px;
  background: #000;
  backdrop-filter: blur(10px);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.4s ease;
}

.testimonial-card:hover {
  background: #fff;
  transform: scale(1.05);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.testimonial-stars {
  color: var(--color-accent);
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
}

.testimonial-text {
  color: #fff;
  font-style: italic;
  margin-bottom: var(--space-md);
  line-height: 1.7;
  transition: color 0.4s ease;
}

.testimonial-card:hover .testimonial-text {
  color: #000;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.testimonial-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 3px solid var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: var(--color-secondary);
}

.testimonial-info h5 {
  color: #fff;
  font-size: 1rem;
  transition: color 0.4s ease;
}

.testimonial-card:hover .testimonial-info h5 {
  color: #000;
}

.testimonial-info span {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  transition: color 0.4s ease;
}

.testimonial-card:hover .testimonial-info span {
  color: #555;
}

/* =====================================
   14. HOW IT WORKS
   ===================================== */
.how-it-works {
  background: var(--bg-cream);
  padding: var(--space-3xl) 0;
}

.timeline {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 30px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--color-primary);
}

.timeline-step {
  display: flex;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
  position: relative;
}

.timeline-dot {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  background: var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  position: relative;
  z-index: 1;
  box-shadow: 0 5px 20px var(--glow-gold);
}

.timeline-content {
  background: white;
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  flex: 1;
  box-shadow: 0 5px 15px var(--shadow-light);
}

.timeline-content h4 {
  color: var(--text-dark);
  margin-bottom: var(--space-xs);
}

.timeline-content p {
  color: #666;
  font-size: 0.95rem;
}

/* =====================================
   15. FAQ ACCORDION
   ===================================== */
.faq-section {
  background: var(--bg-cream);
  padding: var(--space-3xl) 0;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: white;
  margin-bottom: var(--space-sm);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 2px 10px var(--shadow-light);
}

.faq-question {
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-primary);
  text-align: left;
  transition: var(--transition-normal);
}

.faq-question:hover {
  background: #FFF8F3;
}

.faq-icon {
  width: 30px;
  height: 30px;
  background: var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-weight: 700;
  transition: var(--transition-normal);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer-content {
  padding: 0 var(--space-lg) var(--space-lg);
  color: #666;
  line-height: 1.7;
  border-top: 1px solid #eee;
  padding-top: var(--space-md);
}

/* =====================================
   16. ORDER NOW CTA
   ===================================== */
.order-cta {
  background: var(--color-accent);
  padding: var(--space-3xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.order-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: pulse 4s ease-in-out infinite;
}

.order-cta h2 {
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
  position: relative;
  z-index: 1;
}

.order-cta p {
  color: var(--text-dark);
  font-size: 1.2rem;
  margin-bottom: var(--space-xl);
  position: relative;
  z-index: 1;
}

/* =====================================
   17. FOOTER
   ===================================== */
.footer {
  background: var(--bg-dark);
  padding: var(--space-2xl) 0 var(--space-lg);
  color: var(--text-light);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer-brand h3 {
  font-family: var(--font-serif);
  color: var(--color-accent);
  font-size: 1.75rem;
  margin-bottom: var(--space-sm);
}

.footer-brand p {
  color: var(--text-off-white);
  font-size: 0.95rem;
}

.footer-section h4 {
  color: var(--color-accent);
  margin-bottom: var(--space-md);
  font-size: 1.1rem;
}

.footer-section ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.footer-section a {
  color: var(--text-off-white);
  transition: var(--transition-normal);
}

.footer-section a:hover {
  color: var(--color-accent);
  padding-left: 5px;
}

.footer-social {
  display: flex;
  gap: var(--space-sm);
}

.social-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.25rem;
  transition: var(--transition-normal);
}

.social-icon:hover {
  background: var(--color-accent);
  color: #000 !important;
  transform: translateY(-5px);
  padding-left: 0 !important;
  /* Override potential footer link padding */
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  color: var(--text-off-white);
  font-size: 0.9rem;
}

/* =====================================
   18. ANIMATIONS
   ===================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-20px) rotate(10deg);
  }
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@keyframes gentleRotate {

  0%,
  100% {
    transform: rotate(0deg);
  }

  25% {
    transform: rotate(5deg);
  }

  75% {
    transform: rotate(-5deg);
  }
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.5;
  }

  50% {
    transform: scale(1.1);
    opacity: 0.3;
  }
}

/* Scroll Reveal Animations - Faster Initial Load */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

/* Staggered animation delays for cards */
.pain-card:nth-child(1) {
  transition-delay: 0s;
}

.pain-card:nth-child(2) {
  transition-delay: 0.1s;
}

.pain-card:nth-child(3) {
  transition-delay: 0.2s;
}

.pain-card:nth-child(4) {
  transition-delay: 0.3s;
}

.persona-card:nth-child(1) {
  transition-delay: 0s;
}

.persona-card:nth-child(2) {
  transition-delay: 0.1s;
}

.persona-card:nth-child(3) {
  transition-delay: 0.2s;
}

.persona-card:nth-child(4) {
  transition-delay: 0.3s;
}

.parcel-card:nth-child(1) {
  transition-delay: 0s;
}

.parcel-card:nth-child(2) {
  transition-delay: 0.15s;
}

.parcel-card:nth-child(3) {
  transition-delay: 0.3s;
}

.timeline-step:nth-child(1) {
  transition-delay: 0s;
}

.timeline-step:nth-child(2) {
  transition-delay: 0.15s;
}

.timeline-step:nth-child(3) {
  transition-delay: 0.3s;
}

.timeline-step:nth-child(4) {
  transition-delay: 0.45s;
}

/* =====================================
   19. RESPONSIVE DESIGN
   ===================================== */
@media (max-width: 768px) {
  .section {
    padding: var(--space-2xl) 0;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
  }

  .btn {
    width: auto;
    min-width: 200px;
    max-width: 90%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
  }

  .menu-card,
  .testimonial-card {
    flex: 0 0 280px;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-dot {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  :root {
    font-size: 14px;
  }

  .container {
    padding: 0 var(--space-sm);
  }

  .parcel-card,
  .pain-card,
  .persona-card {
    padding: var(--space-md);
  }
}

/* =====================================
   20. SCROLLBAR STYLING
   ===================================== */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-cream);
}

::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-secondary);
}

/* =====================================
   21. 404 PAGE STYLING
   ===================================== */
.page_404 {
  padding: 40px 0;
  background: #fff;
  font-family: var(--font-body);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.content_404 {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

/* 404 Text - ABOVE the image */
.error_404 {
  font-size: clamp(80px, 15vw, 120px);
  color: var(--text-dark);
  font-family: var(--font-serif);
  font-weight: 700;
  margin: 0;
  line-height: 1;
}

/* Caveman GIF - Below the 404 text */
.four_zero_four_bg {
  background-image: url(https://cdn.dribbble.com/users/285475/screenshots/2083086/dribbble_1.gif);
  height: 280px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  margin-top: -30px;
}

.contant_box_404 {
  margin-top: 20px;
  text-align: center;
}

.contant_box_404 h3 {
  font-size: clamp(24px, 4vw, 32px);
  margin-bottom: 15px;
  color: var(--text-dark);
  font-family: var(--font-serif);
  font-weight: 700;
}

.contant_box_404 p {
  color: #666;
  margin-bottom: 25px;
  font-size: 1.1rem;
}

.btn-404 {
  background-color: var(--color-accent) !important;
  box-shadow: 0 4px 15px var(--glow-gold) !important;
  color: var(--color-primary) !important;
  padding: 14px 40px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 50px;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-404:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px var(--glow-gold) !important;
}

@media (max-width: 768px) {
  .error_404 {
    font-size: 80px;
  }

  .four_zero_four_bg {
    height: 220px;
    margin-top: -20px;
  }

  .contant_box_404 h3 {
    font-size: 24px;
  }
}

/* =====================================
   22. SCROLL FLOAT ANIMATION
   ===================================== */
.scroll-float-title {
  overflow: hidden;
  display: block;
  line-height: 1.3;
}

.scroll-float-text {
  display: inline;
  word-wrap: break-word;
}

.scroll-float-text .char {
  display: inline-block;
  will-change: opacity, transform;
}

/* Mobile - Same animation, adjusted trigger points */
@media (max-width: 768px) {
  .scroll-float-title {
    line-height: 1.4;
  }

  .scroll-float-text .char {
    /* Ensure characters are visible and animate smoothly on mobile */
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }
}

/* =====================================
   23. MENU GALLERY SECTION
   ===================================== */
.menu-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 30px;
  padding-top: 40px;
}

.menu-gallery-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.menu-gallery-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.menu-img-wrapper {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #f0f0f0;
}

.menu-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.menu-gallery-card:hover .menu-img-wrapper img {
  transform: scale(1.1);
}

.menu-card-content {
  padding: 20px;
  text-align: center;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  z-index: 1;
}

.menu-card-content h5 {
  font-size: 1.25rem;
  color: var(--color-primary);
  font-family: var(--font-serif);
  margin: 0;
  font-weight: 700;
  line-height: 1.3;
}

@media (max-width: 768px) {
  .menu-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding-top: 20px;
  }

  .menu-card-content {
    padding: 12px;
  }

  .menu-card-content h5 {
    font-size: 0.95rem;
  }

  .menu-gallery-card {
    border-radius: 15px;
  }
}

@media (max-width: 480px) {
  .menu-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    /* Keep 2 columns on small mobile for better view */
    gap: 10px;
  }
}

/* =====================================
   24. SCROLL ANIMATIONS
   ===================================== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
  will-change: opacity, transform;
}

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

/* Staggered transition delays for grid items if they have custom properties or nth-child logic */
.menu-gallery-card.reveal {
  transition-duration: 0.6s;
}

/* Staggered Delay for Menu Grid (Desktop 4 columns pattern) */
.menu-gallery-grid .menu-gallery-card:nth-child(4n+1) {
  transition-delay: 0ms;
}

.menu-gallery-grid .menu-gallery-card:nth-child(4n+2) {
  transition-delay: 100ms;
}

.menu-gallery-grid .menu-gallery-card:nth-child(4n+3) {
  transition-delay: 200ms;
}

.menu-gallery-grid .menu-gallery-card:nth-child(4n+4) {
  transition-delay: 300ms;
}

/* Section Header Animation specific */
.section-header.reveal {
  transform: translateY(30px) scale(0.95);
  transition-duration: 0.8s;
}

.section-header.reveal.active {
  transform: translateY(0) scale(1);
}

/* =====================================
   25. MENU LOOP (INFINITE SCROLL) ANIMATION
   ===================================== */
.logo-loop-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  /* Fade Out Edges Effect for a premium look */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
  padding: 20px 0;
  /* Prevent interaction issues */
  user-select: none;
}

.logo-loop-track {
  display: flex;
  width: max-content;
  gap: 30px;
  /* Ensure smooth animation */
  will-change: transform;
}

/* Scroll Animations */
.logo-loop-track.scroll-left {
  animation: scrollLeft 60s linear infinite;
}

.logo-loop-track.scroll-right {
  animation: scrollRight 60s linear infinite;
}

@keyframes scrollLeft {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@keyframes scrollRight {
  0% {
    transform: translateX(-50%);
  }

  100% {
    transform: translateX(0);
  }
}

/* Pause on hover to allow user to view details */
.logo-loop-container:hover .logo-loop-track {
  animation-play-state: paused;
}

/* Card adjustments for the loop to ensure they don't shrink */
.logo-loop-track .menu-gallery-card {
  width: 280px;
  flex-shrink: 0;
  margin: 0;
  /* Ensure card looks good in the loop */
  height: auto;
  min-height: 100%;
}

/* On mobile, speed it up slightly or keep same, maybe smaller cards */
@media (max-width: 768px) {
  .logo-loop-track .menu-gallery-card {
    width: 220px;
  }

  .logo-loop-track {
    gap: 20px;
  }
}

/* =====================================
   26. MENU SHOWCASE FIXES
   ===================================== */
.menu-card-image {
  height: 250px;
  width: 100%;
  overflow: hidden;
  position: relative;
}

.menu-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.menu-card:hover .menu-card-image img {
  transform: scale(1.1);
}

/* =====================================
   27. CAROUSEL LAYOUT FIX
   ===================================== */
.menu-carousel {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.menu-carousel-wrapper {
  overflow: hidden;
  width: 100%;
  position: relative;
  /* Add padding for shadows without clipping */
  padding: 10px 0 40px 0;
  margin-bottom: -40px;
}

.menu-track {
  display: flex;
  gap: 20px;
  /* Ensure smooth transform */
  transition: transform 0.5s ease-out;
  /* Align items */
  align-items: stretch;
}

/* Card Width Logic matching JS getCardsPerView */
.menu-card {
  flex-shrink: 0;
  box-sizing: border-box;
}

/* Base (Mobile) - 1 Card */
.menu-card {
  width: 100%;
}

/* Tablet - 2 Cards */
@media (min-width: 481px) {
  .menu-card {
    /* (100% - 1*20px gap) / 2 */
    width: calc((100% - 20px) / 2);
  }
}

/* Small Laptop - 3 Cards */
@media (min-width: 769px) {
  .menu-card {
    /* (100% - 2*20px gap) / 3 */
    width: calc((100% - 40px) / 3);
  }
}

/* Desktop - 4 Cards */
@media (min-width: 1025px) {
  .menu-card {
    /* (100% - 3*20px gap) / 4 */
    width: calc((100% - 60px) / 4);
  }
}

/* =====================================
   28. 404 BUTTON FIX
   ===================================== */
.btn-404 {
  background-color: var(--color-primary);
  color: #fff !important;
  /* Disable the complex btn-17 fill animation that covers text */
  overflow: visible;
}

.btn-404:after,
.btn-404:before {
  display: none !important;
}

.btn-404:hover {
  background-color: #fff;
  color: var(--color-primary) !important;
  border: 2px solid var(--color-primary);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* =====================================
   29. TESTIMONIAL MARQUEE
   ===================================== */
.testimonials-marquee-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  /* Fade Out Edges Effect */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
  padding: 20px 0;
}

.testimonials-marquee-track {
  display: flex;
  width: max-content;
  gap: 30px;
  will-change: transform;
}

.testimonials-marquee-track.scroll-active {
  animation: testimonialScroll 30s linear infinite;
}

@keyframes testimonialScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.testimonials-marquee-container:hover .testimonials-marquee-track {
  animation-play-state: paused;
}

/* Ensure cards in marquee have fixed width and don't shrink */
.testimonials-marquee-track .testimonial-card {
  flex: 0 0 350px;
  width: 350px;
  margin: 0;
}

@media (max-width: 768px) {
  .testimonials-marquee-track .testimonial-card {
    flex: 0 0 300px;
    width: 300px;
  }
}

/* =====================================
   30. TEAM SECTION
   ===================================== */
.team-section {
  background: #7A0C0C;
  padding: var(--space-3xl) 0;
  text-align: center;
  overflow: hidden;
}

.team-section .section-header h2 {
  color: var(--text-light);
}

.team-section .section-header p {
  color: #ccc;
}

.team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  margin-bottom: var(--space-xl);
}

/* Uiverse Card Style Adapted */
.team-card-uiverse {
  position: relative;
  width: 300px;
  height: 400px;
  background: #000;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.team-card-uiverse::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(315deg, var(--color-accent), var(--color-primary));
  z-index: -1;
  border-radius: var(--radius-lg);
}

.team-card-uiverse::after {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(315deg, var(--color-accent), var(--color-primary));
  filter: blur(20px);
  z-index: -2;
  border-radius: var(--radius-lg);
}

.team-card-uiverse b {
  position: absolute;
  inset: 5px;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1;
  border-radius: var(--radius-md);
}

/* Full card background image */
.team-avatar-uiverse {
  position: absolute;
  inset: 5px;
  z-index: 2;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.team-avatar-uiverse img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: 0.5s ease;
}

/* Dark gradient overlay on image for text readability */
.team-avatar-uiverse::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      rgba(0, 0, 0, 0.95) 0%,
      rgba(0, 0, 0, 0.6) 40%,
      rgba(0, 0, 0, 0.2) 70%,
      transparent 100%);
  transition: 0.5s ease;
}

/* Hover effect - zoom image and darken */
.team-card-uiverse:hover .team-avatar-uiverse img,
.team-card-uiverse.active .team-avatar-uiverse img {
  transform: scale(1.1);
  filter: brightness(0.7);
}

.team-card-uiverse:hover .team-avatar-uiverse::after,
.team-card-uiverse.active .team-avatar-uiverse::after {
  background: linear-gradient(to top,
      rgba(0, 0, 0, 0.98) 0%,
      rgba(0, 0, 0, 0.8) 50%,
      rgba(0, 0, 0, 0.5) 100%);
}

/* Team card content - always visible at bottom */
.team-card-uiverse .content {
  position: absolute;
  z-index: 3;
  bottom: 20px;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  width: 100%;
  transition: 0.5s ease;
}

/* Content inner elements slide up on hover */
.team-card-uiverse .team-desc,
.team-card-uiverse .team-social-icons {
  opacity: 0;
  transform: translateY(20px);
  transition: 0.4s ease;
  max-height: 0;
  overflow: hidden;
}

.team-card-uiverse:hover .team-desc,
.team-card-uiverse.active .team-desc {
  opacity: 1;
  transform: translateY(0);
  max-height: 100px;
  margin-bottom: 10px;
}

.team-card-uiverse:hover .team-social-icons,
.team-card-uiverse.active .team-social-icons {
  opacity: 1;
  transform: translateY(0);
  max-height: 60px;
}

.team-card-uiverse .content .title {
  position: relative;
  color: #fff;
  font-weight: 700;
  line-height: 1.2em;
  font-size: 1.5em;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 10px;
}

.team-card-uiverse .content .title span {
  font-weight: 300;
  font-size: 0.6em;
  color: var(--color-accent);
  display: block;
  margin-top: 5px;
}

.team-card-uiverse .content .team-desc {
  color: #ccc;
  font-size: 0.9rem;
  text-align: center;
  line-height: 1.5;
}

.trust-line {
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-accent);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  position: relative;
  z-index: 5;
}

/* Team Social Icons - appears with same animation as content */
.team-social-icons {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 20px;
  padding-top: 5px;
  overflow: visible;
}

.team-social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  color: #fff;
  overflow: hidden;
  flex-shrink: 0;
}

.team-social-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  transition: transform 0.3s ease;
}

/* Instagram hover - gradient background */
.team-social-icon:nth-child(1):hover {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  border-color: #f09433;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(225, 48, 108, 0.5);
}

/* Email hover - red */
.team-social-icon:nth-child(2):hover {
  background: #EA4335;
  border-color: #EA4335;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(234, 67, 53, 0.5);
}

/* WhatsApp hover - green */
.team-social-icon:nth-child(3):hover {
  background: #25D366;
  border-color: #25D366;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(37, 211, 102, 0.5);
}

.team-social-icon:hover svg {
  transform: scale(1.1);
  fill: #fff;
}