
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

:root {
    --primaria: #4f46e5;
    --secundaria: #7c3aed;
    --escuro: #0f172a;
    --maisescuro: #0a0f1c;
    --claro: #e2e8f0;
    --vidro: rgba(255, 255, 255, 0.1);
}

body {
    background: radial-gradient(circle at top, #1e293b, #020617);
    color: var(--claro);
}


#space {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: black;
    opacity: 0.4;
}


.navegacao {
    position: fixed;
    top: 0;
    width: 100%;
    background: #4c1d95;
    display: flex;
    justify-content: center;
    z-index: 100;
    padding: 1.2rem;
    box-shadow: inset 0 -2px 6px rgba(0, 0, 0, 0.4);
}

.menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.menu-link {
    color: var(--claro);
    text-decoration: none;
    font-weight: bold;
    position: relative;
    padding: 0.5rem;
}

.menu-link::after {
    content: '';
    height: 2px;
    width: 0;
    position: absolute;
    bottom: 0;
    left: 0;
    background-image: linear-gradient(90deg, var(--primaria), var(--secundaria));
}

.menu-link:hover::after {
    width: 100%;
    transition: 0.4s;
}


section {
    padding: 3.5rem 2rem;
    scroll-margin-top: 100px;
}


.cabecalho {
    min-height: calc(100vh - 80px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 120px 20px 60px;
    text-align: center;
}

.cabecalho-conteudo {
    max-width: 700px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.foto-perfil {
    width: 260px;
    height: 260px;
    border-radius: 50%;
    margin-bottom: 25px;
    box-shadow: 0 0 25px rgba(79, 70, 229, 0.4);
    border: 4px solid var(--vidro);
    animation: flutuar 3s ease-in-out infinite;
}

h1 {
    font-size: 2.6rem;
    font-weight: 700;
    color: #4c1d95;
    text-shadow: 0 0 6px rgba(124, 58, 237, 0.3);
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.cabecalho-subtitulo {
     font-size: 1.5rem;
    line-height: 1.6;
    
}

.cabecalho-subtitulo strong {
    color: #8b5cf6;
    font-weight: 600;
}


.sobre {
    padding: 3rem 2rem;
}

.sobre-titulo {
    font-size: 2.5rem;
    color: #4c1d95;
    text-align: center;
    margin-bottom: 20px;
}

.sobre-caixa {
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--vidro);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.05);
}

.sobre-paragrafo {
    text-align: center;
    font-size: 1.4rem;
    line-height: 1.6;
}


.projetos {
    padding: 3rem 1rem;
}

.projetos-titulos {
    font-size: 2.5rem;
    color: #4c1d95;
    margin-bottom: 25px;
    text-align: center;
}

.projetos-caixa {
   display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.projetos-card {
    background: linear-gradient(
        180deg,
        rgba(15, 23, 42, 0.95),
        rgba(10, 15, 28, 0.95)
    );
    border-radius: 16px;
    border: 1px solid rgba(124, 58, 237, 0.2);
    overflow: hidden;
    transition: 0.4s;

    display: flex;
    flex-direction: column;
}

.projetos-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 20px rgba(79, 70, 229, 0.3);
}

.projetos-imagem {
    height: 180px;
    width: 100%;
    object-fit: cover;
}

.caixa-texto-projetos {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex: 1; 
}

.paragrafo-projetos {
    font-size: 0.95rem;
    color: rgba(226, 232, 240, 0.8);
}


.tecnologias {
    display: flex;
    gap: 12px;
   margin-bottom: 15px;
   margin-top: 15px;
}

.tecnologias i {
    font-size: 22px;
    transition: 0.3s;
}

.tecnologias i:hover {
    transform: scale(1.2);
}


.contatos {
    padding: 3rem 1rem;
}

.contatos-titulo {
    font-size: 2.5rem;
    color: #4c1d95;
    text-align: center;
    margin-bottom: 20px;
}

.formulario-contato {
    max-width: 500px;
    margin: 0 auto;
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--vidro);
    background: rgba(10, 15, 28, 0.95);
}

.campo-form {
    width: 100%;
    padding: 0.9rem;
    border-radius: 8px;
    border: 1px solid var(--vidro);
    background: rgba(255, 255, 255, 0.05);
    color: var(--claro);
    margin-bottom: 1rem;
}

.botao-form {
    width: 100%;
    padding: 1rem;
    border-radius: 8px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    color: white;
    background: linear-gradient(90deg, #5b21b6, #6d28d9);
    transition: 0.3s;
}

.botao-form:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(91, 33, 182, 0.4);
}


@keyframes flutuar {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}


@media (max-width: 768px) {
    .foto-perfil {
        width: 150px;
        height: 150px;
    }

    h1 {
        font-size: 2rem;
    }

    .cabecalho-subtitulo {
        font-size: 1rem;
    }

    .menu {
        gap: 1rem;
    }
}
.botoes-projeto {
     display: flex;
    gap: 10px;
    margin-top: auto; 
}

.btn-projeto,
.btn-codigo {
    flex: 1;
    text-align: center;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
}


.btn-projeto {
    background: linear-gradient(90deg, #5b21b6, #6d28d9);
    color: white;
}

.btn-projeto:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(91, 33, 182, 0.4);
}


.btn-codigo {
    border: 1px solid rgba(124, 58, 237, 0.5);
    color: var(--claro);
    background: transparent;
}

.btn-codigo:hover {
    background: rgba(124, 58, 237, 0.1);
    transform: translateY(-2px);
}