@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,opsz,wght@0,6..12,200;0,6..12,300;0,6..12,400;0,6..12,500;0,6..12,600;0,6..12,700;0,6..12,800;0,6..12,900;0,6..12,1000;1,6..12,200;1,6..12,300;1,6..12,400;1,6..12,500;1,6..12,600;1,6..12,700;1,6..12,800;1,6..12,900;1,6..12,1000&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&family=Roboto:wght@100&family=Satisfy&display=swap');

:root{
    --black: #444;
    --light-balck: #eee;
    --white: #fff;
    --bleu: #95d3d9;
}

*{
    font-family: 'Poppins', sans-serif;
    margin: 0; padding: 0;
    box-sizing: border-box;
    outline: none; border: none;
    text-decoration: none;
    
    transition: all .2s linear;
}

html{
    font-size: 62.5%;
    overflow-x: hidden;
    scroll-behavior: smooth;
    scroll-margin-top: 6rem;
}

html::-webkit-scrollbar{
    width: .5rem;
}

html::-webkit-scrollbar-track{
    background: transparent;
}

html::-webkit-scrollbar-thumb{
    background: var(--bleu);
}

.btn{
    display: inline-block;
    padding: 1rem 3rem;
    background: var(--bleu);
    color: var(--black);
    border-radius: .5rem;
    font-size: 1.7rem;
}

.btn:hover{
    color: white;

}

.heading{
    font-size: 3rem;
    color: var(--bleu);
    text-align: center;
    margin-top: 3rem;
}

h2{
    font-family: "Satisfy", cursive;
    font-weight: 100;
    font-size: 3rem;
    color: var(--bleu);
    text-align: center;
    margin-top: 13rem;
}

/* header section */

.header{
    position: sticky;
    top: 0; left: 0; right: 0;
    padding: 2rem 9%;
    z-index: 1000;
    display: flex;
    align-items: baseline;   
    justify-content: space-between;
    background-color: aliceblue;
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .1);
}

.header .logo{
    font-size: 3rem;
    color: var(--bleu);
    text-transform: none;
}

.header .logo img{
    height: 4.5rem;
}

.header .navbar a{
    margin-left: 2rem;
    font-size: 2rem;
    color: var(--black);
}

.header .navbar a:hover{
    color: var(--bleu);   
}


#close-btn{
    font-size: 3rem;
    color: var(--black);
    cursor: pointer;
    display: none;
}

.header .icons a, .header .icons div{
    font-size: 2.5rem;
    margin-left: 2rem;
    color: var(--black);
    cursor: pointer;
}

.header .icons a:hover, .header .icons div:hover, #close-btn:hover{
    color: var(--bleu);
}


#menu-btn{
    display: none;
}

/* home section 

.home{
    padding-bottom: 0;
}

.home .slide{
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    margin-bottom: 4rem;
}

.home .slide .content{
    background-color: rgba(0, 0, 0, .1);
    border-radius: .5rem;
    text-align: center;
    padding: 2rem;
}

.home .slide .content h3{
    font-size: 3rem;
    color: var(--black);
}

.home .slide .content p{
    font-size: 2.3rem;
    color: var(--white);
    padding: 1rem 0;
    line-height: 2;
}



@keyframes PopUp{
    0%{
        transform: scale(0);
    }
}

.home .swiper-slide-active .content{
    animation: PopUp .2s linear backwards .2s;
}

.swiper-pagination{
    bottom: 0;
}

.swiper-pagination-bullet-active{
    background: var(--bleu);   
}*/


/* slider section  */

.slider{
    height: 70vh;
    /*margin-top: -50px;*/
    width: 100vw;
    overflow: hidden;
    position: relative;
}
.slider .list .item{
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0 0 0 0;
}
.slider .list .item img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.slider .list .item .content{
    position: absolute;
    top: 20%;
    width: 1140px;
    max-width: 80%;
    left: 50%;
    transform: translateX(-50%);
    padding-right: 30%;
    box-sizing: border-box;
    color: #fff;
    text-shadow: 0 5px 10px #0004;
}

