/* ==============================
   RESET
================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    background-color: #0b0b0d;
    color: #f7f7f8;
    font-family: "Manrope", sans-serif;
    max-width: 1400px;
    margin: 0 auto;
}

a {
    color: inherit;
}

a:focus-visible {
    outline: 3px solid rgba(255, 92, 107, 0.7);
    outline-offset: 4px;
}

::selection {
    color: #fff;
    background: #dc3545;
}


/* ==============================
   HEADER
================================= */

header {
    height: 80px;
    padding: 0 70px;
    background-color: rgba(11, 11, 13, 0.9);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid #222;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header h1 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 2rem;
    color: #dc3545;
    font-weight: 700;
}

header h1 span {
    color: #fff;
}

.navegacao-primaria {
    display: flex;
    align-items: center;
    gap: 35px;
}

.navegacao-primaria li a {
    color: #c9c9ce;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.25s ease;
}

.navegacao-primaria li a:hover {
    color: #dc3545;
}


/* ==============================
   SEÇÃO INICIAL
================================= */

.section-div {
    min-height: 650px;
    padding: 80px 100px;

    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;

    background:
        radial-gradient(
            circle at 80% 50%,
            rgba(220, 53, 69, 0.12),
            transparent 35%
        ),
        radial-gradient(circle at 8% 90%, rgba(220, 53, 69, 0.08), transparent 28%);

    animation: inicializar 0.8s forwards;
    position: relative;
    overflow: hidden;
}

.section-div::after {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    right: -110px;
    bottom: -160px;
    border: 1px solid rgba(220, 53, 69, 0.32);
    border-radius: 50%;
    animation: orbitar 8s ease-in-out infinite;
    pointer-events: none;
}

.section-div > * {
    position: relative;
    z-index: 1;
}

.section-div > div {
    display: grid;
    gap: 22px;
}

.section-div h2:first-child {
    color: #dc3545;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-family: "Space Grotesk", sans-serif;
}

.section-div h2.digitando {
    color: #fff;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(2.7rem, 5vw, 4.4rem);
    letter-spacing: -0.05em;
    line-height: 1.1;
}

.digitando::after {
    content: "|";
    color: #dc3545;
    margin-left: 5px;
    animation: pisca 0.5s infinite;
}

.section-div p {
    max-width: 600px;
    color: #b7b7bd;
    font-size: 1.05rem;
    line-height: 1.8;
}

.hero-acoes {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.hero-acoes a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 22px;
    border: 1px solid #dc3545;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.hero-acoes .botao-primario {
    background-color: #dc3545;
}

.hero-acoes .botao-primario:hover {
    background-color: #ed4b5b;
    transform: translateY(-3px);
}

.hero-acoes .botao-primario i {
    transition: transform 0.25s ease;
}

.hero-acoes .botao-primario:hover i {
    transform: translateX(4px);
}

.hero-acoes .botao-secundario {
    color: #f3f3f5;
    border-color: #3d3d42;
}

.hero-acoes .botao-secundario:hover {
    border-color: #dc3545;
    transform: translateY(-3px);
}

