*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root{ 
    --accent-red: #E53935;
  --accent-yellow: #FDD835;
  --accent-green: #66BB6A;
  --base-cream:  #FFF8E1;
  --text-light: #F5F5F5;
  --input-bg: #2B2B2B;
  --input-border: #555;

}

:root.dark{
    --accent-red: #FF6B6B;
    --accent-yellow: #FFD93D;
    --accent-green: #55D6A0;
    --base-cream: #121212;
    --accent-brown: #2D2D2D;
}


body{
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    background-color: var(--base-cream);
}


header{
    background-color: var(--accent-red);
    color: var(--base-cream);
    padding: 1rem;
    text-align: center;
}

 /* Navigation Bar */

.navbar{
    background-color: var(--accent-red);
    color: var(--base-cream);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

#darktoggle{
    background: none;
    border: 2px solid var(--base-cream);
    color: var(--base-cream);
    padding: 5px 10px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.logo{
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--base-cream);
}

.logo img{ 
    width: 40px;
    height: auto;
}

.logo h1{
    color: var(--base-cream);
    font-size: 1.rem;
}

.nav-links{
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.8rem;
}

.nav-links a{ 
    text-decoration: none;
    color: var(--base-cream);
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
    padding: 5px 0;
}

.nav-links a::after{
    content: "";
    position: absolute;
    width: 0%;
    left: 0;
    height: 2px;
    bottom: -3px;
    background: var(--accent-yellow);
    transition: width 0.3s ease;
}
    

.nav-links a:hover{
    color: var(--accent-yellow);
}

.nav-links a.active{
    color: var(--accent-yellow);
    font-weight: 600;
}

/* Hero Section */

