@import url('https://fonts.googleapis.com/css2?family=Changa+One:ital@0;1&family=Gravitas+One&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

:root {
    --cor1: #ffffff;
    --cor2: #7912e7;
    --cor3: #0f172a;
    --cor4: #1164d7;
    --cor5: #f4f7ff;
    --cor6: rgba(145, 160, 211, 0.12);
    --cor7: #5f6474;
    --sombra: 0 18px 35px rgba(20, 24, 41, 0.12);

    --fonte-padrão: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --fonte-destaque: 'Changa One', 'Arial Black', sans-serif;
    --fonte-titulo: 'Gravitas One', 'Segoe UI', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(180deg, #eef3ff 0%, #f7f8fc 100%);
    color: var(--cor3);
    font-family: var(--fonte-padrão);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

header {
    background: linear-gradient(135deg, #6f13e7 0%, #2a6ed9 100%);
    color: var(--cor1);
    padding: 30px 20px 40px;
    border-radius: 0 0 28px 28px;
    box-shadow: 0 24px 50px rgba(76, 44, 162, 0.25);
}

header, main, footer {
    width: min(1100px, calc(100% - 32px));
    margin: 0 auto;
}

.menu {
    margin-bottom: 18px;
}

.menu-links {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.menu-links a {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 999px;
    color: var(--cor1);
    font-weight: 700;
    transition: 0.2s ease;
}

.menu-links a:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-1px);
}

header > div:first-of-type {
    display: flex;
    align-items: center;
    gap: 28px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 20px auto 12px;
}

header > div > img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    padding: 6px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

header h1 {
    font-size: clamp(2.1rem, 4vw, 3.4rem);
    font-family: var(--fonte-destaque);
    letter-spacing: 0.04em;
    line-height: 1.1;
}

header p {
    text-align: center;
    font-size: 1.08rem;
    opacity: 0.96;
}

header > p {
    max-width: 760px;
    margin: 28px auto 0;
    font-size: 1.08rem;
}

main {
    padding: 28px 0 20px;
    display: grid;
    gap: 24px;
}

main section {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(103, 123, 174, 0.12);
    border-radius: 20px;
    padding: 26px 24px;
    box-shadow: var(--sombra);
}

h2 {
    color: var(--cor2);
    font-family: var(--fonte-titulo);
    font-size: clamp(1.5rem, 2vw, 2.1rem);
    margin-bottom: 10px;
}

main p, main li {
    color: var(--cor7);
    font-size: 1.02rem;
}

p a {
    font-size: 0.7em;
    margin-left: 8px;
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

p a:hover {
    color: #007bff;
}

main a {
    color: var(--cor2);
    font-weight: 700;
}

main a:hover {
    text-decoration: underline;
}

section.geral{
    min-height: 650px;
}

section.habilidade ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

section.habilidade li {
    background: linear-gradient(135deg, rgba(121, 18, 231, 0.12), rgba(17, 100, 215, 0.12));
    color: var(--cor3);
    border-radius: 999px;
    padding: 10px 18px;
    font-weight: 700;
    border: 1px solid rgba(121, 18, 231, 0.1);
}

.projetos {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 14px;
}

div.projetos article {
    flex: 1 1 240px;
    min-width: 220px;
    background: var(--cor6);
    border: 1px solid rgba(116, 133, 167, 0.18);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 12px 30px rgba(20, 24, 41, 0.06);
}

div.imagem {
    height: 130px;
    background: linear-gradient(135deg, #7b1ae7 0%, #1d63d8 100%);
}

div.projetos h3 {
    padding: 14px 14px 6px;
    color: var(--cor2);
    font-size: 1.2rem;
}

div.projetos p {
    padding: 0 14px 8px;
    color: var(--cor7);
}

div.projetos a {
    display: inline-block;
    padding: 0 14px 16px;
    margin-top: auto;
}

.escondido {
    display: none;
}

section.mensagem {
    display: grid;
    gap: 18px;
}

.botao {
    background: linear-gradient(135deg, #7a13e7, #234ed6);
    color: var(--cor1);
    border: none;
    border-radius: 12px;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 14px 24px rgba(93, 74, 196, 0.28);
}

.botao:hover {
    transform: translateY(-1px);
}

form.contato {
    display: grid;
    gap: 12px;
}

section label {
    display: block;
    font-weight: 700;
    color: var(--cor3);
}

input.mensagem,
textarea.mensagem {
    width: 100%;
    min-width: 0;
    background: rgba(238, 242, 255, 0.9);
    border: 1px solid rgba(111, 123, 158, 0.18);
    border-radius: 12px;
    padding: 12px 14px;
    color: var(--cor3);
    font: inherit;
}

textarea.mensagem {
    min-height: 140px;
    resize: vertical;
}

input.enviar {
    background: linear-gradient(135deg, #7a13e7, #2c6ee8);
    color: var(--cor1);
    border: none;
    border-radius: 12px;
    padding: 12px 18px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: filter 0.2s ease;
}

input.enviar:hover {
    filter: brightness(1.05);
}

footer {
    padding: 10px 0 30px;
}

footer p {
    background: linear-gradient(135deg, #6f13e7 0%, #2a6ed9 100%);
    color: var(--cor1);
    border-radius: 12px;
    text-align: center;
    padding: 14px 16px;
    box-shadow: 0 14px 26px rgba(95, 58, 175, 0.2);
}

@media screen and (max-width: 600px) {
    header {
        padding-top: 22px;
    }

    header > div:first-of-type {
        gap: 18px;
    }

    header > div > img {
        width: 110px;
        height: 110px;
    }

    .menu-links {
        gap: 8px;
    }

    .menu-links a {
        padding: 8px 12px;
        font-size: 0.92rem;
    }

    main section {
        padding: 22px 18px;
    }
}
