/* Variáveis de Cores */
:root {
    --azul-escuro: #0f2c59;
    --azul-claro: #2c5b9c;
    --azul-destaque: #93c5fd;
    --azul-muito-claro: #e6eef5;
    --branco: #ffffff;
    --cinza-fundo: #f8fafc;
    --texto: #334155;
    --cor-whatsapp: #25D366;
}

/* Reset de Estilos */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--texto);
    background-color: var(--cinza-fundo);
    line-height: 1.7;
}

h1, h2, h3, h4 {
    font-family: 'Poppins', sans-serif;
    color: var(--azul-escuro);
    font-weight: 600;
}

/* Menu de Navegação */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--branco);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

/* Estilos do Logótipo */
.logo {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.logo-nome {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--azul-escuro);
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.logo-desc {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--azul-claro);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 2px;
}

/* Container do Menu e Ações */
.nav-container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--azul-escuro);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--azul-claro);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Seletor de Idioma */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--azul-escuro);
    font-size: 0.9rem;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--azul-escuro);
    cursor: pointer;
    font-weight: 400;
    font-family: 'Inter', sans-serif;
    transition: color 0.3s, font-weight 0.3s;
    display: flex;
    align-items: center;
    gap: 4px;
}

.lang-btn.active {
    font-weight: 700;
    color: var(--azul-claro);
}

.lang-btn:hover {
    color: var(--azul-claro);
}

/* Menu Hambúrguer (Oculto em Desktop) */
.menu-toggle {
    display: none;
    font-size: 1.6rem;
    color: var(--azul-escuro);
    cursor: pointer;
    transition: transform 0.3s ease;
}

/* Efeito Parallax - Hero Section */
.parallax {
    /* Imagem de fundo atualizada conforme o último pedido */
    background-image: linear-gradient(rgba(15, 44, 89, 0.75), rgba(15, 44, 89, 0.75)), url('https://images.unsplash.com/photo-1642522029691-029b5a432954?q=80&w=1470&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
    height: 100vh;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--branco);
    text-align: center;
    padding: 0 20px;
}

.hero-title-main {
    color: var(--branco);
    font-size: 4.5rem;
    margin-bottom: 15px;
    letter-spacing: -1.5px;
    line-height: 1.1;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.text-highlight {
    color: var(--azul-destaque);
    font-weight: 700;
}

.parallax p {
    font-size: 1.3rem;
    color: var(--branco);
    margin-bottom: 45px;
    max-width: 700px;
    font-weight: 300;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-btn, .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.hero-btn {
    text-decoration: none;
    background-color: var(--branco);
    color: var(--azul-escuro);
    padding: 16px 45px;
    font-family: 'Poppins', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s, color 0.3s;
}

.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(0,0,0,0.15);
    background-color: var(--azul-muito-claro);
}

/* Estrutura das Secções */
section {
    position: relative;
    overflow: hidden;
    padding: 100px 5%;
}

.content-wrapper {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
}

.titulo-branco {
    color: var(--branco) !important;
}

/* Secções de Contraste (Fundo Azul) */
.bg-azul {
    background-color: var(--azul-escuro);
    color: var(--branco);
}

/* Efeito Parallax - Secção de Contactos */
.parallax-contactos {
    background-image: linear-gradient(rgba(15, 44, 89, 0.8), rgba(15, 44, 89, 0.8)), url('https://images.unsplash.com/photo-1450101499163-c8848c66ca85?auto=format&fit=crop&w=1920&q=80');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Estilização dos Ícones nas Áreas de Intervenção */
.area-icon {
    font-size: 2.8rem;
    color: var(--azul-claro);
    margin-bottom: 25px;
    display: block;
    transition: transform 0.3s, color 0.3s;
}

/* Secção: Vamos Conversar? */
.cta-section {
    background-color: var(--azul-muito-claro);
    padding: 80px 5%;
    text-align: center;
}

.cta-container {
    max-width: 800px;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--azul-escuro);
}

.cta-texto {
    font-size: 1.15rem;
    color: var(--texto);
    margin-bottom: 40px;
    line-height: 1.8;
}

.cta-btn {
    background-color: var(--azul-escuro);
    color: var(--branco);
}

.cta-btn:hover {
    background-color: var(--azul-claro);
    color: var(--branco);
}

/* Elementos Decorativos de Fundo */
.forma-decorativa {
    position: absolute;
    z-index: 1;
}

.forma-circulo-claro {
    width: 400px;
    height: 400px;
    background-color: var(--azul-muito-claro);
    border-radius: 50%;
    top: -100px;
    left: -150px;
    opacity: 0.6;
}

.forma-quadrado-escuro {
    width: 500px;
    height: 500px;
    background-color: var(--azul-claro);
    border-radius: 80px;
    transform: rotate(45deg);
    bottom: -200px;
    right: -200px;
    opacity: 0.2;
}

.forma-circulo-escuro {
    width: 300px;
    height: 300px;
    background-color: var(--branco);
    border-radius: 50%;
    top: 50px;
    left: -100px;
    opacity: 0.05;
}

/* Animações (Efeito de Surgimento) */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Secção Sobre Mim */
.sobre-container {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.sobre-foto {
    flex: 0.8; 
    max-width: 420px; 
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    width: 100%;
    height: auto;
    object-fit: cover;
}

.sobre-texto {
    flex: 1.5; 
}

.sobre-titulo-lateral {
    font-size: 2.5rem;
    color: var(--azul-escuro);
    margin-bottom: 5px;
    text-align: left;
    line-height: 1.2;
}

.sobre-texto h3 {
    margin-bottom: 25px;
    font-size: 1.3rem;
    color: var(--azul-claro);
    font-weight: 500;
}

/* Link de LinkedIn no Sobre Mim */
.linkedin-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 25px;
    color: #0A66C2;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    text-decoration: none;
    transition: transform 0.3s, color 0.3s;
}

.linkedin-btn i {
    font-size: 1.8rem;
}

.linkedin-btn:hover {
    color: var(--azul-escuro);
    transform: translateX(8px);
}

/* Secção Áreas de Intervenção */
.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.area-card {
    background-color: var(--branco);
    color: var(--texto);
    padding: 50px 30px;
    border-radius: 20px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border-bottom: 4px solid var(--azul-claro);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

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

.area-card:hover .area-icon {
    transform: scale(1.1);
    color: var(--azul-escuro);
}

.area-card h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
    color: var(--azul-escuro);
}

/* Grelha da Secção de Contactos */
.contactos-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    align-items: start;
}

