@import url('https://fonts.googleapis.com/css2?family=Karla:ital,wght@0,200..800;1,200..800&family=M+PLUS+1+Code:wght@100..700&family=M+PLUS+1:wght@100..900&display=swap');

:root {
    --fonte-1: "M PLUS 1", sans-serif;
    --fonte-2: "M PLUS 1 Code", sans-serif;
    --fonte-3: "Karla", sans-serif;

    --cor-texto: #f5f5f5;
    --cor-hover: #ff4d4d;
    --cor-gradiente-inicio: #000000;
    --cor-gradiente-meio1: #220000;
    --cor-gradiente-meio2: #AF0000;
    --cor-gradiente-meio3: #380D0D;
    --cor-gradiente-fim: #000000;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--fonte-3);
    background: linear-gradient(135deg,
        var(--cor-gradiente-inicio),
        var(--cor-gradiente-meio1),
        var(--cor-gradiente-meio2),
        var(--cor-gradiente-meio3),
        var(--cor-gradiente-fim));
    background-size: 400% 400%;
    animation: animate-bg 20s infinite;
    color: var(--cor-texto);
}

@keyframes animate-bg {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

header {
    padding: 20px 0;
    text-align: center;
    margin-bottom: 30px;
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    font-size: 20px;
    padding: 0 20px; 
    box-sizing: border-box;
}


nav a {
    position: relative;
    color: var(--cor-texto);
    text-decoration: none;
    padding: 5px 10px;
    transition: color 0.3s ease-in-out;
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0%;
    height: 2px;
    background-color: var(--cor-hover);
    transition: width 0.3s ease-in-out;
}

nav a:hover::after {
    width: 100%;
}

.perfil {
    display: flex;
    align-items: center;
    padding: 40px;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.fotes {
    width: 160px;
    border-radius: 8px;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.1);
}

.txt_lopes {
    max-width: 300px;
    font-family: var(--fonte-2);
    font-size: 18px;
    line-height: 1.6;
}

.principal {
    padding: 40px;
    max-width: 1000px;
    margin: 40px auto;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(3px);
}

h2 {
    font-family: var(--fonte-1);
    font-size: 36px;
    font-weight: 500;
    margin-bottom: 30px;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.6);
}

.texto_princip {
    font-family: var(--fonte-2);
    font-size: 18px;
    line-height: 1.8;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.texto_princip p {
    background-color: rgba(255, 255, 255, 0.02);
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.02);
    transition: transform 0.3s ease;
}

.texto_princip p:hover {
    transform: translateY(-4px);
}


.principal {
    animation: fadeIn 1.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}


h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--cor-hover);
    margin: 10px auto 0 auto;
    border-radius: 3px;
}


.fotos {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 40px 0;
}

.fotos img {
    width: 40px;
    transition: transform 0.3s ease-in-out, filter 0.3s ease-in-out;
}

.fotos img:hover {
    transform: scale(1.2);
    filter: brightness(1.2);
}

.secao-projetos {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px;
}

.secao-projetos h2 {
    font-family: var(--fonte-1);
    font-size: 32px;
    margin-bottom: 20px;
}

.descricao-projetos {
    font-family: var(--fonte-2);
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 40px;
}

.card-projeto {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
    margin-bottom: 40px;
}

.card-projeto img {
    max-width: 300px;
    border-radius: 10px;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.1);
    flex: 1;
}

.conteudo-projeto {
    flex: 2;
    font-family: var(--fonte-2);
}

.conteudo-projeto h3 {
    font-family: var(--fonte-1);
    font-size: 24px;
    margin-bottom: 10px;
}

.conteudo-projeto p {
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 15px;
}

.botao-projeto {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--cor-hover);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.botao-projeto:hover {
    background-color: #cc0000;
}

.secao-competencias {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px;
}

.caixa-texto-competencias {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
}

.titulo-competencias {
    font-family: var(--fonte-1);
    font-size: 32px;
    margin-bottom: 20px;
    text-align: center;
    color: var(--cor-texto);
}

.descricao-competencias {
    font-family: var(--fonte-2);
    font-size: 18px;
    line-height: 1.8;
    text-align: justify;
    color: var(--cor-texto);
}

.icones-tecnologias {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 40px 0;
    flex-wrap: wrap;
}

.icones-tecnologias img {
    width: 50px;
    transition: transform 0.3s ease-in-out;
}

.icones-tecnologias img:hover {
    transform: scale(1.2);
}



.contato-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 40px 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(3px);
}

.contato-perfil {
    text-align: center;
    max-width: 300px;
}

.contato-foto {
    width: 160px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
    margin-bottom: 15px;
}

.contato-descricao {
    font-family: var(--fonte-2);
    font-size: 16px;
    line-height: 1.6;
}

.contato-formulario {
    flex: 1;
    min-width: 280px;
}

.contato-formulario h2 {
    font-family: var(--fonte-1);
    font-size: 28px;
    margin-bottom: 20px;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.4);
}

.contato-form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.contato-form-group label {
    font-family: var(--fonte-2);
    font-size: 16px;
    margin-bottom: 5px;
}

.contato-form-group input,
.contato-form-group textarea {
    padding: 10px;
    font-size: 16px;
    font-family: var(--fonte-3);
    background-color: rgba(255,255,255,0.05);
    color: var(--cor-texto);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    resize: none;
}

.contato-form-group input:focus,
.contato-form-group textarea:focus {
    outline: none;
    border-color: var(--cor-hover);
    background-color: rgba(255,255,255,0.08);
}

.contato-botao {
    background-color: var(--cor-hover);
    color: #fff;
    padding: 12px 20px;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}

.contato-botao:hover {
    background-color: #cc0000;
}



@media (max-width: 768px) {
    .perfil {
        flex-direction: column;
        text-align: center;
    }
    
    h2 {
        font-size: 28px;
    }
    
    .principal {
        padding: 20px;
    }
    
    .texto_princip p {
        font-size: 16px;
    }
    
    .txt_lopes {
        text-align: center;
    }
    
    nav {
        font-size: 18px;
        gap: 20px;
    }
    
    .card-projeto {
        flex-direction: column;
        text-align: center;
    }
    
    .conteudo-projeto {
        text-align: center;
    }
    
    .fotos {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .contato-container {
        flex-direction: column;
        align-items: center;
    }
    
    .contato-formulario {
        width: 100%;
    }
    
    .secao-competencias {
        padding: 20px;
    }
    
    .caixa-texto-competencias {
        padding: 20px;
    }
    
    .descricao-competencias {
        font-size: 16px;
    }
    
    .icones-tecnologias {
        gap: 20px;
        padding: 20px 0;
    }
}