* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: #1f2937;
    background-color: #f8fafc;
    line-height: 1.6;
}

.container {
    width: min(1120px, 90%);
    margin: 0 auto;
}

/* Cabeçalho */

.cabecalho {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 18px 0;
    background-color: #0f172a;
}

.cabecalho .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo {
    color: #ffffff;
    font-size: 1.35rem;
    font-weight: bold;
    text-decoration: none;
}

.menu {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
}

.menu a {
    color: #e2e8f0;
    font-size: 0.95rem;
    text-decoration: none;
}

.menu a:hover {
    color: #fbbf24;
}

/* Apresentação */

.apresentacao {
    min-height: 78vh;
    display: flex;
    align-items: center;
    padding: 80px 0;
    color: #ffffff;
    background:
        linear-gradient(
            135deg,
            rgba(15, 23, 42, 0.98),
            rgba(30, 64, 175, 0.90)
        );
}

.apresentacao-conteudo {
    display: grid;
    grid-template-columns: 1.4fr 0.6fr;
    align-items: center;
    gap: 60px;
}

.destaque {
    margin-bottom: 16px;
    color: #fbbf24;
    font-size: 1.05rem;
    font-weight: bold;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.apresentacao h1 {
    margin-bottom: 24px;
    font-size: clamp(2.5rem, 5vw, 4.2rem);
    line-height: 1.1;
}

.apresentacao-texto > p:not(.destaque) {
    max-width: 750px;
    margin-bottom: 32px;
    font-size: 1.2rem;
}

.botao {
    display: inline-block;
    padding: 14px 26px;
    border-radius: 8px;
    background-color: #fbbf24;
    color: #0f172a;
    font-weight: bold;
    text-decoration: none;
}

.botao:hover {
    background-color: #f59e0b;
}

.apresentacao-imagem img {
    display: block;
    width: 100%;
    max-width: 380px;
    margin-left: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center;
    border-radius: 24px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
}

/* Seções */

section:not(.apresentacao) {
    padding: 85px 0;
}

section:not(.apresentacao):nth-of-type(odd) {
    background-color: #ffffff;
}

section h2 {
    margin-bottom: 20px;
    color: #0f172a;
    font-size: 2.1rem;
}

section p {
    max-width: 850px;
    font-size: 1.08rem;
}

/* Contatos */

.contatos-lista {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.contato-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 8px;
    background-color: #0f172a;
    color: #ffffff;
    font-weight: bold;
    text-decoration: none;
    transition:
        background-color 0.2s,
        transform 0.2s;
}

.contato-link:hover {
    background-color: #1e40af;
    transform: translateY(-2px);
}

.contato-link svg {
    width: 23px;
    height: 23px;
    flex-shrink: 0;
}

/* Rodapé */

.rodape {
    padding: 28px 0;
    background-color: #0f172a;
    color: #cbd5e1;
    text-align: center;
}

/* Celulares e tablets */

@media (max-width: 800px) {
    .cabecalho .container {
        flex-direction: column;
        align-items: flex-start;
    }

    .menu {
        gap: 14px;
    }

    .apresentacao {
        min-height: auto;
        padding: 70px 0;
    }

    .apresentacao-conteudo {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .apresentacao-imagem img {
        max-width: 320px;
        margin: 0 auto;
    }

    section:not(.apresentacao) {
        padding: 65px 0;
    }
}

@media (max-width: 520px) {
    .menu {
        gap: 10px 16px;
    }

    .apresentacao h1 {
        font-size: 2.5rem;
    }

    .contato-link {
        width: 100%;
    }
}
/* Seção Sobre mim */

.sobre-conteudo {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    align-items: start;
    gap: 60px;
}

.secao-etiqueta {
    margin-bottom: 8px;
    color: #1e40af;
    font-size: 0.95rem;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.sobre-texto p {
    margin-bottom: 18px;
}

.sobre-destaques {
    display: grid;
    gap: 16px;
}

.destaque-card {
    display: flex;
    flex-direction: column;
    padding: 20px;
    border-left: 5px solid #fbbf24;
    border-radius: 10px;
    background-color: #ffffff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.destaque-card strong {
    color: #0f172a;
    font-size: 1.05rem;
}

.destaque-card span {
    margin-top: 4px;
    color: #475569;
}

@media (max-width: 800px) {
    .sobre-conteudo {
        grid-template-columns: 1fr;
        gap: 35px;
    }
}
/* Projetos */

.secao-introducao {
    margin-bottom: 36px;
}

.projetos-grade {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.projeto-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 340px;
    padding: 30px;
    border-radius: 16px;
    background-color: #ffffff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.09);
    transition:
        transform 0.25s,
        box-shadow 0.25s;
}

.projeto-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
}

.projeto-numero {
    margin-bottom: 20px;
    color: #f59e0b;
    font-size: 1.1rem;
    font-weight: bold;
}

.projeto-card h3 {
    margin-bottom: 16px;
    color: #0f172a;
    font-size: 1.4rem;
    line-height: 1.3;
}

.projeto-card p {
    margin-bottom: 24px;
    color: #475569;
}

.projeto-card a {
    margin-top: auto;
    color: #1e40af;
    font-weight: bold;
    text-decoration: none;
}

.projeto-card a:hover {
    text-decoration: underline;
}

@media (max-width: 900px) {
    .projetos-grade {
        grid-template-columns: 1fr;
    }

    .projeto-card {
        min-height: auto;
    }
}
/* Cursos */

.cursos-grade {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.curso-card {
    display: flex;
    flex-direction: column;
    min-height: 300px;
    padding: 30px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background-color: #ffffff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.07);
    transition:
        transform 0.25s,
        box-shadow 0.25s;
}

.curso-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.13);
}

.curso-card h3 {
    margin-bottom: 16px;
    color: #0f172a;
    font-size: 1.4rem;
    line-height: 1.3;
}

.curso-card p {
    margin-bottom: 24px;
    color: #475569;
}

.curso-card a {
    margin-top: auto;
    color: #1e40af;
    font-weight: bold;
    text-decoration: none;
}

.curso-card a:hover {
    text-decoration: underline;
}

@media (max-width: 900px) {
    .cursos-grade {
        grid-template-columns: 1fr;
    }

    .curso-card {
        min-height: auto;
    }
}
/* Cursos */

.cursos-grade {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 36px;
}

.curso-card {
    display: flex;
    flex-direction: column;
    min-height: 300px;
    padding: 30px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background-color: #ffffff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.07);
    transition:
        transform 0.25s,
        box-shadow 0.25s;
}

.curso-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.13);
}

