@import url(/src/styles/global/imports.css);


@import url("https://fonts.googleapis.com/css2?family=Audiowide&family=Poppins:wght@400;500;600&display=swap");

* {
    font-family: "Nunito", serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    outline: none;
    border: none;
    transition: all .2s linear;
}



html {
    font-size: 62.5%;
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
    overflow-x: hidden;

    &::-webkit-scrollbar {
        width: 2px;
    }

    &::-webkit-scrollbar-track {
        background: var(--second-color);
    }

    &::-webkit-scrollbar-thumb {
        background: var(--primary-color);
    }
}

body {
    background: var(--second-color);

}

section {
    padding: 5rem 9%;
}


.spacer {
    padding-top: 5rem;
}









.home {
    padding: 0;
    /* margin-top: 6.5rem; */

    .slide {
        min-height: 70vh;
        background-size: cover !important;
        background-position: center !important;
        padding: 2rem 9%;
        display: flex;
        align-items: center;


        .content {
            width: 60rem;

            span {
                font-size: 2.5rem;
                font-weight: 400;
                color: var(--primary-color);
                display: block;
            }

            h3 {
                font-size: 5rem;
                color: var(--white);
                padding: 1rem 0;
            }

        }
    }
}

.swiper-pagination-bullet {
    height: .5rem;
    width: 1.4rem;
    border-radius: 0;
    background-color: var(--white);

    &.swiper-pagination-bullet-active{
        background: var(--primary-color);
    }
    
}




.about {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8rem;

    .image {
        flex: 1 1 42rem;
        position: relative;



        &::before,
        &::after {
            content: '';
            position: absolute;
            z-index: -1;
            /* background: var(--primary-color); */
            background: var(--rgb);
            background-size: 900%;
            animation: animate 20s linear infinite;
            /* filter: blur(3px); */
            height: 15rem;
            width: 15rem;
            border-radius: .2rem;
        }

        @keyframes animate {
            0% {
                background-position: 0 0;

            }

            50% {
                background-position: 400% 0;
            }

            100% {
                background-position: 0 0;
            }
        }

        &::before {
            top: 0;
            left: 0;
        }

        &::after {
            bottom: 0;
            right: 0;

        }


        img {
            width: 100%;
            padding: 2rem;


        }
    }

    .content {
        flex: 1 1 42rem;

        h2 {
            font-size: 2rem;
            color: var(--primary-color);
        }

        .title {
            font-size: 4rem;
            color: var(--white);
            margin-top: .5rem;
        }

        p {
            font-size: 1.5rem;
            color: var(--soft-light);
            padding: 1rem 0;
            line-height: 2;
        }

        .box-container {
            display: flex;
            flex-wrap: wrap;
            gap: 2rem;
            margin-top: 1rem;

            .box {
                flex: 1 1 20rem;

                h3 {
                    font-size: 2rem;
                    color: var(--white);

                    i {
                        padding-right: 1.5rem;
                        color: var(--primary-color)
                    }
                }
            }
        }
    }
}

/* Teste de mixin manual  */

.features .box-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(32rem, 1fr));
    gap: 1.5rem;
    gap: 0;

    .box {
        background: var(--soft-bg);

        &.second {
            display: flex;
            flex-flow: column-reverse;
        }

        &:hover .image img {
            transform: scale(1.1);
        }

        .image {
            height: 30rem;
            width: 100%;
            overflow: hidden;

            img {
                height: 100%;
                width: 100%;
                overflow: hidden;
                object-fit: cover;
            }
        }

        .content {
            padding: 2rem;
            text-align: center;
            height: 30rem;

            img {
                height: 9rem;
                margin-top: 1rem;
                filter: invert(1);
            }

            h3 {
                font-size: 2rem;
                color: var(--primary-color);
            }

            p {
                line-height: 2;
                font-size: 1.5rem;
                color: var(--soft-light);
                padding: 1rem 0;
                ;
            }
        }
    }
}

/* Fim Teste de mixin manual  */




