/* --- IMPORTAÇÃO DE FONTE E VARIÁVEIS GLOBAIS --- */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700&family=Roboto:wght@300;400;700&display=swap');

:root {
    /* Cores Escuras (Tema Principal) */
    --bg-dark-space: #0f0f1a;
    --bg-dark-panel: #1a1a2e;
    --bg-light-panel: #2a2a4e;
    --text-primary: #e0e0e0;
    --text-secondary: #b0b0c0;
    --accent-primary: #00aaff;
    --accent-secondary: #4f4f7a;
    --border-color: #7a7ab3;

    /* Cores de Feedback */
    --feedback-good: #4CAF50;
    --feedback-warn: #FFC107;
    --feedback-danger: #F44336;
    --error-color: #F44336;
}

/* --- AJUSTE DE LAYOUT UNIVERSAL --- */
* { box-sizing: border-box; }

/* --- ESTILO GERAL --- */
body { 
    font-family: 'Roboto', sans-serif; 
    background-color: var(--bg-dark-space); /* FUNDO ESCURO PRINCIPAL */
    color: var(--text-primary); 
    margin: 0; 
    padding: 0; 
}

.hidden { display: none; }

/* --- NAVBAR --- */
.navbar {
    width: 100%;
    max-width: 1300px; 
    margin: 0 auto; 
    padding: 20px 30px; 
    background-color: transparent; 
    border-bottom: none; 
    backdrop-filter: none; 
    border-radius: 0; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: absolute; 
    top: 0;
    left: 0;
    right: 0; 
    z-index: 10;
}
.navbar-brand {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8em; 
    color: #ffffff; 
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700; 
}
.navbar-brand i { display: none; }
.navbar-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px; 
}
.navbar-links a {
    color: #ffffff; 
    text-decoration: none;
    font-size: 1em;
    font-weight: bold;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s ease;
}
.navbar-links a:hover { color: var(--accent-primary); }
.navbar-links a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--accent-primary);
    bottom: 0;
    left: 0;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}
.navbar-links a:hover::after { transform: scaleX(1); }

/* --- HERO SECTION --- */
.hero {
    height: 100vh; 
    width: 100vw;  
    background-image: url('../LUNAR/imagens/imgLua.png'); 
    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat; 
    background-color: #000; 
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.hero-content {
    max-width: 800px; 
    padding: 0 20px;
    color: #ffffff;
    animation: fadeIn 1.5s ease-in-out; 
    z-index: 2; 
    position: relative; 
}
.hero-content h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 4.5rem; 
    font-weight: 700;
    margin: 0;
    color: #ffffff;
    letter-spacing: 2px;
}
.hero-content p {
    font-family: 'Roboto', sans-serif;
    font-size: 1.2rem;
    color: #e0e0e0; 
    line-height: 1.6;
    margin: 20px 0 30px 0;
}
.cta-button {
    font-family: 'Roboto', sans-serif;
    background-color: #ffffff;
    color: #000000;
    padding: 14px 28px;
    border-radius: 50px; 
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-block; 
}
.cta-button:hover {
    background-color: #e0e0e0;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.1);
}

/* --- SEÇÃO: NOSSOS SERVIÇOS (TEMA ESCURO) --- */
#nossos-servicos {
    background-color: var(--bg-dark-panel); /* Fundo de painel escuro */
    width: 100%; 
    display: flex;
    justify-content: center; 
    padding: 80px 0; 
    gap: 60px; 
    animation: fadeIn 0.8s ease-in-out; 
    flex-wrap: wrap;
}

#nossos-servicos .servicos-content {
    flex: 1; 
    max-width: 500px; 
    min-width: 320px; /* Largura mínima */
    color: var(--text-primary); /* Texto claro */
    padding-left: 30px; 
    padding-right: 30px; /* Padding para telas menores */
}

#nossos-servicos h2 {
    font-family: 'Orbitron', sans-serif; /* Fonte Orbitron para o título */
    font-size: 2.8em; 
    font-weight: 700; 
    color: #ffffff; /* Texto branco */
    border-bottom: none; 
    padding-bottom: 0;
    margin-bottom: 20px;
}

