/* ==================================== */
/* 0. CORREÇÕES GLOBAIS PARA ROLLAGEM E BOX-MODEL */
/* ==================================== */

/* 1. RESET BOX-SIZING: Garante que padding e border não adicionem largura/altura ao elemento. */
* {
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

/* 2. RESET BODY: Remove margens padrão e evita a rolagem horizontal causada por overflow. */
body {
    margin: 0; 
    padding: 0; 
    overflow-x: hidden; 
}

/* 3. Previne que imagens dentro de contêineres causem overflow */
img {
    max-width: 100%;
    height: auto;
    display: block; 
}

/* ==================================== */
/* 1. CONFIGURAÇÕES GERAIS E FONTES */
/* ==================================== */

/* Importação da Fonte Nebula Regular */
@font-face {
    font-family: 'Nebula Regular';
    src: url('fonts/Nebula-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ================================================= */
/* 0. SETUP: PALETA DE CORES E FONTES OFICIAIS (MODERNA) */
/* ================================================= */

:root {
    /* Paleta de Cores Oficial - Torres & Torres Tech */
    --color-primary: #055C91;        /* Azul Marinho Sólido (Cor do Logo / Principal) */
    --color-accent: #88CDF6;         /* Azul Claro (Destaque, CTA, Hover) */
    --color-dark-text: #171717;      /* Preto Profundo para contraste */
    --color-light-bg: #F9F9F9;       /* Fundo quase branco */
    --color-section-bg: #FFFFFF;     /* Fundo branco puro para contraste */
    --color-footer-dark: #033C61;    /* Azul escuro para o rodapé */
    --color-white: #FFFFFF;
    
    /* Fontes */
    --font-heading: 'Nebula Regular', sans-serif; 
    --font-body: 'Montserrat', sans-serif; 

    /* Layout */
    --max-width: 1300px;
    --section-padding: 100px 4%;
}

/* ==================================== */
/* 2. SCROLL REVEAL (Animação de Rolagem) */
/* ==================================== */

/* 1. DEFINIÇÃO DA ANIMAÇÃO (FADE-IN COM SLIDE SUAVE) */
@keyframes fadeIn {
    from {
        opacity: 0; 
        transform: translateY(20px); /* Começa 20px abaixo */
    }
    to {
        opacity: 1; 
        transform: translateY(0); /* Termina na posição original */
    }
}

/* 2. ESTADO INICIAL (INVISÍVEL) */
.reveal-on-scroll {
    opacity: 0;
    /* Adicione uma transição suave como fallback para navegadores sem animação */
    transition: opacity 0.5s ease-out, transform 0.5s ease-out; 
}

/* 3. ESTADO FINAL (VISÍVEL E ANIMADO) */
.revealed {
    animation-name: fadeIn;
    animation-duration: 1s; /* Duração da animação */
    animation-fill-mode: forwards; /* Mantém o estado final da animação */
    opacity: 1; 
    transform: translateY(0);
}


/* ------------------------------------------------- */
/* GLOBAIS E RESET */
/* ------------------------------------------------- */
* {
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

body {
    font-family: var(--font-body);
    color: var(--color-dark-text);
    line-height: 1.6;
    background-color: var(--color-light-bg);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 4%;
}

/* Títulos de Alto Impacto */
.default-title {
    font-family: var(--font-heading);
    font-size: clamp(3em, 6vw, 4.5em);
    margin-bottom: 10px;
    letter-spacing: 2px;
    color: var(--color-dark-text); 
    font-weight: normal; 
    text-align: center;
    line-height: 1.1;
}
.default-subtitle {
    font-family: var(--font-body);
    font-size: clamp(1.2em, 2vw, 1.5em);
    color: var(--color-primary);
    font-weight: 500;
    text-align: center;
    margin-bottom: 50px;
}

.default-title-left {
    font-family: var(--font-heading);
    font-size: clamp(3em, 6vw, 4.5em);
    margin-bottom: 10px;
    letter-spacing: 2px;
    color: var(--color-dark-text); 
    font-weight: normal; 
    text-align: left;
    line-height: 1.1;
}
.default-subtitle-left {
    font-family: var(--font-body);
    font-size: clamp(1.2em, 2vw, 1.5em);
    color: var(--color-primary);
    font-weight: 500;
    text-align: left;
    margin-bottom: 50px;
}

/* ------------------------------------------------- */
/* NAVEGAÇÃO SUPERIOR (FIXA E MODERNA - AGORA AZUL PRIMÁRIO) */
/* ------------------------------------------------- */
.main-nav-bar {
    /* CORREÇÃO A SER APLICADA AQUI */
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    background-color: var(--color-primary); 
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav-logo {
    /* É importante garantir que o logo seja legível no fundo azul, 
       ou usar uma versão branca/clara do logo. */
    height: 80px;
    transition: transform 0.3s;
}
.nav-logo:hover {
    transform: scale(1.05);
}

.footer-nav a { 
    /* MUDANÇA AQUI: Cor do link branca para contrastar com o fundo primário */
    color: var(--color-white);
    text-decoration: none;
    font-size: 0.95em;
    font-weight: 600;
    margin-left: 30px;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s;
}
.footer-nav a:hover {
    color: var(--color-accent); /* Destaque azul claro no hover */
}
/* Linha de destaque no hover */
.footer-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width 0.3s ease-out;
}
.footer-nav a:hover::after {
    width: 100%;
}

/* ================================================= */
/* 1. SEÇÕES PRINCIPAIS (DESIGN MODULAR) */
/* ================================================= */

.section {
    padding: var(--section-padding);
}

/* --- HERO / BANNER --- */
.hero-banner {
    width: 100vw; 
    min-height: 400px; /* Aumentado para garantir um impacto visual */
    
    /* CORREÇÃO PRINCIPAL: Adiciona a imagem de fundo com overlay */
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.7)), url('img/banner_preto.jpg'); 
    background-size: cover;      /* Garante que a imagem cubra todo o espaço */
    background-repeat: no-repeat; 
    
    /* Centraliza o texto vertical e horizontalmente */
    display: flex;
    flex-direction: column; 
    justify-content: center; 
    align-items: center;     
    text-align: center;
    color: white; 
    
    /* Ajuste de Espaçamento Mínimo */
    padding: 80px 5% 80px 5%; /* Padding para telas menores */
    margin-top: 0; /* Garante que encoste no menu de navegação */
}
.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.hero-text {
    flex: 1;
    max-width: 60%;
}
.hero-image {
    flex: 1;
    max-width: 40%;
    text-align: right;
}
.hero-image img {
    width: 80%;
    max-width: 450px;
    box-shadow: 0 10px 30px rgba(5, 92, 145, 0.2);
    border-radius: 12px;
}

/* Título do Banner Ajustado para Ficar no Hero Text */
.hero-text .banner-title {
    color: white;
    text-align: left;
    font-size: clamp(3.5em, 7vw, 5.5em);
    margin-bottom: 20px;
    letter-spacing: 5px;
}
.hero-text .banner-subtitle {
    color: white;
    text-align: left;
    font-size: clamp(1.2em, 2vw, 1.8em);
    font-family: 'Nebula Regular', sans-serif;
    margin-bottom: 30px;
}
.cta-button {
    display: inline-block;
    padding: 15px 35px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 2px solid var(--color-primary);
    background-color: var(--color-primary);
    color: var(--color-white);
    letter-spacing: 1px;
    box-shadow: 0 8px 15px rgba(5, 92, 145, 0.3);
}
.cta-button:hover {
    background-color: var(--color-white);
    color: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: 0 12px 20px rgba(5, 92, 145, 0.4);
}

/* --- QUEM SOMOS, EXPERTISE, PORTFÓLIO E CONTATO (RESTANTE DO CSS MANTIDO) --- */

/* --- QUEM SOMOS E EXPERTISE (ESTILO CARTA) --- */
.quem-somos-section,
.expertise-section {
    background-color: var(--color-light-bg);
}
.section-split {
    display: flex;
    align-items: center;
    gap: 80px;
    margin-top: 50px;
}
.split-text {
    flex: 1;
}
.split-image {
    flex: 1;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    overflow: hidden;
}
.split-image img {
    width: 100%;
    height: auto;
}
.quem-somos-section .split-text h2,
.expertise-section .split-text h2 {
    text-align: left;
}

/* Ajuste de ordem para Expertise (Imagem à direita) */
.expertise-section .section-split {
    flex-direction: row-reverse;
}

/* --- ACORDION (DESIGN CLEAN) --- */
.accordion-item {
    margin-top: 15px;
    border: none;
    border-bottom: 1px solid var(--color-light-bg); 
    overflow: hidden; 
}
.accordion-header {
    background-color: transparent; 
    color: var(--color-dark-text);
    padding: 15px 0;
    font-size: 1.1em;
    font-weight: 700;
    cursor: pointer; 
    transition: color 0.3s;
    border-radius: 0;
}
.accordion-header:hover {
    color: var(--color-primary); 
}
.accordion-header::after {
    content: '+'; 
    font-size: 1.5em;
    color: var(--color-accent); 
    transition: transform 0.3s, content 0.3s;
}
.accordion-item.open .accordion-header::after {
    content: '-';
    transform: rotate(0deg); 
}
.accordion-content {
    background-color: var(--color-light-bg); 
    padding: 0 20px 0 0; 
    max-height: 0;
    transition: max-height 0.5s ease-in-out, padding 0.5s ease-in-out;
}
.accordion-content.open {
    padding: 20px 20px 30px 0;
    max-height: 600px;
}
.accordion-content p {
    font-size: 1em;
    margin-bottom: 15px;
}

/* --- PORTFÓLIO (CARDS FLUTUANTES) --- */
.portfolio-section {
    background-color: var(--color-section-bg);
}
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}
.portfolio-card {
    background-color: var(--color-section-bg); 
    padding: 30px;
    border-radius: 12px;
    /* Sombra Neumorphic sutil para flutuar */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05),
                inset 0 0 0 1px rgba(0, 0, 0, 0.03); 
    border-bottom: 4px solid var(--color-accent); 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}
.portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15), 0 0 0 4px var(--color-accent);
}
.portfolio-card i {
    height: 60px; 
    margin: 0 auto 20px auto;
}
.card-title {
    font-size: 1.4em;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 10px;
}
.card-text {
    font-size: 1em;
}

/* --- CONTATO (DARK, MINIMALISTA) --- */
.contato-section {
    background-color: var(--color-dark-text); 
    color: var(--color-white);
    background-image: linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.85)), url('banner_preto.jpg');
    background-attachment: fixed;
    background-size: cover;
}
.contato-title {
    color: var(--color-white);
    margin-bottom: 20px;
}
.contato-subtitle {
    color: var(--color-accent);
}
.contato-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
}
.contato-form {
    background: none; 
    padding: 0;
    box-shadow: none;
}
.contato-form label {
    font-weight: 400;
    color: var(--color-white);
    font-size: 1em;
}
.contato-form input,
.contato-form textarea {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-white);
    transition: border-color 0.3s, background-color 0.3s;
    width: 100%;
    padding: 12px;
    border-radius: 4px;
}
.contato-form input:focus,
.contato-form textarea:focus {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(136, 205, 246, 0.3);
    outline: none;
}
.submit-button-form {
    background-color: var(--color-accent);
    color: var(--color-dark-text);
    border: none;
    box-shadow: none;
    cursor: pointer;
    padding: 15px 35px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}
