@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap');

*,
*::after,
*::before{
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

html{
    font-size: 62.5%;
}

body{
    font-family: 'Poppins', sans-serif;
}

/* ############################ utility classes ########################## */
.container{
    max-width: 1200px;
    width: 90%;
    margin: auto;
    }

    .btn{
        display: inline-block;
        padding: 1em 2.5em;
        text-decoration: none;
        border-radius: 50px;
        cursor: pointer;
        outline: none;
        margin-top: 1em;
        text-transform: uppercase;
        font-weight: 500;
    }

    .btn-primary{
        color: #fff;
        background: #16a083;
        transition: background 0.3s ease-in;
    }

    .btn-primary:hover{
        background: #128068;
    }
/* ########################### navbar styling ########################## */

/* for desktop mode */
.navbar input[type='checkbox'],
.navbar .hamburger-lines{
    display: none;
}

.navbar{
    box-shadow: 0px 5px 10px 0px #aaa;
    position: fixed;
    width: 100%;
    background: #fff;
    color: #000;
    opacity: 0.85;
    z-index: 999;
} 

.navbar-container{
    display: flex;
    justify-content: space-between;
    height: 64px;
    align-items: center;
}

.menu-items{
    order: 2;
    display: flex;
}

.menu-items li{
    list-style: none;
    margin-left: 1.5rem;
    font-size: 1.8rem;
}

.logo{
    order: 1;
    font-size: 3rem;
}

.navbar a{
    color: #444;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease-in-out;
}

.navbar a:hover{
    color: #117964;
}

/* ########################## showcase styling ######################## */

.showcase-area{
    height: 50vh;
    background: linear-gradient(rgba(240,240,240,0.144), rgba(255,255,255,0.366)),url("./img/header-imagea3.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.showcase-container{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 1.6rem;
}

.main-title{
    text-transform: uppercase;
}

/* ###################### about us ####################################### */

#about{
    padding: 50px 0px;
    background: #f5f5f7;
}

.about-wrapper{
    display: flex;
    flex-wrap: wrap;
}

#about h2{
    font-size: 3.2rem;
}

#about p{
    font-size: 1.6rem;
        color: #555555;
}

#about .small{
    font-size: 1.6rem;
    color: #666666;
    font-weight: 600;
}

.about-img{
flex: 1 1 400px;
padding: 30px; 
transform:translateX(150%);
animation: about-img-animation 2s ease-in-out forwards;
}

@keyframes about-img-animation{
    100%{
        transform: translate(0);
    }
}

.about-img1{
    flex: 1 1 400px;
    padding: 30px; 
    transform:translateX(-150%);
    animation: about-img-animation1 2s ease-in-out forwards;
    }
    
    @keyframes about-img-animation1{
        100%{
            transform: translate(0);
        }
    }

.about-text{
    flex: 1 1 400px;
    padding: 30px;
    margin: auto;
    text-align: center;
    /* transform:translateX(-150%);
    animation: about-text-animation 2s ease-in-out forwards; */
}

/* @keyframes about-text-animation{
    100%{
        transform: translate(0);
    }
} */

.about-text1{
    flex: 1 1 800px;
    padding: 30px;
    margin: auto;
    transform:translateX(150%);
    animation: about-text-animation 2s ease-in-out forwards;
}

@keyframes about-text-animation{
    100%{
        transform: translate(0);
    }
}


.about-img img{
    display: block;
    height: 400px;
    max-width: 100%;
    margin: auto;
    object-fit: cover;
    object-position: right;
}

.about-img1 img{
    display: block;
    height: 500px;
    max-width: 100%;
    margin: auto;
    object-fit: cover;
    object-position: left;
}

/* ############################## subjects styling (food category styling) ################################# */

#subjects{
    padding: 5rem 0 10rem 0;
}

#subjects h2{
    text-align: center;
    font-size: 3rem;
    font-weight: 400;
    margin-bottom: 40px;
    text-transform: uppercase;
    color: #555;
}

.subject-container{
    display: flex;
    justify-content: space-between;
}

.subject-container img{
    display: block;
    width: 400px;
    margin: auto;
    height: 300px;
    /* max-height: 300px; */
    object-fit: cover;
    object-position: center;
}

.img-container{
    margin: 0 1rem;
    position: relative;
}

.img-content{
    position: absolute;
    top: 70%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    z-index: 2;
    text-align: center;
    transition: all 0.3s ease-in-out 0.1s;
}

.img-content h3{
    color: #fff;
    font-size: 3rem;
}

.img-content a{
    font-size: 1.2rem;
}