.slider .list .item .content .title,
.slider .list .item .content .type{
    font-size: 5rem;
    font-weight: bold;
    line-height: 1.3em;
}
.slider .list .item .type{
    color: var(--bleu);
}

.slider .list .item .content .description{
    font-size: 2.1rem;
    color: var(--white);
    padding: 1rem 0;
    line-height: 2;
}

.slider .list .item .content .btn:hover{
    color: var(--white);
}

/*.slider .list .item .btn{
    display: grid;
    grid-template-columns: repeat(2, 130px);
    grid-template-rows: 40px;
    gap: 5px;
    margin-top: 20px;
}
.slider .list .item .btn button,
.slider .list .item .btn a {
    border: none;
    font-family: Poppins;
    font-weight: 500;
    cursor: pointer;
    transition: 0.4s;
    letter-spacing: 2px;
}
.slider .list .item .btn a {
    width: 180px;
    line-height:40px;
    font-family: Poppins;
    text-align: center;
}


.slider .list .item .btn button:hover{
    letter-spacing: 3px;
}

.slider .list .item .btn button:nth-child(2){
    background-color: transparent;
    border: 1px solid #fff;
    color: #eee;
}*/


/* Thumbnail Section  */
.thumbnail{
    position: absolute;
    bottom: 50px;
    left: 50%;
    width: max-content;
    z-index: 100;
    display: flex;
    gap: 20px;
}

.thumbnail .item{
    width: 150px;
    height: 220px;
    flex-shrink: 0;
    position: relative;
}

.thumbnail .item img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.3);
}


/* nextPrevArrows Section  */
.nextPrevArrows{
    position: absolute;
    top: 80%;
    right: 52%;
    z-index: 100;
    width: 300px;
    max-width: 30%;
    display: flex;
    gap: 10px;
    align-items: center;
}
.nextPrevArrows button{
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bleu);
    border: none;
    color: #fff;
    font-family: monospace;
    font-weight: bold;
    transition: .5s;
    cursor: pointer;
}
.nextPrevArrows button:hover{
    background-color: #fff;
    color: #000;
}

/* Animation Part */
.slider .list .item:nth-child(1){
    z-index: 1;
}


/* animation text in first item */
.slider .list .item:nth-child(1) .content .title,
.slider .list .item:nth-child(1) .content .type,
.slider .list .item:nth-child(1) .content .description,
.slider .list .item:nth-child(1) .content .buttons
{
    transform: translateY(50px);
    filter: blur(20px);
    opacity: 0;
    animation: showContent .5s 1s linear 1 forwards;
}
@keyframes showContent{
    to{
        transform: translateY(0px);
        filter: blur(0px);
        opacity: 1;
    }
}
.slider .list .item:nth-child(1) .content .title{
    animation-delay: 0.4s !important;
}
.slider .list .item:nth-child(1) .content .type{
    animation-delay: 0.6s !important;
}
.slider .list .item:nth-child(1) .content .description{
    animation-delay: 0.8s !important;
}
.slider .list .item:nth-child(1) .content .buttons{
    animation-delay: 1s !important;
}



/* Animation for next button click */
.slider.next .list .item:nth-child(1) img{
    width: 150px;
    height: 220px;
    position: absolute;
    bottom: 50px;
    left: 50%;
    border-radius: 30px;
    animation: showImage .5s linear 1 forwards;
}

@keyframes showImage{
    to{
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
    }
}

.slider.next .thumbnail .item:nth-last-child(1){
    overflow: hidden;
    animation: showThumbnail .5s linear 1 forwards;
}
.slider.prev .list .item img{
    z-index: 100;
}


@keyframes showThumbnail{
    from{
        width: 0;
        opacity: 0;
    }
}


.slider.next .thumbnail{
    animation: effectNext .5s linear 1 forwards;
}

@keyframes effectNext{
    from{
        transform: translateX(150px);
    }
}



/* Animation for prev button click */
.slider.prev .list .item:nth-child(2){
    z-index: 2;
}

