/* --- GERAL E VARIÁVEIS --- */
:root {
    --cor-primaria: #1a1a1a; /* Preto/Cinza Escuro */
    --cor-secundaria: #f0f0f0; /* Branco Suave */
    --cor-destaque: #6a0dad; /* Roxo Vibrante */
    --cor-texto: #333;
    --cor-texto-claro: #e0e0e0;
    --fonte-principal: 'Poppins', sans-serif;
    --fonte-secundaria: 'Roboto', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--fonte-principal);
    background-color: var(--cor-secundaria);
    color: var(--cor-texto);
}

/* Adicionar importação da fonte no topo do CSS */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&family=Roboto:wght@400;500&display=swap');


/* --- CABEÇALHO E NAVEGAÇÃO --- */
header {
    background-color: var(--cor-primaria);
    color: var(--cor-texto-claro);
    padding: 1rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--cor-texto-claro);
    text-decoration: none;
}

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

.nav-list a {
    color: var(--cor-texto-claro);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
}

.nav-list a:hover {
    color: var(--cor-destaque);
}

.mobile-menu-icon, .mobile-menu {
    display: none;
}

/* --- SEÇÕES --- */
section {
    padding: 6rem 5% 4rem;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--cor-primaria);
}

/* --- SEÇÃO INÍCIO (HERO) --- */
#inicio {
    min-height: 100vh;
    text-align: center;
    background-color: var(--cor-primaria);
    color: var(--cor-texto-claro);
}

#inicio h1 {
    font-size: 3.5rem;
    font-weight: 700;
}

#inicio h2 {
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--cor-destaque);
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

#inicio p {
    max-width: 600px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.social-links a {
    color: var(--cor-texto-claro);
    font-size: 2rem;
    margin: 0 1rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--cor-destaque);
}

/* --- SEÇÃO SOBRE --- */
.sobre-container {
    display: flex;
    align-items: center;
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.foto-perfil {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid var(--cor-destaque);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.sobre-texto p {
    font-family: var(--fonte-secundaria);
    line-height: 1.7;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* --- SEÇÃO PROJETOS --- */
#projetos {
    background-color: #e9e9e9;
}

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

.projeto-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.projeto-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.projeto-imagem {
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center;
}

.projeto-card h3 {
    padding: 1rem 1.5rem 0.5rem;
    color: var(--cor-primaria);
}

.projeto-card p {
    padding: 0 1.5rem;
    font-family: var(--fonte-secundaria);
    flex-grow: 1;
    line-height: 1.6;
}

.tags {
    padding: 1rem 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tags span {
    background-color: var(--cor-destaque);
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* --- SEÇÃO FORMAÇÃO --- */
#formacao {
    background-color: var(--cor-secundaria);
}

.formacao-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.formacao-item {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-left: 4px solid var(--cor-destaque);
}

.formacao-item p {
    color: #666;
}

/* --- SEÇÃO HABILIDADES --- */
.habilidades-container {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto;
}

.habilidade-grupo {
    flex: 1;
    min-width: 280px;
}

.habilidade-grupo h3 {
    font-size: 1.5rem;
    color: var(--cor-destaque);
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--cor-destaque);
    padding-bottom: 0.5rem;
}

.habilidade-grupo ul {
    list-style: none;
}

.habilidade-grupo li {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.habilidade-grupo i {
    color: var(--cor-destaque);
    font-size: 1.4rem;
}

.habilidade-grupo i.ph-globe {
    color: var(--cor-destaque);
}

/* --- SEÇÃO CONTATO --- */
#contato {
    text-align: center;
    background-color: var(--cor-primaria);
    color: var(--cor-texto-claro);
}

#contato h2 {
    color: var(--cor-texto-claro);
}

#contato p {
    max-width: 500px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
}

.btn-contato {
    margin: 0.5rem;
    background-color: var(--cor-destaque);
    color: #fff;
    padding: 1rem 2.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    transition: background-color 0.3s;
}

.btn-contato:hover {
    background-color: #5a0ca3; /* Roxo mais escuro */
}

.btn-contato.whatsapp {
    background-color: #25D366;
}

.btn-contato.whatsapp:hover {
    background-color: #1DAA53;
}


.contato-info {
    margin-top: 2rem;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* --- RODAPÉ --- */
footer {
    text-align: center;
    padding: 2rem;
    background-color: #111;
    color: #aaa;
}

/* --- RESPONSIVIDADE (PARA CELULARES) --- */
@media (max-width: 768px) {
    .nav-list {
        display: none;
    }

    .mobile-menu-icon {
        display: block;
    }

    .mobile-menu-icon button {
        background: none;
        border: none;
        color: var(--cor-texto-claro);
        font-size: 2rem;
        cursor: pointer;
    }

    .mobile-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--cor-primaria);
        flex-direction: column;
        align-items: center;
        padding: 1rem 0;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
    }

    .mobile-menu.open {
        transform: translateX(0);
        display: flex;
    }

    .mobile-menu ul {
        list-style: none;
        width: 100%;
    }

    .mobile-menu li {
        text-align: center;
        padding: 1rem 0;
    }

    .mobile-menu a {
        color: var(--cor-texto-claro);
        text-decoration: none;
        font-size: 1.2rem;
    }

    section {
        padding: 5rem 5% 3rem;
    }

    #inicio h1 {
        font-size: 2.5rem;
    }

    #inicio h2 {
        font-size: 1.3rem;
    }

    .sobre-container {
        flex-direction: column;
    }

    .foto-perfil {
        width: 200px;
        height: 200px;
        margin-bottom: 1rem;
    }

    .btn-contato {
        display: block;
        width: 80%;
        margin: 1rem auto;
    }
}
