
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  background: #fdfdfd;
  color: #222;
}
html{
  scroll-behavior: smooth;
}



.header {
  max-width: 1500px;
  margin: auto;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

#logo {
  font-size: 38px;
  color: #4caf50;
  font-weight: bold;
}

#links {
  display: flex;
  gap: 25px;
}

#links a {
  text-decoration: none;
  color: #333;
  font-size: 18px;
  font-weight: 600;
  transition: 0.3s ease;
}

#links a:hover {
  color: #4caf50;
}

/* ===========================
   Home Section
=========================== */
/* ===========================
   Home Section (Full Page Hero)
=========================== */
.home {
  height: 90vh;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  text-shadow: 1px 1px 6px rgba(0,0,0,0.7);
  padding: 0 20px;
  overflow: hidden; 
}


.home::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('https://images.unsplash.com/photo-1551218808-94e220e084d2?auto=format&fit=crop&w=1350&q=80') 
               no-repeat center center/cover;
  filter: blur(3px);  
  z-index: -1;         
  transform: scale(1.1); 
}

/* Heading */
.home h1 {
  font-size: 50px;
  margin-bottom: 20px;
}

/* Paragraph */
.home p {
  font-size: 20px;
  margin-bottom: 30px;
  max-width: 700px;
}
.explore-btn {
    padding: 12px 28px;
    font-size: 18px;
    border: none;
    border-radius: 15px;
    background: #22c265; /* green theme */
    color: white;
    cursor: pointer;
    transition: 0.3s ease;
}

.explore-btn:hover {
    background: #27ae60;
    transform: scale(1.08);
    box-shadow: 0 0 15px rgba(46, 204, 113, 0.7);
}

