*{
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: sans-serif;
}
body{
  width: 100%;
  min-height: 100vh;
  background-color: #fff;
}
.logo {
  font-size: 25px;
}
header{
  height: 60px;
  width: 100%;
  background: #222121;
  color: #fff;
  display: flex;
  align-items: center;
  position: fixed;
}
.container{
  width: 90%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}


/* ===== Menu Icon ===== */
.menu-icon {
  display: block;
  cursor: pointer;
  z-index: 1001;
  width: 30px;
  height: 22px;
  position: relative;
}
.menu-icon .bar {
  display: block;
  height: 3px;
  width: 100%;
  background-color: white;
  margin: 5px 0;
  transition: 0.4s;
  border-radius: 2px;
}
.menu-icon.active .bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-icon.active .bar:nth-child(2) {
  opacity: 0;
}
.menu-icon.active .bar:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ===== Nav Bar ===== */
/* ===== Nav Bar ===== */
.nav-bar {
  display: none;
  flex-direction: column;
  background-color: #222121;
  position: absolute;
  top: 60px;
  right: 0;  /* Navbar ko right side mein shift karna */
  width: 100%;
  padding: 20px;
  z-index: 1000;
  animation: slideDown 0.4s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
.nav-bar li {
  list-style: none;
  padding: 10px 0;
  text-align: center;
  font-weight: 550;
  color: #fff;
}
.nav-list:hover {
  cursor: pointer;
  text-decoration: underline;
  color: rgb(255, 118, 118);
}
.show-nav {
  display: flex !important;
}


/* Recipe Item */
h1{
  text-align: center;
  margin-top: 10px;
  font-size: 26px;
}
.grid-container{
  display: grid;
  grid-template-rows: auto auto;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  width: 100%;
  max-width: 600px;
  margin: auto;
}

.main-image{
  grid-column: span 4;
  height: 400px;
  margin-top: 20px;
}

.thumbnail{
  height: 100px;
}

img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ingredients{
  display: inline;
}
.no{
  display: inline;
}
.para{
  width: 600px;
  margin: 15px auto;
}

.ingredients-list{
  list-style-type: disc;
}
.recipe-container{
  display: flex;
}
h4, h2{
  margin-top: 10px;
  margin-bottom: 10px;
}
ul, ol{
  margin-left: 20px;
  margin-top: 8px;
}
ol li, ul li{
  margin-top: 8px;
  margin-right: 5px;
}
h2{
  margin-left: -8px;
}
footer{
  padding: 20px;
  background-color: #222121;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  margin-top: 10px;
}
.recipe-button{
  border: 2px solid rgb(0, 123, 255);
  width: 150px;
  height: 50px;
  margin: 15px auto;
  text-align: center;
  background-color: rgb(0, 123, 255);
  border-radius: 30px;
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.5);
}
/* .Making{
    margin-left: 8px;
} */

a{
  text-decoration: none;
  color: #fff;
}

/* Media Queries */
@media only screen and (min-width: 600px){
  .grid-container {
      grid-template-rows: auto auto;
      grid-template-columns: repeat(4, 1fr);
    }
  
    .main-image {
      grid-column: span 4;
    }
    h3{
      display: inline;
      font-weight: bold;
      font-size: 22px;
    }
    .time{
      display: inline;
    }
    .div1{
      display: flex;
      justify-content: space-evenly;
      margin-left: 250px;
      margin-right: 250px;
      margin-top: 25px;
    }
    .thumbnail{
      height: 90px;
    }
    .recipe-container{
      width: 80%;
      margin: 0 auto;
    }
    .ingredients{
      width: 50%;
    }
    .process{
      margin-left: 12rem;
    }
   .Making{
      margin-left: 100px;
   }

  /* Navbar for larger screens */
  .menu-icon {
    display: none;
  }
  .nav-bar {
    display: flex !important;
    flex-direction: row;
    position: static;
    background: none;
    padding: 0;
    justify-content: flex-end;
  }
  .nav-bar li {
    margin-right: 20px;
  }
}

@media only screen and (max-width: 600px){
  .grid-container {
    grid-template-rows: auto auto;
    grid-template-columns: repeat(4, 1fr);
  }

  .main-image {
    grid-column: span 4;
    height: 200px;
    width: 340px;
    margin: 0 auto;
  }
  h3{
    display: inline;
    font-weight: bold;
    margin-left: 5px;
    font-size: 25px;
  }
  .time{
    display: inline;
  }
  .div1{
    flex-direction: column;
  }
  .ingredients{
    display: inline;
  }
  .no{
    display: inline;
  }
  .para{
    width: 340px;
    margin: 15px auto;
  }
  h3{
    font-size: 18px;
  }
  .thumbnail{
    width: 80px;
    height: 60px;
  }
  .thumbnail1{
    margin-left: 5px;
  }
  .thumbnail4{
    margin-right: 5px;
  }
  .recipe-container{
    margin-left: 7px;
  }
  .recipe-container{
    flex-direction: column;
    margin-left: 25px;
  }
  .recipe-button{
    border: 2px solid rgb(0, 123, 255);
    width: 100px;
    height: 40px;
    font-size: 15px;
    margin: 15px auto;
    text-align: center;
    background-color: rgb(0, 123, 255);
    border-radius: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
  }
}

#scrollToTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 100;
  display: none;
  background-color: #f44336;
  color: white;
  border: none;
  padding: 12px 18px;
  font-size: 20px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
  transition: background-color 0.3s ease;
}

#scrollToTopBtn:hover {
  background-color: #d32f2f;
}




/* Positioning for dropdown */
.has-dropdown {
  position: relative;
  cursor: pointer;
}

.dropdown-toggle::after {
  content: " ▼";
  font-size: 12px;
}

/* Dropdown menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #333;
  border-radius: 5px;
  padding: 0;
  margin-top: 5px;
  list-style: none;
  min-width: 150px;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  pointer-events: none;
}

/* Show dropdown on active */
.has-dropdown.active .dropdown-menu {
  opacity: 1;
  max-height: 500px;
  pointer-events: auto;
}

/* Dropdown links */
.dropdown-menu li a {
  display: block;
  padding: 10px 15px;
  color: #fff;
  text-decoration: none;
  transition: background 0.3s;
}

.dropdown-menu li a:hover {
  background-color: #555;
}

.nav-list a{
  text-decoration: none;
  color: #ffff;
}



.about {
  background-color: #fefefe;
  padding: 60px 20px;
}

.about-container {
  max-width: 1100px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.about-text {
  flex: 1 1 55%;
}

.about-text h2 {
  font-size: 32px;
  margin-bottom: 20px;
  color: #333;
}

.about-text p {
  font-size: 18px;
  line-height: 1.7;
  color: #555;
  margin-bottom: 15px;
}

.about-img {
  flex: 1 1 40%;
}

.about-img img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}




html {
  scroll-behavior: smooth;
}


#contact{
  padding: 60px 20px;
  max-width: 900px;
  margin: auto;
}

#contact form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

input, textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

button {
  width: fit-content;
  padding: 10px 20px;
  background-color: #e67e22;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

button:hover {
  background-color: #cf711f;
}





/* recipe section */
.recipe-section {
  padding: 60px 0px;
  max-width: 900px;
  margin: auto;
}
/* .recipe-section h2 {
  font-size: 32px;
  margin-bottom: 20px;
  color: #333;
} */