
*{
    /* background-color: rgb(229, 217, 213); */
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    
}

body{
    /* background: linear-gradient(135deg, #1e1e1e, #3a2f2f); */
    background: linear-gradient(135deg, #1e1e1e, #3a2f2f);
}
.navbar{
    /* border: 2px solid black; */
    width: 100vw;
    min-height: 50px;
    padding: 15px 40px;
    background-color: rgb(41, 40, 39);
    display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 60px;
  background: #1e1e1e;
  position: sticky;
  top: 0;
  z-index: 1000;
    
    
}
.logo{
    width: 350px;
     /* height: 60px; */
    background-color: transparent;
    /* border: 2px solid red; */
}
.nav-links{
    display: flex;
    gap: 30px;
    list-style: none;
    /* border: 2px solid red; */
    padding-right: 150px;
}
.nav-links a {
  text-decoration: none;
  color: #ccc;
  font-weight: 500;
  transition: 0.3s;
  font-size: 25px;
  /* border: 2px solid red; */
   font-family: "Poppins", sans-serif;
}
.nav-links a:hover {
  color: #ff6b3d;
}

.hero h1{
    font-family: "Montserrat", sans-serif;
    font-size: 3rem;
  margin-bottom: 10px;
  animation: fadeIn 1s ease;

}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.hero p{
    color: #bbb;
    margin-bottom: 20px;
}


.hero{
    /* border: 2px solid red; */
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    line-height: 1.7;
     height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  /* background: #5b5454; */
  background: linear-gradient(135deg, #1e1e1e, #3a2f2f);
  color: white;
  text-align: center;
}


.search-box{
     /* border: 2px solid red; */
     display: flex;
}
.search-box input{
padding: 12px;
  width: 300px;
  border: none;
  outline: none;
  border-radius: 6px 0 0 6px;
    
}
.search-box button{
    padding: 12px 20px;
   background: #ff6b3d;
   border: none;
   color: white;
   cursor: pointer;
   border-radius: 0 6px 6px 0;
  transition: 0.3s;

}
.search-box button:hover {
  background: #ff4c1e;
}

.meals-2{
     background: #121212;
     color: white;
     background: #121212;
    padding: 40px 60px;

     
}

.meals-2 h2{
     font-family: "Poppins", sans-serif;
     /* border: 2px solid red; */
     padding-left: 10rem;
     padding-left: 60px;
    padding-top: 20px;
}
.meal-container{
     display: grid;
    /* grid-template-columns: repeat(3, 1fr);
   justify-content: center; */
   grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));

   gap: 25px;
   padding: 40px 60px;

}
.meal-card {
  background: #2a2a2a;
  border-radius: 12px;
  overflow: hidden;
  transition: 0.3s;
  cursor: pointer;
  /* border: 2px solid red; */
  /* width: 280px; */
  width: 100%;
  position: relative;
  
}

.meal-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.meal-info {
  padding: 15px;
  text-align: center;
}

.meal-info h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
  font-family: "Poppins", sans-serif;
}

.meal-info button {
  padding: 8px 16px;
  background: #ff6b3d;
  border: none;
  color: white;
  border-radius: 6px;
  cursor: pointer;
  font-family: "Poppins", sans-serif;
}

.meal-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}
.menu-btn {
  display: none;
}

.fav-btn{
 position: absolute;
  top: 10px;
  right: 10px;

  background: rgba(0, 0, 0, 0.6);
  border: none;
  border-radius: 50%;

  width: 40px;
  height: 40px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 18px;
  cursor: pointer;

  transition: all 0.3s ease;

}

.fav-btn:hover {
  background: #ff5a5a;
  transform: scale(1.1);
  box-shadow: 0 0 10px rgba(255, 90, 90, 0.6);
}

@media (max-width: 768px) {

  .navbar {
    flex-direction: column;
    padding: 15px 20px;
  }

  .logo {
    width: 200px;
  }

  .nav-links {
    flex-direction: column;
    gap: 10px;
    padding: 0;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .search-box input {
    width: 200px;
  }

   .meal-container {
    grid-template-columns: 1fr;
    padding: 20px;
  }
  .meal-card {
  width: 100%;
  max-width: 350px;
  margin: 0 auto;
}
.meal-card img {
  height: 180px;
}
.meals-2 h2 {
  padding-left: 20px;
}
.navbar {
    flex-direction: row;
    padding: 10px 15px;
  }

  .logo {
    width: 160px;
  }

  
    .nav-links {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;

  background: #1e1e1e;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);

  flex-direction: column;
  align-items: center;

  max-height: 0;
  overflow: hidden;

  opacity: 0;
  transform: translateY(-10px);
  transition: 
    max-height 0.4s ease,
    opacity 0.3s ease,
    transform 0.3s ease;
}
.nav-links a {
  font-size: 18px;
  font-weight: 500;
}

.nav-links li {
  padding: 14px 0;
}
.nav-links.active {
    display: flex;
 max-height: 300px;
  opacity: 1;
  transform: translateY(0); 
}
  
  .menu-btn {
    display: block;
    font-size: 40px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
  }

}

@media (min-width: 769px) and (max-width: 1024px) {

  .meal-container {
    grid-template-columns: repeat(2, 1fr);
  }

}