/* Search Box */
.search-btn {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.search-btn input {
  width: 300px;
  padding: 12px;
  border: 1px solid #bbb;
  border-radius: 6px;
  font-size: 16px;
}

.search-btn button {
  padding: 12px 22px;
  font-size: 16px;
  background: #4caf50;
  border: none;
  border-radius: 6px;
  color: white;
  cursor: pointer;
  transition: 0.3s ease;
}

.search-btn button:hover {
  background: #3e8e41;
}
.about-section {
    padding: 80px 5%;
    background: #f8f8f8;
}

.about-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

/* --- Image Grid --- */
.about-images {
    display: grid;
    grid-template-areas:
        "big big"
        "small1 small2";
    gap: 15px;
}

.big-img {
    grid-area: big;
    width: 350px;
    border-radius: 15px;
    box-shadow: 0px 10px 20px rgba(0,0,0,0.15);
    animation: fade-in 1s ease-out;
}

.small-img {
    width: 170px;
    height: 170px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0px 6px 16px rgba(0,0,0,0.1);
    animation: fade-in 1.2s ease-out;
}

/* --- Text Content --- */
.about-content {
    max-width: 480px;
    animation: slide-up 1s ease;
}

.about-content h2 {
    font-size: 32px;
    margin-bottom: 10px;
    color: #2ecc71;
}

.about-content h3 {
    margin-top: 20px;
    font-size: 22px;
    color: #27ae60;
}

.about-content p {
    color: #444;
    line-height: 1.6;
}

/* --- Features --- */
.about-features {
    margin-top: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.feature-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: white;
    border-radius: 10px;
    box-shadow: 0px 4px 12px rgba(0,0,0,0.1);
    transition: 0.3s;
}

.feature-box:hover {
    transform: translateY(-3px);
}

.feature-box span {
    font-size: 24px;
}

/* --- Contact Button --- */
.contact-btn {
    margin-top: 25px;
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    background: #2ecc71;
    color: white;
    text-decoration: none;
    transition: 0.3s ease;
}

.contact-btn:hover {
    transform: scale(1.05);
    background: #27ae60;
}


@keyframes fade-in {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slide-up {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Responsive --- */
@media(max-width: 768px) {
    .about-images {
        grid-template-areas:
            "big"
            "small1"
            "small2";
    }

    .big-img {
        width: 100%;
        max-width: 300px;
    }

    .small-img {
        width: 100%;
        max-width: 180px;
        height: 180px;
    }
}

/* Contact Section */
.contact-container {
  padding: 60px 20px;
  display: flex;
  gap: 40px;
  justify-content: center;
  align-items: flex-start;
  max-width: 1200px;
  margin: auto;
  animation: fadeIn 0.8s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.contact-left {
  flex: 1;
}

.contact-left h2 {
  font-size: 32px;
  color: #2e7d32;
  margin-bottom: 10px;
}

.info-box {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
  font-size: 16px;
}

.info-box i {
  font-size: 22px;
  color: #2e7d32;
}

.socials a i {
  font-size: 28px;
  margin-right: 10px;
  color: #2e7d32;
  transition: 0.3s;
}

.socials a i:hover {
  transform: scale(1.2);
}

.map-box {
  margin-top: 20px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* Form */
.contact-form {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: #ffffffcc;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.top-inputs {
  display: flex;
  gap: 18px;
}

.input-box,
.textarea-box {
  background: white;
  border: 1px solid #e0e0e0;
  padding: 12px 15px;
  display: flex;
  align-items: center;
  border-radius: 10px;
  gap: 10px;
}

.input-box input,
.textarea-box textarea {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 15px;
  outline: none;
}

.send-btn {
  background: #2e7d32;
  color: white;
  padding: 14px;
  border-radius: 10px;
  border: none;
  font-size: 18px;
  cursor: pointer;
  transition: 0.3s;
}

.send-btn:hover {
  background: #256628;
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 850px) {
  .contact-container {
    flex-direction: column;
    text-align: center;
  }

  .top-inputs {
    flex-direction: column;
  }
}

.footer {
  background: #2e7d32;
  padding: 40px 20px;
  color: white;
  text-align: center;
}

.footer-links a {
  margin: 0 10px;
  color: white;
  font-size: 16px;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-socials i {
  font-size: 26px;
  margin: 10px;
  cursor: pointer;
  transition: 0.3s;
}

.footer-socials i:hover {
  transform: scale(1.2);
}

.newsletter {
  padding: 60px 20px;
  text-align: center;
}

.newsletter h2 {
  color: #2e7d32;
  font-size: 28px;
}

.newsletter-box {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.newsletter-box input {
  padding: 12px;
  width: 300px;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.newsletter-box button {
  padding: 12px 20px;
  background: #2e7d32;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.newsletter-box button:hover {
  background: #256628;
}




/* Popular Recipes Grid */

#recipes{
    text-align: center;
    padding: 20px;

}
.recipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.recipe-card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  overflow: hidden;
  text-align: center;
  transition: transform 0.2s ease;
}

.recipe-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.recipe-card h3 {
  margin: 10px 0;
  font-size: 16px;
  padding: 0 10px;
}

.recipe-card:hover {
  transform: translateY(-5px);
}



/* Modal styles */
/* Modal Backdrop */
.modal-backdrop {
    position: fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    overflow-y: auto;
    padding: 20px;
}

/* Modal Container */
.modal {
    background: white;
    padding: 20px 30px;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    position: relative;
}

/* Modal Close Button */
.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    position: absolute;
    top: 15px;
    right: 20px;
    cursor: pointer;
    color: #333;
}

/* Modal Title */
#modal-title {
    font-size: 28px;
    margin-bottom: 15px;
    text-align: center;
}

/* Modal Image */
#modal-img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 15px;
}

/* Ingredients & Steps */
#modal-instructions h3 {
    margin-top: 15px;
    margin-bottom: 10px;
    color: #4caf50;
}

#modal-instructions ul, #modal-instructions ol {
    padding-left: 20px;
    margin-bottom: 15px;
}

/* Recipe Card Button */
.recipe-card button {
    margin: 10px 0;
    padding: 8px 12px;
    border: none;
    background: #4caf50;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s ease;
}

.recipe-card button:hover {
    background: #3e8e41;
}


@media (max-width: 1024px) {
    .home h1 { font-size: 42px; }
    .home p { font-size: 18px; }
}

@media (max-width: 768px) {
    /* Header stack */
    .header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    #links { justify-content: center; }

    /* Home section */
    .home h1 { font-size: 36px; }
    .home p { font-size: 16px; }

    /* Search box */
    .search-btn input, .search-btn button {
        width: 100%;
        max-width: 350px;
    }

    /* Modal content stack vertically */
    .modal-content { flex-direction: column; align-items: center; }
    #modal-img, .modal-tabs { width: 100%; }
    #modal-title { font-size: 22px; }
    .tab-btn { font-size: 14px; }
    .tab-content h3 { font-size: 16px; }
}

@media (max-width: 480px) {
    .home h1 { font-size: 28px; }
    .home p { font-size: 14px; }
}