.img-container::after{
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100% ;
    background: rgba(0, 0, 0, 0.871);
    /* opacity: 0;  */
    z-index: 1;

    transform: scaleY(0);
    transform-origin: 100% 100%;
    transition: all 0.3s ease-in-out;
}

.img-container:hover::after{
    opacity: 1;
    transform: scaleY(1);
}

.img-container:hover .img-content{
    opacity: 1;
    top: 40%
}

/* ################################## services styling ######################################### */

.services-heading{
    font-size: 4rem;
    text-align: center;
    font-weight: 400;
    color: rgb(100, 15, 134);
}

.services-heading1{
    font-size: 2rem;
    text-align: center;
    font-weight: 400;
    color: #666;
}

.services-container{
    display: flex;
    flex-wrap: wrap;
    padding: 50px 0px 30px 0px;
}

.service-item{
    display: flex;
    flex: 1 1 600px;
    justify-content: space-evenly;
    margin-bottom: 3rem;
}

.services-container img{
    display: flex;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
}

.service-description{
margin: auto 1.5rem;
font-size: 16px;
}

.service-description .service-price{
    color: #117964;
    font-weight: 700;
}

/* ################################ testimonial styling #################################### */

/* Testimonials Section */
#testimonials {
    text-align: center;
    padding: 50px 20px;
    position: relative;
    margin-bottom: 80px;
    overflow: hidden; /* hide sliding overflow */
  }
  
  .testimonial-title {
            font-size: 4rem;
        text-align: center;
        font-weight: 400;
        color: rgb(100, 15, 134);
  }
  
  /* Container to hold all testimonial boxes */
  .testimonial-container {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    min-height: 400px; /* so it doesn't shrink */
  }
  
  /* Testimonial box design */
  .testimonial-box {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateX(100%);
    transition: all 1s ease;
     overflow-wrap: break-word; /* ✅ wrap long words */
  word-break: break-word;
    padding: 15px;
    border-radius: 15px;
    color: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    height: auto;   
  }
  
  /* Active testimonial (visible one) */
  .testimonial-box.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
    position: relative;
  }
  
  /* Slide out to the left */
  .testimonial-box.exit-left {
    transform: translateX(-100%);
    opacity: 0;
    position: absolute;   /* ✅ goes back to absolute after exit */
  }
  
  /* Give each testimonial a different color */
  .testimonial-box:nth-child(1) {
    background: #ff6f61; /* coral red */
  }
  
  .testimonial-box:nth-child(2) {
    background: #6a5acd; /* slate blue */
  }
  
  .testimonial-box:nth-child(3) {
    background: #20b2aa; /* light sea green */
  }
  
  /* Customer details */
  .customer-name {
    margin-top: 15px;
    font-weight: bold;
    font-size: 1.4rem;
  }
  
  /* Stars */
  .star-rating {
    margin-bottom: 10px;
  }
  .star-rating .fa {
    color: gold;
    font-size: 1.2rem;
  }
  
  /* FAQ Section */
#faq {
    background: #f9f9f9;
    padding: 60px 20px;
  }
  
  .faq-container {
    max-width: 900px;
    margin: auto;
  }
  
  .faq-heading {
        font-size: 4rem;
        text-align: center;
        font-weight: 400;
        color: rgb(100, 15, 134);
  }
  
  .faq-item {
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  }
  
  .faq-question {
    width: 100%;
    padding: 15px 20px;
    font-size: 2.2rem;
    text-align: left;
    border: none;
    outline: none;
    cursor: pointer;
    background: #fff;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
  }
  
  .faq-question:hover {
    background: #f1f1f1;
  }
  
  .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 20px;
  }
  
  .faq-answer p {
    margin: 15px 0;
    font-size: 2rem;
    color: #555;
  }
  
  .faq-item.active .faq-answer {
    max-height: 300px;
    padding: 15px 20px;
  }
  
  .faq-item .arrow {
    transition: transform 0.3s ease;
  }
  
  .faq-item.active .arrow {
    transform: rotate(180deg);
  }
  

/* ############################## Contact Us Styling ##################################### */

#contact{
    padding: 5rem 0;
    background: rgb(226, 226, 226);
}

.contact-container{
    display: flex;
    align-items: flex-start; /* align top instead of stretch */
    background: none; /* remove the overall white background */
}

.contact-image{
     flex: 2;
    background: #fff;  /* give form side its own white */
    padding: 1rem;
    border-radius: 8px;
}

.contact-image img{
    display: block;
    height: 400px;
    object-fit: cover;
    object-position: center;
    width: 50%;
}

.form-container{
    flex: 1;
    margin-left: 2rem;
    background: #fff;  /* give text box its own white */
    padding: 2rem;
    border-radius: 8px;
    text-align: left;  /* fix right alignment issue */
}