.slider.prev .list .item:nth-child(2) img{
    animation: outFrame 0.5s linear 1 forwards;
    position: absolute;
    bottom: 0;
    left: 0;
}
@keyframes outFrame{
    to{
        width: 150px;
        height: 220px;
        bottom: 50px;
        left: 50%;
        border-radius: 20px;
    }
}

.slider.prev .thumbnail .item:nth-child(1){
    overflow: hidden;
    opacity: 0;
    animation: showThumbnail .5s linear 1 forwards;
}
.slider.next .nextPrevArrows button,
.slider.prev .nextPrevArrows button{
    pointer-events: none;
}


.slider.prev .list .item:nth-child(2) .content .title,
.slider.prev .list .item:nth-child(2) .content .type,
.slider.prev .list .item:nth-child(2) .content .description,
.slider.prev .list .item:nth-child(2) .content .buttons
{
    animation: contentOut 1.5s linear 1 forwards!important;
}

@keyframes contentOut{
    to{
        transform: translateY(-150px);
        filter: blur(20px);
        opacity: 0;
    }
}

/* category section */

.category .box-container{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    gap: 3rem;
    margin: 5rem;
}

.category .box-container .box{
    padding: 3rem 2rem;
    text-align: center;
    background: var(--light-balck);
    border-radius: .5rem;
}

.category .box-container .box:hover{
    background: var(--bleu);
}

.category .box-container .box img{
    height: 7rem;
}

.category .box h3{
    font-size: 1.7rem;
    color: var(--black);
    padding-top: 1rem;
}

/* product section */
.product .heading .fa-plus, .blog .heading .fa-plus{
    font-size: 2.7rem;
    color: var(--bleu);
    padding-left: 1rem;
}

.product .box-container{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(32rem, 1fr));
    gap: 3rem;
    margin: 5rem;
}

.product .box-container .box{
    position: relative;
    padding: 3rem 2rem;
    text-align: center;
    background: var(--light-balck);
    border-radius: .5rem;
}

.product .box-container .box .fa-heart{
    position: absolute;
    top: 1rem; right: 1.5rem;
    font-size: 2.5rem;
    color: var(--white);
}

.product .box-container .box .fa-heart:hover{
    color: var(--bleu);
}

.product .box-container .box .image{
    margin: 1rem 0;
}

.product .box-container .box .image img{
    height: 30rem;
}

.product .box-container .content h3{
    font-size: 1.7rem;
    color: var(--black);
}

.product .box-container .content .price{
    font-size: 2rem;
    color: var(--black);
    margin: 2rem 0;
}

.product .box-container .content .price span{
    font-size: 1.5rem;
    color: var(--black);
    padding-left: 1rem;
    text-decoration: line-through;
}

/* home blog section */
.blog .box-container{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
    gap: 3rem;  
    margin-top: 5rem; 
}

.blog .box-container .box{
    position: relative;
    padding: 3rem 2rem;
    text-align: center;
    background: var(--light-balck);
    border-radius: .5rem;
    overflow: hidden;
}

.blog .box-container .box .image{
    width: 100%;
    height: 25rem;
    overflow: hidden;
    position: relative;
}

.blog .box-container .box .image img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog .box-container .box .image img:hover{
    transform: scale(1.2);
}

.blog .box-container .box .image h3{
    position: absolute;
    border-radius: .5rem;
    font-size: 1.5rem;
    color: var(--bleu);
    background: var(--white);
    padding: .5rem 1rem;
    z-index: 10;
}

.blog .box-container .box .image i{
    padding-right: 1rem;
    font-size: 2rem;
}

.blog .box-container .box .content{
    padding: 1.5rem 2rem;

}

.blog .box-container .box .content .tags{
    padding-bottom: 1rem;
}

.blog .box-container .box .content .tags a{
    font-size: 1.5rem;
    color: var(--bleu);
    padding-right: 1rem;
}

.blog .box-container .box .content .tags i{
    font-size: 1.5rem;
    color: var(--bleu);
    padding-right: .3rem;
}

.blog .box-container .box .content h3{
    font-size: 1.7rem;
    color: var(--black);
}

.blog .box-container .box .content p{
    font-size: 1.2rem;
    color: var(--black);
    line-height: 2;
    padding: 1rem 0;
    text-align: justify;
}



