/* ==========================================================================
   RESET E VARIÁVEIS DE COR
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

:root {
    --bg-color: #030303;
    --card-bg: #0a0a0a;
    --text-color: #ffffff;
    --text-muted: #a0a0a0;
    --primary-gradient: linear-gradient(90deg, #ff4e00, #ec008c, #7300ff, #00ff6c);
    --orange: #ff6a00;
    --purple: #b200ff;
    --blue: #0077ff;
    --green: #00ff66;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Previne o "piscar" dos elementos antes da animação do ScrollReveal */
html.sr .load-hidden {
    visibility: hidden;
}

/* Quebra de linha exclusiva para o celular */
.mobile-break { 
    display: none; 
}

/* ==========================================================================
   HEADER / NAVEGAÇÃO
   ========================================================================== */
.header {
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(3, 3, 3, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #111;
}

.logo-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header .logo img {
    height: 42px;
    width: auto;
    display: block;
}

.footer .logo img {
    height: 42px;
    width: auto;
    display: block;
}

.navbar {
    display: flex;
    align-items: center;
    gap: 30px;
}

.navbar a {
    position: relative;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    padding-bottom: 8px;
    transition: color .3s ease;
}

.navbar a:hover {
    color: var(--text-color);
}

/* Linha inferior (Hover) */
.navbar a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(
        90deg,
        var(--orange),
        var(--purple),
        var(--blue),
        var(--green)
    );
    transition: width .3s ease;
}

.navbar a:hover::after {
    width: 100%;
}

/* Item ativo */
.navbar a.active {
    color: var(--text-color);
}

.navbar a.active::after {
    width: 100%;
}

/* Botão Menu Hambúrguer (Mobile) */
.menu-toggle {
    display: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

/* ==========================================================================
   BOTÕES GERAIS E GRADIENTES
   ========================================================================== */
.btn-primary, 
.btn-secondary {
    background: transparent;
    border: 1px solid #222;
    padding: 12px 24px;
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    font-size: 14px;
    display: inline-block;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.btn-primary:hover, 
.btn-secondary:hover {
    background: transparent;
    border-color: var(--purple);
    box-shadow: 0 0 15px rgba(178, 0, 255, 0.4);
    color: #ffffff;
}

.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Botão menor para detalhes */
.btn-small-outline {
    background: transparent;
    border: 1px solid #222222;
    padding: 8px 16px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    font-size: 12px;
    display: inline-block;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.btn-small-outline:hover {
    background: transparent;
    border-color: var(--blue);
    box-shadow: 0 0 12px rgba(0, 119, 255, 0.3);
    color: #ffffff;
}

/* ==========================================================================
   HERO SECTION (HOME, SOBRE E SERVIÇOS)
   ========================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 120px 0 80px 0;
    background: radial-gradient(circle at 80% 20%, rgba(115, 0, 255, 0.15), transparent 50%);
}

.hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 500px;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0) 0%,
        rgba(0,0,0,0.15) 20%,
        rgba(0,0,0,0.4) 40%,
        rgba(0,0,0,0.7) 65%,
        rgba(0,0,0,0.9) 85%,
        #000 100%
    );
    pointer-events: none;
    z-index: 1;
}

/* Fundos Fotográficos de cada página */
.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url("img/hero.png");
    background-size: cover;
    background-position: center right;
    z-index: 1;
}

.bg-sobre {
    background-image: url("img/sobre-hero.png"); 
    background-position: center right;
}

.bg-servicos {
    background-image: url("img/servicos-hero.png"); 
    background-position: center center;
}

/* Efeito de Fade Cinematográfico */
.hero-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(0,0,0,1) 0%,
        rgba(0,0,0,.98) 20%,
        rgba(0,0,0,.92) 35%,
        rgba(0,0,0,.75) 50%,
        rgba(0,0,0,.45) 65%,
        rgba(0,0,0,.15) 80%,
        rgba(0,0,0,0) 100%
    );
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at 70% 50%,
        rgba(115,0,255,.25),
        transparent 60%
    );
}

.hero-grid {
    position: relative;
    z-index: 5;
}

.hero-text {
    max-width: 650px;
}

