/* =========================================
   Reset e Definições Globais
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Roxo Escuro para Ciano Vibrante */
    --gradient: linear-gradient(to right, #6a11cb, #00f2fe); 
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background-color: #000000;
}

section {
    scroll-margin-top: 10px; 
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

/* =========================================
   Navbar (Estilo Uniforme)
   ========================================= */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 10%;
    background: rgba(0, 0, 0, 0.95);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #1a1a1a;
}

.logo-text {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500; /* Igual aos outros itens */
    font-size: 1rem;   /* Igual aos outros itens */
    transition: 0.3s;
}

.logo-text:hover {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.navbar ul {
    display: flex;
    list-style: none;
}

.navbar ul li a {
    text-decoration: none;
    color: #ffffff;
    margin: 0 15px;
    font-weight: 500;
    font-size: 1rem;
    transition: 0.3s;
}

.navbar ul li a:hover {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.phone {
    font-weight: 500;
}

/* =========================================
   Hero Section (SVG Local - Ajustado)
   ========================================= */
.hero {
    height: 80vh;
    background-image: url('logo.svg'); 
    
    /* Aumentamos o tamanho do logo */
    background-size: 75%; 
    
    /* Centralizado horizontalmente e ligeiramente acima do meio vertical */
    background-position: center 40%; 
    background-repeat: no-repeat;
    background-color: #000000;
    
    image-rendering: -webkit-optimize-contrast;
    
    display: flex;
    align-items: flex-end; 
    justify-content: center;
    
    /* Reduzimos para os botões ficarem mais perto da margem inferior */
    padding-bottom: 30px; 
}

.hero-btns {
    display: flex;
    gap: 20px;
    align-items: center;
    /* Garante que os botões não fiquem colados ao logo em ecrãs pequenos */
    margin-top: 20px; 
}

/* =========================================
   Botões e Design
   ========================================= */
.btn-gradient {
    background: var(--gradient);
    color: white;
    padding: 16px 40px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: inline-block;
    border: none;
}

.btn-gradient:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(106, 17, 203, 0.4);
}

.btn-outline {
    border: 2px solid #00f2fe;
    color: white;
    padding: 14px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    transition: 0.3s;
    display: inline-block;
}

.btn-outline:hover {
    background: #00f2fe;
    color: black;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    font-weight: 700;
}

/* =========================================
   Secções e Contactos Centrados
   ========================================= */
.bg-variant { background-color: #0a0a0a; }
.bg-dark { background-color: #050505; border-top: 1px solid #1a1a1a; }

.text-center { text-align: center; }

#contactos .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    text-align: center;
}

/* Garante que todo o conteúdo de cada membro esteja centrado */
.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Estilo da Foto: Sem moldura e circular */
.profile-pic {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: none; /* Garante que não há moldura */
}

/* Nome: Tamanho reduzido conforme solicitado */
.stat-item h2 { 
    font-size: 1.8rem; 
    margin-bottom: 5px; 
}

/* Cargo: Texto em destaque */
.role-text {
    font-weight: 700;
    font-size: 1rem;
    color: #00f2fe;
    margin-bottom: 5px;
}

/* Descrição: Texto pequeno em baixo */
.bio-text {
    font-size: 0.85rem;
    color: #bbbbbb;
    max-width: 280px;
    line-height: 1.4;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.card {
    background: #111111;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid #1a1a1a;
    transition: 0.3s;
    text-align: center;
}

.card:hover {
    border-color: #6a11cb;
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(106, 17, 203, 0.15);
}

/* =========================================
   Modal Portfólio
   ========================================= */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #111;
    padding: 40px;
    border: 1px solid #1a1a1a;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    position: relative;
    text-align: center;
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    cursor: pointer;
    color: #444;
}

#portfolioForm {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 25px;
}

#portfolioForm input, #portfolioForm select {
    padding: 12px;
    background: #000;
    border: 1px solid #333;
    color: white;
    border-radius: 8px;
}

/* =========================================
   Footer e Responsividade
   ========================================= */
footer {
    background: #000000;
    color: #444;
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid #1a1a1a;
}

@media (max-width: 768px) {
    .navbar { flex-direction: column; gap: 15px; padding: 20px; }
    .hero { background-size: 90%; padding-bottom: 40px; }
    .hero-btns { flex-direction: column; gap: 10px; width: 100%; }
    .btn-outline, .btn-gradient { width: 100%; text-align: center; }
}

/* --- Novas adições para a equipa --- */
.profile-pic {
    width: 150px;           
    height: 150px;
    border-radius: 50%;     /* Foto redonda */
    object-fit: cover;      
    margin-bottom: 20px;
    border: 3px solid #6a11cb; /* Moldura com a cor da marca */
}

.role-text {
    font-weight: 700;
    font-size: 1.1rem;
    color: #00f2fe;        /* Ciano vibrante do seu gradiente */
    margin-bottom: 5px;
}

.bio-text {
    font-size: 0.85rem;    /* Descrição mais pequenina */
    color: #bbbbbb;        /* Cinza claro para contraste */
    max-width: 280px;
    margin: 0 auto;
    line-height: 1.4;
}

/* Espaçamento extra entre os membros da equipa */
.stats-grid {
    gap: 50px;
    margin-top: 40px;
}

/* Layout da Secção de Contactos */
.contactos-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 50px;
    flex-wrap: wrap; /* Garante que em telemóveis o conteúdo empilha */
}

.contactos-phone {
    flex: 1;
    max-width: 300px;
    min-width: 250px;
}

.phone-mockup {
    width: 100%;
    height: auto;
    border-radius: 30px; /* Se o seu print não tiver moldura, isto ajuda */
    transition: transform 0.3s ease;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5));
}

.phone-mockup:hover {
    transform: translateY(-10px) rotate(-3deg);
}

.contactos-info {
    flex: 2;
    min-width: 300px;
}

.contact-btns {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Ajuste para ecrãs pequenos */
@media (max-width: 768px) {
    .contactos-wrapper {
        flex-direction: column;
        text-align: center;
    }
    .contactos-info {
        text-align: center;
    }
    .contact-btns {
        justify-content: center;
    }
}

/* Layout da Secção de Contactos */
.contactos-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap; /* Para empilhar em telemóveis */
    text-align: left;
}

.contactos-visual {
    flex: 1;
    max-width: 120px; /* Limita o tamanho do telemóvel */
    display: flex;
    justify-content: center;
}

.phone-img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.4)); /* Dá profundidade ao telemóvel */
    transition: transform 0.4s ease;
}

.phone-img:hover {
    transform: scale(1.05) rotate(-2deg); /* Animação ao passar o rato */
}

.contactos-content {
    flex: 1;
    min-width: 300px;
}

.contact-details {
    margin: 25px 0;
    font-size: 1.1rem;
}

.contact-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Ajuste Responsivo */
@media (max-width: 768px) {
    .contactos-grid {
        flex-direction: column-reverse; /* Telemóvel aparece depois do texto em telas pequenas */
        text-align: center;
    }
    
    .contact-actions {
        justify-content: center;
    }
}