*{
    margin: 0%;
    padding: 0%;
    box-sizing: border-box;
}
body{
    background-color:#EEF2FF;
}
html{
    scroll-behavior: smooth;
}
.navbar{
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #111827;
    color: white;
    padding: 0px 10px 0px 10px;
    position: sticky;
    top: 0%;
    z-index: 1000;
}
.navbar ul{
    display: flex;
}
.navbar li{
    list-style: none;;
    padding: 0px 50px 0px 50px;
}
.navbar li a{
    text-decoration: none;
    color: white;
    cursor: pointer;
}
#hero{
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 600px;
    padding: 100px;
}
.left{
    width: 300px;
}
.right{
    width: 500px;
}
.right img{
    width:100%;
    height:auto;
    transition: 0.5s;
    border: 1px solid black;
    box-shadow: 0 2px 8px black;
    transition:transform .3s ease;
    animation: image 2s infinite alternate;
}
.right img:hover{
    transform: scale(1.05);
}
.b{
    width: 70%;
    padding: 12px 16px;
    border-radius: 20px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.4s;
}
.b:hover{
    background-color: #2563EB;
    transform: scale(1.07);
}
#product{
    padding: 60px;
}
#product h2{
    text-align: center;
    margin-bottom: 40px;
}
.product-grid{
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 20px;
    justify-items: center;
}
.card{
    width: 250px;
    border: 2px solid rgb(72, 69, 69);
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 2px 5px black;
    transition: 0.4s;
    background-color: aliceblue;
    text-align: center;
}
.card:hover{
    transform: translateY(-10px);
}
.card img{
    width: 100%;
    height: 250px;
    object-fit: cover;
}
.card h4{
    color: gold;
}
.t{
    width: 70%;
    padding: 12px 16px;
    margin-bottom: 10px;
    border-radius: 20px;
    cursor: pointer;
}
.t:hover{
    background-color: #2563EB;
}
.n{
    width: 70%;
    padding: 12px 16px;
    margin-bottom: 10px;
    border-radius: 20px;
    cursor: pointer;
}
.n:hover{
    background-color: green;
}
#about{
    padding: 60px;

}
#about h2{
    text-align: center;

}
.container{
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 20px;
    padding: 20px;
}
.box{
    width: 250px;
    text-align: center;
    cursor: pointer;
    transition: 0.2s;
    font-size: 20px;
    animation: bounce 2s infinite alternate;
}
@keyframes bounce{
    0%{
        transform: scale(1);
    }
    50%{
        transform: scale(1.1);
    }
    100%{
        transform: scale(1);
    }
}
.logo{
    font-size: 40px;
}
#review{
    padding: 60px;
}
#review h2{
    text-align: center;
    margin-bottom: 20px;
}
.review-container{
    display: grid;
    justify-content: center;
     gap: 20px;
    
}
.cards{
    width: 250px;
    border: 1px solid darkgray;
    border-radius: 30px;
    overflow: hidden;
    text-align: center;
    transition: 0.2s;
}
.cards:hover{
    transform: translateY(-10px);
    box-shadow: 0 2px 5px black;
}
.cards img{
    height: 50px;
    width: auto;
    margin-top: 10px;
}
.cards img{
    border-radius: 50%;
}
.cards h4{
    color: gold;
}
.cards h5{
    font-weight: 14px;
    margin-bottom: 10px;
}
.footer{
    text-align: center;
     background-color: #111827;
     color: white;
     padding: 20px;
}
.logo{
    font-size:40px;
    display: flex;
    justify-self: center;
}
.logo h4{
    animation: swipeleft 4s infinite ;
    transition: 0.4s;
}
@keyframes swipeleft{
    from{
        transform: translateX(0);
    }
    to{
        transform: translateX(-100PX);
    }
}
.logo p{
    animation: swiperight 4s infinite ;
    transition: 0.4s;
}
@keyframes swiperight{
    from{
        transform: translateX(0);
    }
    to{
        transform: translateX(100px);
    }
}
.icons{
    display: flex;
    justify-content: center;
    gap: 10px;
}
.icons i a{
    text-decoration: none;
}
.footer h1{
    animation: swipe 2s infinite;
}

 /* Tablet (768px) */

@media (max-width:768px){

    /* Navbar */

    .navbar{
        flex-direction:column;
        height:auto;
        padding:20px;
    }

    .navbar ul{
        flex-direction:column;
        gap:15px;
        margin-top:15px;
    }

    .navbar li{
        padding:0;
    }

    /* Hero */

    #hero{
        flex-direction:column;
        text-align:center;
        height:auto;
        padding:40px 20px;
        gap:30px;
    }

    .left,
    .right{
        width:100%;
    }

    .right img{
        width:80%;
        height:auto;
    }

    /* Products */

    .product-grid{
        grid-template-columns:repeat(2,1fr);
    }

    /* About */

    .container{
        flex-direction:column;
    }

    /* Reviews */

    .review-container{
        grid-template-columns:repeat(2,1fr);
        justify-items:center;
    }

    /* Footer */

    .logo{
        justify-content:center;
    }

}

 /* Mobile (480px) */

@media (max-width:480px){

    h1{
        font-size:28px;
    }

    h2{
        font-size:24px;
    }

    p{
        font-size:15px;
    }

    #hero{
        padding:30px 15px;
    }

    .right img{
        width:100%;
    }

    .product-grid{
        grid-template-columns:1fr;
    }

    .card{
        width:90%;
    }

    .review-container{
        grid-template-columns:1fr;
    }

    .cards{
        width:90%;
    }

    .b,
    .t,
    .n{
        width:90%;
    }
    .logo p{
        font-size: 40px;
    }

}