.submit-button-form:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: translateY(0);
}

.contato-info {
    padding: 60px;
    background-color: rgba(5, 92, 145, 0.4); 
    border-radius: 8px;
    color: var(--color-white);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}
.contato-info i {
    color: var(--color-accent);
    margin-right: 10px;
}
.contato-info a {
    color: var(--color-accent);
    text-decoration: none;
}
.contato-info a:hover {
    text-decoration: underline;
}

/* --- RODAPÉ (MINIMALISTA E SÓLIDO) --- */
.site-footer {
    background-color: var(--color-footer-dark); 
    color: var(--color-white); 
    padding: 25px 4%;
}
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--max-width);
    margin: 0 auto;
}
.footer-content p {
    font-size: 0.9em;
}
.linkedin-icon {
    font-size: 30px; 
    font-weight: 700;
    font-family: 'Source Sans 3', sans-serif;
    color: black; 
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
}
.linkedin-icon:hover {
    color: white; 
}

/* ... (Todo o seu CSS anterior deve estar aqui) ... */

/* ================================================= */
/* NOVO: ESTILOS PARA O MODAL (POP-UP) DE STATUS */
/* ================================================= */

.modal {
    display: none; /* ESCONDE POR PADRÃO (CRÍTICO) */
    position: fixed; 
    z-index: 99999; /* Garante que fique acima de todos os outros elementos */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7); /* Fundo semi-transparente */
    padding-top: 50px; /* Espaçamento superior para centralizar melhor em telas menores */
}
.modal-content {
    background-color: #fefefe;
    margin: 15% auto; /* Centraliza verticalmente */
    padding: 30px;
    border: 1px solid #888;
    width: 90%;
    max-width: 450px;
    border-radius: 10px;
    text-align: center;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 15px;
    line-height: 1; 
}
.close-button:hover,
.close-button:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}
#modal-title {
    margin: 15px 0 10px 0;
    color: var(--color-primary); 
    font-family: var(--font-heading);
}
#modal-message {
    margin-bottom: 0;
    color: #555;
    font-family: var(--font-body);
}

