/* ======================================= */
/* 1. CONFIGURAÇÕES BASE       */
/* ======================================= */

/* Definição de Variáveis de Cores e Fontes */
:root {
    --fonte-principal: 'Poppins', sans-serif;
    
    /* Cores */
    --cor-fundo: #ffffff;
    --cor-fundo-secao: #f8fafc;
    --cor-texto-principal: #0f172a;
    --cor-texto-secundaria: #475569;
    --cor-texto-claro: #fff;
    --cor-primaria: hsl(200, 100%, 45%);
    --cor-secundaria: #6c757d;
    --cor-link-hover: hsl(200, 100%, 40%);
    --cor-borda-claro: #e2e8f0;

    /* Gradientes */
    --gradiente-botao: linear-gradient(135deg, hsl(200, 100%, 45%), hsl(195, 90%, 55%));
    --gradiente-botao-hover: linear-gradient(135deg, hsl(200, 100%, 40%), hsl(195, 90%, 50%));
    
    /* Sombras */
    --sombra-leve: 0 2px 6px rgba(0,0,0,0.08);
    --sombra-media: 0 4px 12px rgba(0,0,0,0.25);
    --sombra-pesada: 0 6px 14px rgba(0, 123, 255, 0.35);
}

/* Reset Universal */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Estilos Padrão do Corpo da Página */
body {
    font-family: var(--fonte-principal);
    line-height: 1.6;
    color: var(--cor-texto-principal);
    background-color: var(--cor-fundo);
    scroll-behavior: smooth;
}

/* Contêiner Principal de Largura Limitada */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ======================================= */
/* 2. SEÇÕES GERAIS            */
/* ======================================= */

.section {
    padding: 6rem 1rem;
    background-color: var(--cor-fundo);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--cor-texto-principal);
    margin-bottom: 1.2rem;
    text-align: center;
}

.section-description {
    font-size: 1.2rem;
    color: var(--cor-texto-secundaria);
    margin: 0 auto 2rem;
    line-height: 1.7;
    max-width: 800px;
    text-align: center;
}

/* ======================================= */
/* 3. HEADER E NAVEGAÇÃO       */
/* ======================================= */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #e5e7eb;
    box-shadow: var(--sombra-leve);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--cor-texto-principal);
}

.logo-icon img {
    height: 28px;
    width: auto;
}

.logo-text {
    font-size: 1.35rem;
    font-weight: 700;
}

.nav-desktop {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--cor-texto-principal);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-link:hover, .nav-link:focus {
    color: var(--cor-link-hover);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 0.25rem;
}

.mobile-menu-btn span {
    width: 1.5rem;
    height: 2px;
    background: var(--cor-texto-principal);
    transition: all 0.3s ease;
}

/* ======================================= */
/* 4. BOTÕES E LINKS           */
/* ======================================= */

.btn-primary {
    background: var(--gradiente-botao);
    color: var(--cor-texto-claro);
    padding: 0.85rem 1.7rem;
    border: none;
    border-radius: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.25);
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover, .btn-primary:focus {
    background: var(--gradiente-botao-hover);
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--sombra-pesada);
}

.btn-primary.clicked {
    transform: scale(0.95);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2);
}

.button-container {
    text-align: center;
    margin-top: 3rem;
}

/* ======================================= */
/* 5. SEÇÕES DA PÁGINA INICIAL */
/* ======================================= */


/* Seção Comunicação */
.communication {
    padding: 3rem 1rem 5rem;
    background: var(--cor-fundo-secao);
}

.communication-content {
    display: grid;
    grid-template-columns: 1fr 0.8fr; /* Coluna do texto maior, coluna da imagem menor */
    gap: 3rem;
    align-items: center;
    max-width: 1000px; /* Limita a largura total do conteúdo */
    margin: 0 auto; /* Centraliza o conteúdo da comunicação */
}

.comm-img-wrapper { /* Novo wrapper para a imagem */
    display: flex; /* Para centralizar a imagem dentro da sua coluna */
    justify-content: flex-end; /* Alinha a imagem à direita */
    align-items: center;
}