#nossos-servicos .servicos-description {
    font-family: 'Roboto', sans-serif;
    font-size: 1.1em;
    line-height: 1.6;
    color: var(--text-secondary); /* Texto secundário claro */
    margin-bottom: 40px; 
}

/* Botão "Fantasma" (Ghost Button) */
.servicos-button {
    display: inline-block;
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff; /* Borda branca */
    padding: 13px 30px; /* Ajuste no padding por causa da borda */
    border-radius: 4px; 
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    margin-bottom: 50px; 
    transition: all 0.3s ease;
}

.servicos-button:hover {
    background-color: #ffffff; /* Fundo branco no hover */
    color: #000000; /* Texto preto no hover */
    transform: translateY(-2px);
}

#nossos-servicos .servicos-image {
    flex: 1; 
    max-width: 600px; 
    height: 600px; 
    background-image: url('../LUNAR/imagens/lunar_example.jpg'); 
    background-size: cover;
    background-position: center;
    border-radius: 8px; 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); /* Sombra um pouco mais forte */
    min-width: 320px; /* Largura mínima */
    margin-right: 30px; 
    margin-left: 30px; /* Margem para telas menores */
}

/* Acordeão (FAQ) (Tema Escuro) */
.servicos-faq { margin-top: 30px; }
.servicos-faq details {
    border-bottom: 1px solid var(--accent-secondary); /* Borda de sotaque escura */
    padding: 15px 0;
    cursor: pointer;
}
.servicos-faq details:last-of-type { border-bottom: none; }
.servicos-faq summary {
    font-family: 'Roboto', sans-serif;
    font-size: 1.1em;
    font-weight: bold;
    color: var(--text-primary);
    outline: none; 
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.servicos-faq summary::-webkit-details-marker { display: none; }
.servicos-faq summary::after {
    content: '+'; 
    font-weight: 300;
    font-size: 1.5em;
    transition: transform 0.2s ease;
    color: var(--accent-primary); /* Cor de destaque azul */
}
.servicos-faq details[open] summary::after {
    content: '-'; 
}
.servicos-faq details p {
    font-family: 'Roboto', sans-serif;
    font-size: 1em;
    color: var(--text-secondary);
    line-height: 1.5;
    padding-top: 15px;
    padding-bottom: 5px;
    margin-left: 0; 
}

/* --- SEÇÃO: PASSO 1: SELEÇÃO DA ZONA DE POUSO (MODERNA E ESCURA) --- */
#phase1-container {
    background-color: var(--bg-dark-space); /* Fundo escuro principal */
    width: 100%; 
    padding: 100px 0; /* Mais padding para espaço */
    animation: fadeIn 0.8s ease-in-out;
}

#phase1-container .content-wrapper {
    max-width: 1200px; /* Levemente mais estreito para mais foco */
    margin: 0 auto; 
    padding: 0 40px; /* Mais padding lateral */
    color: var(--text-primary); 
}

#phase1-container h2 {
    font-family: 'Orbitron', sans-serif; 
    font-size: 3em; /* Título maior */
    font-weight: 700;
    color: #ffffff;
    text-align: center; 
    border-bottom: none; 
    padding-bottom: 0;
    margin-bottom: 15px; /* Espaço ajustado */
    letter-spacing: 1px; /* Um pouco de espaçamento para o título */
}

#phase1-container .subtitle {
    font-family: 'Roboto', sans-serif;
    font-size: 1.2em; /* Subtítulo um pouco maior */
    color: var(--text-secondary); 
    text-align: center; 
    margin-bottom: 60px; /* Mais espaço antes dos cartões */
    max-width: 800px; /* Limita a largura do subtítulo */
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Cartões de Zona (Tema Escuro Moderno) */
.zone-options-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); /* Cartões um pouco maiores */
    gap: 35px; /* Mais espaço entre os cartões */
    margin-top: 40px; 
}