/* Informações de Contacto e Formulário */
.contacto-info, .contacto-form {
    background-color: var(--branco);
    padding: 50px 40px;
    border-radius: 24px;
    border: 1px solid #cbd5e1;
    box-shadow: 0 20px 50px rgba(15, 44, 89, 0.12);
}

.contacto-info {
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.info-item i {
    font-size: 1.8rem;
    color: var(--azul-claro);
    margin-top: 2px;
}

.info-item h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.info-item p {
    font-size: 1rem;
    color: var(--texto);
}

.contacto-form {
    width: 100%; 
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--azul-escuro);
    font-size: 0.95rem;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    background-color: #f1f5f9;
    color: var(--texto);
    transition: border-color 0.3s, background-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--azul-claro);
    background-color: var(--branco);
    box-shadow: 0 0 0 3px rgba(44, 91, 156, 0.15);
}

.btn {
    background-color: var(--azul-escuro);
    color: var(--branco);
    padding: 16px 30px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    width: 100%;
    transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
    margin-top: 10px;
}

.btn:hover {
    background-color: var(--azul-claro);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(44, 91, 156, 0.2);
}

/* Widget Flutuante do WhatsApp */
.whatsapp-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--cor-whatsapp);
    color: var(--branco);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 35px;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
}

.whatsapp-widget:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
    color: var(--branco);
}

/* Rodapé (Footer) */
footer {
    background-color: var(--azul-escuro);
    color: var(--branco);
    text-align: center;
    padding: 30px 20px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 300;
}

/* ==========================================
   Responsividade para Dispositivos Móveis
   ========================================== */

/* Tablets / Ecrãs médios */
@media (max-width: 900px) {
    .nav-container {
        gap: 20px;
    }
    .contactos-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Telemóveis / Ecrãs pequenos */
@media (max-width: 768px) {
    .menu-toggle {
        display: block; 
    }
    
    /* Menu Mobile com Animação Deslizante e Fade */
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--branco);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 10px 15px rgba(0,0,0,0.05);
        gap: 20px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-15px);
        transition: all 0.3s ease;
    }
    
    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .logo {
        align-items: center; 
    }
    
    .sobre-container {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    .sobre-foto {
        max-width: 100%;
    }
    .sobre-titulo-lateral {
        text-align: center;
        font-size: 2.2rem;
    }
    .sobre-texto h3 {
        text-align: center;
    }
    .linkedin-btn {
        display: flex;
        justify-content: center;
    }
    .parallax h1 {
        font-size: 3rem;
    }
    .parallax p {
        font-size: 1.1rem;
    }
    section {
        padding: 60px 5%;
    }
    
    /* Centralizar textos e ícones da secção de Contactos no Mobile */
    .contacto-info, .contacto-form {
        padding: 40px 25px;
        text-align: center;
    }
    .contacto-info {
        align-items: center;
    }
    .info-item {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    .contacto-form .form-group label {
        text-align: center;
    }

    .cta-section {
        padding: 60px 5%;
    }
    .cta-section h2 {
        font-size: 2rem;
    }
    .whatsapp-widget {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 32px;
    }
}