/* home about section */
.home-about{
    background: url(../img/2315174_m.jpg) no-repeat;
    background-position: center;
    background-size: cover;
    min-height: 70vh;
    display: flex;
    align-items: center; 
    justify-content: center;
    margin-top: 5rem;   
}

.home-about .content{
    width:80%;
    text-align: center;
    margin-top: 35rem;
}

.home-about .content h3{
    font-size: 4rem;
    color: var(--bleu);
    text-shadow: 5px 0 15px rgba(0, 0, 0, 0.6);
}

.home-about .content p{
    font-size: 1.7rem;
    color: var(--white);
    padding: 2rem 0;
    line-height: 2;
}

/* contact page */
.contact .row{
    display: flex;
    flex-wrap: wrap-reverse;
    gap: 1.5rem;
    margin: 15rem;
    
}

.contact .row form{
    flex: 1 1 40rem;
    padding: 2rem 2.5rem;
    box-shadow: 0 .5rem 1.5rem rgba(0, 0, 0, .1);
    border: .1rem solid rgba(0, 0, 0, .1);
    background: #fff;
    border-radius: .5rem;
}

.contact .row .image{
    flex: 1 1 40rem;
}

.contact .row .image img{
    width: 100%;
}

.contact .row form .box{
    width: 100%;
    padding: 1rem;
    color: #333;
    font-size: 1.7rem;
    text-transform: none;
    border: .1rem solid rgba(0, 0, 0, .1);
    border-radius: .5rem;
    margin: .7rem 0;
}

.contact .row form .box:focus{
    border-color: var(--bleu);
}

.contact .row form textarea{
    height: 15rem;
    resize: none;
}

/* footer section */

.footer{
    bottom: 0; left: 0; right: 0; 
    width: 100%;
}

.footer .box-container{
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 5rem;
}

.footer .box-container .box{
    flex: 1 1 25rem;
    display: flex;
    flex-direction: column;   
}

.footer .box-container .box h3{
    color: var(--bleu);
    font-size: 2.7rem;
    padding: 1.5rem 0;
}

.footer .box-container .box a{
    color: var(--black);
    font-size: 1.5rem;
    margin-bottom: .5rem;
    text-transform: none;
}

.footer .box-container .box a:hover{
    color: var(--bleu);
}

.footer .box-container .box i{
    font-size: 2rem;
    padding-right: .5rem;
}

.footer .credit{
    background-color: var(--bleu);
    text-align: center;
    margin-top: 2.5rem;
    padding: 2.5rem;
    font-size: 1.7rem;
}

@media (max-width: 1200px){
    html{
        padding: 2rem;
    }
}


@media (max-width: 991px){
    html{
        font-size: 55%;
    }  
}

/*@media screen and (max-width: 678px) {
    .slider .list .item .content{
        padding-right: 0;
    }
    .slider .list .item .content .title{
        font-size: 50px;
    }
}*/

@media (max-width: 768px){
    .header #menu-btn{
        display: inline-block;
    }
    .header .navbar{
        position: fixed;
        top: 0; left: -110%;
        background-color: white;
        width: 35rem;
        height: 100%;
        display: flex;
        flex-flow: column;
        align-items: center;
        justify-content: center;
        z-index: 10000;
    }
    .header .navbar.active{
        left: 0;
        box-shadow: 0 0 0 100vw rgba(0,0,0,.5);
    }
    .header .navbar a{
        margin: 1rem 0;
        font-size: 3rem;
    }
    #close-btn{
        display: block;
        position: absolute;
        top: 2.2rem; right: 2.5rem;
    }

    .home-about .content{
        text-align: center;
    }
    .slider .list .item .content{
        padding-right: 0;
    }
    .slider .list .item .content .title{
        font-size: 3.5rem;
    }
    .slider .list .item .content .description{
        font-size: 1.5rem;
    }
    .thumbnail .item{
        width: 90px;
        height: 160px;
    }
}




@media (max-width: 450px){
    html{
        font-size: 50%;
    }
    
}