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

body {
  color: #222;
  min-height: 100vh;
  background: linear-gradient(-45deg, #f5fde3, #e6ffe9, #e8fded, #ffffff);
  background-size: 400% 400%;
  animation: gradientBG 12s ease infinite;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

/* ---------------- Heading ---------------- */
.heading {
  text-align: center;
  margin: 2rem 1rem 1rem;
}

.heading h1 {
  text-align: center;
  margin-top: 20px;
  font-size: 4rem;
  font-weight: 800;
  color: #376736;
  margin-bottom: 2rem;
  animation: fadeInUp 1s cubic-bezier(0.23, 1, 0.32, 1) 0.4s both;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.heading p {
  text-align: center;
  color: #444;
  margin-top: 0.5rem;
  font-size: 1.3rem;
  margin-bottom: 2.5rem;
  animation: fadeInUp 1s cubic-bezier(0.23, 1, 0.32, 1) 0.6s both;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 400;
  line-height: 1.6;
}

/* ---------------- Cards Section ---------------- */
.cards {
  display: grid;
  z-index: 2;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 2rem auto;
  padding: 0 2rem;
  width: 100%;
  animation: fadeInUp 3s cubic-bezier(0.23, 1, 0.32, 1) both;
}

.card {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-6px);
}

.card-header {
  position: relative;
  height: 250px;
  background: #eee;
}

.recipe-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #ff9800;
  color: #fff;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: bold;
}

.card-body {
  padding: 1rem 1.2rem 1.5rem;
  height: 290px;
}

.card-body h3 {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
  color: #376736;
}

.meta {
  font-size: 0.9rem;
  color: #555;
  display: flex;
  gap: 1.2rem;
  margin-bottom: 0.7rem;
}

.desc {
  font-size: 0.95rem;
  color: #444;
  margin-bottom: 0.8rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.4rem;
  margin-top: 1.4rem;
}

.tag {
  background: #e9f5e9;
  color: #347a34;
  padding: 4px 10px;
  font-size: 0.8rem;
  border-radius: 8px;
}

.view-link {
  display: inline-block;
  font-weight: 600;
  color: #e64a19;
  text-decoration: none;
  transition: 0.3s;
}

.view-link:hover {
  color: #bf360c;
}

/* ---------------- Buttons ---------------- */
.btn-container {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s cubic-bezier(0.23, 1, 0.32, 1) 0.6s both;
  margin-bottom: 6rem;
}

.btn {
  padding: 1.3rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  margin: 10px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-outline {
  background: transparent;
  border: 2px solid #376736;
  color: #376736;
}

.btn-outline:hover {
  background: #376736;
  color: white;
}

.btn-primary {
  background: linear-gradient(to right, #ff9800, #ffb74d);
  color: #fff;
  box-shadow: 0 4px 12px rgba(255, 152, 0, 0.4);
  background: #ff7b00;
  padding: 15px 30px;
  font-size: 18px;
}

.btn-primary:hover {
  background: linear-gradient(to right, #f57c00, #ff9800);
  background: #ff9933;
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(255, 152, 0, 0.5);
}

.floating-food {
  position: fixed;
  font-size: 2rem;
  opacity: 0.6;
  animation: float 12s infinite linear;
}
.floating-food:nth-child(1) {
  top: 20%;
  left: 10%;
  animation-duration: 15s;
}
.floating-food:nth-child(2) {
  top: 30%;
  right: 15%;
  animation-duration: 18s;
}
.floating-food:nth-child(3) {
  top: 50%;
  left: 25%;
  animation-duration: 14s;
}
.floating-food:nth-child(4) {
  top: 70%;
  right: 20%;
  animation-duration: 20s;
}
.floating-food:nth-child(5) {
  top: 80%;
  left: 5%;
  animation-duration: 16s;
}
.floating-food:nth-child(6) {
  top: 40%;
  right: 30%;
  animation-duration: 22s;
}

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

.recipe-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #ff9800;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
}

/* recipe link */

.recipe-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(
    135deg,
    var(--primary-green) 0%,
    var(--secondary-green) 100%
  );
  transition: width 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  border-radius: 2px;
}

.recipe-link:hover::after {
  width: calc(100% - 2rem);
}

.recipe-link:hover {
  color: #376736;
  transform: translateX(3px);
}

.link-arrow {
  transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.recipe-link:hover .link-arrow {
  transform: translateX(5px);
}
