/* Importação da fonte (pode colocar no topo do CSS ou no HTML) */
@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@500;700;800&display=swap");

:root {
    /* CORES DO FIGMA */
    --color-dark-blue: #13183f;
    --color-gray: #83869a;
    --color-pink: #f74780;
    --color-light-pink: #ffa7c3;
    --color-white: #ffffff;

    /* GRADIENTES (Usados nos botões e nos ícones dos cards) */
    --gradient-orange-pink: linear-gradient(180deg, #ff6f48 0%, #f02aa6 100%);
    --gradient-blue-pink: linear-gradient(180deg, #4851ff 0%, #f02aa6 100%);

    /* TIPOGRAFIA */
    --font-main: "Plus Jakarta Sans", sans-serif;

    /* TAMANHOS DE FONTE EM REM (Base 16px) */
    --fs-body: 1.125rem;
    /* 18px */
    --fs-heading-s: 1.5rem;
    /* 24px */
    --fs-heading-m: 2rem;
    /* 32px */
    --fs-heading-l: 2.5rem;
    /* 40px */
    --fs-heading-xl: 3.5rem;
    /* 56px */
}

/* RESET BÁSICO */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* BASE MOBILE-FIRST */
body {
    font-family: var(--font-main);
    font-size: var(--fs-body);
    color: var(--color-gray);
    background-color: var(--color-white);

    /* Estrutura vertical padrão para o site todo fluir bem no mobile */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    border: none;
    border-radius: 20rem;
    text-decoration: none;
    text-align: center;
    font-size: 1rem;
    padding: max(1rem);
}

.rodape {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    align-items: center;
    justify-content: space-around;
    background-color: #13183f;
    padding: 1rem;
    gap: 3rem;

    img {
        width: 100%;
        max-width: 100px;
    }

    a {
        background-image: var(--gradient-blue-pink);
        color: var(--color-white);
        border: none;
        padding: 0.5rem 1rem;
    }
}

.topo {
    display: flex;
    flex-wrap: wrap;

    justify-content: space-around;
    align-items: center;
    flex-grow: 0;
    flex-shrink: 1;
    flex-basis: auto;
    margin: 1rem;
    margin-bottom: auto;

    a {
        background-color: #13183f;
        color: white;
    }
}

.container {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: auto;
}

.hero {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    flex: 1;

    h1 {
        color: #13183f;
    }

    a {
        background-image: var(--gradient-orange-pink);
        color: white;
    }
}

.texto-hero {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: self-start;
    padding: 0 1rem;

    a {
        margin-left: 1rem;
    }
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(266px, 1fr));
    gap: 3rem;
    padding: 1rem;

    p {
        max-width: 20ch;
        line-height: 1.2;
    }

    h3 {
        color: #13183f;
    }
}

.card1 {
    display: flex;
    background-image: var(--gradient-orange-pink);
    color: white;
    border-radius: 10px;
    padding: 1rem 3rem;

    h3 {
        max-width: 15ch;
        line-height: 1.2;
        color: var(--color-white);
    }
}

.card2,
.card3,
.card4,
.card5,
.card6 {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    align-items: flex-start;
    aspect-ratio: 1;
    border-radius: 10px;
    box-shadow: 1px 1px 1px 1px;
    justify-content: space-between;
    gap: 1rem;

    a {
        border: none;
        color: var(--color-pink);
    }
}

@media screen and (min-width: 768px) {
    .hero {
        max-width: 100%;
        margin: 0;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(266px, 1fr));
        align-items: center;
    }

    .texto-hero {
        display: flex;
        gap: 2rem;
        width: 400px;
        position: relative;
        left: 10%;

    }

    .foto-hero>img {
        width: 600px;
        flex: 1;

        object-fit: cover;
        object-position: 2rem -3rem;



    }

    .cards {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        padding: 4rem;
    }

    .card1 {
        h3 {
            max-width: 15ch;
            margin-top: 3rem;
        }
    }
}




@media screen and (min-width: 1200px) {
    .foto-hero > img:hover {

            transform: rotateY(360deg);

        }
    .foto-hero>img {
        width: 100%;
        max-width: 600px;
        flex: 1;
        object-fit: cover;
        object-position: -2rem -1rem;
        margin-right: auto;



        rotate: 1 1 0 45deg;
        transition: rotate 0.5s;
        

        }




    .texto-hero {
        flex: 1;
        display: flex;
        gap: 2rem;
        margin: auto;

        a{
                perspective: 1000px;
                transition: transform 0.6s;
            }
            a:hover{
                transform: rotateY(360deg);
            }
    }




    .hero{
        gap: 0;


    }


    .cards a {
        transition: transform 0.4s ease;


    }
    .cards a:hover{
        transform: rotate(15deg) scale(1.2) translateY(-10px);
    }


    .topo a {
        transition: transform 0.4s ease;
    }
    .topo a:hover{
        transform: rotate(15deg) scale(1.2) translateY(-10px);
    }

    .cards {
        grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
        padding: 4rem;



        }
        .card2,.card3,.card4,.card5,.card6{
            transform:
                    rotate3d(.5, -.866, 0, 15deg) rotate(1deg);
                box-shadow:
                    2em 4em 6em -2em rgba(0, 0, 0, .5),
                    1em 2em 3.5em -2.5em rgba(0, 0, 0, .5);
                transition:
                    transform .4s ease,
                    box-shadow .4s ease;
                border-radius: .5em;

                &:hover {
                    transform:
                        rotate3d(0, 0, 0, 0deg) rotate(0deg);

                }
            }


}


