* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: sans-serif;
}

html {
    scroll-behavior: smooth;
}


:root {
    --primary-color: #7431c0;
    --secondary-color: #165286;
    --background-color: #051c33;
    --text-color: #000102;
    --border-color: #edeef0;
    --hover-color: #ebf1efb0;
    --vidro-color: rgba(250, 156, 16, 0.959);

}


body {
    background-color: var(--background-color);
    color: var(--border-color);
}

.navegacao {
    position: fixed;
    background: rgba(15, 23, 42, 0.8);
    width: 100%;
    z-index: 100;
    padding: 1.5rem;

}

.menu {
    list-style: none;
    display: flex;
    gap: 3rem;
    justify-content: center;

}

.menu-link {
    color: var(--border-color);
    text-decoration: none;
    font-weight: 500px;
    position: relative;
    padding: 0.5rem 0;
}

.menu-link::after {
    content: '';
    height: 2px;
    width: 0;
    position: absolute;
    left: 0;
    bottom: 0;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    transition: width 0.5s ease;
}


.menu-link:hover::after {
    width: 100%;
    transition: 0.3s;
}

.inicio {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;


}


.foto-perfil {
    width: 400px;
    height: 400px;
    box-shadow: 0 0 30px rgba(79, 70, 229, 0.3);
    border-radius: 50%;
    border: 4px solid var(--border-color);
    margin-bottom: 1rem;
    margin-top: 4rem;
    animation: flutuar 5s ease-in-out infinite;

}

h1 {
    font-size: 3.5rem;
    color: var(--border-color);
    font-weight: bold;
    margin: 20px;

}

.bem-vindo {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.descricao {
    font-size: 1.2rem;
    color: var(--border-color);
    max-width: 600px;
    margin: 0 auto;
}

.sobre {
    padding: 11rem 2rem;

}

.about-title {
    font-size: 3rem;
    text-align: center;
}

.about-content {
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 16px;
    border: 1px solid var(--hover-color);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.05);
    text-align: center;
    font-size: 1.2rem;
}

.projects {
    padding: 10rem 2rem;
}

.projects-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 40px;
}

.projects-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* O card base também permanece o mesmo */
.project-card {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    background: rgba(255, 255, 255, 0.05);
    overflow: hidden;
    transition: all 0.5s ease;
    cursor: default;

}

.project-card:hover {
    box-shadow: 0 0 20px rgba(79, 70, 229, 0.5);
    transform: translateY(-10px) scale(1.05);
}

.projeto-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* --- NOVOS ESTILOS PARA O CONTEÚDO DO CARD --- */

/* Container de toda a informação textual */
.project-info {
    padding: 1.5rem;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 1rem;
}


/* Título do projeto */
.project-title {
    color: var(--border-color);
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

/* Descrição detalhada do projeto */
.project-description {
    color: rgba(226, 232, 240, 0.8);
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    flex-grow: 1;
    /* Empurra os botões para o final do card, garantindo alinhamento */
}

/* Lista que contém as tags de tecnologia */
.project-tech-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.contato {
    padding: 10rem 2rem;
}


.contact-form {
    max-width: 600px;
    margin: 0 auto;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;

}

.contact-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 1rem;
}

.grupo-form {
    margin-bottom: 0.5rem;
    display: flex;
    flex-direction: column;

}


.campo-form-1 {
    width: 100%;
    padding: 0.8rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    color: var(--border-color);
    background: rgba(255, 255, 255, 0.05);
    outline: none;
   
}

.campo-form {
    width: 100%;
    padding: 3rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    color: var(--border-color);
    background: rgba(255, 255, 255, 0.05);
    outline: none;
    
}

.campo-form:focus {
    color: var(--hover-color);
    box-shadow: 0 0 10px rgba(79, 70, 229, 0.5);
}

.campo-form-1:focus {
    color: var(--hover-color);
    box-shadow: 0 0 10px rgba(79, 70, 229, 0.5);
}


.submit-btn {
    padding: 1rem 2rem;
    border-radius: 8px;
    border: none;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    color: var(--border-color);
    font-weight: bold;
    width: 100%;
    cursor: pointer;
    transition: background 0.3s ease;
}

