
@import url('https://fonts.googleapis.com/css2?family=Lato');

/* Animação de gradiente para o fundo dos elementos */
@keyframes animated-gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

*{
    margin: 0;
    padding: 0;
}

:root{
    --white: #fff; /* Branco puro */
    --accent: #9f70fd; /* Roxo vibrante como cor principal */
    --dark1: #1a1a2e; /* Fundo principal mais escuro */
    --dark2: rgba(26, 26, 46, 0.3); /* Cor de fundo transparente para seções */
    --accent-secondary: #ff79c6; /* Rosa vibrante para detalhes */
    --dark4: #c0c0c0; /* Cinza claro para texto secundário */
    --text-main: #f0f0f0; /* Quase branco para texto principal */
    --dark6: rgba(47, 47, 70, 0.4); /* Cor de fundo transparente para cards */
}

html {
    background-color: var(--dark1);
    scroll-behavior: smooth; /* Adiciona rolagem suave */
}

body{
    height: 100vh;
    font-family: Lato;
    /* Garante que o conteúdo do body fique acima do background */
    position: relative;
    z-index: 1;
}

/* Estilo para o container das partículas */
#particles-container {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1; /* Coloca o background atrás de todo o conteúdo */
}

header{
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: .8rem;
    /* Gradiente animado */
    background: linear-gradient(90deg, var(--dark2), var(--dark6), var(--dark2));
    background-size: 200% 200%;
    animation: animated-gradient 15s ease infinite;

    backdrop-filter: blur(10px); /* Efeito de desfoque */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Borda sutil */
    min-height: 50px;
}

.box-img-header{
    height: 100%;
}

.img-logo{
    max-width: 70px;
    height: 100%;
    border-radius: 20px;
}

nav{
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.nav-links{
    text-decoration: none;
    color: var(--text-main);
}

.nav-links:hover{
    color: var(--accent);
    transition: .4s;
    text-decoration:underline;
    transform: scale(1.3);
}

.box-btn-actions{
    display: flex;
    gap: 1rem;
}

button{
    color: var(--white);
    border: 1px solid;
    background-color: transparent;
    padding:.6px ;
    font-size: 1rem;
    border-radius: 10px;
    cursor: pointer;
}

.btn-cadastrar:hover{
    border: 1px solid;
    color: var(--accent);
    transition: .4s;
    text-decoration:underline;
    transform: scale(1.3);
}

.btn-entrar:hover{
    color: var(--accent);
    transition: .4s;
    text-decoration:underline;
    transform: scale(1.3);
}

main{
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

section{
    padding: 2rem;
}

.first-section{
    display: flex;
    justify-content: center; /* Centraliza os itens */
    gap: 4rem; /* Aumenta o espaço entre texto e imagem */
    align-items: center;
    flex-wrap: wrap;
    min-height: 70vh; /* Garante mais espaço vertical */
}

.first-section > div{
    display: flex;
    flex-direction: column;
    gap:1rem;
    max-width: 600px; /* Limita a largura do texto */
    align-items: center; /* Centraliza o botão */
    text-align: center; /* Centraliza o texto */
}

h1{
    font-size: 4rem;
    color: var(--text-main);
    letter-spacing: 4px;
    /* Efeito de brilho */
    text-shadow: 0 0 8px var(--accent), 0 0 15px rgba(159, 112, 253, 0.5);
}

strong{
    color:var(--accent);
}

.first-section p{
    color: var(--white);
    font-size: 1.2rem; /* Aumenta o tamanho da fonte */
    line-height: 1.6; /* Melhora a legibilidade */
}

.link-action{
    text-decoration: none;
    width: 200px;
    text-align: center;
    color: var(--accent); /* Corrigido para a cor do tema */
}

.box-img-main{
    max-width: 120px ; /* Diminuído de 150px */
    padding: 0;
}

.img-profile{
    border-radius: 50%;
    width: 70%;
}

:is(.second-section , .fourth-section){
    display:flex ;
    flex-direction: column;
    align-items: center;
    justify-content:center;
    gap: 2rem;
    /* Gradiente animado */
    background: linear-gradient(90deg, var(--dark2), var(--dark6), var(--dark2));
    background-size: 200% 200%;
    animation: animated-gradient 15s ease infinite;

    backdrop-filter: blur(10px); /* Efeito de desfoque */
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1); /* Borda sutil */
}

.second-section ul{
    color: var(--text-main);
    list-style: none; 
    display: flex;
    justify-content:center;
    align-items: center;
    gap: 2rem;
    

}

.second-section ul li{
    color: var(--dark4);
    cursor: pointer;
}
.second-section ul li strong {
    color: var(--text-main);
    font-weight: bold;
}


.second-section ul li:hover{
    font-weight: bold;
    color: var(--accent);
    transition: .5s;
    transform: scale(1.1);
    

}

.title{
    color: var(--text-main);
}

.third-section{
    display: flex;
    flex-direction: column;
    gap:2rem;
}

.third-section > div{
    display: flex;
    gap: 4rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.third-section > div img{
    width: 250px;
    border-radius: 30px;
}

.third-section > div p, .third-section > div ul {
    max-width: 500px;
    color: var(--text-main);
    text-align: justify;
}

.third-section > div ul {
    list-style-position: inside;
    padding-left: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.third-section h3 {
    color: var(--text-main);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
 
footer{
    align-items: center;
    padding: 4rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

footer > div{
    justify-content: center;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;

}

.linkedin:hover{
    transform: scale(2.0);
}

.github:hover{
    transform: scale(2.0);
}

.discord:hover{
    transform: scale(2.0);
}

.email:hover{
    transform: scale(2.0);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
}

.project-card {
    /* Gradiente animado */
    background: linear-gradient(90deg, var(--dark6), var(--dark2), var(--dark6));
    background-size: 200% 200%;
    animation: animated-gradient 15s ease infinite;

    padding: 1.5rem;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: transform 0.3s, box-shadow 0.3s;
    backdrop-filter: blur(10px); /* Efeito de desfoque */
    border: 1px solid rgba(255, 255, 255, 0.1); /* Borda sutil */

}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.project-card h3 {
    color: var(--accent);
    font-size: 1.5rem;
}

.project-card .project-description {
    color: var(--text-main);
    flex-grow: 1; /* Faz a descrição ocupar o espaço disponível */
}

.project-card .project-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: auto; /* Alinha os links na parte inferior */
}

.project-card .project-links a {
    text-decoration: none;
    color: var(--accent);
    font-weight: bold;
    padding: 0.5rem 1rem;
    border: 1px solid var(--accent);
    border-radius: 8px;
    transition: background-color 0.3s, color 0.3s;
}

.project-card .project-links a:hover {
    background-color: var(--accent);
    color: var(--dark1);
}

footer .copyright {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--dark4);
}