.hero-text h1 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-text p {
    max-width: 520px;
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Ajustes de texto específicos para o Sobre */
.text-sobre h1 {
    text-transform: none; 
    font-size: 42px;
}

.text-sobre p {
    max-width: 550px; 
    margin-bottom: 15px;
}

/* ==========================================================================
   SEÇÃO MÉTRICAS (HOME)
   ========================================================================== */
.metrics {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-top: 45px;
    flex-wrap: wrap;
}

.metric-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.metric-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.metric-text-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.metric-text-block h3 {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.0;
    margin: 0;
}

.metric-text-block p {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    margin: 4px 0 0 0;
    line-height: 1.0;
}

.metric-divider {
    width: 1px;
    height: 32px;
    background-color: #222222;
    flex-shrink: 0;
}

/* ==========================================================================
   SERVIÇOS (GRID RESUMIDO DA HOME)
   ========================================================================== */
.services { padding-top: 100px; }
.services-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 60px; }
.subtitle { text-transform: uppercase; font-size: 12px; letter-spacing: 2px; color: var(--blue); display: block; margin-bottom: 10px; }
.services-intro h2 { font-size: 36px; margin-bottom: 20px; }
.services-list { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.service-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #111;
    transition: 0.3s;
    position: relative;
}

.service-card i { font-size: 32px; margin-bottom: 20px; }
.service-card h3 { margin-bottom: 10px; }
.service-card p { color: var(--text-muted); font-size: 14px; }
.service-card .arrow { position: absolute; bottom: 20px; right: 20px; color: var(--text-muted); }

.orange-glow:hover { border-color: var(--orange); box-shadow: 0 0 20px rgba(255, 106, 0, 0.2); }
.purple-glow:hover { border-color: var(--purple); box-shadow: 0 0 20px rgba(178, 0, 255, 0.2); }
.blue-glow:hover { border-color: var(--blue); box-shadow: 0 0 20px rgba(0, 119, 255, 0.2); }
.green-glow:hover { border-color: var(--green); box-shadow: 0 0 20px rgba(0, 255, 102, 0.2); }

/* ==========================================================================
   NOVA SEÇÃO ADICIONADA: PÁGINA DE SERVIÇOS DETALHADOS (6 CATEGORIAS)
   ========================================================================== */
.category-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px; 
    padding: 50px 0; 
}

.cat-card { 
    background: var(--card-bg); 
    padding: 40px; 
    border: 1px solid #141414; 
    border-radius: 12px; 
    transition: 0.3s; 
}

.cat-card:hover { 
    border-color: var(--blue); 
}

.cat-card h3 { 
    margin-bottom: 20px; 
    font-size: 22px; 
}

.cat-card ul { 
    list-style: none; 
    color: var(--text-muted); 
    margin-bottom: 25px; 
}

.cat-card li { 
    display: flex;
    align-items: flex-start; /* Alinhamento cirúrgico no topo */
    margin-bottom: 10px; 
    font-size: 14px; 
    line-height: 1.5;
}

.cat-card li i { 
    color: var(--green); 
    margin-right: 12px; 
    font-size: 13px; /* Tamanho proporcional à letra minúscula */
    margin-top: 4px; /* Ajuste milimétrico para centralização vertical */
    flex-shrink: 0; /* Impede o ícone de deformar no mobile */
}

/* ==========================================================================
   PORTFÓLIO / CASES
   ========================================================================== */
.cases { padding-top: 100px; }
.cases-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 40px;}
.cases-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.case-card { 
    background: var(--card-bg); 
    border-radius: 8px; 
    overflow: hidden; 
    border: 1px solid #111; 
    cursor: pointer; 
}

.case-card img { width: 100%; height: 200px; object-fit: cover; transition: 0.5s; }
.case-card:hover img { transform: scale(1.05); }
.case-info { padding: 20px; }
.case-info h4 { font-size: 16px; margin-bottom: 5px; }
.case-info p { color: var(--text-muted); font-size: 13px; }

/* ==========================================================================
   SEÇÃO SOBRE NÓS (CONTEÚDO MEIO)
   ========================================================================== */
.sobre-numbers { padding: 20px 0 80px; }