.comm-img {
    width: 100%; /* A imagem vai ocupar 100% da largura do seu wrapper */
    max-width: 380px; /* Limite a largura real da imagem aqui */
    height: auto;
    border-radius: 1rem;
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

/* Floating elements (se você quiser manter, caso contrário pode remover) */
.floating-element {
    position: absolute; /* Para que flutuem em relação ao wrapper */
    background: rgba(var(--cor-primaria-rgb), 0.1);
    border-radius: 50%;
    filter: blur(50px);
    z-index: 0;
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

/* Seção Hero */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 6rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    filter: blur(2px) brightness(0.90);
}

.hero-bg-img {
    width: 100%;
    height: 105%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
}

.hero-container {
    z-index: 10;
    padding: 4rem 1rem;
    color: var(--cor-texto-claro);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: -2px 2px 6px rgba(0,0,0,0.5);
}

.hero-description {
    font-size: 1.4rem;
    opacity: 100;
    margin-bottom: 3rem;
    margin-left: 1rem;
    margin-right: 1rem;
    text-shadow: -1px 1px 4px rgba(0,0,0,0.7);
}

.hero-cta {
    display: flex; /* Transforma o contêiner em um flexbox */
    justify-content: left; /* Centraliza o conteúdo horizontalmente */
    margin-top: 2rem; /* Adiciona um espaço acima do botão */
    margin-left: 1rem;

}

/* Seção de Tecnologia (com fundo de imagem) */
.technology {
    position: relative;
    padding: 6rem 2rem;
    color: var(--cor-texto-claro);
    overflow: hidden;
    background-image: url("https://images.unsplash.com/photo-1592890288564-76628a30a657?q=80&w=1470&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D");
    background-size: cover;
    background-position: center;
    text-align: center;
}

.technology::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.45);
    filter: blur(4px);
    z-index: 0;
}

.technology .container {
    position: relative;
    z-index: 1;
}

.tech-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--cor-texto-claro);
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.tech-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(70px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 12px 0 rgba(0, 0, 0, 0.4);
    
    padding: 2.2rem;
    border-radius: 1.5rem;
    text-decoration: none;
    color: var(--cor-texto-claro);
    transition: all 0.35s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.tech-card:hover, .tech-card:focus {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 12px 48px 0 rgba(0, 0, 0, 0.4);
}

.tech-card h3 {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--cor-texto-claro);
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.tech-card p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    line-height: 1.5;
}

/* ======================================= */
/* 6. PÁGINAS DE CONTEÚDO      */
/* ======================================= */

.content-page {
    padding: 8rem 2rem 4rem;
    background-color: var(--cor-fundo-secao);
    min-height: calc(100vh - 10rem);
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: left;
    margin-bottom: 1.5rem;
    color: var(--cor-texto-principal);
}

.page-intro {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--cor-texto-secundaria);
    max-width: 800px;
    margin-bottom: 3rem;
    text-align: left;
}

.content-subtitle {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--cor-texto-principal);
    margin-bottom: 0.5rem;
    text-align: left;
}

.content-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--cor-texto-principal);
    margin-bottom: 1.5rem;
    text-align: left;
}

.texto-destaque {
    font-size: 1.2rem;
    font-weight: 600;
}

.content-block {
    margin-bottom: 4rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--cor-borda-claro);
    text-align: left;
}

.content-block:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.content-illustration {
    text-align: center;
    margin: 2rem 0;
}

.communication-image {
    padding: auto;
    width: 10%;
    height: 10%;
}

.content-image {
    max-width: 70%;
    height: auto;
    border-radius: 1rem;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.content-block ul,
.content-block ol {
    padding-left: 2rem;
    margin-bottom: 1.5rem;
}

.content-block li {
    margin-bottom: 0.5rem;
}

/* ======================================= */
/* 7. FOOTER                   */
/* ======================================= */

.footer {
    background: var(--cor-texto-principal);
    color: var(--cor-texto-claro);
    padding: 3rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover, .footer-link:focus {
    color: var(--cor-texto-claro);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* ======================================= */
/* ESTILOS EXCLUSIVOS DA PÁGINA SOBRE      */
/* ======================================= */

/* Seção principal da página Sobre */
.about-section {
    padding: 8rem 2rem 4rem; /* espaço para compensar o header fixo */
    background-color: var(--cor-fundo-secao);
    min-height: calc(100vh - 10rem);
}

/* Título principal */
.about-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--cor-texto-principal);
    text-align: center;
    line-height: 1.3;
}

/* Subtítulos (ex: Nossa Missão, O Que Você Vai Encontrar Aqui) */
.about-subtitle {
    font-size: 1.6rem;
    font-weight: 600;
    margin-top: 2.5rem;   /* espaço acima */
    margin-bottom: 1rem; /* espaço abaixo */
    color: var(--cor-texto-principal);
    text-align: center;
}

/* Parágrafos da página Sobre */
.about-text {
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--cor-texto-secundaria);
    max-width: 850px;
    margin: 0 auto 2rem auto; /* centralizado e com espaço entre parágrafos */
    text-align: justify;      /* alinhamento justificado para melhor leitura */
}