.zone-card { 
    background: var(--bg-dark-panel); /* Fundo escuro do painel */
    border: 1px solid var(--accent-secondary); /* Borda sutil */
    border-radius: 12px; /* Cantos mais arredondados */
    padding: 30px; /* Mais padding interno */
    cursor: pointer; 
    transition: all 0.3s ease; 
    display: flex; 
    flex-direction: column; 
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4); /* Sombra mais profunda */
    position: relative;
    overflow: hidden; /* Para o efeito de gradiente no hover */
}

.zone-card:hover { 
    transform: translateY(-8px) scale(1.02); /* Efeito de "levitação" mais pronunciado */
    box-shadow: 0 10px 30px rgba(0, 170, 255, 0.3); /* Glow azul no hover */
    border-color: var(--accent-primary); /* Borda azul no hover */
}

.zone-card h3 { 
    margin: 0 0 20px 0; 
    font-family: 'Orbitron', sans-serif; 
    color: #ffffff; 
    font-size: 1.5em; /* Título do cartão maior */
    font-weight: 700;
    position: relative;
    padding-left: 35px; /* Espaço para o ícone */
}

/* Ícone de "pin" ou destaque para o título do cartão */
.zone-card h3::before {
    content: '\f3c5'; /* Ícone de mapa/pin da Font Awesome */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--accent-primary);
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1em;
}


.zone-stats { 
    list-style: none; 
    padding: 0; 
    margin: 0 0 25px 0; /* Mais espaço */
}

.zone-stats li { 
    color: var(--text-secondary); 
    margin-bottom: 12px; /* Mais espaço entre os itens */
    font-size: 1em; /* Tamanho da fonte ajustado */
    display: flex;
    align-items: center;
}

.zone-stats li strong { 
    color: var(--text-primary); 
    min-width: 90px; /* Ajusta a largura para alinhamento */
    display: inline-block; 
    font-weight: bold;
}

/* Para o "Risco" e "Dados" (Exemplo de barra de progresso simples) */
.zone-stats li.risk-item strong { color: var(--feedback-danger); }
.zone-stats li.data-item strong { color: var(--feedback-good); }

/* Descrição da zona */
.zone-card p.zone-details { /* Adicionando classe para especificidade */
    color: var(--text-secondary);
    font-size: 0.95em;
    line-height: 1.6;
    margin-top: 15px;
    margin-bottom: 30px; /* Mais espaço antes do botão */
}


/* Botões "Selecionar Zona" (Botão de Ação Principal Moderno) */
.select-zone-btn { 
    margin-top: auto; 
    background-color: var(--accent-primary); 
    color: #fff; 
    border: none; 
    padding: 15px 25px; /* Padding ajustado */
    border-radius: 6px; /* Levemente mais arredondado */
    cursor: pointer; 
    font-size: 1.1em; /* Botão um pouco maior */
    font-weight: bold; 
    transition: all 0.3s ease; 
    text-align: center; 
    letter-spacing: 0.5px; /* Leve espaçamento nas letras */
    box-shadow: 0 4px 15px rgba(0, 170, 255, 0.4); /* Sombra mais pronunciada */
}

.select-zone-btn:hover { 
    background-color: #0088cc; 
    transform: translateY(-3px); /* Levitação maior no hover */
    box-shadow: 0 6px 20px rgba(0, 170, 255, 0.6); 
}


/* --- SEÇÃO "PASSO 2" E OUTRAS (TEMA ESCURO) --- */
/* Esta regra agora pega a #phase2-container e futuras seções */
section:not(.hero):not(#nossos-servicos):not(#phase1-container) { 
    width: 100%; 
    max-width: 1300px; 
    margin: 20px auto; 
    background-color: var(--bg-dark-panel); /* Fundo de painel escuro */
    border-radius: 12px; 
    padding: 30px; 
    border: 1px solid var(--accent-secondary); 
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7); 
    animation: fadeIn 0.8s ease-in-out; 
}