.form-container input{
    display: block;
    width: 100%;
    border: none;
    border-bottom: 2px solid #ddd;
    padding: 1rem 0;
    box-shadow: none;
    outline:none;
    margin-bottom: 1rem;
    color: #444;
    font-weight: 500;
}

.form-container textarea{
    display: block;
    width: 100%;
    border: none;
    border-bottom: 2px solid #ddd;
    padding: 1rem 0;
    text-align: center;
}

.form-container h2{
    font-size: 4rem;
    font-weight: 400;
    color: #444;
    margin-bottom: 1rem;
}

.form-container h3{
    font-size: 2rem;
    font-weight: 400;
    color: #444;
    margin-bottom: 1rem;
    text-align: center;
}

.form-container p{
    text-align: center;
    font-weight: bold;
    font-size: 2rem;
}

.form-container a{
    font-size: 1.2rem;
}

#footer h2{
    text-align: center;
    font-size: 2rem;
    padding: 3rem;
    font-weight: 500;
    color: #fff;
    background: rgb(65, 65, 65);
}

/* ############################### media queries ########################################### */
@media (max-width: 768px){
    .navbar{
        opacity: 0.95;
    }
    .navbar-container input[type='checkbox'],
    .navbar-container .hamburger-lines{
        display: block; 
    }
    .navbar-container{
        display: block;
        position: relative;
        height: 64px;
    }
    .navbar-container input[type='checkbox']{
        position: absolute;
        display: block;
        height: 32px;
        width: 40px;
        top: 20px;
        left: 20px;
        z-index: 5;
        opacity: 0;
    }
    .navbar-container .hamburger-lines{
        display: block;
        width: 40px;
        height: 32px;
        position: absolute; 
        top: 20px;
        left: 20px;
        z-index: 2;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    .navbar-container .hamburger-lines .line{
        display: block;
        height: 4px;
        width: 100%;
        border-radius: 10px;
        background: #333333;
    }
    .navbar-container .hamburger-lines .line1{
        transform-origin: 0% 0%;
        transition: transform 0.4s ease-in-out;
    }
    .navbar-container .hamburger-lines .line2{
        transition: transform 0.4s ease-in-out;
    }
    .navbar-container .hamburger-lines .line3{
        transform-origin: 0% 100%;
        transition: transform 0.4s ease-in-out;
    } 
    .navbar .menu-items{
        padding-top: 100px;
        background: #fff;
        height: 100vh;
        max-width:300px;
        transform: translateX(-150%);
        display: flex;
        flex-direction: column;
        margin-left: -40px;
        padding-left: 50px;
        transition: transform 0.5s ease-in-out;
        box-shadow: 5px 0px 10px 0px #aaa;
    }
    .navbar .menu-items li{
        margin-bottom: 3rem;
        font-size: 2rem;
        font-weight: 500;
    }   
    .logo{
        position: absolute;
        top: 10px;
        right: 15px;
        font-size: 3rem;
    }
    .navbar-container input[type='checkbox']:checked ~ .menu-items{
        transform: translateX(0);
    }
    .navbar-container input[type='checkbox']:checked ~ .hamburger-lines .line1{
        transform: rotate(45deg);
    }
    .navbar-container input[type='checkbox']:checked ~ .hamburger-lines .line2{
        transform: scaleY(0);
        }
    .navbar-container input[type='checkbox']:checked ~ .hamburger-lines .line3{
        transform: rotate(-45deg);
    }

    /* ############################## food category ############################## */
    .subject-container{
        flex-direction: column;
        align-items: stretch;
    }
    .subject-name:not(:last-child){
    margin-bottom: 3rem;
    }
    .subject-name{
        box-shadow: 5px 5px 10px 0px #aaa;
    }
    .img-container{
        margin:0;
    }
} 

/* ###################### small screen ###################### */
@media (max-width: 500px){
    html{
        font-size: 50%;
    }
    .testimonial-container{
        flex-direction: column;
        text-align: center;
    }
    .service-item{
        flex-direction: column;
        text-align: center;
    }
    .services-container img{
        margin: auto;
    }
    .contact-image{
        width: 90%;
        margin:3rem auto;
    }
    .subject-container{
        align-items: center;
    }
    .contact-container {
    flex-direction: column;
    }
  .form-container {
    margin-left: 0;
    margin-top: 2rem;
    }
    .testimonial-text {
  font-size: 1.6rem;
  line-height: 1.8;
}
}

/* ######################### Landscape mode ######################## */

@media (orientation: landscape) and (max-height: 500px){
    .showcase-area{
        border: 6px solid green;
        height: 50vmax;
    }
}
