/* custom properties */

:root {
    --red-color: red;
    --dark-color: #3d3c3c;
    scroll-behavior: smooth;
}


* {
    padding: 0;
    margin: 0;
   
}


body {
    font-family: 'Poppins', sans-serif;
}












/*  landing  */

.blur {
    width: 100%;
    height: 100%;
    position: relative;
    /* background-color: rgb(173, 173, 173);
    background-image: url("../background.gif");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat; */
    overflow: hidden;
     /* was 15px */

}
.blur video {
    position: absolute;
    width: auto;
    height: auto;
    min-width: 100%;
    min-height: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
   
}

#landing {
    
    height: 100vh;
}


.background-img {
    height: 600px;
    width: 100%;
    filter: blur(7px)
}
.center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.landing-text {
    margin-top: 3rem;
    color: var(--dark-color);
    font-size: clamp(.8rem, 5vw, 4rem);
    max-width: 700px;
    line-height: 120%;

   

}

.landing-btn {
    padding: 1rem 3rem;
    font-size: 1.2rem;
    color: white;
    text-decoration: none;
    background-color: var(--red-color);
    border-radius: 1rem;
    white-space: nowrap;
    text-align: center;

    transition: all .3s;
   
    
}

.landing-btn:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 30px rgb(107, 107, 107);
}



.browse-and-contact-btns {
    margin-top: 5rem;
    display: flex;
   

}
.browse-btn {
    
    margin-right: 4rem;
}
.contact-us-btn {
    background-color: var(--dark-color);
}




/* products Section */


.product-title {

    display: inline-block;
    text-align: center;
    position: relative;
    left: 50%;
    
    transform: translateX(-50%);
    margin-top: 6.5rem;
    letter-spacing: 2px;
    font-size: 2.5rem;
}


.product-title::after {
    content: '';
    width: 40%;
    height: 4px;
    position: absolute;
    background-color: red;
    left: 50%;
    bottom: -2px;
    transform: translateX(-50%);
}

.product-list {
    display: grid;
    justify-items: center;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    
    max-width: 1900px;
    padding: 6rem 4rem;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    row-gap: 3rem;
    
}


.product {
   
    width: 15rem;
    height: 25.5rem;
    background-color: white;
    border-radius: 24px;
    text-align: center;
    border: 2px solid rgb(197, 197, 197);
    line-height: 25px;
    padding: 0 1.5rem;
    

    transform: translateX(-150px);
    opacity: 0;
    transition: 1s all ease-out;

    box-shadow: 9px 10px 15px #c5c5c5, inset 0 0 0px white;
    
    

    
    position: relative;
    
    

}

.product.show {
    transform: translateX(0);
    opacity: 1;
}





.product:hover {

    box-shadow: inset 6px 7px 18px #c5c5c5;

}
.product img {
    width: 90%;
    height: auto;
}

.product .product-name {
    
    font-size: 1.5rem;
    margin-bottom: .5rem;
}

.product .short-description {
    font-size: 1rem;
    margin-bottom: 2rem
}

.product .details-btn {
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    color: black;
    padding: .5rem 5rem;
    background-color: white;
    border-radius: .5rem;
    border: 2px solid black;
    
    transition: .6s all ease-out;
    position: absolute;
    left: 50%;
    bottom: 7.5%;
    transform: translateX(-5%);

    opacity: 0;
}

.product.show .details-btn {
    transform: translateX(-50%);
    opacity: 1;
}

.product .details-btn:hover {
    background-color: black;
    color: white;
}










/* media queries */


@media (max-width: 1370px) {
    .product-list {
        grid-template-columns: 1fr 1fr 1fr;
    }

    
    
}

@media (max-width: 1050px) {
    .product-list {
        grid-template-columns: 1fr 1fr;
    }
}




@media (max-width: 800px) {

    


    /* landing */

    .landing-text {
        font-size: 3rem;
        
    }
    


}


@media (max-width: 750px) {
    .product-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .browse-and-contact-btns {
        flex-direction: column;
        
    }
    .landing-text {
        font-size: 2rem;
    }
    .landing-btn {
        margin: 0 2rem;
    }
    .browse-btn {
        margin-bottom: 1.5rem;
    }

    

    .product {
        place-self: center;
    }
   
    
}


@media (max-width: 392px) {
    .product {
        width: 13rem;
        height: 23rem;

    }

    .product-list {
        padding: 2rem 0;
        gap: 2rem .5rem;
    }


}