
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}


.background {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #ff9a9e, #fad0c4, #fbc2eb, #a1c4fd);
  background-size: 600% 600%;
  animation: gradientMove 15s ease infinite;
  z-index: -2;
  overflow: hidden;
}

@keyframes gradientMove {
  0% {background-position: 0% 50%;}
  50% {background-position: 100% 50%;}
  100% {background-position: 0% 50%;}
}

.food-icon {
  position: absolute;
  font-size: 2.5rem;
  opacity: 0.15;
  animation: floatUp 18s linear infinite;
  z-index: -1;
}

@keyframes floatUp {
  0% {transform: translateY(100vh) rotate(0deg); opacity: 0;}
  20% {opacity: 0.25;}
  50% {opacity: 0.25;}
  100% {transform: translateY(-20vh) rotate(360deg); opacity: 0;}
}

header {
  text-align: center;
  padding: 60px 20px 30px;
  color: white;
  animation: fadeIn 1.5s ease-in-out;
}

.title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.subtitle {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.search-box {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.15);
  padding: 10px;
  border-radius: 50px;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.search-box input {
  padding: 12px 15px;
  border: none;
  outline: none;
  width: 250px;
  border-radius: 50px 0 0 50px;
  font-size: 1rem;
}

.search-box button {
  padding: 12px 20px;
  border: none;
  background: #ff7043;
  color: white;
  border-radius: 0 50px 50px 0;
  cursor: pointer;
  transition: background 0.3s ease;
}

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

/* Recipe Section */
.section-title {
  text-align: center;
  margin: 30px 0;
  font-size: 1.8rem;
  color: #333;
  animation: fadeIn 2s ease-in-out;
}

.recipe-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  padding: 20px;
}

.recipe-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: fadeUp 0.8s ease;
}

.recipe-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.25);
}

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

.recipe-info {
  padding: 15px;
}

.recipe-info h3 {
  margin: 0;
  font-size: 18px;
  color: #ff7043;
}


footer {
  text-align: center;
  padding: 15px;
  background: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  margin-top: 20px;
}


@keyframes fadeIn {
  from {opacity: 0; transform: translateY(-20px);}
  to {opacity: 1; transform: translateY(0);}
}

@keyframes fadeUp {
  from {opacity: 0; transform: translateY(20px);}
  to {opacity: 1; transform: translateY(0);}
}