.curso-card h3 {
    margin-bottom: 16px;
    color: #0f172a;
    font-size: 1.4rem;
    line-height: 1.3;
}

.curso-card p {
    margin-bottom: 24px;
    color: #475569;
}

.curso-card a {
    margin-top: auto;
    color: #1e40af;
    font-weight: bold;
    text-decoration: none;
}

.curso-card a:hover {
    text-decoration: underline;
}

@media (max-width: 900px) {
    .cursos-grade {
        grid-template-columns: 1fr;
    }

    .curso-card {
        min-height: auto;
    }
}
/* Livros e materiais */

.materiais-grade {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 36px;
}

.material-card {
    display: flex;
    flex-direction: column;
    min-height: 330px;
    padding: 30px;
    border-radius: 16px;
    background-color: #0f172a;
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.14);
    transition:
        transform 0.25s,
        box-shadow 0.25s;
}

.material-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.2);
}

.material-status {
    display: inline-block;
    align-self: flex-start;
    margin-bottom: 22px;
    padding: 6px 10px;
    border-radius: 6px;
    background-color: #fbbf24;
    color: #0f172a;
    font-size: 0.78rem;
    font-weight: bold;
    text-transform: uppercase;
}

.material-card h3 {
    margin-bottom: 16px;
    font-size: 1.4rem;
    line-height: 1.3;
}

.material-card p {
    margin-bottom: 24px;
    color: #cbd5e1;
}

.material-card a {
    margin-top: auto;
    color: #fbbf24;
    font-weight: bold;
    text-decoration: none;
}

.material-card a:hover {
    text-decoration: underline;
}

@media (max-width: 900px) {
    .materiais-grade {
        grid-template-columns: 1fr;
    }

    .material-card {
        min-height: auto;
    }
}
/* Livros */

.livros-grade {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin-top: 38px;
}

.livro-card {
    overflow: hidden;
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    min-height: 390px;
    border-radius: 18px;
    background-color: #ffffff;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.11);
    transition:
        transform 0.25s,
        box-shadow 0.25s;
}

.livro-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 44px rgba(15, 23, 42, 0.17);
}

.livro-capa {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 390px;
    padding: 28px;
    color: #ffffff;
}