.hero{
    position: relative;
    text-align: center;
    color: white;
    background-image: url("../images/background1.png");
    background-size: cover;
    background-repeat: no-repeat;
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero h1{
    font-size: clamp(2rem, 5vw, 4rem);
}

.hero p{
    font-size: clamp(1rem, 2.5vw, 1.5rem);
}

.hero h1, .hero p{
    text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
}

.hero::before{
    content:"";
position: absolute;
top: 0; left: 0;
width: 100%; height: 100%;
background-color: rgba(0,0,0,0.4);
z-index: 0;
}

/* Recipes Section */
  
.recipe-intro{
    text-align: center;
    color: var(--accent-red);
    font-size: 2rem;
    margin-top: 2rem;
    position: relative;
}

.recipe-intro::after{
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    margin: 0.5rem auto;
    background: linear-gradient(45deg, var(--accent-red), var(--accent-yellow));
    border-radius: 2px;
}

.recipe-subtitle{
    text-align: center;
    color: #555;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    font-style: italic;
    letter-spacing: 0.5px;
    font-weight: 300;
}

:root.dark .recipe-subtitle{
    color: #fff;
}

.recipe-grid{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 2rem;
}

.recipes-card{
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0px 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.recipes-card h3{
    margin: 0.5rem 1rem;
    font-size: 1.2rem;
    color: var(--accent-red);
}

.recipes-card p{
    margin: 0 1rem 1rem 1rem;
    color: #555;
    font-size: 0.95rem;
}

.recipes-card h3, .recipes-card p {
  text-align: center;
}


.recipes-card:hover{
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    
}

.recipes-card img{
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.hero h1, .hero p, .hero .btn{
    position: relative;
    z-index: 1;
}

.btn{
    background: linear-gradient(45deg, var(--accent-red), var(--accent-yellow));
    background-size: 200% 200%;
    animation: gradientAnim 3s ease infinite;
    color: white;
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover{
   transform: scale(1.05);
   box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
  
.tagline{
    margin-top: 1rem;
    font-size: 1.2rem;
    font-style: italic;
    color: #fff;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
}

a{
    text-decoration: none;
}

@keyframes gradientAnim {
    0% {background-position: 0% 50%;}
    50% { background-position: 100% 50%;}
    100% {background-position: 0% 50%;}
}
 
.card-btn{
        display: inline-block;
        background: linear-gradient(45deg, var(--accent-red), var(--accent-yellow));
        color: white;
        padding: 0.5rem 1rem;
        border-radius: 20px;
        font-size: 0.9rem;
        font-weight: 500;
        text-align: center;
        margin: 1rem auto;;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
        
    .card-btn:hover{
        transform: scale(1.05);
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    }

    /* About Section */

 #about{
    background: white;
    margin: 3rem auto;
    padding: 2rem;
    border-radius: 12px;
    max-width: 800px;
    box-shadow: 0px 4px 15px rgba(0,0,0,0.1);
    text-align: center;
 }

#about h2{
    color: var(--accent-red);
    margin-bottom: 1rem;
    font-size: 2rem;
}

#about p{
    color: #444;
    margin: 0.5rem 0;
    font-size: 1rem;
    line-height: 1.6;
}
  
/* Footer Section */

footer{ 
    background: var(--accent-red);
    color: var(--base-cream);
    margin-top: 2rem;
    padding: 2rem 1rem;
    text-align: center;
    margin-top: 3rem;
}

.footer-content{
    margin: auto;
    max-width: 1100px;
    text-align: center;
}

.social-icons{
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
    gap: 1rem;
}

.social-icons .icon{
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    font-size: 1.2rem;
    color: #fff;
    transition: transform 0.3s ease,  0.3s ease;
}

/**brand colors for social icons**/
.social-icons .icon-instagram{
    background: #E1306C;
}
.social-icons .icon-youtube{
    background: #FF0000;
}
.social-icons .icon-facebook{
    background: #3b5998;
}

.social-icons .icon:hover{
    transform: scale(1.1);
    filter: brightness(1.2);
}

.copyright{
    text-align: center;
    padding: 1rem;
    background-color: var(--accent-red);
    color: var(--base-cream);
    margin-top: 2rem;
    font-size: 0.9rem;
}

.hamburger{
    display: none;
    font-size: 1.5rem;
    color: var(--base-cream);
    cursor: pointer;
  }

/* responsive design search btn */

  .btn-text{
        display: inline;
    }

    .btn-icon{
        display: none;
    }

/* responsive design index.html*/

  /* tablet screens */
@media (max-width: 992px){
    .recipe-grid{
        grid-template-columns:repeat(2, 1fr);
        
    }
}

@media (max-width: 768px) {
    
    .hero{
        height: 60vh; }
    }

/* mobile screens */
@media (max-width: 600px){
    
  /* Navigation Bar */
  
    .navbar{
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 10px 20px;
        position: relative;
        z-index: 1000;
    }

   nav{
        position: relative;
        width: 100%;
        display: flex;
        justify-content: flex-end;
    }

    .navbar{
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 20px;
    }

    .nav-links{
        max-height: 0;
        overflow: hidden;
        display: none;
        flex-direction: column;
        background-color: var(--accent-red);
        position: absolute;
        top: 60px;
        right: 0;
        width: 200px;
        padding: 0;
        border-radius: 8px;
        gap: 1rem;
        transform: translateY(-20px);
        opacity: 0;
        pointer-events: none;
        transition: all 0.4s ease-in-out;
        z-index: 2000;
}

    .nav-links.show{
        max-height: 400px;
        display: flex;
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

.nav-links a.active{
    color: var(--accent-yellow);
    font-weight: bold;
border-bottom: 2px solid var(--accent-yellow);
}

    .hamburger{
        display: block;
        font-size: 2rem;
        cursor: pointer;
        padding: 10px;
        z-index: 3000;
        position: relative;
        }

        /*hero section*/
        .hero h1, .hero p, .tagline{
        max-width: 90%;
        text-align: center;
    }

    /*recipes grid*/

.recipes-card{
            display: block;
        }
    .recipes-card img{
        height: 180px;
    }

    .recipes-card img:hover{
        transform: scale(1.05);
        transition: transform 0.3s ease;
    }

    .recipe-grid{
        grid-template-columns: 1fr;
    }

 .hero h1{
        font-size: 2rem;
    }

    .hero p{
        font-size: 1rem;
    }

    .section{
        margin-bottom: 3rem;
    }

    .social-icons{
        flex-direction: column;
        gap: 0.5rem;
    }

    .about{
        padding: 1.2rem;
        font-size: 0.9rem;
    }

    footer{
        padding: 1.5rem 1rem;
    }

    .social-icons .icon{
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    body{
        word-wrap: break-word;
        overflow-x: hidden;
    }

    html{
        scroll-behavior: smooth;
    }
}

/* Hero Section for recipes page */

.hero-section{
    background: url("../images/recipes-page.jpg");
    position: relative;
    text-align: center;
    color: white;
    background-size: cover;
    background-repeat: no-repeat;
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    
}
.hero-section p{
    font-size: clamp(1rem, 2.5vw, 1.5rem);
}

.hero-section h1{
    font-size: clamp(2rem, 5vw, 3rem);

}
.hero-section h1, .hero-section h3, .hero-section p{
    text-shadow:  1px 1px 5px rgba(0,0,0,0.2),
                  1px 1px 5px rgba(0,0,0,0.2),
                 1px 1px 5px rgba(0,0,0,0.2);
                position: relative;
                z-index: 1;
}

.hero-section h3, .hero-section p {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    max-width: 90%;
}

.hero-section::before{
    content:"";
position: absolute;
top: 0; left: 0;
width: 100%; height: 100%;
background-color: rgba(0,0,0,0.4);
z-index: 0;
}

/* ---recipes navbar flex layout--- */


.hamburger{
    display: none;
  }

.search-bar{
    flex: 1 1 480px;
    max-width: 720px;
    display: flex;
    justify-content: center;
    margin: 0 1rem;
    padding: 0.2rem;
    border-radius: 28px;
    align-items: center;
}

.search-bar input{
    flex: 1;
    min-width: 120px;
    padding: 0.65rem 0.9rem;
    border: none;
    border-radius: 20px 0 0 20px;
    width: 250px;
    font-size: 1rem;
    outline: none;
    box-shadow: none;
    margin: 0;
    color: inherit;
    width: auto;
    color: #000;
}

.search-bar button{
    background: linear-gradient(45deg, var(--accent-red), var(--accent-yellow));
    color: white;
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 0 20px 20px 0;
    cursor: pointer;
    font-size: 1rem;
    transition: transform 0.2s ease;
    height: auto;
}

 



/* style dark toggle to match header button*/



/*filter section*/
.filter-section{
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 1.5rem 0;
    list-style: none;
    padding: 0;
}

.filter-section button{
    background: var(--accent-red);
    border: none;
    color: var(--base-cream);
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.filter-section button:hover{
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
  
.filter-section button.active{
    background: var(--accent-red);
    color: white;
}

/* responsive design recipes.html*/

  /* small screens */

@media (max-width: 600px){

   .hamburger{
        display: block;
        font-size: 2rem;
       cursor: pointer;
       padding: 10px;
       color: var(--base-cream)
    }

    .search-bar{
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        margin: 1.2rem auto;
        padding: 0 8px;
        max-width: 95vw;
        border-radius: 24px;
        background: rgba(255,255,255,0.08);
    }

    .search-bar input{
        flex: 8;
        min-width: 0;
        padding: 0.6rem 1rem;
        font-size: 1rem;
        border-radius: 20px 0 0 20px;
        border: none;
        outline: none;
    }

    .search-bar button{
        flex: 2;
        padding: 0.6rem 1rem;
        font-size: 1rem;
        border-radius: 0 20px 20px 0;
        border: none;
        color: #fff;
        cursor: pointer;
        
    }


  .recipe-grid{
        grid-template-columns: 1fr;
    }

    .hero-section{
        height: 50vh;
        background: url("../images/recipes-page.jpg");
        background-size: cover;
    }
    .hero-section h1{
        font-size: 2rem;
    }

    .hero-section h3{
        font-size: 1.2rem;
    }

    .hero-section p{
        font-size: 1rem;
        max-width: 90%;
        text-align: center;
    }

    .search-bar{
        display: flex;
        justify-content: center;
        margin: 1.5rem auto;
        flex-direction: row;
        padding: 0 10px;
    }

    .search-bar input, .search-bar button{
        width: 100%;
        margin: 0;
        padding: 0.6rem 1rem;
        height: 45px;
        box-sizing: border-box;
    }

    .search-bar button{
        flex:2;
        border-radius: 0 20px 20px 0;
    }

    .search-bar input{
        flex:8;
        border-radius: 20px 0 0 20px;
    }

    .btn-text{
        display: none;
    }

   .btn-icon{
        display: inline;
        font-size: 1.2rem;
    }

     .filter-section{
        flex-direction: row;
        align-items: center;
     }

        .filter-section button{
            width: 80%;
            text-align: center;
        }
    }

/*medium screens recipes.html*/
@media (max-width: 900ox) {
       
    .search-bar{
        margin: 0;                       /* full width search */
        max-width: 100%;
        order: 2;                        /* keep logo first, search second */
    }
    
    
    .logo{ order: 1; }                  /* ensure logo remains on top */
}


/**contact.html**/

.page-title-section{
    text-align: center;
    margin: 3rem auto;
    max-width: 600px;
    padding: 0 1rem;
}

.page-title-section h1{
    font-size: 2.5rem;
    color: #555;
    line-height: 1.6;
}

.page-title-section p{
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;

}

.contact-form{
    max-width: 600px;
    margin: 2rem auto;
    padding: 1rem;
}

.form-group{
    margin-bottom: 1.5rem;
}

.form-group label{
    display: block;
    font-weight: 500;
    color: #333;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    outline: none;
    font-size: 1rem;
    color: #000;
}

.form-group textarea{
    min-height: 100px;
    resize: vertical;
}

.submit-btn{
    background: linear-gradient(45deg, var(--accent-red), var(--accent-yellow));
    background-size: 200% 200%;
    animation: gradientAnim 3s ease infinite;
    color: white;
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

 .button-group{
    text-align: center;
 }

 .button-group .submit-btn{
    display: inline-block;
 }

.submit-btn:hover{
    transform: scale(1.05);
   box-shadow: 0 5px 15px rgba(0,0,0,0.2);
} 
 
.contact-info{
    max-width: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-direction: column;
    margin: 2rem auto;
    flex-wrap: wrap;
}

.contact-item{
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    color: #333;
}

.contact-item a {
    text-decoration: none;
    color: inherit;
    font-weight: 500;
}

.contact-info i {
    color: var(--accent-red);
    margin-right: 0.5rem;
    font-size: 1.2rem;
    
}

.contact-social-icons{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    flex-wrap: wrap;
}

.social-icons{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    
}


/** phone responsive contact.html**/

@media(max-width: 768px){

    .social-icons{
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: space-evenly;
    }

    .social-icons a {
        font-size: 1.5rem;
    }
}

/* dark mode for contact.html*/

:root.dark body,
:root.dark .page-title-section,
:root.dark .contact-form,
:root.dark .contact-info,
:root.dark .contact-item,
:root.dark .contact-item a,
:root.dark .contact-item i,
:root.dark .contact-form label,
:root.dark .contact-form input,
:root.dark .contact-form textarea,
:root.dark .contact-social-icons,
:root.dark .contact-social-icons h4,
:root.dark .contact-social-icons a {
  color: #fff !important;
}

/* Dark mode inputs and textarea background */
:root.dark .contact-form input,
:root.dark .contact-form textarea {
  background-color: #2b2b2b !important;
  color: #fff !important;
  border: 1px solid #555;
  padding: 0.5rem;
  border-radius: 4px;
}

/* Dark mode placeholders */
:root.dark .contact-form input::placeholder,
:root.dark .contact-form textarea::placeholder {
  color: #ccc !important;
}

/* Dark mode submit button */
:root.dark .submit-btn {
  color: #fff !important;
}

/* Make sure links don’t turn blue */
:root.dark .contact-info a,
:root.dark .contact-social-icons a {
  text-decoration: none;
  color: #fff !important;
}

/* white headings in dark mode */

html.dark .page-title-section h1, 
html.dark .page-title-section p {
    color: #fff !important;
}

/* about section */

.about-section{
    padding: 1rem;
}

.about-story,
.about-Creator,
.about-tech-used {
    max-width: 800px;
    margin: 2rem auto;
    padding: 1rem;
    background: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    text-align: center;

}

.about-story h1{
    line-height: normal;
}

.about-story,
.about-story h2,
.about-tech-used h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.about-story p, 
.about-Creator p,
.about-tech-used p {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    text-align: center;
}

/*dark mode support for about.html*/

:root.dark .about-story,
:root.dark .about-Creator,
:root.dark .about-tech-used {
    background: #2b2b2b;
    color: #fff;
}

:root.dark .about-story p,
:root.dark .about-Creator p,
:root.dark .about-tech-used p,
:root.dark .about-story h1, 
:root.dark .about-Creator h2,
.root.dark .about-tech-used h2 {
    color: #fff;
}

/*mobile responsive for about.html*/

@media (max-width: 600px) {

    .about-story,
    .about-Creator,
    .about-tech-used {
        padding: 1rem;
    }

    .about-story h1,
    .about-Creator h2,
    .about-tech-used h2 {
     font-size: 1.5rem;
    }

    .about-story p,
    .about-Creator p,
    .about-tech-used p {
        font-size: 0.95rem;
    }

    .about-story,
    .about-Creator,
    .about-tech-used{
        margin-left: 1rem;
        margin-right: 1rem;
    }

    .hamburger{
        display: block;
        font-size: 2rem;
        cursor: pointer;
        padding: 10px;
        z-index: 3000;
        position: relative;
        }
}

p{
    font-size: 60px;
}

