@import url('https://fonts.googleapis.com/css2?family=Lexend+Giga:wght@400;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #ffc9d4;
    --bg-secondary: #f5b3c1;
    --accent-green: #6b7c3c;
    --accent-green-light: #8fa850;
    --text-dark: #2d2d2d;
    --text-white: #ffffff;
    --card-pink: #d97b94;
    --shadow-pink: #ff9bb3;
}

body.dark-mode {
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --accent-green: #0f3064;
    --accent-green-light: #4a6fa5;
    --text-dark: #ffffff;
    --text-white: #ffffff;
    --card-pink: #6b3a7c;
    --shadow-pink: #071833;
}

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    font-family: 'Lexend Giga', sans-serif;
    font-weight: 600;
    background-color: var(--bg-primary);
    color: var(--text-dark);
    transition: all 0.3s ease;
    overflow-x: hidden;
    width: 100%;
}

/* ── NAVBAR ── */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 60px;
    background-color: var(--bg-primary);
    flex-wrap: wrap;
    gap: 12px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.menu {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.menu a {
    color: var(--accent-green-light);
    text-decoration: none;
    margin: 0 12px;
    font-weight: 600;
    font-size: clamp(0.75rem, 2vw, 1rem);
    transition: opacity 0.3s;
    white-space: nowrap;
}

.menu a:hover {
    opacity: 0.7;
}

.botaoesquerda {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.botao {
    padding: 10px 20px;
    border: none;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
    text-decoration: none;
    display: inline-block;
    font-size: clamp(0.75rem, 2vw, 0.95rem);
    white-space: nowrap;
}

.botao:hover {
    transform: scale(1.05);
}

.curriculo {
    background: var(--accent-green-light);
    color: var(--text-white);
}

.claroescuro {
    background: var(--accent-green-light);
    color: var(--text-white);
}

/* ── DIVISOR ── */
.divisor {
    height: 2px;
    background-color: var(--accent-green-light);
    margin: 0 60px;
}

/* ── HERO / PRINCIPAL ── */
.principal {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 80px 60px;
    gap: 80px;
    flex-wrap: wrap;
}

.principal-esquerda {
    position: relative;
    width: 280px;
    height: 280px;
    flex-shrink: 0;
}

.circulo {
    position: absolute;
    border-radius: 50%;
}

.circulo-1 {
    width: 100px;
    height: 100px;
    background-color: var(--accent-green-light);
    bottom: 20px;
    left: 0;
}

.circulo-2 {
    width: 180px;
    height: 180px;
    background-color: var(--accent-green-light);
    top: 0;
    right: 0;
    opacity: 0.8;
}

.imagem-perfil {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background-color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    overflow: hidden;
    border: 8px solid white;
    z-index: 10;
}

.imagem-perfil img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.principal-direita {
    max-width: 450px;
    flex: 1;
    min-width: 240px;
}

.principal-direita h1 {
    font-size: clamp(2rem, 6vw, 3.5em);
    color: var(--accent-green-light);
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 3px 3px 0px var(--shadow-pink);
}

.principal-direita p {
    font-size: clamp(0.9rem, 2.5vw, 1.2em);
    line-height: 1.6;
    color: var(--accent-green-light);
}

/* ── SECTIONS ── */
section {
    padding: 80px 60px;
    width: 100%;
}

h2 {
    font-size: clamp(1.8rem, 5vw, 3em);
    color: var(--accent-green);
    text-align: center;
    margin-bottom: 60px;
    font-weight: 700;
    text-shadow: 3px 3px 0px var(--shadow-pink);
}

/* ── SOBRE ── */
.container-sobre {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    padding-top: 60px;
}

.conteudo-sobre {
    background-color: var(--card-pink);
    padding: 50px;
    padding-right: 300px;
    border-radius: 40px;
    width: 100%;
    position: relative;
}

.conteudo-sobre h3 {
    color: var(--accent-green);
    font-size: clamp(1.4rem, 4vw, 2.5em);
    margin-bottom: 25px;
    font-weight: 700;
}

.conteudo-sobre p {
    color: var(--accent-green);
    line-height: 1.8;
    font-size: clamp(0.85rem, 2vw, 1.15em);
    margin-bottom: 15px;
}

.imagem-sobre {
    width: 260px;
    height: 260px;
    border-radius: 30px;
    background-color: white;
    overflow: hidden;
    position: absolute;
    top: -20px;
    right: -20px;
    border: 5px solid white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.imagem-sobre img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ── REDES SOCIAIS ── */
.rede-social {
    padding: 60px 40px;
}

.rede-social h2 {
    font-size: clamp(1.5rem, 4vw, 3rem);
    font-weight: bold;
    color: var(--accent-green);
    text-align: right;
    margin-bottom: 40px;
    margin-right: 60px;
    letter-spacing: 0.1em;
}

.links-sociais {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-end;
    margin-right: 60px;
}

.links-sociais a {
    font-size: clamp(2rem, 8vw, 5rem);
    font-weight: bold;
    color: var(--card-pink);
    text-decoration: none;
    text-align: right;
    letter-spacing: 0.08em;
    transition: transform 0.3s ease;
    line-height: 1.1;
}

.links-sociais a:hover {
    transform: translateX(10px);
    opacity: 0.8;
}

/* ── HABILIDADES ── */
.grade-habilidades {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.cartao-habilidade {
    background-color: var(--card-pink);
    padding: 28px;
    border-radius: 30px;
}

.cartao-habilidade h3 {
    color: var(--accent-green);
    margin-bottom: 15px;
    font-size: clamp(0.85rem, 1.5vw, 1.3em);
    font-weight: 700;
}

.cartao-habilidade p {
    color: var(--accent-green);
    font-size: clamp(0.75rem, 1.2vw, 0.95em);
    line-height: 1.6;
}

/* ── PROJETOS ── */
.container-projetos {
    color: var(--accent-green);
    max-width: 1100px;
    margin: 0 auto 40px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.cartao-projeto {
    background-color: var(--card-pink);
    padding: 35px;
    border-radius: 30px;
    max-width: 480px;
    cursor: pointer;

    opacity: 0;
    transform: translateY(80px);
    transition: all 0.9s ease-out;
}

.projeto-esquerda {
    align-self: flex-start;
    margin-left: 40px;
    transform: translateX(-120px);
}

.projeto-direita {
    align-self: flex-end;
    margin-right: 40px;
    transform: translateX(120px);
}

.cartao-projeto.show {
    opacity: 1;
    transform: translateX(0) translateY(0);
}

.cartao-projeto h3 {
    color: var(--accent-green);
    margin-bottom: 15px;
    font-size: clamp(1rem, 2vw, 1.4em);
    font-weight: 700;
}

.cartao-projeto p {
    color: var(--accent-green);
    line-height: 1.7;
    font-size: clamp(0.8rem, 1.5vw, 1em);
}

/* ── FOOTER ── */
footer {
    text-align: center;
    padding: 30px;
    background-color: var(--bg-primary);
    font-size: clamp(0.75rem, 2vw, 0.95em);
    color: var(--accent-green);
}

/* ── RESPONSIVIDADE ── */
@media (max-width: 1024px) {
    nav {
        padding: 16px 30px;
    }

    .divisor {
        margin: 0 30px;
    }

    section {
        padding: 60px 30px;
    }

    .container-sobre {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .conteudo-sobre {
        padding: 40px 30px;
    }

    .imagem-sobre {
        position: relative;
        top: 0;
        right: 0;
        margin: 28px auto 0;
        display: block;
        width: 240px;
        height: 240px;
    }

    .grade-habilidades {
        grid-template-columns: repeat(2, 1fr);
    }

    .rede-social h2 {
        margin-right: 30px;
    }

    .links-sociais {
        margin-right: 30px;
    }
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        padding: 16px 20px;
    }

    .menu {
        gap: 4px;
    }

    .menu a {
        margin: 0 8px;
        font-size: 0.85rem;
    }

    .divisor {
        margin: 0 20px;
    }

    section {
        padding: 50px 20px;
    }

    .principal {
        flex-direction: column;
        align-items: center;
        gap: 40px;
        padding: 50px 20px;
        text-align: center;
    }

    .principal-esquerda {
        width: 220px;
        height: 220px;
    }

    .circulo-1 {
        width: 80px;
        height: 80px;
    }

    .circulo-2 {
        width: 150px;
        height: 150px;
    }

    .imagem-perfil {
        width: 170px;
        height: 170px;
    }

    .principal-direita {
        min-width: unset;
        max-width: 100%;
    }

    .grade-habilidades {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .projeto-esquerda,
    .projeto-direita {
        margin-left: 0;
        margin-right: 0;
        align-self: center;
        max-width: 100%;
        width: 100%;
        transform: translateY(80px);
    }

    .rede-social {
        padding: 50px 20px;
    }

    .rede-social h2 {
        text-align: center;
        margin-right: 0;
    }

    .links-sociais {
        align-items: center;
        margin-right: 0;
    }

    .links-sociais a {
        text-align: center;
    }

    h2 {
        margin-bottom: 40px;
    }
}

@media (max-width: 480px) {
    nav {
        padding: 14px 16px;
    }

    .menu a {
        font-size: 0.78rem;
        margin: 0 6px;
    }

    .botao {
        padding: 8px 14px;
        font-size: 0.78rem;
    }

    .divisor {
        margin: 0 16px;
    }

    section {
        padding: 40px 16px;
    }

    .conteudo-sobre {
        padding: 28px 18px;
        border-radius: 24px;
    }

    .imagem-sobre {
        width: 180px;
        height: 180px;
    }

    .cartao-habilidade {
        padding: 20px 16px;
        border-radius: 20px;
    }

    .cartao-projeto {
        padding: 24px 18px;
        border-radius: 20px;
    }

    .links-sociais a {
        font-size: clamp(1.8rem, 12vw, 3.5rem);
    }

    .principal {
        padding: 36px 16px;
        gap: 30px;
    }

    .principal-esquerda {
        width: 180px;
        height: 180px;
    }

    .circulo-1 {
        width: 65px;
        height: 65px;
    }

    .circulo-2 {
        width: 120px;
        height: 120px;
    }

    .imagem-perfil {
        width: 140px;
        height: 140px;
        border-width: 5px;
    }

    .rede-social {
        padding: 40px 16px;
    }

    .rede-social h2 {
        margin-right: 0;
    }
}