.livro-capa span {
    margin-bottom: 18px;
    font-size: 0.85rem;
    font-weight: bold;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.livro-capa strong {
    font-size: 1.8rem;
    line-height: 1.2;
}

.livro-capa small {
    margin-top: 22px;
    font-size: 0.9rem;
}

.livro-capa-azul {
    background:
        linear-gradient(
            145deg,
            #0f172a,
            #1e40af
        );
}

.livro-capa-dourada {
    background:
        linear-gradient(
            145deg,
            #78350f,
            #d97706
        );
}

.livro-capa-verde {
    background:
        linear-gradient(
            145deg,
            #064e3b,
            #059669
        );
}

.livro-capa-imagem {
    padding: 0;
    background-color: #ffffff;
}

.livro-capa-imagem img {
    width: 100%;
    height: 100%;
    min-height: 390px;
    object-fit: cover;
}

.livro-conteudo {
    display: flex;
    flex-direction: column;
    padding: 30px;
}

.livro-status {
    align-self: flex-start;
    margin-bottom: 20px;
    padding: 6px 10px;
    border-radius: 6px;
    background-color: #fbbf24;
    color: #0f172a;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
}

.livro-conteudo h3 {
    margin-bottom: 16px;
    color: #0f172a;
    font-size: 1.35rem;
    line-height: 1.3;
}

.livro-conteudo p {
    margin-bottom: 24px;
    color: #475569;
}

.livro-conteudo a {
    margin-top: auto;
    color: #1e40af;
    font-weight: bold;
    text-decoration: none;
}

.livro-conteudo a:hover {
    text-decoration: underline;
}

/* Links e recursos */

.links-grade {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 38px;
}

.link-card {
    display: flex;
    flex-direction: column;
    min-height: 310px;
    padding: 28px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background-color: #ffffff;
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.07);
    transition:
        transform 0.25s,
        box-shadow 0.25s;
}

.link-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.13);
}

.link-card-destaque {
    border: none;
    background:
        linear-gradient(
            145deg,
            #0f172a,
            #1e3a8a
        );
    color: #ffffff;
}

.link-categoria,
.link-status {
    align-self: flex-start;
    margin-bottom: 20px;
    padding: 6px 10px;
    border-radius: 6px;
    background-color: #e2e8f0;
    color: #0f172a;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
}

.link-status {
    background-color: #fbbf24;
}

.link-card h3 {
    margin-bottom: 16px;
    color: #0f172a;
    font-size: 1.35rem;
    line-height: 1.3;
}

.link-card-destaque h3 {
    color: #ffffff;
}

.link-card p {
    margin-bottom: 24px;
    color: #475569;
}

.link-card-destaque p {
    color: #dbeafe;
}

.link-card a {
    margin-top: auto;
    color: #1e40af;
    font-weight: bold;
    text-decoration: none;
}

.link-card-destaque a {
    color: #fbbf24;
}

.link-card a:hover {
    text-decoration: underline;
}

@media (max-width: 1000px) {
    .livros-grade {
        grid-template-columns: 1fr;
    }

    .links-grade {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .livro-card {
        grid-template-columns: 1fr;
    }

    .livro-capa,
    .livro-capa-imagem img {
        min-height: 320px;
    }

    .links-grade {
        grid-template-columns: 1fr;
    }

    .link-card {
        min-height: auto;
    }
}
/* Correção da imagem do livro sobre o universo */

.livro-capa-imagem {
    min-width: 0;
    overflow: hidden;
    padding: 18px;
    background-color: #ffffff;
    align-items: center;
    justify-content: center;
}

.livro-capa-imagem img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 0;
    object-fit: contain;
    object-position: center;
}
/* Menu para celular */

.menu-botao {
    display: none;
    width: 42px;
    height: 42px;
    padding: 9px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.menu-botao span {
    display: block;
    width: 100%;
    height: 3px;
    margin: 5px 0;
    border-radius: 3px;
    background-color: #ffffff;
}

section {
    scroll-margin-top: 90px;
}

@media (max-width: 800px) {
    .cabecalho {
        padding: 14px 0;
    }

    .cabecalho .container {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
    }

    .logo {
        font-size: 1.2rem;
    }

    .menu-botao {
        display: block;
    }

    .menu {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 0;
        padding-top: 14px;
    }

    .menu.ativo {
        display: flex;
    }

    .menu a {
        display: block;
        padding: 11px 0;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
    }

    .apresentacao {
        padding-top: 65px;
    }
}