* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transition: all 0.3s ease-in-out;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: linear-gradient(to right, #eef2ff, #f8f9ff);
  color: #333;
  line-height: 1.6;
}

header {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  padding: 18px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.main-title {
  text-align: center;
  font-size: 48px;
  font-weight: 800;
  margin-top: 20px;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: linear-gradient(135deg, #2c2c2c, #4a2c2a, #1a1a1a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  transition: all 0.4s ease;
  cursor: pointer;
}

.main-title:hover {
  transform: scale(1.08);
  letter-spacing: 4px;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.6), 0 0 20px rgba(50, 50, 50, 0.5);
}

.main-heading {
  text-align: center;
  font-size: 40px;
  font-weight: bold;
  margin-top: 15px;  
  letter-spacing: 1px;
  text-transform: uppercase;
  background: linear-gradient(135deg, #1f1f1f, #c9a44c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: all 0.4s ease;
  cursor: pointer;
}

.main-heading:hover {
  letter-spacing: 3px;
  transform: scale(1.08);
  text-shadow: 0 8px 20px rgba(102, 126, 234, 0.6);
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-top: 15px;
  flex-wrap: wrap;
}

nav ul li a {
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  color: white;
  padding: 8px 14px;
  border-radius: 20px;
  position: relative;
}

nav ul li a:hover {
  background: linear-gradient(135deg, #89f7fe, #66a6ff);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.25);
}

nav ul li a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background: #fff;
  transform: translateX(-50%);
  transition: all 0.3s ease;
}

nav ul li a:hover::after {
  width: 70%;
}

nav ul li a:active {
  transform: scale(0.95);
}

.intro {
  text-align: center;
  padding: 40px 20px 10px;   
}

.search-bar {
  padding: 10px;
  width: 50%;
  border: 1px solid #ddd;
  border-radius: 25px;
  outline: none;
  margin-top: 5px;  
}

.search-bar:focus {
  border-color: #667eea;
  box-shadow: 0 0 8px rgba(102,126,234,0.3);
}

.para {
  max-width: 700px;
  margin: 40px auto 15px;   
  padding: 20px 25px;
  font-size: 19px;
  line-height: 1.8;
  color: #444;
  background: #f3f4ff;
  border-left: 5px solid #667eea;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

.para:hover {
  transform: translateY(-8px) scale(1.02);
  background: linear-gradient(135deg, #eef2ff, #e0e7ff);
  color: #222;
  box-shadow: 0 12px 30px rgba(102, 126, 234, 0.3);
  border-left: 5px solid #764ba2;
}

.recipe-table {
  width: 95%;
  margin: 30px auto;
  border-collapse: collapse;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.recipe-table th, 
.recipe-table td {
  padding: 15px;
  text-align: left;
}

.recipe-table th {
  background: #5b86e5;
  color: white;
  text-transform: uppercase;
  font-size: 14px;
}

.recipe-table tr:nth-child(even) {
  background: #f9f9f9;
}

.recipe-table tr:hover {
  background: #e0e7ff;
  transform: scale(1.01);
}

.recipe-img {
  width: 100%;
  max-width: 500px;
  margin: 20px auto;
  border-radius: 12px;
  display: block;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.recipe-img:hover {
  transform: scale(1.05);
}

.featured {
  padding: 10px 20px 40px;
}

.card-container {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
}

.card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  width: 260px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 12px 25px rgba(0,0,0,0.25);
}

.card img {
  width: 100%;
}

.card h3 {
  margin: 10px 0;
}

.card p {
  font-size: 14px;
  padding: 0 10px;
}

.btn {
  display: inline-block;
  margin: 15px 0;
  padding: 10px 18px;
  background: linear-gradient(135deg, #36d1dc, #5b86e5);
  color: white;
  text-decoration: none;
  border-radius: 25px;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.3);
}

footer {
  background: #222;
  color: white;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
}

.subheading-marquee {
  width: 300px;
  overflow: hidden;
  margin: 20px auto;
}

.subheading-marquee span {
  display: inline-block;
  white-space: nowrap;
  font-size: 24px;
  font-weight: 600;
  color: #5b86e5;
  animation: scroll-sub 8s linear infinite;
}

.subheading-marquee:hover span {
  animation-play-state: paused;
}

@keyframes scroll-sub {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

@media (max-width: 576px) {
  nav ul {
    flex-direction: column;
    gap: 10px;
  }

  .search-bar {
    width: 90%;
  }

  .card {
    width: 90%;
  }

  .main-title {
    font-size: 35px;
  }
}

@media (min-width: 577px) and (max-width: 768px) {
  .card {
    width: 45%;
  }

  .search-bar {
    width: 70%;
  }
}

@media (min-width: 769px) and (max-width: 992px) {
  .card {
    width: 30%;
  }
}

@media (max-width: 768px) {
  .recipe-table {
    display: block;
    overflow-x: auto;
  }
}