@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');


* {
    font-family: "Poppins", serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    scroll-padding-top: 4rem;
    list-style: none;
    text-decoration: none;
    max-width: 100%;
    
}


:root {
    --box-shadow: 0 0 16px 1px rgb(14 52 54 / 15%);
    --main-color: #339b0e;
    --second-color: #ecfdf8;
    --text-color: #121011;
    --bg-color: #fff;
}

img {
    width: 100%;
}

section {
    padding: 50px 100px;
}

body {
    color: black;
}

header {
    position: fixed;
    width: 100%;
    top: 0;
    right: 0;
    background-color: var(--second-color);
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 1000;
    height: 60px;
}

.logo {
    display: flex;
    align-items: center;
    column-gap: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--main-color);
    text-transform: uppercase;
}

.bx {
    font-size: 24px;
    /* color: var(--main-color); */
}

.navbar {
    display: flex;
}

.navbar a {
    padding: 8px 17px;
    color: var(--text-color);
    font-size: 1rem;
    text-transform: uppercase;
    font-weight: 500;

}

.navbar a:hover {
    color: var(--main-color);
}

#menu-icon {
    font-size: 24px;
    color: var(--text-color);
    z-index: 10001;
    cursor: pointer;
    display: none;
}

.header-icon {
    font-size: 20px;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    column-gap: 0.8rem;
    align-items: center;
}

.header-icon .bx {
    color: var(--bg-color);
    padding: 7px;
    background: var(--main-color);
    border-radius: 0.4rem;
}

.header-icon .bx:hover {
    background: #64ff64;
}

.header-icon i {
    position: relative;
}

.header-icon span {
    position: absolute;
    top: -7px;
    right: -7px;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--text-color);
    color: var(--bg-color);
    font-size: 0.6rem;
    font-weight: 500;
}

.search-box {
    position: absolute;
    top: 110%;
    /* Initially hidden */
    right: -100%;
    background: var(--bg-color, #fff);
    /* fallback color */
    /* width: 280px; */
    box-shadow: var(--box-shadow, 0px 4px 8px rgba(0, 0, 0, 0.1));
    /* transition: top 0.3s fade-in; */
}

.search-box.active {
    right: 1rem;
    transition: 0.2s all linear;
    /* Visible position */
}

.search-box input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 1rem;
    padding: 20px;
    color: var(--main-color, #333);
}

.search-box input::placeholder {
    font-size: 1rem;
    font-weight: 500;
}

/* home css */

.home {
    width: 100%;
    min-height: 740px;
    display: grid;
    align-items: center;
    grid-template-columns: repeat(auto-fit, minmax(17rem, auto));
    gap: 1.5rem;
     /* background: url('./path-to-your-image.jpg') no-repeat center center/cover; */
    /* background-color: var(--second-color); */
}

/* .home-text {
    padding: 0px 0px 0px 150px;
} */

.home-text h3 {
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--main-color);

}


.home-text h1 {
    font-size: 3.4rem;
    letter-spacing: 1px;
}

.home-text p {
    max-width: 80%;
    font-size: 0.938rem;
    margin: 00.5rem 0 1.5rem;

}

.home-text span {
    color: var(--main-color);
}

.btn {
    padding: 10px 40px;
    border-radius: 0.3rem;
    background-color: var(--main-color);
    color: var(--bg-color);
    font-weight: 500;
}

.btn:hover {
    background: rgb(0, 255, 0);
}

.home-image {
    width: 550px;
    animation: float 5s linear infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(-3.5rem);
    }

    50% {
        transform: translateY(1rem);
    }
}

.about {
    display: grid;
    align-items: center;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(17rem, auto));
}

.about-text h2 {
    font-size: 2rem;
    font-weight: 300;
    text-transform: uppercase;
}

.about-image {
    width: 500px;
}

.about-text p {
    font-size: 0.938rem;
    margin: 00.5rem 0 1.1rem;
}

.heading {

    text-align: center;
}


.heading h2 {
    text-transform: uppercase;
    font-size: 2rem;
}


/* products */
.products-container {
    display: grid;
    align-items: center;
    grid-template-columns: repeat(auto-fit, minmax(17rem, auto));
    gap: 1.5rem;
    margin-top: 2rem;
}

.products-container .box {
    position: relative;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 0.5rem;
    box-shadow: var(--box-shadow);
}

.products-container .box img {
    width: 100%;
    object-fit: contain;
    height: 320px;
    object-position: center;
    padding: 20px;
    background-color: var(--second-color);
    border-radius: 0.5rem;
}

.products-container .box:hover img {
    --webkit-transform: scaleX(-1);
    -moz-transform: scaleX(-1);
    -o-transform: scaleX(-1);
    transform: scaleX(-1);
    transition: 0.4S all linear;
}

