/* ======================= */
/* Global Reset & Fonts */
/* ======================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background-color: bisque;
  color: #333;
  line-height: 1.5;
}

/* ======================= */
/* Header / Navbar */
/* ======================= */
header {
  background: linear-gradient(90deg, #ff4500, #ff7f50);
  color: #fff;
  padding: 10px 20px;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
}

.location {
  font-size: 0.9rem;
}

.search-container input {
  padding: 8px 12px;
  border-radius: 20px;
  border: none;
  width: 250px;
  max-width: 100%;
}

.user-actions .cart-icon {
  position: relative;
  font-size: 1.2rem;
  text-decoration: none;
  color: #fff;
}

.cart-count {
  position: absolute;
  top: -5px;
  right: -10px;
  background: #fff;
  color: #ff4500;
  border-radius: 50%;
  font-size: 0.8rem;
  padding: 2px 6px;
  font-weight: bold;
}

/* ======================= */
/* Hero Section */
/* ======================= */
.hero {
  position: relative;
  text-align: center;
  padding: 80px 20px;
  color: #fff;
  overflow: hidden;
  background: url("https://images.unsplash.com/photo-1600891964599-f61ba0e24092?auto=format&fit=crop&w=1500&q=80")
    no-repeat center/cover;
  background-size: cover;
  animation: zoom 20s ease-in-out infinite alternate;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.cta-button {
  display: inline-block;
  background: #ff4500;
  color: #fff;
  padding: 12px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

.cta-button:hover {
  background: #ff7f50;
  transform: scale(1.05);
}

/* ======================= */
/* Section Titles */
/* ======================= */
.section-title {
  text-align: center;
  font-size: 2rem;
  margin: 40px 0 20px;
  color: #333;
}

/* ======================= */
/* Grid Layouts */
/* ======================= */
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* ----------------------- */
/* Categories Section */
/* ----------------------- */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.category-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  padding-bottom: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.category-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.category-card h3 {
  margin: 10px 0 5px;
}

.category-card p,
.category-card .price-rating {
  font-size: 0.9rem;
  color: #666;
}

/* ===== RESTAURANTS SECTION ===== */
.restaurants {
  padding: 60px 20px;
  background-color: bisque;
}

.restaurants .section-title {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 40px;
  color: #333;
}

.restaurants-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.restaurant-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.restaurant-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.restaurant-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.restaurant-card h3 {
  margin: 15px 0 5px 0;
  font-size: 1.3rem;
  color: #333;
}

.price-rating {
  display: block;
  font-weight: 500;
  margin-bottom: 10px;
  color: #ff4500;
}

.restaurant-card p {
  padding: 0 10px 15px 10px;
  font-size: 0.95rem;
  color: #666;
}

/* ----------------------- */
/* Dishes Section */
/* ----------------------- */
.dishes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.dish-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dish-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.dish-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.dish-card h3 {
  margin: 10px 0 5px;
}

.dish-card p,
.dish-card .price-rating {
  font-size: 0.9rem;
  color: #666;
}

/* ----------------------- */
/* Desserts Section */
/* ----------------------- */
.desserts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.dessert-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dessert-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.dessert-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.dessert-card h3,
.dessert-card .price-rating {
  margin: 10px 0;
  font-size: 0.9rem;
  color: #333;
}

/* ----------------------- */
/* Offers Section */
/* ----------------------- */
.offers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.offer-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.offer-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.offer-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.offer-card h3,
.offer-card .price-rating {
  margin: 10px 0;
  font-size: 0.9rem;
  color: #333;
}

/* ======================= */
/* Footer Section */
/* ======================= */
footer {
  background: #222;
  color: #fff;
  padding: 40px 20px 20px;
  margin-top: 50px;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}

.footer-column h3 {
  margin-bottom: 15px;
  font-size: 1.1rem;
  color: #ff4500;
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.footer-column ul li a {
  color: #fff;
  text-decoration: none;
}

.footer-column ul li a:hover {
  color: #ff7f50;
}

.footer-bottom {
  text-align: center;
  margin-top: 20px;
  font-size: 0.85rem;
  color: #aaa;
}

/* ======================= */
/* Responsive Media Queries */
/* ======================= */
@media (max-width: 1024px) {
  .header-container {
    flex-direction: column;
    gap: 10px;
  }
  .search-container input {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .categories-grid,
  .restaurant-grid,
  .dishes-grid,
  .desserts-grid,
  .offers-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .cta-button {
    padding: 10px 20px;
  }
}
@keyframes appear {
  0% {
    opacity: 0;
    scale: 0.3;
  }
  100% {
    opacity: 1;
    scale: 1;
  }
}
section {
  animation: appear ease-in-out;
  animation-range: entry 0% cover 35%;
  animation-timeline: view();
}
