
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');
@font-face {
    font-family: "fonte";
    src: url(../fonte/RoseAlone-Regular.ttf);
}


:root {
    --fundo: #1A1E29;
    --azul: #132D46;
    --verde: #01C38E;
    --branco: #FFFFFF;
    --texto-secundario: #B8C5D3;
    --borda: rgba(1, 195, 142, 0.25);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    background-color: var(--fundo);
    color: var(--branco);
    font-family: 'Poppins', sans-serif;
    line-height: 1.8;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
}

img {
    max-width: 100%;
}

/* CABEÇALHO */

header {
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 99;
    background-color: rgba(26, 30, 41, 0.94);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--borda);

    nav {
        max-width: 1200px;
        min-height: 75px;
        margin: auto;
        padding: 15px 30px;

        ul {
            display: flex;
            justify-content: center;
            align-items: center;
            flex-wrap: wrap;
            gap: 40px;
            list-style: none;

            li {
                a {
                    color: var(--texto-secundario);
                    font-size: 0.95rem;
                    font-weight: 500;
                    transition: color 0.3s ease;

                    &:hover {
                        color: var(--verde);
                    }
                }
            }
        }
    }
}

/* ESTILOS GERAIS DAS SEÇÕES */

section {
    width: 100%;
    padding: 100px 8%;
    scroll-margin-top: 90px;

    .tituloSecao {
        max-width: 1000px;
        margin: 0 auto 30px;
        color: var(--branco);
        font-size: clamp(1.8rem, 3.2vw, 3rem);
        font-weight: 700;
        line-height: 1.3;
        text-align: center;
        overflow-wrap: break-word;
        text-wrap: balance;

        &::after {
            content: "";
            display: block;
            width: 75px;
            height: 4px;
            margin: 22px auto 0;
            border-radius: 10px;
            background-color: var(--verde);
        }
    }

    p {
        max-width: 1000px;
        margin: 0 auto 22px;
        color: var(--texto-secundario);
        font-size: 1rem;
        line-height: 1.9;
        overflow-wrap: break-word;

        span {
            color: var(--verde);
            font-weight: 600;
        }

        strong {
            color: var(--branco);
            font-weight: 600;
        }
    }
}

/* SEÇÃO 1 - INÍCIO */

.secao1 {
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 100px 8%;
    text-align: center;
    background:
        radial-gradient(ellipse at 50% 40%, rgba(19, 45, 70, 0.8), transparent 65%),
        var(--fundo);

    .tituloSecao {
        max-width: 1100px;
        margin-bottom: 20px;
        color: var(--verde);
        font-size: clamp(2.5rem, 6vw, 5.5rem);
        font-weight: 800;
        letter-spacing: 2px;
        line-height: 1.15;
        text-shadow: 0 0 35px rgba(1, 195, 142, 0.15);

        &::after {
            width: 110px;
            margin-top: 28px;
        }
    }

    .subTitulo {
        margin-bottom: 35px;
        color: var(--texto-secundario);
        font-size: clamp(1rem, 2vw, 1.5rem);
        font-weight: 400;
        line-height: 1.6;
        overflow-wrap: break-word;
    }

    .conteudoPrincipal {
        width: 100%;
    }

    .divBotoes {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        gap: 18px;

        button {
            min-height: 52px;
            display: inline-flex;
            justify-content: center;
            align-items: center;
            gap: 12px;
            padding: 14px 28px;
            border: 1px solid var(--verde);
            border-radius: 12px;
            font-size: 0.95rem;
            font-weight: 600;
            cursor: pointer;
            transition:
                background-color 0.3s ease,
                color 0.3s ease,
                transform 0.3s ease,
                box-shadow 0.3s ease;

            &:hover {
                transform: translateY(-3px);
                box-shadow: 0 8px 25px rgba(1, 195, 142, 0.18);
            }

            img {
                width: 18px;
                height: 18px;
                object-fit: contain;
            }
        }

        .botaoPrimario {
            background-color: var(--verde);
            color: var(--fundo);

            &:hover {
                background-color: #13DDA5;
            }
        }

        .botaoSecundario {
            background-color: transparent;
            color: var(--verde);

            &:hover {
                background-color: var(--verde);
                color: var(--fundo);
            }
        }
    }
}

/* SEÇÃO 2 - INTRODUÇÃO */

