@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

/* VARIÁVEIS */
:root {
    color-scheme: dark;

    --bg: #101827;
    --panel: #182337;
    --line: #2b3a51;
    --text: #f3f6fb;
    --muted: #a6b3c6;
    --accent: #7be0c1;
}

/* CONFIGURAÇÕES GERAIS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'DM Sans', Arial, sans-serif;
    line-height: 1.6;
}

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

a:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 4px;
}

.container {
    width: min(1080px, calc(100% - 40px));
    margin: auto;
}

/* CABEÇALHO */
.topbar {
    padding: 26px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid var(--line);
}

.brand {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 19px;
    letter-spacing: -0.6px;
}

.top-contact {
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
    white-space: nowrap;
}

.top-contact:hover {
    color: var(--accent);
}

/* APRESENTAÇÃO */
.hero {
    padding: 100px 0 110px;
    display: grid;
    grid-template-columns: 1.35fr 0.8fr;
    align-items: center;
    gap: 75px;
}

.eyebrow {
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 22px;
}

.dot {
    display: inline-block;
    background: var(--accent);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 7px;
}

h1, h2, h3 {
    font-family: 'Manrope', sans-serif;
    line-height: 1.15;
}

.hero h1 {
    font-size: clamp(38px, 5vw, 64px);
    letter-spacing: -2.8px;
    margin-bottom: 24px;
}

.hero h1 span {
    color: var(--accent);
}

.intro {
    font-size: 19px;
    max-width: 560px;
    margin-bottom: 16px;
}

.support {
    color: var(--muted);
    max-width: 540px;
}

/* BOTÕES */
.actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 34px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    border-radius: 10px;
    padding: 13px 19px;
    font-weight: 800;
    font-size: 14px;
    transition: transform 0.2s, background 0.2s;
}

.button:hover {
    transform: translateY(-3px);
}

.primary {
    background: var(--accent);
    color: #0c1b20;
}

.primary:hover {
    background: #a4efd8;
}

.secondary {
    border: 1px solid var(--line);
    background: #1b293e;
}

.secondary:hover {
    background: #263850;
}

/* FOTO */
.portrait-wrap {
    width: 100%;
    max-width: 350px;
    justify-self: end;
}

.portrait {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1.08;
    object-fit: cover;
    object-position: center 20%;
    border-radius: 22px;
}

/* PROJETOS */
.projects-section {
    background: #141f31;
    padding: 82px 0 90px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 28px;
}

.section-heading h2,
.contact h2 {
    font-size: clamp(28px, 3.3vw, 39px);
    letter-spacing: -1px;
}

.section-heading p,
.contact p:not(.eyebrow) {
    color: var(--muted);
}


/* GRID DOS PROJETOS */
.projects {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

/* CARTÃO */
.project {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 17px;
    overflow: hidden;

    display: flex;
    flex-direction: column;

    transition: transform 0.2s, border-color 0.2s;
}

.project:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

/* IMAGEM DO PROJETO */
.project-image-link {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.project-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;

    transition: transform 0.3s;
}

.project-image-link:hover .project-image {
    transform: scale(1.04);
}

/* CONTEÚDO */
.project-content {
    padding: 26px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
}

.project-type {
    color: var(--accent);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 800;
    margin-bottom: 10px;
}

.project h3 {
    font-size: 23px;
    margin-bottom: 12px;
}

.project-description {
    color: var(--muted);
    margin-bottom: 24px;
}

/* LINK */
.project-link {
    margin-top: auto;
    color: var(--accent);
    font-size: 14px;
    font-weight: 800;
}

.project-link:hover {
    text-decoration: underline;
}

.project-status {
    margin-top: auto;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

/* CONTATO */
.contact {
    padding: 85px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
}

.contact .eyebrow {
    margin-bottom: 12px;
}

.contact h2 {
    margin-bottom: 10px;
}

.contact-actions {
    display: flex;
    gap: 22px;
    align-items: center;
    flex-wrap: wrap;
}

.contact-link {
    font-size: 14px;
    font-weight: 800;
}

.contact-link:hover {
    color: var(--accent);
}

/* RODAPÉ */
footer {
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 12px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 25px 0;
}

/* RESPONSIVIDADE */
@media (max-width: 750px) {

    .hero {
        grid-template-columns: 1fr;
        padding: 65px 0 80px;
        gap: 55px;
    }

    .hero h1 {
        letter-spacing: -1.8px;
    }

    .portrait-wrap {
        justify-self: center;
        width: min(310px, 85%);
    }

    .section-heading,
    .contact {
        display: block;
    }

    .section-heading p {
        margin-top: 12px;
    }

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

    .contact-actions {
        margin-top: 25px;
    }

    .footer-content {
        flex-direction: column;
    }

    .projects-section {
        padding: 65px 0;
    }

    .top-contact {
        font-size: 12px;
    }

    .brand {
        font-size: 15px;
    }
}

@media (max-width: 380px) {
    .topbar {
        gap: 10px;
    }

    .brand {
        font-size: 14px;
    }

    .top-contact {
        font-size: 11px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .button {
        transition: none;
    }
}
