/* menu.css */
@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Playfair+Display:wght@400;600;700&family=Poppins:wght@300;400;500;600&display=swap');

/* CSS Variables for consistent theming */
:root {
  --primary-color: #d4af37;
  --secondary-color: #8b4513;
  --accent-color: #ff6b35;
  --text-dark: #2c1810;
  --text-light: #f5f5f5;
  --background-gradient: linear-gradient(135deg, #1a1a1a 0%, #2d1810 100%);
  --card-background: rgba(255, 255, 255, 0.95);
  --shadow-light: 0 4px 15px rgba(212, 175, 55, 0.1);
  --shadow-heavy: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--background-gradient);
  min-height: 100vh;
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 1600px;
  
  /* Simple horizontal centering */
  margin: 0 auto;
}


/* Animated background particles */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 107, 53, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(139, 69, 19, 0.1) 0%, transparent 50%);
  animation: backgroundMove 20s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

@keyframes backgroundMove {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(1deg); }
}

/* Header styling */
.menu-heading {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(3rem, 8vw, 6rem);
  text-align: center;
  color: var(--primary-color);
  margin: 2rem 0 3rem;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
  position: relative;
  animation: fadeInDown 1s ease-out;
}

.menu-heading::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.logo {
  position: absolute;
  top: 0;
  left: 40px;
  height: 300px;
  width: auto;
  max-width: 300px;
  z-index: 1000;
  filter: drop-shadow(3px 3px 6px rgba(0, 0, 0, 0.3));
  transition: all 0.3s ease;
  animation: fadeInLeft 1s ease-out;
  cursor: pointer;
}

.logo:hover {
  transform: scale(1.05);
  filter: drop-shadow(4px 4px 8px rgba(0, 0, 0, 0.4));
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Section styling */
.section {
  max-width: 900px;
  margin: 0 auto 3rem;
  background: var(--card-background);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow-heavy);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(212, 175, 55, 0.2);
  animation: fadeInUp 0.8s ease-out;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
  transition: left 0.5s ease;
}

.section:hover::before {
  left: 100%;
}

.section:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(212, 175, 55, 0.2);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Section headers */
.section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.section h2::before,
.section h2::after {
  content: '✦';
  color: var(--primary-color);
  font-size: 1.5rem;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  animation: sparkle 2s ease-in-out infinite;
}

.section h2::before {
  left: -30px;
}

.section h2::after {
  right: -30px;
  animation-delay: 1s;
}

@keyframes sparkle {
  0%, 100% { opacity: 0.5; transform: translateY(-50%) scale(1); }
  50% { opacity: 1; transform: translateY(-50%) scale(1.2); }
}

/* Menu items */
.item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.item:last-child {
  border-bottom: none;
}

.item:hover {
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.1), transparent);
  padding-left: 1rem;
  border-radius: 10px;
  transform: translateX(5px);
}

.item span:first-child {
  font-weight: 500;
  color: var(--text-dark);
  flex: 1;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

.item:hover span:first-child {
  color: var(--secondary-color);
  font-weight: 600;
}

.item span:last-child {
  font-weight: 600;
  color: var(--accent-color);
  font-size: 1.2rem;
  min-width: 100px;
  text-align: right;
  transition: all 0.3s ease;
}

.item:hover span:last-child {
  color: var(--primary-color);
  transform: scale(1.1);
}



/* Mobile responsiveness */
/* Mobile responsiveness - Fixed bottom visibility */
@media (max-width: 1024px) {
  body {
    padding: 0 1rem 2rem; /* Added bottom padding */
  }
  
  .logo {
    height: 250px;
    left: 20px;
  }
}

@media (max-width: 768px) {
  body {
    padding: 0 0.5rem 3rem; /* Increased bottom padding */
    min-height: calc(100vh + 2rem); /* Ensure full height plus extra space */
  }
  
  .logo {
    position: relative;
    left: 0;
    top: 1rem;
    height: 120px;
    display: block;
    margin: 0 auto 1rem;
    animation: fadeIn 1s ease-out;
  }
  
  .menu-heading {
    font-size: clamp(2.5rem, 10vw, 4rem);
    margin: 1rem 0 2rem;
  }
  
  .section {
    margin: 0 1rem 2rem;
    padding: 1.5rem;
    border-radius: 15px;
  }
  
  .section:last-child {
    margin-bottom: 4rem; /* Extra margin for last section */
  }
  
  .section h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }
  
  .section h2::before,
  .section h2::after {
    font-size: 1.2rem;
    left: -20px;
    right: -20px;
  }
  
  .item {
    padding: 1.2rem 0;
  }
  
  .item span:first-child {
    font-size: 1rem;
    line-height: 1.4;
    padding-right: 1rem;
  }
  
  .item span:last-child {
    font-size: 1.1rem;
    min-width: 80px;
  }
}

