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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background:
        radial-gradient(circle at 85% 20%, rgba(68, 42, 255, 0.18), transparent 28%),
        radial-gradient(circle at 20% 70%, rgba(128, 0, 255, 0.10), transparent 28%),
        #050711;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

/* MENU */

.header {
    width: 100%;
    height: 80px;
    padding: 0 8%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    background: rgba(5, 7, 17, 0.9);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.logo {
    font-size: 22px;
    font-weight: bold;
    color: #8b5cf6;
    letter-spacing: 1px;
}

.nav {
    display: flex;
    gap: 28px;
}

.nav a {
    font-size: 15px;
    color: #d8d8e5;
    transition: 0.3s;
    position: relative;
}

.nav a::after {
    content: "";
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #8b5cf6, #3b82f6);
    position: absolute;
    left: 0;
    bottom: -6px;
    transition: 0.3s;
}

.nav a:hover {
    color: #ffffff;
}

.nav a:hover::after {
    width: 100%;
}

.menu-mobile {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 28px;
    cursor: pointer;
}

/* INÍCIO */

.inicio {
    min-height: 100vh;
    padding: 130px 8% 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 70px;
}

.inicio-conteudo {
    width: 55%;
}

.freelancer {
    display: inline-block;
    color: #8b5cf6;
    font-size: 18px;
font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.inicio h1 {
    font-size: clamp(55px, 7vw, 100px);
    line-height: 0.95;
    letter-spacing: -4px;
    margin-bottom: 25px;
}

.inicio h1 span {
.inicio h1 span {
    display: block;
    background: linear-gradient(90deg, #9333ea, #3b82f6);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
}

.inicio h2 {
    font-size: 26px;
    color: #a855f7;
    margin-bottom: 22px;
}

.inicio-conteudo > p {
    max-width: 650px;
    font-size: 21px;
    color: #c8c8d3;
    margin-bottom: 30px;
}

.destaques {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin-bottom: 35px;
}

.destaques span {
    color: #e5e5ed;
}

.botoes {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.btn-principal,
.btn-secundario {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 52px;
    padding: 0 28px;
    border-radius: 10px;
    font-weight: bold;
    transition: 0.3s;
}

.btn-principal {
    background: linear-gradient(90deg, #7c3aed, #2563eb);
    color: white;
    box-shadow: 0 10px 35px rgba(124, 58, 237, 0.25);
}

.btn-principal:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(124, 58, 237, 0.45);
}

.btn-secundario {
    border: 1px solid #7c3aed;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.02);
}

.btn-secundario:hover {
    background: rgba(124, 58, 237, 0.15);
    transform: translateY(-4px);
}

/* FOTO ARRUMADA */

.inicio-foto {
    width: 42%;
    height: 620px;
    border-radius: 32px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(139, 92, 246, 0.35);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.45);
}

.inicio-foto::before {
    content: "";
    width: 420px;
    height: 420px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #7c3aed, #2563eb);
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.25;
    z-index: 1;
}

.inicio-foto img {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 2;
    object-fit: cover;
    object-position: center 58%;
    border-radius: 32px;
}

/* SEÇÕES */

.secao {
    padding: 100px 8%;
    max-width: 1500px;
    margin: auto;
}

.subtitulo {
    display: inline-block;
    color: #8b5cf6;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 3px;
    margin-bottom: 12px;
}

.secao > h2,
.contato h2 {
    font-size: clamp(35px, 5vw, 60px);
    margin-bottom: 25px;
    line-height: 1.1;
}

.texto-secao {
    max-width: 850px;
    font-size: 19px;
    color: #aeb0bd;
    margin-bottom: 18px;
}

/* TECNOLOGIAS */

.tecnologias-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 45px;
}

.tecnologia {
    min-height: 150px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 16px;
    transition: 0.3s;
}

.tecnologia:hover {
    transform: translateY(-7px);
    border-color: #8b5cf6;
    background: rgba(139, 92, 246, 0.08);
}

.tecnologia img {
    width: 58px;
    height: 58px;
    object-fit: contain;
    margin-bottom: 8px;
    transition: transform 0.3s ease;
}

.tecnologia:hover img {
    transform: scale(1.15);
}

.tecnologia h3 {
    font-size: 21px;
}

.tecnologia span {
    color: #a855f7;
    font-size: 13px;
}

/* SERVIÇOS */

.servicos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 45px;
}

.card {
    min-height: 210px;
    padding: 30px;
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.045),
        rgba(255, 255, 255, 0.015)
    );
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 18px;
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-7px);
    border-color: #8b5cf6;
}

