/* Configurações Iniciais e Tipografia */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: #0a0a0a; /* Preto muito elegante */
    color: #e0e0e0; /* Cinza claro suave */
    line-height: 1.7;
}

/* Navegação - FIXA NO TOPO COM EFEITO BLUR */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: fixed; 
    top: 0; 
    width: 100%;
    z-index: 1000; 
    background-color: rgba(10, 10, 10, 0.85); 
    backdrop-filter: blur(10px); 
    border-bottom: 1px solid rgba(255, 255, 255, 0.05); 
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 1px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 3rem;
    align-items: center;
}

.nav-links a {
    color: #a0a0a0;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #ffffff;
}

.nav-btn {
    border-bottom: 1px solid #ffffff;
    padding-bottom: 3px;
    color: #ffffff !important;
}

/* Secção Hero (Ecrã Dividido) */
.hero {
    display: flex;
    height: 100vh;
    min-height: 600px;
}

.hero-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 10%;
    background-color: #0a0a0a;
}

.hero-text h1 {
    font-size: 4.5rem;
    font-weight: 300;
    line-height: 1.1;
    color: #ffffff;
    margin-bottom: 2rem;
}

.hero-text p {
    font-size: 1.1rem;
    color: #a0a0a0;
    max-width: 450px;
    margin-bottom: 3rem;
}

.btn-outline {
    display: inline-block;
    padding: 15px 35px;
    border: 1px solid #ffffff;
    background: transparent;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    align-self: flex-start;
    transition: all 0.4s ease;
    cursor: pointer;
}

.btn-outline:hover {
    background-color: #ffffff;
    color: #0a0a0a;
}

/* Imagem Hero - COM A TUA IMAGEM CORRETA */
.hero-image {
    flex: 1;
    background: url('Black\ and\ white.jpg') center/cover no-repeat;
    position: relative;
}

/* Sobreposição escura na imagem para não ficar demasiado forte */
.hero-image::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(10, 10, 10, 0.4);
}

/* Container Comum */
.container {
    padding: 6rem 10%;
}

.section-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #606060;
    margin-bottom: 4rem;
    border-bottom: 1px solid #222;
    padding-bottom: 1rem;
}

/* Secção Sobre Mim (Perfil) */
.sobre-content {
    display: flex;
    gap: 5rem;
    align-items: flex-start;
}

.sobre-intro {
    flex: 1;
    font-size: 2.2rem;
    font-weight: 300;
    color: #ffffff;
    line-height: 1.4;
}

.sobre-texto {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    color: #a0a0a0;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Lista de Serviços (Clean) */
.services-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.service-item {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.service-item h3 {
    font-size: 1.5rem;
    color: #ffffff;
    font-weight: 400;
    min-width: 400px;
}

.service-item p {
    color: #909090;
    max-width: 600px;
}

/* Secção de Ecossistema (Tags Minimalistas) */
.tech-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.tech-item {
    border: 1px solid #333333; 
    padding: 12px 25px;
    color: #a0a0a0;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    cursor: default;
    border-radius: 2px;
}

.tech-item:hover {
    border-color: #ffffff;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Secção Artigos & Insights */
.artigos-grid {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.artigo-card {
    background-color: #0a0a0a;
    border: 1px solid #222;
    padding: 2.5rem;
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    transition: border-color 0.3s ease;
}

.artigo-card:hover {
    border-color: #555;
}

.artigo-data {
    font-size: 0.85rem;
    color: #606060;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.artigo-card h3 {
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.artigo-card h3 a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.artigo-card h3 a:hover {
    color: #a0a0a0;
}

.artigo-card p {
    color: #808080;
    font-size: 1rem;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.artigo-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
    border-bottom: 1px solid #333;
    padding-bottom: 3px;
    align-self: flex-start;
    transition: all 0.3s ease;
}

.artigo-link:hover {
    border-bottom-color: #fff;
}

/* Nova Secção de Contacto (Formulário) */
.contacto-content {
    display: flex;
    gap: 5rem;
    align-items: flex-start;
}

.contacto-info {
    flex: 1;
}

.contacto-info h3 {
    font-weight: 300;
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.contacto-desc {
    color: #a0a0a0;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.contacto-desc strong {
    color: #ffffff;
    font-weight: 400;
}

.email-contacto {
    font-size: 1.5rem;
    color: #ffffff;
    text-decoration: underline;
    margin-top: 2rem;
}

.contacto-formulario {
    flex: 1;
    background-color: #0d0d0d;
    padding: 3rem;
    border: 1px solid #222;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group input, 
.input-group textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid #333;
    padding: 1rem 0;
    color: #ffffff;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.3s ease;
}

.input-group input:focus, 
.input-group textarea:focus {
    outline: none;
    border-bottom-color: #ffffff;
}

.input-group input::placeholder, 
.input-group textarea::placeholder {
    color: #666;
}

.input-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-btn {
    margin-top: 1rem;
    width: 100%;
    text-align: center;
}

/* Rodapé Minimalista */
footer {
    background-color: #050505;
    border-top: 1px solid #111;
}

.footer-content {
    padding: 3rem 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    color: #505050;
    font-size: 0.85rem;
}

/* Responsividade (Para ficar bem no telemóvel e não cortar a foto) */
@media (max-width: 1000px) {
    .hero {
        flex-direction: column;
        height: auto; 
        min-height: 100vh;
    }
    .hero-text {
        padding: 8rem 5% 4rem 5%;
    }
    .hero-text h1 {
        font-size: 3.5rem;
    }
    .hero-image {
        min-height: 450px; 
        background-position: center 20%; /* Foca a foto no terço superior */
    }
    .nav-links {
        display: none; 
    }
    .sobre-content, .contacto-content {
        flex-direction: column;
        gap: 2rem;
    }
    .sobre-intro {
        font-size: 1.8rem;
    }
    .service-item {
        flex-direction: column;
        gap: 0.5rem;
    }
    .service-item h3 {
        min-width: auto;
    }
    .contacto-formulario {
        width: 100%;
        padding: 2rem;
    }
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}