.section-div img {
    width: 430px;
    max-width: 100%;
    justify-self: center;

    border-radius: 20px;

    border: 1px solid #dc3545;

    box-shadow:
        0 0 40px rgba(220, 53, 69, 0.15);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.section-div img:hover {
    transform: translateY(-6px) rotate(1deg);
    box-shadow: 0 20px 55px rgba(220, 53, 69, 0.22);
}


/* ==============================
   ANIMAÇÃO INICIAL
================================= */

@keyframes inicializar {

    from {
        opacity: 0;
        transform: translateY(-40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pisca {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}


/* ==============================
   MAIN
================================= */

main {
    background-color: #101012;
}


/* ==============================
   SOBRE
================================= */

.sobre {
    padding: 80px 100px;

    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 50px;

    border-top: 1px solid #222;
}

.sobre_titulo {
    grid-column: 1 / -1;
    text-align: left;
}

.sobre_titulo h1 {
    color: #fff;
    font-family: "Space Grotesk", sans-serif;
    font-size: 2.3rem;
    margin-bottom: 8px;
}

.sobre_titulo p {
    color: #888;
    margin-bottom: 15px;
}

.sobre_titulo div {
    display: flex;
    gap: 7px;
}

.sobre_titulo span {
    width: 8px;
    height: 8px;

    background-color: #dc3545;
    border-radius: 50%;
}

.sobre > img {
    width: 280px;
    height: 280px;

    object-fit: cover;

    border-radius: 50%;
    border: 2px solid #dc3545;

    box-shadow:
        0 0 25px rgba(220, 53, 69, 0.1);
}

.sobre_conteudo {
    display: grid;
    gap: 30px;
}

.sobre_texto h1 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.7rem;
    color: #fff;
    margin-bottom: 20px;
}

.sobre_texto h1::after {
    content: "";
    display: block;

    width: 55px;
    height: 4px;

    margin-top: 15px;

    background-color: #dc3545;
    border-radius: 5px;
}

.sobre_texto p {
    color: #aaa;
    font-size: 1rem;
    line-height: 1.8;
}

.sobre_info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.sobre_info p {
    color: #c1c1c7;
    font-size: 0.95rem;
    padding: 12px 14px;
    background: #151518;
    border: 1px solid #29292e;
    border-radius: 8px;
}

@keyframes orbitar {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-28px, -18px) scale(1.08); }
}

.sobre_info i {
    color: #dc3545;
    margin-right: 10px;
}


/* ==============================
   SEÇÕES GERAIS
================================= */

.secao {
    padding: 80px 100px;
}

.titulo-secao {
    margin-bottom: 40px;
}

.titulo-secao h2 {
    color: #fff;
    font-family: "Space Grotesk", sans-serif;
    font-size: 2.3rem;
    letter-spacing: -0.04em;
    margin-bottom: 8px;
}

.titulo-secao h2::after {
    content: "";

    display: block;

    width: 45px;
    height: 3px;

    margin-top: 12px;

    background-color: #dc3545;
}

.titulo-secao p {
    color: #96969d;
}


/* ==============================
   RESUMO / HABILIDADES
================================= */

.resumo {
    background-color: #0d0d0f;
}

.habilidades {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.habilidade {
    min-height: 150px;

    padding: 25px;

    background-color: #121214;

    border: 1px solid #29292c;
    border-radius: 12px;

    transition: transform 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.habilidade:hover {
    border-color: #dc3545;
    background-color: #18181c;
    transform: translateY(-5px);
}

.habilidade i {
    color: #dc3545;
    font-size: 2rem;
    margin-bottom: 15px;
}

.habilidade h3 {
    color: #fff;
    font-family: "Space Grotesk", sans-serif;
    margin-bottom: 10px;
}

.habilidade p {
    color: #888;
    line-height: 1.5;
    font-size: 0.9rem;
}


/* ==============================
   PORTFÓLIO
================================= */

.portfolio {
    background-color: #101012;
}

.projetos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.projeto {
    padding: 30px;

    background-color: #141416;

    border: 1px solid #29292c;
    border-radius: 12px;

    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.projeto:hover {
    border-color: #dc3545;
    transform: translateY(-5px);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.22);
}

.projeto i {
    color: #dc3545;
    font-size: 2.3rem;
    margin-bottom: 20px;
}

.projeto h3 {
    color: #fff;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.projeto p {
    color: #888;
    line-height: 1.6;
    margin-bottom: 20px;
}

.projeto a {
    display: inline-block;

    padding: 10px 20px;

    border: 1px solid #dc3545;
    border-radius: 5px;

    color: #fff;

    font-size: 0.9rem;

    font-weight: 700;
    transition: transform 0.25s ease, background-color 0.25s ease;
}

.projeto a:hover {
    background-color: #dc3545;
}


/* ==============================
   PRINCÍPIO
================================= */

.principio {
    background-color: #0d0d0f;
}

.principio-conteudo {
    max-width: 800px;
}

.principio-conteudo p {
    color: #aaa;
    font-size: 1.1rem;
    line-height: 1.8;
}


/* ==============================
   CONTATO
================================= */

.contato {
    background-color: #101012;
}

.contatos {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.contatos a {
    min-width: 170px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    padding: 15px 25px;

    border: 1px solid #29292c;
    border-radius: 10px;

    color: #fff;

    font-weight: 700;
    transition: transform 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.contatos a:hover {
    border-color: #dc3545;
    background-color: #17171b;
    transform: translateY(-3px);
}

.contatos i {
    color: #dc3545;
    font-size: 1.3rem;
}


/* ==============================
   FOOTER
================================= */

footer {
    padding: 25px;

    background-color: #080809;

    text-align: center;

    color: #666;

    border-top: 1px solid #222;
}

footer span {
    color: #dc3545;
}


/* ==============================
   RESPONSIVIDADE
================================= */

@media (max-width: 900px) {

    header {
        padding: 20px 30px;
    }

    .navegacao-primaria {
        gap: 15px;
    }

    .section-div {
        padding: 60px 40px;
        grid-template-columns: 1fr;
        text-align: center;
    }

    .section-div > div {
        justify-items: center;
    }

    .hero-acoes {
        justify-content: center;
    }

    .section-div h2.digitando {
        font-size: 2.8rem;
    }

    .sobre {
        padding: 60px 40px;
        grid-template-columns: 1fr;
    }

    .sobre > img {
        justify-self: center;
    }

    .sobre_conteudo {
        grid-column: 1;
    }

    .habilidades {
        grid-template-columns: repeat(2, 1fr);
    }
}


@media (max-width: 600px) {

    header {
        height: auto;
        flex-direction: column;
        gap: 20px;
    }

    .navegacao-primaria {
        flex-wrap: wrap;
        justify-content: center;
    }

    .section-div,
    .sobre,
    .secao {
        padding: 50px 20px;
    }

    .section-div h2.digitando {
        font-size: 2.2rem;
    }

    .section-div p {
        font-size: 0.98rem;
    }

    .hero-acoes {
        width: 100%;
    }

    .hero-acoes a {
        justify-content: center;
        flex: 1 1 180px;
    }

    .sobre > img {
        width: min(280px, 78vw);
        height: min(280px, 78vw);
    }

    .sobre_info {
        grid-template-columns: 1fr;
    }

    .habilidades,
    .projetos {
        grid-template-columns: 1fr;
    }

    .titulo-secao h2,
    .sobre_titulo h1 {
        font-size: 2rem;
    }
}

.projeto-links {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.projeto-links a {
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 8px;
    transition: 0.3s;
}

.projeto-links a:hover {
    transform: translateY(-2px);
}

/* Animações acionadas ao elemento entrar na tela */
.animacoes-ativas .revelar {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--atraso, 0ms);
}

.animacoes-ativas .revelar.revelar-lateral {
    transform: translateX(-32px);
}

.animacoes-ativas .revelar.visivel {
    opacity: 1;
    transform: translate(0, 0);
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
