/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fafafa;
}

/* Header Styles */
header {
  background-color: #fff;
  box-shadow: 0 2px 15px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: bold;
  color: #2c3e50;
  text-decoration: none;
  transition: color 0.3s ease;
}

.logo:hover {
  color: #e74c3c;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  align-items: center;
}

.recipes-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.search-icon {
  width: 18px;
  height: 18px;
}

.recipes-link:hover .search-icon {
  transform: scale(1.1);
}


.category-nav ul {
  display: flex;
  list-style: none;
  justify-content: center;
  gap: 13rem;
  padding: 0.5rem;
  border-top: 1px solid #000000;
  border-bottom: 1px solid #000000;
}

.nav-links a,
.category-nav a {
  text-decoration: none;
  color: #2c3e50;
  font-weight: 500;
  transition: color 0.3s ease;
  font-size: 1.1rem;
}

.nav-links a:hover,
.category-nav a:hover {
  color: #e74c3c;
}

/* Food Grid Styles */
.food-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  padding: 3rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.food-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.food-item:hover {
  transform: translateY(-5px);
}

.food-image {
  position: relative;
  aspect-ratio: 4/3;
}

.food-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.food-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.4));
  padding: 1.5rem;
  color: #fff;
  text-align: center;
}

.food-overlay h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  margin: 0;
}

/* Footer Styles */
footer {
  background-color: #000000;
  padding: 3rem 2rem;
  margin-top: 2rem;
  text-align: center;
}

.footer-nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-nav a {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: #e74c3c;
}

.social-media {
  margin-bottom: 2rem;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.social-icon {
  width: 28px;
  height: 28px;
  color: white;
}

.social-icon:hover {
  color: #e74c3c;
}

.copyright {
  color: #fff;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Media Queries */
@media screen and (max-width: 768px) {
  .food-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .category-nav ul {
    flex-wrap: wrap;
    gap: 1.5rem;
  }
  
  .nav-links {
    gap: 1.5rem;
  }
}

@media screen and (max-width: 480px) {
  .food-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .nav-links {
    display: none;
  }

  .category-nav ul {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  
  .top-nav {
    padding: 1rem;
  }
  
  .logo {
    font-size: 1.5rem;
  }
}