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

/* ===== 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;
}

/* ===== Hero Section ===== */
.hero {
    width: 100%;
    height: auto;
    background: url(heo-image.jpg) no-repeat center/cover;
    color: #fff;
    text-align: center;
    padding: 140px 0;
    margin-bottom: 20px;
}
.hero h2 {
    font-size: 36px;
    margin-bottom: 10px;
}
.hero p {
    font-size: 20px;
    margin-bottom: 10px;
}
.search-box {
    max-width: 550px;
    margin: 15px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}
.search-box input {
    width: 70%;
    padding: 10px;
    outline: none;
    border: 1px solid rgb(245, 37, 9);
    border-radius: 5px 0 0 5px;
    font-size: 1rem;
}
.search-box button {
    text-decoration: none;
    padding: 10px;
    border: 0;
    border-radius: 0 5px 5px 0;
    font-size: 1rem;
    background: rgb(245, 37, 9);
    color: #fff;
    cursor: pointer;
}

/* ===== Recipes ===== */
.recipes {
    padding: 20px 0;
}
.recipes h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 28px;
}
.recipe-section {
    width: 90%;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}
.recipe-card {
    background: #fff;
    width: 270px;
    flex-direction: column;
    display: flex;
    border-radius: 8px;
    border: 1px solid #a8a5a5;
    overflow: hidden;
  }
  .recipe-card:hover {
  /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5); */
  box-shadow: 0 10px 16px rgba(0,0,0,0.5);
  transition: box-shadow 0.3s;
    /* transform: scale(1.05); */
}
.recipe-card img {
    width: 95%;
    margin: 6px auto 0;
    border-top-right-radius: 8px;
    border-top-left-radius: 8px;
}
.recipe-card h2, .recipe-card p {
    padding: 15px;
    font-size: 18px;
}
.recipe-card a {
    display: block;
    text-align: center;
    text-decoration: none;
    background: #333;
    color: #fff;
    padding: 15px 0;
    cursor: pointer;
}

/* ===== Footer ===== */
footer {
    background: #333;
    color: #fff;
    padding: 20px 0;
    text-align: center;
}

/* ===== Media Queries ===== */
@media only screen and (min-width: 600px) {
    .menu-icon {
        display: none;
    }
    .nav-bar {
        display: flex !important;
        flex-direction: row;
        position: static; /* Static position to make it inline */
        background: none;
        padding: 0;
        justify-content: flex-end; /* This will align the navbar to the right */
    }
    .nav-bar li {
        margin-right: 20px;
    }
}
@media only screen and (max-width: 600px) {
    .hero h2 {
        font-size: 28px;
    }
    .hero p {
        font-size: 15px;
    }
}





#scrollToTopBtn {
    position: fixed;
    bottom: 30px;    /* distance from bottom */
    right: 30px;     /* distance from right */
    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;
}



  /* Recipe Grid */
  #recipes-categories {
    padding: 40px 20px;
    background: #f0ebeb;
    max-width: 900px;
    margin: auto;
  }
  
  .cat-recipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 20px;
  }
  
  .card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: box-shadow 0.3s;
  }
  
  .card:hover {
    box-shadow: 0 10px 16px rgba(0,0,0,0.1);
  }

  .card a {
    display: block;
    text-align: center;
    text-decoration: none;
    background: #333;
    color: #fff;
    padding: 5px 0;
    cursor: pointer;
    border-radius: 5px;
    width: 85px;
    margin: 0 auto;
    margin-top: 17px;
  }

  .recipe-card img{
    height: 170px;
  }




  .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;
  }



  .modal {
  display: none; 
  position: fixed; 
  z-index: 999; 
  left: 0;
  top: 0;
  width: 100%; 
  height: 100%; 
  background-color: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
}


/* pop up messege start*/
.modal-content {
  background-color: white;
  padding: 5px;
  border-radius: 12px;
  max-width: 510px;
  height: auto;
  margin: auto;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.modal-content img{
    width: 500px;
    height: 300px;
}
.close-btn {
  float: right;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
}


@media (max-width: 400px) {
  .modal-content img {
    width: 300px;
    height: 200px;
  }
  .modal-content p {
    font-size: 0.95rem;
  }
}

/* pop up messege end */


/* Loader Styles */
#loader {
  height: 100vh;
  width: 100vw;
  background: #fffaf0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  z-index: 9999;
  position: fixed;
  top: 0;
  left: 0;
}

.cooking {
  position: relative;
  width: 120px;
  height: 120px;
}

.pan {
  width: 100px;
  height: 20px;
  background: #444;
  border-radius: 0 0 15px 15px;
  position: absolute;
  bottom: 0;
  left: 10px;
}

.handle {
  width: 40px;
  height: 10px;
  background: #222;
  position: absolute;
  bottom: 5px;
  left: 110px;
  border-radius: 5px;
}

.egg {
  width: 30px;
  height: 30px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  bottom: 10px;
  left: 45px;
  box-shadow: 0 0 0 6px #ffc400;
  animation: eggBounce 1.6s infinite ease-in-out;
}

.steam {
  position: absolute;
  width: 6px;
  height: 20px;
  background: rgba(255, 255, 255, 0.6);
  animation: steamRise 2s infinite ease-in-out;
}

.steam1 { left: 30px; animation-delay: 0s; }
.steam2 { left: 50px; animation-delay: 0.4s; }
.steam3 { left: 70px; animation-delay: 0.8s; }

@keyframes steamRise {
  0% { bottom: 20px; opacity: 0; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-10px); }
  100% { bottom: 40px; opacity: 0; transform: translateY(-20px); }
}

@keyframes eggBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.loader-text {
  font-size: 1rem;
  color: #333;
  margin-top: 20px;
  text-align: center;
}
