/* Fundo da página todo preto */
body {
    background-color: #121212;
    color: #d0d0d0;
    padding-top: 80px;
    font-family: "Poppins", sans-serif;
}

/* Minha foto centralizada e com espaçamento maior */
#foto {
    display: block;
    margin: 20px auto;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    border: 3px solid #9024bd;
    object-fit: cover;
    box-shadow: 0 0 10px rgba(144, 36, 189, 0.5);
    margin-bottom: 70px; /* Aumentei mais o espaço entre a foto e o texto */
}

/* Container com borda animada */
.container {
    border: 4px solid #9024bd;
    padding: 20px;
    border-radius: 10px;
    margin: 20px auto;
    width: fit-content;
    max-width: 80%;
    text-align: center;
    animation: pulse 5s infinite ease-in-out;
    box-shadow: 0 0 10px #9024bd;
    margin-bottom: 30px;
}

/* Animação da borda */
@keyframes pulse {
    0% {
        border-color: #9024bd;
        box-shadow: 0 0 10px #9024bd;
    }
    50% {
        border-color: #b366ff;
        box-shadow: 0 0 20px #b366ff;
    }
    100% {
        border-color: #9024bd;
        box-shadow: 0 0 10px #9024bd;
    }
}

/* Menu fixo no topo */
.nav {
    text-align: center;
    margin-bottom: 30px;
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #121212;
    padding: 15px 0;
    z-index: 1000;
}

/* Links do menu */
nav a {
    margin-right: 20px;
    font-size: 18px;
    color: whitesmoke;
    text-decoration: none;
    font-family: "Roboto", sans-serif;
}

nav a:hover {
    color: #b366ff;
}

/* Títulos principais */
h1, h2 {
    color: #b366ff;
    text-align: center;
    margin-bottom: 20px;
    font-family: "Bebas Neue", sans-serif;
    font-size: 50px;
}

#titulo {
    font-size: 5rem;
    font-weight: 900;
    margin: 20px 0;
    letter-spacing: 6px;
}

/* Texto padrão */
p {
    font-size: 16px;
    text-align: center;
    margin-bottom: 30px;
    color: white;
    line-height: 1.6;
}

/* Texto roxinho animado no portfólio */
.p1 {
    color: #b366ff;
}

.p1 span {
    transition: color 0.3s, transform 0.3s;
    cursor: pointer;
}

.p1 span:hover {
    color: white;
    transform: scale(1.2);
}

/* Área das competências */
.competencias {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
}

/* Linhas das linguagens */
.linha {
    display: flex;
    justify-content: center;
    gap: 50px;
    width: 100%;
    margin-bottom: 25px;
}

/* Caixinhas das linguagens */
.linguagem {
    display: flex;
    align-items: center;
    width: 250px;
    background-color: #1e1e1e;
    padding: 10px 15px;
    border-radius: 8px;
    border: 2px solid #9024bd;
}

.linguagem a {
    text-decoration: none;
}

.linguagem.vazio {
    background-color: transparent;
    border: none;
}

.linguagem img {
    width: 40px;
    height: 40px;
    margin-right: 15px;
}

.linguagem span {
    font-size: 18px;
    color: #d0d0d0;
}

/* Cor da seleção */
::selection {
    background: #9024bd;
    color: white;
}

/* Área de contatos */
.contatos {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
    margin-bottom: 100px;
}

/* Bloco de WhatsApp e E-mail */
.formas-de-contato {
    display: flex;
    align-items: center;
    width: 330px;
    background-color: #1e1e1e;
    padding: 10px 15px;
    border-radius: 8px;
    border: 2px solid #9024bd;
    justify-content: flex-start;
}

.formas-de-contato img {
    width: 40px;
    height: 40px;
    margin-right: 15px;
}

.formas-de-contato .texto-contato {
    flex: 1;
    text-align: center;
    font-size: 18px;
    color: #d0d0d0;
}

/* Bloco de LinkedIn e GitHub */
.formas-contato {
    display: flex;
    align-items: center;
    width: 330px;
    background-color: #1e1e1e;
    padding: 10px 15px;
    border-radius: 8px;
    border: 2px solid #9024bd;
    justify-content: flex-start;
}

.formas-contato img {
    width: 40px;
    height: 40px;
    margin-right: 15px;
}

.formas-contato a {
    flex: 1;
    text-decoration: none;
}

/* Texto do LinkedIn e GitHub*/
.formas-contato .texto-contato {
    text-align: center;
    display: block;
    font-size: 18px;
    color: #d0d0d0;
}

/* Animação nos spans do LinkedIn e GitHub */
.formas-contato .texto-contato span {
    margin: 0 2px;
    transition: color 0.3s, transform 0.3s;
}

.formas-contato .texto-contato span:hover {
    color: #b366ff;
    transform: scale(1.2);
}

/* Espaço entre as seções */
.sessao {
    margin-bottom: 100px;
    padding: 20px;
}

/* Área dos projetos */
.projetos-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.projeto {
    border: 2px solid #9024bd;
    border-radius: 10px;
    padding: 15px 20px;
    width: 250px;
    text-align: center;
    background-color: #1e1e1e;
}

.link span {
    transition: color 0.3s, transform 0.3s;
    cursor: pointer;
    text-decoration: none;
}

.link span:hover {
    color: #b366ff;
}

.projeto a {
    text-decoration: none;
    color: #d0d0d0;
    font-size: 18px;
}

.projeto a:hover {
    color: #b366ff;
    transform: scale(1.05);
    display: inline-block;
}

/* Responsividade */
@media (max-width: 768px) {
    
    .linha {
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }

    .nav {
        display: flex;
        justify-content: center;
        gap: 8px;
        padding: 10px 5px;
        width: 100%;
        box-sizing: border-box;
    }
  
    nav a {
        margin: 0;
        padding: 5px 8px;
        font-size: 14px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .container {
        max-width: 95%;
    }

    .formas-de-contato,
    .formas-contato {
        width: 90%;
    }

    #foto {
        width: 160px; /* Aumentei levemente o tamanho da imagem no celular */
        height: 160px; /* Aumentei levemente o tamanho da imagem no celular */
    }

    .projetos-container {
        flex-direction: column;
        align-items: center;
    }
}