.card h3 {
    font-size: 21px;
    margin-bottom: 15px;
}

.card p {
    color: #aeb0bd;
}

/* PROJETOS */

.projetos-grid {
    margin-top: 45px;
}

.projeto-card {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    overflow: hidden;
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.025);
}

.projeto-imagem {
    min-height: 420px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px;
    background:
        linear-gradient(rgba(5, 7, 17, 0.4), rgba(5, 7, 17, 0.8)),
        linear-gradient(135deg, #35116d, #123b85);
}

.projeto-imagem img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
}

.projeto-imagem span {
    text-align: center;
    color: #d8d8e5;
}

.projeto-conteudo {
    padding: 45px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.projeto-conteudo h3 {
    font-size: 30px;
    margin-bottom: 15px;
}

.projeto-conteudo p {
    color: #aeb0bd;
    margin-bottom: 22px;
}

.projeto-tecnologias {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.projeto-tecnologias span {
    padding: 7px 13px;
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.35);
    border-radius: 50px;
    color: #c4a8ff;
    font-size: 13px;
}

.link-projeto {
    color: #8b5cf6;
    font-weight: bold;
    width: fit-content;
}

.link-projeto:hover {
    color: #60a5fa;
}

/* CONTATO */

.contato {
    margin: 80px 8%;
    padding: 80px 40px;
    text-align: center;
    border-radius: 25px;
    background:
        radial-gradient(circle at top left, rgba(124, 58, 237, 0.35), transparent 40%),
        linear-gradient(135deg, #101329, #080a15);
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.contato p {
    color: #b8bac5;
    font-size: 18px;
    margin-bottom: 30px;
}

.contato-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

/* RODAPÉ */

footer {
    padding: 35px 8%;
    text-align: center;
    color: #777987;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ANIMAÇÃO */

.secao,
.contato {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.secao.aparecer,
.contato.aparecer {
    opacity: 1;
    transform: translateY(0);
}

/* TABLET */

@media (max-width: 1000px) {
    .nav {
        position: absolute;
        top: 80px;
        right: -100%;
        width: 280px;
        height: calc(100vh - 80px);
        padding: 40px 30px;
        display: flex;
        flex-direction: column;
        background: #090b17;
        transition: 0.4s;
    }

    .nav.ativo {
        right: 0;
    }

    .menu-mobile {
        display: block;
    }

    .inicio {
        flex-direction: column;
        text-align: center;
    }

    .inicio-conteudo {
        width: 100%;
    }

    .inicio-foto {
        width: 80%;
        max-width: 520px;
        height: 560px;
    }

    .inicio-conteudo > p {
        margin-left: auto;
        margin-right: auto;
    }

    .destaques,
    .botoes {
        justify-content: center;
    }

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

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

    .projeto-card {
        grid-template-columns: 1fr;
    }
}

/* CELULAR */

@media (max-width: 600px) {
    .header {
        height: 70px;
        padding: 0 5%;
    }

    .logo {
        font-size: 18px;
    }

    .nav {
        top: 70px;
        height: calc(100vh - 70px);
    }

    .inicio {
        min-height: auto;
        padding: 120px 5% 60px;
        gap: 40px;
    }

    .inicio h1 {
        font-size: 52px;
        letter-spacing: -2px;
    }

    .inicio h2 {
        font-size: 19px;
    }

    .inicio-conteudo > p {
        font-size: 17px;
    }

    .destaques {
        flex-direction: column;
        gap: 10px;
    }

    .botoes {
        flex-direction: column;
    }

    .btn-principal,
    .btn-secundario {
        width: 100%;
    }

    .inicio-foto {
        width: 100%;
        height: 480px;
    }

    .inicio-foto img {
        object-position: center 55%;
    }

    .secao {
        padding: 75px 5%;
    }

    .tecnologias-grid,
    .servicos-grid {
        grid-template-columns: 1fr;
    }

    .projeto-imagem {
        min-height: 250px;
    }

    .projeto-conteudo {
        padding: 28px;
    }

    .contato {
        margin: 50px 5%;
        padding: 55px 22px;
    }
}