/* O h2 padrão (para Passo 2, etc.) */
h2 { 
    font-family: 'Orbitron', sans-serif; 
    font-size: 1.8em; 
    margin-top: 0; 
    border-bottom: 2px solid var(--accent-primary); /* Borda azul */
    padding-bottom: 15px; 
    margin-bottom: 10px;
    color: #ffffff; /* Texto branco */
}
.subtitle { 
    color: var(--text-secondary); 
    margin-bottom: 30px; 
}


/* --- FASE 2: FERRAMENTA DE LAYOUT (Estilos originais, já são escuros) --- */
.phase2-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid var(--accent-primary); padding-bottom: 15px; margin-bottom: 20px; }
.phase2-header h2 { border: none; padding: 0; margin: 0; }
#back-to-phase1-btn, #clear-modules-btn { background: transparent; border: 1px solid var(--border-color); color: var(--text-primary); padding: 10px 15px; border-radius: 5px; cursor: pointer; font-size: 14px; transition: all 0.3s ease; }
#back-to-phase1-btn:hover { background: var(--accent-secondary); border-color: var(--accent-secondary); }
#clear-modules-btn { margin-top: auto; }
#clear-modules-btn:hover { background: var(--error-color); border-color: var(--error-color); color: white; }

.layout-tool { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; /* Permite quebra em telas menores */ }
#side-panel { width: 250px; background: var(--bg-dark-space); padding: 20px; border-radius: 5px; display: flex; flex-direction: column; height: 800px; min-width: 250px; }
#side-panel h3 { margin-top: 0; }
#side-panel button { background-color: var(--bg-light-panel); color: var(--text-primary); border: 1px solid var(--accent-secondary); padding: 12px; border-radius: 5px; cursor: pointer; font-size: 15px; text-align: left; transition: all 0.3s ease; display: flex; align-items: center; gap: 10px; position: relative; }
#side-panel button:hover { background-color: var(--accent-primary); border-color: var(--accent-primary); color: #fff; }
[data-tooltip]:hover::after { content: attr(data-tooltip); position: absolute; left: 105%; top: 50%; transform: translateY(-50%); background-color: #000; color: #fff; padding: 8px 12px; border-radius: 5px; font-size: 14px; white-space: nowrap; z-index: 100; border: 1px solid var(--accent-primary); }

#blueprint-area { flex-grow: 1; background-color: #1c1c3c; border: 2px dashed var(--border-color); border-radius: 5px; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; min-height: 800px; }
#blueprint-info { text-align: center; font-family: 'Orbitron', sans-serif; color: rgba(122, 122, 179, 0.4); font-size: 2em; user-select: none; z-index: 1; }
#feedback-panel { width: 300px; background: var(--bg-dark-space); padding: 20px; border-radius: 5px; height: 800px; min-width: 300px; }
#feedback-panel h3 { margin-top: 0; }

#ring-guide-message { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); padding: 12px 22px; border-radius: 5px; background-color: var(--accent-secondary); color: var(--text-primary); font-size: 15px; font-family: 'Orbitron', sans-serif; z-index: 100; pointer-events: none; box-shadow: 0 0 15px rgba(0,0,0,0.5); border: 1px solid var(--border-color); text-align: center; }

.module { position: absolute; width: 90px; height: 104px; background-color: var(--accent-secondary); clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 10px 0; color: white; cursor: grab; user-select: none; animation: fadeIn 0.3s ease; text-align: center; font-size: 11px; font-weight: normal; transition: transform 0.2s ease, filter 0.2s ease, left 0.2s ease, top 0.2s ease; z-index: 2; }
.module i { font-size: 1.5em; }
.module:active { cursor: grabbing; z-index: 10; transform: scale(1.05); }
.module-colliding { filter: drop-shadow(0 0 8px var(--feedback-danger)); }

.module-habitat { background-color: rgba(247, 224, 22, 0.85); }
.module-airlock { background-color: rgba(200, 200, 200, 0.85); }
.module-power { background-color: rgba(255, 193, 7, 0.85); }
.module-ltv { background-color: rgba(76, 175, 80, 0.85); }
.module-isru { background-color: rgba(156, 39, 176, 0.85); }
.module-pressurized-rover { background-color: rgba(244, 67, 54, 0.85); }
.module-default { background-color: rgba(79, 79, 122, 0.85); }

.module-selected { filter: drop-shadow(0 0 12px var(--accent-primary)); }
.delete-module-btn { position: absolute; top: 15px; right: 15px; width: 18px; height: 18px; background-color: var(--error-color); color: white; border: 1px solid rgba(255,255,255,0.3); border-radius: 50%; display: none; align-items: center; justify-content: center; cursor: pointer; transition: background-color 0.2s ease, transform 0.2s ease; z-index: 15; font-size: 0.7em; transform: scale(1); }
.delete-module-btn:hover { background-color: #d32f2f; transform: scale(1.1); }
.module-selected .delete-module-btn { display: flex; }

/* --- FEEDBACK VISUAL --- */
.feedback-good { color: var(--feedback-good); }
.feedback-warn { color: var(--feedback-warn); }
.feedback-danger { color: var(--feedback-danger); }
#feedback-panel p { margin: 15px 0; border-left: 3px solid; padding-left: 10px; }
#feedback-panel .feedback-good { border-color: var(--feedback-good); }
#feedback-panel .feedback-warn { border-color: var(--feedback-warn); }
#feedback-panel .feedback-danger { border-color: var(--feedback-danger); }

.ring-center { position: absolute; width: 90px; height: 104px; clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%); background-color: rgba(42, 42, 78, 0.8); border: 2px dashed var(--accent-secondary); display: flex; align-items: center; justify-content: center; z-index: 1; padding: 10px; text-align: center; transition: left 0.2s ease, top 0.2s ease; }
.ring-center input { width: 100%; background: transparent; border: none; border-bottom: 1px solid var(--accent-primary); color: var(--text-primary); font-family: 'Orbitron', sans-serif; text-align: center; outline: none; font-size: 13px; }
.ring-center .ring-name { font-family: 'Orbitron', sans-serif; color: var(--accent-primary); font-size: 14px; font-weight: bold; word-break: break-word; }

.corridor-module { position: absolute; width: 90px; height: 104px; clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%); background-color: var(--bg-dark-panel); border: 2px solid var(--border-color); z-index: 1; transition: left 0.2s ease, top 0.2s ease; }