.secao2 {
    background-color: #151A25;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);

    .centro {
        margin-bottom: 35px;
        color: var(--verde);
        font-size: clamp(1.1rem, 2vw, 1.4rem);
        font-weight: 500;
        text-align: center;
    }

    .card {
        margin-top: 55px;
    }
}

/* SEÇÃO 3 - CONTROLE E CONCLUSÃO */

.secao3 {
    background-color: var(--fundo);

    & + .secao3 {
        background:
            radial-gradient(ellipse at 50% 0%, rgba(19, 45, 70, 0.55), transparent 65%),
            #151A25;
        border-top: 1px solid var(--borda);
    }

    > p:last-of-type {
        margin-top: 25px;
    }

    > p span {
        display: inline-block;
        margin-top: 10px;
    }

    > p strong {
        color: var(--branco);
    }
}

/* CARDS */

.card {
    width: min(100%, 650px);
    margin: 45px auto 0;
    padding: 35px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
    background:
        linear-gradient(145deg, rgba(19, 45, 70, 0.8), rgba(26, 30, 41, 0.95));
    border: 1px solid var(--borda);
    border-radius: 22px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.15);
    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;

    &:hover {
        transform: translateY(-5px);
        border-color: rgba(1, 195, 142, 0.65);
        box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
    }

    > img {
        max-width: 100%;
        object-fit: contain;
    }

    h3 {
        color: var(--branco);
        font-size: clamp(1.15rem, 2vw, 1.5rem);
        font-weight: 600;
        line-height: 1.5;
        overflow-wrap: break-word;
        text-wrap: balance;
    }

    p {
        margin: 0;
        font-size: 0.95rem;
        line-height: 1.8;

        span {
            color: var(--verde);
            font-weight: 600;
        }
    }

    .botaoQuiz {
        margin-top: 10px;
        padding: 13px 25px;
        border: 1px solid var(--verde);
        border-radius: 10px;
        background-color: var(--verde);
        color: var(--fundo);
        font-size: 0.95rem;
        font-weight: 700;
        cursor: pointer;
        transition:
            background-color 0.3s ease,
            transform 0.3s ease,
            box-shadow 0.3s ease;

        &:hover {
            background-color: #13DDA5;
            transform: translateY(-2px);
            box-shadow: 0 7px 22px rgba(1, 195, 142, 0.2);
        }
    }
}

/* AJUSTES PARA TABLETS */

@media (max-width: 900px) {
    section {
        padding: 80px 6%;
    }

    .secao1 {
        min-height: 75vh;
    }

    .card {
        padding: 30px;
    }

    header nav ul {
        gap: 25px;
    }
}

/* AJUSTES PARA CELULARES */

@media (max-width: 600px) {
    html {
        scroll-padding-top: 80px;
    }

    header {
        nav {
            min-height: auto;
            padding: 14px 12px;

            ul {
                gap: 10px 20px;

                li a {
                    font-size: 0.82rem;
                }
            }
        }
    }

    section {
        padding: 65px 20px;
        scroll-margin-top: 75px;

        .tituloSecao {
            font-size: clamp(1.6rem, 7vw, 2.2rem);
            line-height: 1.35;
            margin-bottom: 25px;

            &::after {
                width: 60px;
                height: 3px;
                margin-top: 18px;
            }
        }

        p {
            font-size: 0.92rem;
            line-height: 1.85;
            margin-bottom: 18px;
        }
    }

    .secao1 {
        min-height: 75vh;
        padding: 75px 20px;

        .tituloSecao {
            font-size: clamp(2rem, 10vw, 3.2rem);
            letter-spacing: 0.5px;
            line-height: 1.2;
        }

        .subTitulo {
            font-size: 1rem;
            margin-bottom: 30px;
        }

        .divBotoes {
            flex-direction: column;
            width: 100%;
            gap: 12px;

            button {
                width: min(100%, 300px);
                min-height: 50px;
                padding: 13px 20px;
            }
        }
    }

    .secao2 {
        .centro {
            font-size: 1.05rem;
        }

        .card {
            margin-top: 35px;
        }
    }

    .card {
        width: 100%;
        margin-top: 30px;
        padding: 25px 18px;
        gap: 12px;
        border-radius: 16px;

        h3 {
            font-size: 1.12rem;
            line-height: 1.5;
        }

        p {
            font-size: 0.88rem;
            line-height: 1.8;
        }

        .botaoQuiz {
            width: 100%;
            padding: 14px 16px;
        }
    }
}

/* ACESSIBILIDADE: MOVIMENTOS REDUZIDOS */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