.products-container .box h2 {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    margin: 0.5rem 0 0.5rem;
    text-align: center;

}

.products-container .box span {

    font-size: 1rem;
    font-weight: 600;
    color: var(--main-color);
    text-align: center;
}

.products-container .box .bx {
    position: absolute;
    bottom: 0;
    right: 0;
    padding: 10px;
    font-size: 20px;
    color: var(--bg-color);
    background-color: var(--main-color);
    border-radius: 0.5rem 0.5rem;
    cursor: pointer;
}

.products-container .box .bx:hover {
    background: #64ff64;
}

.customers-container {
    display: grid;
    align-items: center;
    grid-template-columns: repeat(auto-fit, minmax(17rem, auto));
    gap: 1.5rem;
    margin-top: 2rem;
    /* text-align: center; */
}

.customers-container .box {
    padding: 20px;
    box-shadow: var(--box-shadow);
    border-radius: 0.5rem;
    text-align: center;
}

.stars .bx {
    color: var(--main-color);

}

.customers-container .box img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 50%;
    object-position: center;
}

.customers-container .box h2 {
    font-size: 1.5rem;
    font-weight: 600;
}

.customers-container p {
    font-size: 1rem;
    margin: 0.5rem 0 0.5rem;
}

.customers-container .box.box:hover {
    background: var(--second-color);
    transition: 0.2 all linear;
}

.newsletter {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    row-gap: 2rem;
}


.newsletter h2 {
   font-size: 1.8rem;
   text-transform: uppercase;

}

.newsletter form{
    background-color: var(--bg-color);
    padding: 10px;
    border-radius: 0.5rem;
    box-shadow: var(--box-shadow);
}

.newsletter form input {
    width: 200px;
    border: none;
    outline: none;
    background: transparent;
}


.newsletter form .email-btn{
    background: var(--main-color);
    padding: 8px 14px;
    color: var(--bg-color);
    text-transform: uppercase;
    font-size: 1rem;
    font-weight: 500;
    max-width: 115px;
    border-radius: 0.5rem; 
}

.footer{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, auto));
    gap: 1.5rem;
    color: var(--bg-color);
    background-color: var(--text-color);
}

.footer-box a{
    margin-bottom: 10px;
    font-size: 1rem;
    color: var(--bg-color);

}

.footer-box a:hover{
    color: var(--main-color);
}

.footer-box p{
    font-size: 0.938rem;
    margin-bottom: 10px;
}

.social{
    display: flex;
    align-items: center;
    column-gap: 0.5rem;
}

.social a .bx {
    font-size: 24px;
    color: var(--text-color);
    padding: 10px;
    background-color: var(--second-color);
    border-radius: 5rem;
}

.social a .bx:hover{
    background: var(--main-color);
    color: var(--bg-color);
}

.footer-box h3{
    font-weight: 600;
    margin-bottom: 10px;
}

.contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    row-gap: 0.5rem;
}

.contact span {
    display: flex;
    align-items: center;
    gap: 0.5rem; /* Ensures consistent space between icon and text */
}

.contact i {
    font-size: 20px;
}
@media (max-width:1058px){
    header{
        padding: 16px 60px;
    }
    section{
        padding: 50px 60px;
    }
    .home-text h1{
        font-size: 2.4rem;
    }
}

@media (max-width:991px){
    header{
        padding: 16px 4px;
    }
    section{
        padding: 50px 4%;
    }
    .product-container{
        grid-template-columns: repeat(auto-fit, minmax(240px, auto));
    }

    
}

@media (max-width:768px){
    header{
        padding: 12px 4%;
    }
    #menu-icon{
         display: block;
    font-size: 24px;
    cursor: pointer;
    }
    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--bg-color);
        flex-direction: column;
        row-gap: 1.4rem;
        padding: 20px;
        text-align: center;
        box-shadow: var(--box-shadow);
        transform: translateY(-200%);
        opacity: 0;
        transition: all 0.5s ease-in-out;
    }
    
    .navbar.active {
        transform: translateY(0);
        opacity: 1;
    }
    

}

@media (max-width:614px){
    
    .home-text{
        padding: 15px;
    }
    .home-text h1{
        font-size: 2rem;
    }
    .about{
        text-align: center;
    }
    .about-img{
        order: 2;
    }
}

@media (max-width:360px){
    header{
        padding: 11px 4%;
    }
    .header-icon .bx{
        padding: 4px;
    }
    .home-text h1{
        font-size: 1.8rem;
    }
.about-text h2,
.heading h2,
.newsletter h2{
    font-size: 1.2rem;
}
.newsletter form input{
    width: auto;
}

}