.banner {
    background: linear-gradient(to top, rgba(0, 0, 0, .4), rgba(0, 0, 0, .2)), url(/src/assets/img/pages/index/banner.svg) no-repeat;
    background-size: cover;
    background-position: center;
    /* background-attachment: relative; */
    text-align: center;


    span {
        font-size: 3rem;
        font-weight: 500;
        color: var(--primary-color);
    }

    h3 {
        padding-top: 1rem;
        color: var(--white);
        text-transform: uppercase;
        font-size: 3.5rem;
    }

    p {
        margin: 1rem auto;
        max-width: 60rem;
        font-size: 1.9rem;
        font-weight: 500;
        color: var(--soft-light);
        line-height: 2;
    }
}

.review {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;

    .information {
        flex: 1 1 35rem;

        span {
            font-size: 2rem;
            color: var(--primary-color);
        }

        h3 {
            font-size: 3rem;
            color: var(--white);
            padding-top: 1rem;
        }

        p {
            font-size: 1.5rem;
            line-height: 2;
            color: var(--soft-light);
            padding: 1rem 0;
        }
    }

    .review-slider {
        flex: 1 1 60rem;

        .slide {
            background: linear-gradient(130deg, var(--soft-bg) 93%, transparent 90%);
            padding: 2rem 3rem;

            p {
                font-size: 1.5rem;
                line-height: 2;
                color: var(--soft-light);
            }

            .user {
                display: flex;
                align-items: center;
                margin-top: 1.5rem;

                img {
                    height: 5rem;
                    width: 5rem;
                    object-fit: cover;
                    border-radius: 50%;
                    margin-right: 1rem;
                }

                h3 {
                    font-size: 2rem;
                    color: var(--white);
                }

                span {
                    color: var(--primary-color);
                    font-size: 1.5rem;
                }

                i {
                    font-size: 5rem;
                    margin-left: auto;
                    margin-right: 2rem;
                    color: var(--primary-color);
                }

            }
        }
    }
}


.blogs {

    .slide {
        background: var(--soft-bg);
        margin-bottom: 7rem;

        display: flex; /* Add this line */
        flex-direction: column; /* Add this line */
        flex-grow: 1; /* Add this line to allow the details section to grow */
        height: auto !important;

        &:hover .image img {
            transform: scale(1.1);
        }

        .image {
            height: 25rem;
            width: 100%;
            overflow: hidden;

            img {
                height: 100%;
                width: 100%;
                object-fit: cover;
            }
        }

        .content {
            display: flex;
            flex-direction: column;
            flex-grow: 1;

            padding: 2rem;

            .link {
                padding-bottom: 1.5rem;
                font-size: 1.5rem;

                a {
                    color: var(--primary-color);

                    &:hover {
                        color: var(--white);
                    }
                }

                span {
                    color: var(--white);
                    padding: 0 1rem;
                }
            }

            h3 {
                font-size: 2rem;
                color: var(--white);
                line-height: 1.5;
            }

            p {
                font-size: 1.5rem;
                color: var(--soft-light);
                line-height: 2;
                padding: 1rem 0;
                flex-grow: 1;
            }
        }
    }

}






/* media queries */



@media (max-width:991px) {

    html {
        font-size: 55%;
    }


    section {
        padding: 3rem 2rem;
    }

    .home .slide {
        padding: 2.rem 5%;

        .content {
            width: 50rem;

            h3 {
                font-size: 4rem;
            }
        }
    }
}

@media (max-width:768px) {

    .home {
    
            .content {
    
                span {
                    font-size: 2.5rem;
                    font-weight: 500 !important;
                    /* background: linear-gradient(to right,rgba(0, 0, 0, 5), rgba(0, 0, 0, .8), rgba(0, 0, 0, .4), rgba(0, 0, 0, .1));
                    backdrop-filter: blur(2px); */
                    text-shadow: 1px 1px 3px #000000, 0 0 5px #000000;
                }
    
            }
        }


    .about {
        gap: 3rem;

        .image {
            margin-top: 5rem;
        }

        .content .title {
            font-size: 3rem;
        }
    }

    .features .box-container .box.second {
        flex-flow: column;
    }
}

@media (max-width:450px) {

    html {
        font-size: 50%;
    }
}