@media (max-width: 600px) {
  body {
    padding: 0 0.5rem 4rem; /* Increased bottom padding */
    min-height: calc(100vh + 3rem);
  }
  
  .logo {
    height: 100px;
    margin: 0.5rem auto 1rem;
  }
  
  .menu-heading {
    font-size: 2.8rem;
    margin: 0.5rem 0 1.5rem;
  }
  
  .menu-heading::after {
    width: 150px;
    height: 2px;
  }
  
  .section {
    margin: 0 0.5rem 1.5rem;
    padding: 1.25rem;
  }
  
  .section:last-child {
    margin-bottom: 5rem; /* Extra margin for last section */
  }
  
  .section h2 {
    font-size: 1.8rem;
    letter-spacing: 1px;
    margin-bottom: 1.25rem;
  }
  
  .section h2::before,
  .section h2::after {
    display: none;
  }
  
  .item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 1rem 0;
  }
  
  .item span:first-child {
    font-size: 0.95rem;
    padding-right: 0;
    width: 100%;
  }
  
  .item span:last-child {
    align-self: flex-end;
    min-width: auto;
    font-size: 1.05rem;
    font-weight: 700;
  }
  
  .item:hover {
    padding-left: 0.5rem;
    transform: translateX(2px);
  }
}

@media (max-width: 480px) {
  body {
    padding: 0 0 5rem; /* Significant bottom padding */
    min-height: calc(100vh + 4rem);
  }
  
  .logo {
    height: 80px;
    margin: 0.5rem auto 0.75rem;
  }
  
  .menu-heading {
    font-size: 2.2rem;
    margin: 0.25rem 0 1.25rem;
    padding: 0 1rem;
  }
  
  .menu-heading::after {
    width: 100px;
  }
  
  .section {
    margin: 0 0.75rem 1.25rem;
    padding: 1rem;
    border-radius: 12px;
  }
  
  .section:last-child {
    margin-bottom: 6rem; /* Large margin for last section */
  }
  
  .section h2 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
  }
  
  .item {
    padding: 0.8rem 0;
  }
  
  .item span:first-child {
    font-size: 0.9rem;
    line-height: 1.3;
  }
  
  .item span:last-child {
    font-size: 1rem;
  }
  
  /* Adjust background particles for mobile */
  body::before {
    background-image: 
      radial-gradient(circle at 20% 80%, rgba(212, 175, 55, 0.05) 0%, transparent 40%),
      radial-gradient(circle at 80% 20%, rgba(255, 107, 53, 0.05) 0%, transparent 40%);
  }
}

@media (max-width: 375px) {
  body {
    padding: 0 0 6rem; /* Maximum bottom padding for small screens */
  }
  
  .menu-heading {
    font-size: 1.9rem;
  }
  
  .section {
    margin: 0 0.5rem 1rem;
    padding: 0.875rem;
  }
  
  .section:last-child {
    margin-bottom: 7rem; /* Extra large margin for very small screens */
  }
  
  .section h2 {
    font-size: 1.4rem;
  }
  
  .item span:first-child {
    font-size: 0.85rem;
  }
  
  .item span:last-child {
    font-size: 0.95rem;
  }
}

/* Landscape orientation fixes for mobile */
@media (max-width: 768px) and (orientation: landscape) {
  body {
    padding: 0 1rem 3rem; /* Adjust for landscape */
  }
  
  .logo {
    height: 60px;
    margin: 0.5rem auto;
  }
  
  .menu-heading {
    font-size: 2rem;
    margin: 0.5rem 0 1rem;
  }
  
  .section {
    margin: 0 1rem 1rem;
    padding: 1rem;
  }
  
  .section:last-child {
    margin-bottom: 3rem;
  }
  
  .section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .item {
    padding: 0.6rem 0;
  }
}

/* Additional fix for viewport height issues */
@media (max-width: 768px) {
  html {
    scroll-padding-bottom: 2rem;
  }
  
  /* Ensure content doesn't get cut off by browser UI */
  body {
    padding-bottom: max(3rem, env(safe-area-inset-bottom, 0) + 2rem);
  }
}