.submit-btn:hover {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.particula {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.5;
    background:
        radial-gradient(circle at 10% 20%, var(--secondary-color) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, var(--primary-color) 0%, transparent 20%) var(--background-color);

}

@keyframes flutuar {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* =================================================== */
/*               REGRAS DE RESPONSIVIDADE              */
/*      (Adicionar este bloco no final do seu CSS)     */
/* =================================================== */

@media (max-width: 768px) {

    /* --- AJUSTES GERAIS E FONTES --- */
    h1 {
        font-size: 2.5rem;
        /* Reduz o tamanho do título principal */
    }

    .about-title,
    .projects-title,
    .contact-title {
        font-size: 2.2rem;
        /* Reduz o tamanho dos títulos de seção */
    }

    /* --- NAVEGAÇÃO --- */
    .menu {
        flex-direction: column;
        /* Empilha os itens do menu verticalmente */
        align-items: center;
        /* Centraliza os itens empilhados */
        gap: 1.5rem;
        /* Reduz o espaçamento entre os links */
    }

    .navegacao {
        padding: 1rem;
        /* Reduz o padding da barra de navegação */
    }

    /* --- SEÇÃO INÍCIO --- */
    .foto-perfil {
        width: 280px;
        /* Diminui o tamanho da foto de perfil */
        height: 280px;
        margin-top: 6rem;
        /* Garante espaço para o menu que agora é maior */
    }

    .descricao {
        max-width: 90%;
        /* Permite que a descrição ocupe mais da tela */
    }

    /* --- ESPAÇAMENTO DAS SEÇÕES --- */
    .sobre,
    .projects,
    .contato {
        padding-top: 5rem;
        /* Reduz drasticamente o espaçamento superior */
        padding-bottom: 5rem;
        /* e inferior das seções */
    }
}

@media (max-width: 480px) {
    /* Ajustes ainda menores para telas de celular */

    h1 {
        font-size: 2rem;
    }

    .bem-vindo {
        font-size: 1.2rem;
    }

    .descricao {
        font-size: 1rem;
    }

    .foto-perfil {
        width: 200px;
        height: 200px;
    }

    /* Ajusta o grid de projetos para garantir que não quebre */
    .projects-content {
        grid-template-columns: 1fr;
        /* Força uma única coluna em telas muito pequenas */
    }
}

/* =================================================== */
/*        CSS PARA O MENU HAMBÚRGUER RESPONSIVO        */
/*           (Substitua o bloco antigo por este)       */
/* =================================================== */

/* 1. Esconde o botão em telas grandes */
.menu-hamburguer {
    display: none;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
    /* Garante que o botão fique acima de outros elementos */
    z-index: 1001;
}

/* 2. Estilos para as 3 linhas do ícone */
.menu-hamburguer .linha {
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--border-color);
    margin: 6px 0;
    transition: all 0.4s ease-in-out;
}


/* 3. A MÁGICA DA RESPONSIVIDADE */
@media (max-width: 768px) {

    /* Mostra o botão hambúrguer */
    .menu-hamburguer {
        display: block;
        position: fixed;
        /* Fixa na tela durante a rolagem */
        top: 1.5rem;
        right: 1.5rem;
    }

    /* Esconde o menu de navegação e o prepara para deslizar */
    .menu {
        position: fixed;
        top: 0;
        right: 0;
        width: 70vw;
        /* Ocupa 70% da largura da tela */
        height: 100vh;
        /* Ocupa 100% da altura */
        background: var(--background-color);

        /* Muda o layout para vertical */
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;

        /* A linha mais importante: esconde o menu para fora da tela */
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        z-index: 1000;
    }

    /* Classe 'ativo' que o JavaScript vai adicionar para MOSTRAR o menu */
    .menu.ativo {
        transform: translateX(0);
        /* Traz o menu de volta para a tela */
    }

    /* Animação do botão para virar um "X" quando o menu está ativo */
    .menu-hamburguer.ativo .linha1 {
        transform: translateY(9px) rotate(45deg);
    }

    .menu-hamburguer.ativo .linha2 {
        opacity: 0;
    }

    .menu-hamburguer.ativo .linha3 {
        transform: translateY(-9px) rotate(-45deg);
    }
}