.module-category {
    border-bottom: 1px solid var(--accent-secondary);
    padding-bottom: 10px;
    margin-bottom: 10px;
}
.module-category summary {
    cursor: pointer;
    font-family: 'Orbitron', sans-serif;
    font-size: 1em;
    padding: 10px 5px;
    color: var(--text-primary);
    list-style: none;
    outline: none;
    user-select: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.module-category summary::-webkit-details-marker { display: none; }
.module-category summary::before {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    transition: transform 0.2s ease-in-out;
    color: var(--accent-primary);
    margin-left: 10px;
}
.module-category[open] > summary::before { transform: rotate(-180deg); }
.module-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

/* --- FOOTER (TEMA ESCURO) --- */
footer {
    width: 100%;
    max-width: 1300px;
    margin: 40px auto 0 auto;
    padding: 20px;
    border-top: 1px solid var(--accent-secondary); /* Borda de sotaque */
    text-align: center;
}
footer p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9em;
}

/* --- ESTILO DA ÁREA DE PLANEJAMENTO --- */
#blueprint-area {
    flex-grow: 1;
    background-color: #1c1c3c;
    border: 2px dashed var(--border-color);
    border-radius: 5px;
    position: relative;
    overflow: hidden;

    background-image:
        radial-gradient(circle at 85% 85%, rgba(0, 170, 255, 0.2) 0%, transparent 20%),
        radial-gradient(circle at 90% 15%, rgba(244, 67, 54, 0.2) 0%, transparent 18%),
        radial-gradient(circle at 15% 50%, rgba(255, 193, 7, 0.2) 0%, transparent 25%),
        linear-gradient(rgba(122, 122, 179, 0.2) 1px, transparent 1px),
        linear-gradient(90deg, rgba(122, 122, 179, 0.2) 1px, transparent 1px);

    background-size: 
        100% 100%, 
        100% 100%, 
        100% 100%, 
        40px 40px, 
        40px 40px;

    background-position: 0 0; 
    
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 800px; 
    transition: height 0.3s ease; 
}

