:root {
  --primary-color: #fce752;
  --bg-color: #f7f8fc;
  --card-bg: #ffffff;
  --text-dark: #202124;
  --text-muted: #70757a;
  --text-price: #888888;
  --primary-font: 'Poppins', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-color);
  font-family: var(--primary-font);
  min-height: 100vh;
  overflow-x: hidden;
}

#app {
  width: 100%;
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* ====== Splash Screen ====== */
#splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, #FFEFCA 0%, #FFCC00 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  overflow: hidden;
  transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.splash-burger {
  position: absolute;
  top: -5%;
  right: -10%;
  width: 30vh;
  max-width: 350px;
  object-fit: cover;
  transform: rotate(15deg);
}

.splash-taco {
  position: absolute;
  bottom: -5%;
  left: -10%;
  width: 30vh;
  max-width: 350px;
  object-fit: cover;
  transform: rotate(-10deg);
}

.img-float {
  animation: float 4s ease-in-out infinite;
}

.img-float-delayed {
  animation: float 4s ease-in-out 1s infinite;
}

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

.splash-center {
  position: relative;
  text-align: center;
}

.qr-code {
  width: 25vh;
  max-width: 220px;
  height: 25vh;
  max-height: 220px;
  object-fit: contain;
  opacity: 0.2;
}

.logo-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: min(10vw, 42px);
  font-weight: 800;
  color: var(--text-dark);
  white-space: nowrap;
}

/* ====== Main Content ====== */
#main-content {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100vh;
  background-color: var(--bg-color);
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

header {
  padding: 30px 20px 20px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--card-bg);
  box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.logo {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.chef-icon {
  width: 28px;
  height: 28px;
}

/* ====== Hero Section ====== */
.hero-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #FFEFCA 0%, #FFCC00 100%);
  border-radius: 0;
  margin: 0 0 30px 0;
  padding: 40px 5%;
  box-shadow: 0 10px 20px rgba(255, 204, 0, 0.2);
  overflow: hidden;
  position: relative;
}

.hero-content {
  flex: 1;
  z-index: 2;
}

.hero-content h1 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 8px;
  line-height: 1.2;
}

.hero-content p {
  font-size: 13px;
  color: var(--text-dark);
  font-weight: 500;
  opacity: 0.8;
}

.hero-image {
  width: 120px;
  height: 120px;
  object-fit: contain;
  z-index: 2;
  transform: scale(1.2) translateY(5px) rotate(-10deg);
  transition: transform 0.3s ease;
}

.hero-section:hover .hero-image {
  transform: scale(1.3) translateY(0) rotate(0deg);
}

/* ====== Categories ====== */
.categories-container {
  overflow-x: auto;
  padding: 20px;
  background-color: var(--card-bg);
  -ms-overflow-style: none; 
  scrollbar-width: none;
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
  display: flex;
  justify-content: center;
}

.categories-container::-webkit-scrollbar {
  display: none;
}

.categories {
  display: flex;
  list-style: none;
  gap: 12px;
  padding-right: 20px;
  margin: 0 auto;
}

.category-tab {
  padding: 10px 24px;
  background-color: var(--bg-color);
  color: var(--text-dark);
  font-weight: 700;
  font-size: 14px;
  border-radius: 30px;
  border: 1px solid #eee;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.category-tab:hover {
  background-color: #fdfdfd;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.category-tab.active {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  box-shadow: 0 4px 10px rgba(252, 231, 82, 0.4);
}

.category-divider {
  display: none;
}

@media screen and (max-width: 768px) {
  .category-divider {
    display: block;
    height: 1px;
    background-color: #e8e8e8;
    margin: 0 20px 20px 20px;
  }
}

/* ====== Menu ====== */
.menu-container {
  flex: 1;
  padding: 30px 20px;
  scroll-behavior: smooth;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.category-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 24px;
  text-transform: capitalize;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.card {
  background-color: var(--card-bg);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 15px rgba(0,0,0,0.04);
  border: 1px solid #f0f0f0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: slideUp 0.4s ease forwards;
  opacity: 0;
  transform: translateY(20px);
  cursor: pointer;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.08);
}

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

.card-img-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 16px;
  min-height: 120px;
}

.card-img {
  max-width: 100%;
  max-height: 120px;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.1));
  transition: transform 0.3s ease;
}

.card:hover .card-img {
  transform: scale(1.05);
}

.card-info {
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.card-price {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-price);
}

/* ====== Footer ====== */
.app-footer {
  background-color: #2b2b2b;
  color: #ffffff;
  padding: 40px 20px 20px 20px;
  margin-top: auto;
  text-align: center;
}

.footer-content {
  max-width: 600px;
  margin: 0 auto;
}

.footer-logo {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 12px;
}

.footer-text {
  font-size: 14px;
  color: #aaaaaa;
  line-height: 1.6;
  margin-bottom: 30px;
}

.footer-bottom {
  border-top: 1px solid #444444;
  padding-top: 20px;
  font-size: 12px;
  color: #888888;
}

/* === Desktop Specific Adjustments === */
@media screen and (min-width: 768px) {
  .hero-section {
    max-width: 100%;
    margin: 0 0 40px 0;
    padding: 80px 10%;
    border-radius: 0;
  }
  
  .hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
  }
  
  .hero-content p {
    font-size: 20px;
  }
  
  .hero-image {
    width: 300px;
    height: 300px;
    transform: scale(1.2) translateY(0) rotate(-10deg);
  }

  .categories-container {
    justify-content: center;
  }
  
  .grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
  }
  
  .category-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
  
  .card-img-container {
    min-height: 180px;
  }
  
  .card-img {
    max-height: 160px;
  }
  
  .card-title {
    font-size: 16px;
  }
  
  .card-price {
    font-size: 15px;
  }

  .app-footer {
    padding: 60px 40px 30px 40px;
  }
}

/* === Mobile Specific Adjustments === */
@media screen and (max-width: 480px) {
  header {
    justify-content: flex-start;
  }
  
  .categories-container {
    justify-content: flex-start;
  }
  
  .category-tab {
    padding: 8px 16px;
    font-size: 12px;
  }
  
  .card {
    padding: 12px;
    border-radius: 16px;
  }
  
  .card-img-container {
    min-height: 90px;
    margin-bottom: 10px;
  }
  
  .card-img {
    max-height: 80px;
  }
  
  .card-title {
    font-size: 12px;
  }
  
  .card-price {
    font-size: 11px;
  }
}