/* Bloco de destaque */
.about-highlight {
    background: #e0f2fe;                  /* fundo azul claro */
    padding: 1.2rem 1.5rem;               /* espaço interno */
    border-left: 6px solid var(--cor-primaria); /* barra azul do lado */
    border-radius: 0.5rem;                /* cantos arredondados */
    margin: 2.5rem auto;                  /* espaço em volta */
    max-width: 800px;                     /* largura máxima */
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--cor-texto-principal);
    line-height: 1.8;
}

/* Botão centralizado */
.about-section .btn-primary {
    margin-top: 2rem;
    display: inline-block;
}


/* ======================================= */
/* 8. RESPONSIVIDADE           */
/* ======================================= */

@media (max-width: 991px) {
    .nav-desktop {
        position: fixed;
        top: 100%;                   /* A nova posição é no topo da tela */
        left: 0;
        width: 100%;
        
        /* Ajuste de altura para preencher a tela inteira */
        height: 100vh;           
        
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 4rem 0 1rem;      /* Ajusta o padding para dar espaço ao topo */
        transform: translateX(-100%);
        transition: transform 0.4s ease-in-out;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        z-index: 999;           /* Z-index menor que o do botão do menu */
    }
    
    .nav-link {
        padding: 0.75rem 0;
    }

    .about-title {
    font-size: 1.7rem; /* Ajusta o título para telas menores */
    }

    .about-text {
        font-size: 0.95rem;   /* Ajusta o tamanho da fonte do texto para melhor leitura */
        text-align: left;
    }

    .nav-desktop.is-open {
        transform: translateX(0);
    }

    .mobile-menu-btn {
        display: flex;
        z-index: 1001;
    }

    .mobile-menu-btn.is-open span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }
    .mobile-menu-btn.is-open span:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-btn.is-open span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    .communication-content {
        grid-template-columns: 1fr;
    }

    .communication-image {
        display: none;
    }

    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .tech-card {
        padding: 1.5rem;
    }

    .tech-card h3 {
        font-size: 1.2rem;
        margin-bottom: 0.4rem;
    }

    .tech-card p {
        font-size: 0.9rem;
    }

    .about-section .btn-primary {
        padding: 0.7rem 1.4rem;
        font-size: 0.95rem;
        width: auto;
        max-width: 90%;
    }
}

@media (max-width: 767px) {
    /* Ajustes Gerais para Telas Pequenas */
    .section-title,
    .hero-title,
    .tech-title {
        margin-top: 2.1rem;
        font-size: 2.3rem;
        text-align: center;
    }


    .content-illustration {
        text-align: center;
        margin: 2rem 0;
    }
    .content-image {
        max-width: 100%; /* Aumenta o tamanho da imagem para 90% do contêiner */
        height: auto;
        border-radius: 1rem;
        box-shadow: -3px 6px 9px rgba(0, 0, 0, 0.25);
    }

    .comm-img-wrapper {
        display: none;
    }
    .hero-description,
    .section-description {
        font-size: 1.1rem;
        text-align: left;
    }

    .tech-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .tech-card {
        padding: 1.0rem;
    }
    
    .tech-card h3 {
        font-size: 1.0rem;
    }
    
    /* Fontes das Páginas de Conteúdo */
    .content-page .page-title {
        font-size: 2rem;
        text-align: left;
    }
    .content-page .page-intro {
        font-size: 0.95rem;
    }
    .content-page .content-subtitle {
        font-size: 1.5rem;
    }
    .content-page .content-text {
        font-size: 0.9rem;
    }

    .content-block ul,
    .content-block ol {
        padding-left: 0.6rem; /* Reduz o recuo da lista para mobile */
    }

    .content-page .btn-primary {
        padding: 0.8rem 1.0rem ;   /* Reduz ainda mais o padding */
        font-size: 0.9rem;        /* Reduz o tamanho da fonte */
        max-width: 400px;         /* Garante que o botão não seja muito largo */
    }


}