/* Garante o correto posicionamento do ícone */
#modal-icon {
    margin: 10px 0;
}

/* ================================================= */
/* 9. MEDIA QUERIES (RESPONSIVIDADE MÓVEL) */
/* ================================================= */

@media screen and (max-width: 1024px) {
    /* Ajustes para tablets e laptops pequenos */
    .container {
        padding: 0 30px; /* Mais preenchimento nas laterais */
    }
    .default-title, .default-title-left {
        font-size: 2.2em;
    }
    .hero-text .banner-title {
        font-size: 3.5em;
    }
}
@media screen and (max-width: 768px) {
    /* Ajustes para a maioria dos Tablets e Smartphones em Paisagem */

    .container {
        padding: 0 20px;
    }

    /* Redefinir Tamanhos de Fonte Base para Mobile */
    .default-title, .default-title-left {
        font-size: 1.8em; /* Título menor para celular */
        margin-bottom: 20px;
    }
    .default-subtitle, .default-subtitle-left {
        font-size: 1.1em;
        margin-bottom: 30px;
    }

    /* === NAV BAR (Menu) === */
    .nav-container {
        flex-direction: column; /* Coloca o logo e o menu um abaixo do outro */
        align-items: flex-start;
    }
    .footer-nav {
        display: none; /* Oculta o menu de navegação principal */
    }
    .main-nav-bar {
        padding: 20px 0;
    }

    /* === Hero Banner === */
    .hero-content {
        flex-direction: column;
        text-align: center; /* Centraliza o texto do banner no celular */
    }
    .hero-text, .hero-image {
        max-width: 100%;
        width: 100%;
    }
    .hero-text {
        order: 2; /* Coloca o texto abaixo da imagem/vídeo */
        margin-top: 40px;
    }
    .hero-image {
        order: 1;
    }
    .hero-text .banner-title {
        font-size: 2.5em; /* Reduz muito o título do banner */
        text-align: center;
    }
    .hero-text .banner-subtitle {
        text-align: center;
    }

    /* === Ajustes de Layout (Colunas para Linhas) - Aplicação geral === */
    .section-split {
        flex-direction: column; /* Transforma as colunas em uma pilha vertical */
        gap: 40px; /* Reduz o espaçamento entre as seções */
    }
    .split-image, .split-text {
        width: 100%;
        max-width: 100%;
    }
    
    /* QUEM SOMOS: Ordem Padrão (Texto depois Imagem) - Mantido */
    .quem-somos-section .split-image {
        order: 1;
    }
    .quem-somos-section .split-text {
        order: 2;
    }
    
    .expertise-section .section-split {
        flex-direction: column !important; /* Força a coluna única */
    }
    
    /* Garante a ordem IMAGEM (order: 1) antes do TEXTO/ACORDEÃO (order: 2) */
    .expertise-section .split-image {
        order: 1; /* A imagem será o primeiro item de conteúdo na coluna, logo abaixo do H3/Subtítulo */
    }
    .expertise-section .split-text {
        order: 2; /* O bloco de texto e o acordeão virão em seguida */
    }


    /* === Portfolio Grid === */
    .portfolio-grid {
        grid-template-columns: 1fr; /* Apenas uma coluna no celular */
        gap: 30px;
    }
    .portfolio-card {
        padding: 20px;
    }


/* === Seção Contato === */
 .contato-container {
    /* Esta regra já garante que os blocos se empilhem verticalmente */
    flex-direction: column; 
    gap: 40px;
}
.contato-form, .contato-info {
    width: 100%;
    max-width: 100%;
}
.contato-info {
    text-align: left;
}
.contato-form {
    order: 1; /* O Formulário virá primeiro (acima) */
}
.contato-info {
    order: 2; /* Os Contatos Diretos virão em segundo (abaixo) */
}



    /* === Rodapé (Footer) === */
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    .linkedin-icon {
        margin: 10px 0;
    }
    
    /* === Modal (Pop-up) - Ajuste para Mobile === */
    .modal-content {
        margin: 10% auto; /* Tenta centralizar mais para telas pequenas */
        padding: 20px;
        width: 95%; /* Ocupa quase a largura total */
    }
}

@media screen and (max-width: 480px) {
    /* Ajustes para Smartphones pequenos */
    .section {
        padding: 60px 0; /* Menos padding vertical */
    }
    .hero-text .banner-title {
        font-size: 2em; /* Título do banner ainda menor */
    }
    .cta-button {
        padding: 12px 20px; /* Botão menor */
    }
}