#blueprint-info {
    text-align: center;
    font-family: 'Orbitron', sans-serif;
    color: rgba(122, 122, 179, 0.4);
    font-size: 2em;
    user-select: none;
    z-index: 1;
}

/* --- ESTILO DO MÓDULO DE LIGAÇÃO (CORREDOR/AIRLOCK) --- */
.corridor-module {
    position: absolute;
    width: 90px;
    height: 104px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background-color: var(--bg-dark-panel); 
    border: 2px solid var(--border-color); 
    z-index: 1;
    transition: left 0.2s ease, top 0.2s ease;
}

.corridor-module.airlock-corridor {
    background-color: #6c757d; 
    border-color: #adb5bd;     
    
    color: white;
    font-family: 'Orbitron', sans-serif;
    font-weight: bold;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.content-section {
    background-color: var(--bg-dark-space); /* Fundo escuro principal */
    width: 100%;
    padding: 100px 0; /* Espaçamento vertical */
    color: var(--text-primary);
    animation: fadeIn 0.8s ease-in-out;
}

.content-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
}

.content-section h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 3em;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.content-section .subtitle {
    font-family: 'Roboto', sans-serif;
    font-size: 1.2em;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.team-display {
    /* REMOVEMOS 'display: flex' AQUI */
    background-color: var(--bg-dark-panel); /* Fundo do painel */
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--accent-secondary);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    /* align-items: center; REMOVIDO */
}

.team-photo-wrapper {
    width: 100%; /* Ocupa toda a largura do container pai */
    margin-bottom: 40px; /* Espaço entre a foto e a lista de membros */
    text-align: center; /* Centraliza a imagem se ela for menor que a largura do wrapper */
    border: 2px solid var(--accent-secondary); /* Borda ao redor do wrapper da foto */
    border-radius: 8px; /* Cantos arredondados */
    overflow: hidden; /* Garante que nada transborde do wrapper */
}

.team-photo {
    width: 100%; /* A imagem preenche a largura do seu wrapper */
    height: auto; /* Mantém a proporção original da imagem */
    display: block; /* Remove espaços indesejados abaixo da imagem */
    object-fit: contain; /* <<< CHAVE: Garante que a imagem inteira seja visível, sem cortes */
}

.team-members {
    width: 100%; /* Ocupa toda a largura */
}

.team-members h3 {
    font-family: 'Orbitron', sans-serif;
    color: var(--accent-primary);
    font-size: 1.8em;
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--accent-secondary);
    padding-bottom: 10px;
}

.team-members ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.team-members li {
    font-family: 'Roboto', sans-serif;
    color: var(--text-primary);
    font-size: 1.1em;
    padding: 8px 0;
    border-bottom: 1px dashed var(--accent-secondary);
}

.team-members li:last-child {
    border-bottom: none;
}

.team-display {
    background-color: var(--bg-dark-panel);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--accent-secondary);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.team-photo-wrapper {
    width: 100%;
    margin-bottom: 40px;
    text-align: center;
    border: 2px solid var(--accent-secondary);
    border-radius: 8px;
    overflow: hidden;
}

.team-photo {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.team-members {
    width: 100%;
}

.team-members h3 {
    font-family: 'Orbitron', sans-serif;
    color: var(--accent-primary);
    font-size: 1.8em;
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--accent-secondary);
    padding-bottom: 10px;
}

.team-members ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.team-members li {
    font-family: 'Roboto', sans-serif;
    color: var(--text-primary);
    font-size: 1.1em;
    padding: 8px 0;
    border-bottom: 1px dashed var(--accent-secondary);
}

.team-members li:last-child {
    border-bottom: none; 
}