.numbers-box {
    background: var(--card-bg);
    border: 1px solid #141414;
    border-radius: 12px;
    padding: 40px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.num-item { display: flex; align-items: center; gap: 15px; }
.num-text h3 { font-size: 22px; margin-bottom: 4px; color: #fff; }
.num-text p { font-size: 12px; color: var(--text-muted); line-height: 1.4; }

.sobre-details { padding: 20px 0 100px; }
.details-grid { display: grid; grid-template-columns: 1.2fr 1.8fr; gap: 80px; }
.jornada-col h2, .team-col h2 { font-size: 28px; margin: 15px 0 40px; line-height: 1.3; }

/* TIMELINE CUSTOMIZADA */
.timeline { position: relative; padding-left: 25px; }
.timeline::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 10px;
    bottom: 30px;
    width: 1px;
    background: #333;
}

.timeline-item { position: relative; display: flex; gap: 20px; margin-bottom: 40px; }
.timeline-item:last-child { margin-bottom: 0; }

.dot {
    position: absolute;
    left: -25px;
    top: 3px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    z-index: 2;
}

.dot-orange { background: var(--orange); box-shadow: 0 0 10px var(--orange); }
.dot-purple { background: var(--purple); box-shadow: 0 0 10px var(--purple); }
.dot-blue   { background: var(--blue);   box-shadow: 0 0 10px var(--blue); }
.dot-green  { background: var(--green);  box-shadow: 0 0 10px var(--green); }

.time-year { font-weight: 700; font-size: 14px; width: 45px; padding-top: -2px; color: #fff; }
.time-content { flex: 1; }
.time-content h5 { font-size: 15px; margin-bottom: 6px; color: #fff; }
.time-content p { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

/* CARDS DO TIME */
.team-cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-bottom: 25px; }

.team-card-small {
    background: var(--card-bg);
    border: 1px solid #141414;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.team-card-small:hover { transform: translateY(-5px); border-color: #333; }

.team-card-small img {
    width: 100%;
    aspect-ratio: 1 / 1; 
    object-fit: cover;
    filter: grayscale(30%); 
}

.team-card-small:hover img { filter: grayscale(0%); }
.team-card-small h4 { font-size: 14px; margin: 15px 15px 5px; color: #fff; }
.team-card-small p { font-size: 11px; color: var(--text-muted); margin: 0 15px 15px; line-height: 1.4; }

.team-footer-card {
    background: var(--card-bg);
    border: 1px solid #141414;
    border-radius: 8px;
    padding: 20px 25px;
    display: flex;
    align-items: center;
    gap: 20px;
}
.team-footer-card p { font-size: 12px; color: var(--text-muted); line-height: 1.5; margin: 0; }

/* ==========================================================================
   SEÇÃO CTA (FOGUETE)
   ========================================================================== */
.cta { padding: 100px 0; background-color: var(--bg-color); }

.cta-box {
    background: #050505; 
    padding: 30px 40px;
    border-radius: 12px;
    border: 1px solid #121212;
    display: flex;
    align-items: center;
    justify-content: space-between; 
    gap: 30px;
}

.cta-icon { width: 90px; display: flex; align-items: center; justify-content: center; }
.cta-icon img {
    width: 200px;
    height: auto;
    display: block;
    filter: drop-shadow(0 0 8px rgba(255,106,0,.25)) drop-shadow(0 0 12px rgba(178,0,255,.15));
    transition: transform .3s ease;
}
.cta-box:hover .cta-icon img { transform: translateY(-3px); }

.cta-title-block { flex: 1; max-width: 320px; }
.cta-title-block h2 { font-size: 20px; font-weight: 700; line-height: 1.25; letter-spacing: 0.5px; color: #ffffff; }
.cta-desc-block { flex: 1.5; max-width: 400px; }
.cta-desc-block p { color: var(--text-muted); font-size: 14px; line-height: 1.5; }
.cta-btn-block { flex-shrink: 0; }

.btn-gradient-border {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
    text-decoration: none;
    background: transparent; 
    border: 1px solid #222222;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-gradient-border:hover {
    background: transparent;
    border-color: var(--purple);
    box-shadow: 0 0 15px rgba(178, 0, 255, 0.4);
    color: #ffffff;
}

/* ==========================================================================
   CONTATO / FORMULÁRIO INTELIGENTE (ESCONDIDO COM FORÇA TOTAL)
   ========================================================================== */
.contact-section {
    display: none !important; /* Garante que comece 100% invisível */
    padding: 100px 0;
    background-color: var(--bg-color);
    scroll-margin-top: 80px;
}

/* Quando o botão for clicado, esta classe entra em ação */
.contact-section.show {
    display: block !important;
    animation: efeitoCascata 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* O efeito cascata: o bloco surge de cima para baixo abrindo espaço */
@keyframes efeitoCascata {
    from {
        opacity: 0;
        transform: translateY(-50px); /* Começa mais alto, dando o efeito de abrir para baixo */
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.contact-info h2 {
    font-size: 38px;
    margin: 15px 0 25px;
    line-height: 1.2;
}

.contact-info p {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 15px;
    max-width: 90%;
}

.contact-form-container {
    background: var(--card-bg);
    border: 1px solid #111;
    padding: 40px;
    border-radius: 12px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    background: #050505;
    border: 1px solid #1c1c1c;
    padding: 14px 16px;
    border-radius: 6px;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    transition: all 0.3s ease;
    outline: none;
}

/* Customização da seta interna do Select */
.contact-form select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 14px;
    padding-right: 40px;
    cursor: pointer;
}

/* Foco estético com a cor roxa neon */
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--purple);
    box-shadow: 0 0 12px rgba(178, 0, 255, 0.3);
}

.btn-submit {
    width: 100%;
    cursor: pointer;
    margin-top: 10px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { background: #020202; padding: 80px 0 30px 0; border-top: 1px solid #111; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 60px; }
.footer-brand p { color: var(--text-muted); margin-top: 20px; font-size: 14px; line-height: 1.6; }
.social-icons { margin-top: 20px; display: flex; gap: 15px; }
.social-icons a { color: var(--text-muted); font-size: 18px; transition: 0.3s; }
.social-icons a:hover { color: white; }
.footer-links h4 { margin-bottom: 20px; font-size: 16px; }
.footer-links a { display: block; color: var(--text-muted); text-decoration: none; margin-bottom: 12px; font-size: 14px; }
.footer-links p { display: flex; align-items: flex-start; gap: 10px; color: var(--text-muted); margin-bottom: 12px; font-size: 14px; line-height: 1.5; }
.footer-links p i { width: 16px; flex-shrink: 0; margin-top: 2px; }
.footer-links a:hover { color: white; }
.footer-bottom { display: flex; justify-content: space-between; border-top: 1px solid #111; padding-top: 30px; color: var(--text-muted); font-size: 12px; }
.footer-bottom a { color: var(--text-muted); text-decoration: none; margin-left: 20px; }

section { scroll-margin-top: 60px; }
#contato { scroll-margin-top: 80px; }
footer { scroll-margin-top: 140px; }

/* ==========================================================================
   RESPONSIVIDADE (TABLETS - ATÉ 1024px)
   ========================================================================== */
@media (max-width: 1024px) {
    /* Grids caindo para 1 coluna */
    .hero-grid, .services-grid, .footer-grid, .details-grid, .contact-grid { 
        grid-template-columns: 1fr; 
    }
    
    .team-cards-grid { grid-template-columns: repeat(2, 1fr); }
    .cases-grid { grid-template-columns: 1fr 1fr; }
    
    /* Menu Hamburguer */
    .menu-toggle { display: block; }
    
    /* Escondendo o botão original no mobile para abrir espaço pro menu */
    .btn-primary { display: none; }
    
    /* Menu lateral flutuante */
    .navbar {
        position: absolute;
        top: 74px; 
        left: 0;
        width: 100%;
        background: rgba(3, 3, 3, 0.98);
        flex-direction: column;
        padding: 30px 0;
        gap: 20px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        z-index: 999;
    }
    
    .navbar.menu-aberto {
        transform: translateY(0);
    }
    
    .navbar a { font-size: 18px; }
    
    .cta-box { flex-direction: column; text-align: center; padding: 40px 20px; gap: 25px; }
    .metrics { gap: 20px; justify-content: center; }
    .metric-divider { display: none; }
    .numbers-box { flex-direction: column; align-items: flex-start; }
    .timeline::before { bottom: 0; }
}

/* ==========================================================================
   RESPONSIVIDADE (SMARTPHONES - ATÉ 768px)
   ========================================================================== */
@media (max-width: 768px) {
    /* Ativa a quebra de linha do título no celular */
    .mobile-break { display: block; }
    
    /* Diminuindo os Títulos Gigantes */
    .hero-text h1 { font-size: 32px; }
    .text-sobre h1 { font-size: 32px; }
    
    .story-content h2, 
    .jornada-col h2, 
    .team-col h2, 
    .services-intro h2, 
    .cases-header h2 { 
        font-size: 26px; 
    }
    
    /* ALINHAMENTO DAS MÉTRICAS LADO A LADO */
    .metrics {
        flex-wrap: nowrap; 
        justify-content: space-between;
        gap: 5px; 
        width: 100%;
    }
    
    .metric-item {
        gap: 6px; 
    }
    
    .metric-icon-wrapper .fa-2x {
        font-size: 1.4em; 
    }
    
    .metric-text-block h3 {
        font-size: 16px; 
    }
    
    .metric-text-block p {
        font-size: 9px; 
    }

    /* Grids caindo para 1 coluna no celular */
    .cases-grid { grid-template-columns: 1fr; }
    .team-cards-grid { grid-template-columns: 1fr; }
    .services-list { grid-template-columns: 1fr; } 
    
    /* Ajustes do formulário inteligente no mobile */
    .form-row { 
        flex-direction: column; 
        gap: 20px; 
    }
    
    .contact-section {
        padding: 60px 0;
    }

    /* Correção do Rodapé */
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }

    .footer-bottom a {
        margin: 0 10px;
        display: inline-block;
    }

    /* REMOVENDO OS BURACOS PRETOS DISCREPANTES NO MOBILE */
    .hero {
        min-height: auto; 
        padding-bottom: 40px; 
    }

    .services {
        padding-top: 40px; 
    }

    .sobre-details {
        padding-bottom: 40px; 
    }

    .cta {
        padding: 50px 0; 
    }
}