/* =========================================
   VARIÁVEIS GERAIS (Modo Escuro / Dark Mode)
   ========================================= */
:root {
    --cor-fundo: #121212;            /* Preto quase total para o fundo */
    --cor-fundo-secundaria: #1e1e1e; /* Cinza escuro para destacar as seções */
    --cor-texto: #ffffff;            /* Branco para a escrita normal */
    --cor-primaria: #3b82f6;         /* Azul vivo para dar destaque */
    --cor-primaria-hover: #60a5fa;   /* Azul mais claro quando passar o mouse */
    --fonte-principal: 'Inter', sans-serif;
}

/* =========================================
   RESET BÁSICO E CONFIGURAÇÕES GERAIS
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* Impede que o padding quebre o tamanho da tela */
}

html {
    scroll-behavior: smooth; /* Rolagem suave ao clicar nos links do menu */
}

body {
    font-family: var(--fonte-principal);
    background-color: var(--cor-fundo);
    color: var(--cor-texto);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* =========================================
   ESTILOS MOBILE (MOBILE FIRST)
   ========================================= */

/* Cabeçalho e Navegação */
.cabecalho {
    background-color: var(--cor-fundo-secundaria);
    padding: 2rem 1rem;
    text-align: center;
}

.navegacao {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.logo {
    font-size: 1.5rem;
    color: var(--cor-primaria);
}

.navegacao ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

/* Links do Menu Principal em Azul */
.navegacao ul a {
    text-decoration: none;
    color: var(--cor-primaria); /* Cor azul escuro/vivo */
    font-weight: 600;
    transition: color 0.3s ease; /* Efeito suave ao passar o rato */
}

.navegacao ul a:hover {
    color: var(--cor-primaria-hover); /* Fica um azul mais claro ao passar o rato */
}

/* =========================================
   SELETOR DE IDIOMAS
   ========================================= */
.seletor-idioma {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-top: 1rem;
}

.seletor-idioma a {
    color: var(--cor-texto);
    text-decoration: none;
    font-weight: bold;
    font-size: 0.85rem;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    border: 1px solid #555;
    transition: all 0.3s ease;
}

.seletor-idioma a:hover {
    background-color: #333;
}

/* Destaca o idioma que a pessoa está a ler agora */
.idioma-ativo {
    background-color: var(--cor-primaria) !important;
    border-color: var(--cor-primaria) !important;
    color: #ffffff !important;
}

/* Botões Gerais */
.btn {
    display: inline-block;
    background-color: var(--cor-primaria);
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s ease;
}

.btn:hover {
    background-color: var(--cor-primaria-hover);
}

/* =========================================
   HERO SECTION (Apresentação Inicial)
   ========================================= */
.hero-container {
    display: flex;
    flex-direction: column; /* No telemóvel, fica um em cima do outro */
    align-items: center;
    gap: 3rem;
    margin-top: 3rem;
    text-align: left;
}

.hero-texto {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.saudacao {
    font-size: 1.1rem;
    color: #a1a1aa;
}

.nome-destaque {
    font-size: 2.5rem;
    color: var(--cor-texto);
    line-height: 1.1;
}

.cargo-destaque {
    font-size: 1.5rem;
    color: var(--cor-primaria);
    margin-bottom: 1.5rem;
}

.descricao-hero {
    font-size: 1.1rem;
    color: #a1a1aa;
    max-width: 600px;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.botoes-hero {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-secundario {
    background-color: transparent;
    border: 1px solid #555;
    color: var(--cor-texto);
}

.btn-secundario:hover {
    background-color: #222;
    border-color: #888;
}

.hero-imagem {
    display: flex;
    justify-content: center;
    align-items: center;
}

.foto-borda-brilhante {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.4);
    border: 2px solid var(--cor-primaria);
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.foto-perfil {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =========================================
   SEÇÕES GENÉRICAS E DEMAIS ESTILOS
   ========================================= */
.secao {
    padding: 4rem 0;
}

.fundo-cinza {
    background-color: var(--cor-fundo-secundaria);
}

.titulo-secao {
    font-size: 1.75rem;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--cor-primaria);
}

/* =========================================
   ESTILOS DA SEÇÃO SOBRE (COM CARROSSEL)
   ========================================= */
.cabecalho-sobre {
    text-align: center;
    margin-bottom: 3rem;
}

.subtitulo-secao {
    color: #a1a1aa;
    font-size: 1.1rem;
}

.sobre-layout {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    align-items: center;
}

.sobre-textos {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sobre-textos p {
    font-size: 1.125rem;
    color: #cccccc;
    line-height: 1.8;
}

.carrossel-wrapper {
    width: 100%;
    max-width: 500px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    background-color: var(--cor-fundo-secundaria);
}

.carrossel-wrapper input[type="radio"] {
    display: none;
}

.carrossel-slides {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.seta {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s;
}

.seta:hover {
    background-color: var(--cor-primaria);
}

.seta.esquerda { left: 10px; }
.seta.direita { right: 10px; }

#c1:checked ~ .carrossel-slides .slide1,
#c2:checked ~ .carrossel-slides .slide2,
#c3:checked ~ .carrossel-slides .slide3,
#c4:checked ~ .carrossel-slides .slide4,
#c5:checked ~ .carrossel-slides .slide5,
#c6:checked ~ .carrossel-slides .slide6,
#c7:checked ~ .carrossel-slides .slide7 {
    opacity: 1;
    z-index: 2;
}

/* =========================================
   NOVA SEÇÃO: HABILIDADES (3 COLUNAS)
   ========================================= */
.grid-habilidades {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.grupo-habilidades {
    background-color: var(--cor-fundo);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    border-top: 4px solid var(--cor-primaria);
}

.subtitulo-habilidades {
    font-size: 1.25rem;
    color: var(--cor-primaria);
    margin-bottom: 1.5rem;
    text-align: center;
}

.lista-habilidades {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.lista-habilidades li {
    font-size: 1rem;
    color: #cccccc;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #333;
}

.lista-habilidades li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.lista-habilidades i {
    color: var(--cor-primaria);
    width: 25px;
    text-align: center;
}

/* =========================================
   PROJETOS ACADÊMICOS
   ========================================= */
.grid-projetos {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.cartao-projeto {
    background-color: var(--cor-fundo-secundaria);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--cor-primaria);
}

.cartao-projeto h3 {
    margin-bottom: 0.5rem;
    color: var(--cor-texto);
}

.cartao-projeto a {
    display: inline-block;
    margin-top: 1rem;
    color: var(--cor-primaria);
    font-weight: bold;
    text-decoration: none;
}

/* =========================================
   RODAPÉ E CONTATO
   ========================================= */
.rodape {
    background-color: #000000;
    color: var(--cor-texto);
    padding: 3rem 0 1rem;
    text-align: center;
}

.rodape .titulo-secao {
    color: var(--cor-texto);
}

.links-contato {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
}

.links-contato a {
    color: var(--cor-texto);
    text-decoration: none;
    font-size: 1.25rem;
    transition: color 0.3s ease;
}

.links-contato a:hover {
    color: var(--cor-primaria);
}

.direitos {
    font-size: 0.875rem;
    opacity: 0.7;
    margin-top: 2rem;
}

/* =========================================
   MEDIA QUERIES (ADAPTAÇÃO PARA DESKTOP)
   ========================================= */
@media (min-width: 768px) {

    .navegacao {
        flex-direction: row;
        justify-content: space-between;
    }

    /* Ajuste para o Seletor de Idiomas no PC */
    .seletor-idioma {
        margin-top: 0;
    }

    /* Hero Section para PC */
    .hero-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        margin-top: 5rem;
    }

    .hero-texto {
        width: 60%;
    }

    .nome-destaque {
        font-size: 4rem;
    }

    .cargo-destaque {
        font-size: 2rem;
    }

    .foto-borda-brilhante {
        width: 350px;
        height: 350px;
    }

    /* Seção Sobre para PC */
    .sobre-layout {
        flex-direction: row;
        align-items: flex-start;
    }

    .carrossel-wrapper {
        width: 45%;
    }

    .sobre-textos {
        width: 50%;
    }

    /* Ajuste da Grelha de Habilidades para PC (3 COLUNAS) */
    .grid-habilidades {
        flex-direction: row;
        justify-content: space-between;
        align-items: stretch;
    }

    .grupo-habilidades {
        width: 31%;
    }

    /* Restante das adaptações */
    .grid-projetos {
        flex-direction: row;
        justify-content: center;
    }

    .cartao-projeto {
        width: 45%;
    }

    .links-contato {
        flex-direction: row;
        justify-content: center;
        gap: 3rem;
    }
}