/* Reset e Variáveis Globais */
:root {
    --bg-color: #000000;
    --text-primary: #FFFFFF;
    --text-secondary: #A1A1AA;
    --brand-accent: #f9cf24;
    /* Amarelo PandaHub */
    --brand-accent-glow: rgba(249, 207, 36, 0.4);
    --glass-bg: rgba(20, 20, 20, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --banner-light: #f5f5f5;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100vw;
    width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
}

/* Tipografia e Efeitos */
.text-gradient {
    background: linear-gradient(180deg, #FFFFFF 0%, #A1A1AA 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--brand-accent);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

/* Painéis de Vidro (Glassmorphism) */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
}

/* Botões */
.btn-primary {
    background-color: var(--brand-accent);
    color: #000000;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px var(--brand-accent-glow);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid var(--glass-border);
    transition: var(--transition-smooth);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Efeito Shine (Brilho no botão) */
.shine-effect::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-20deg);
    animation: shine 5s infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }

    20% {
        left: 200%;
    }

    100% {
        left: 200%;
    }
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 24px 0;
    transition: background-color 0.4s ease, backdrop-filter 0.4s ease, padding 0.4s ease;
}

.navbar.scrolled {
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    padding: 16px 0;
    border-bottom: 1px solid var(--glass-border);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo-img {
    max-height: 60px;
    /* Forçando contenção da imagem original pesada */
    max-width: 180px;
    height: auto;
    width: auto;
    object-fit: contain;
    transition: var(--transition-smooth);
}

.nav-logo-img:hover {
    transform: translateY(-2px) scale(1.02);
    filter: drop-shadow(0 4px 15px rgba(249, 207, 36, 0.4));
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a:not(.btn-primary) {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.nav-links a:not(.btn-primary):hover {
    color: var(--text-primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Menu Hamburguer (Oculto no Desktop) */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition-smooth);
    border-radius: 2px;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #1a1a1a 0%, #000000 70%);
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: left;
    width: 100%;
}

.hero h1 {
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    max-width: 800px;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: flex-start;
}

.bottom-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(to top, #000000 0%, transparent 100%);
    z-index: 2;
    pointer-events: none;
}

/* Serviços (Carousel) */
.services-swiper {
    padding: 20px 0 60px 0;
}

.services-swiper .swiper-wrapper {
    align-items: stretch;
}

.services-swiper .swiper-slide {
    height: auto;
}

.service-card {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: var(--transition-smooth);
    width: 100%;
    height: 100%;
    /* Herda o tamanho total forçado pelo Swiper Slide flex */
    min-height: 480px;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

.service-media-placeholder {
    width: 100%;
    aspect-ratio: 9 / 16;
    height: auto;
    /* Trazendo pra a proporção original do Shorts/Reels/Vídeo Avatar */
    background: linear-gradient(145deg, #111111, #1a1a1a);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 8px;
    overflow: hidden;
    /* Importante para quando inserir os vídeos */
}

.service-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
}

.service-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    flex-grow: 1;
    /* Preenche o vazio e joga os elementos pra cima/baixo */
}

/* Fazer botões (se existirem) ficarem sempre no rodapé */
.service-card .btn-outline {
    margin-top: auto;
}

/* Novo CTA Abaixo de Serviços */
.services-cta {
    text-align: center;
    margin-top: 50px;
}

.services-cta .btn-primary {
    padding: 16px 40px;
    font-size: 1.1rem;
}

/* -------------------------------- */
/*  Novas Seções Fotográficas       */
/* -------------------------------- */
.automate-banner-section {
    padding: 80px 0;
}

.automate-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    margin-bottom: 50px;
}

.automate-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 24px;
}

.automate-content p {
    font-size: 1.15rem;
    color: var(--text-secondary);
}

.automate-image-wrapper,
.digital-workers-image {
    position: relative;
    /* Importante para segurar o fundo glow absolute */
    width: 100%;
    margin: 0 auto;
    border-radius: 20px;
}

/* Novo Underlay / Glow Effect nas costas da FOTO 2 (Mockup) */
.digital-workers-image::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 130%;
    /* Ligeiramente mais largo que a foto pra espalhar a luz */
    height: 130%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(230, 230, 240, 0.15) 0%, rgba(230, 230, 240, 0) 65%);
    z-index: -1;
    pointer-events: none;
}

.responsive-banner-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 20px;
    display: block;
}

/* Overlay Styles para Foto 1 */
.full-width-overlay {
    border-radius: 0 !important;
}

.full-width-overlay img {
    border-radius: 0 !important;
}

.overlay-wrapper {
    position: relative;
    width: 100%;
    min-height: 480px;
    border-radius: 0px !important;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.automate-photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    filter: brightness(0.35);
    /* Escurece a imagem para o texto aparecer bem */
}

.overlay-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    width: 100%;
    margin-top: 140px;
    /* Desce a escrita para baixo */
}

.overlay-content h2 {
    font-size: clamp(1.1rem, 1.8vw, 1.6rem);
    /* Fonte ainda mais diminuta */
    margin-bottom: 20px;
}

.overlay-content p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.9);
}

.digital-workers-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
}

.digital-workers-text h2 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    margin-bottom: 24px;
    line-height: 1.1;
}

.digital-workers-text p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

/* Utilitário mt-5 para empurrar o CTA */
.mt-5 {
    margin-top: 24px;
    display: inline-block;
}

.partners-banner {
    background-color: var(--banner-light);
    color: #000;
    padding: 60px 0;
    margin: 80px auto;
    width: 90%;
    max-width: 1200px;
    text-align: center;
    border-radius: 20px;
    overflow: hidden;
    /* Importante para a animação não quebrar lateralmente */
}

.partners-title {
    font-weight: 600;
    color: #666;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

/* Animação Marquee Infinita para Logos */
.partners-logos-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.partners-logos-wrapper::before,
.partners-logos-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
}

.partners-logos-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--banner-light), transparent);
}

.partners-logos-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--banner-light), transparent);
}

.partners-logos {
    display: flex;
    width: max-content;
    animation: scroll-left 25s linear infinite;
}

.logo-item {
    font-weight: 800;
    font-size: 1.5rem;
    color: #333;
    opacity: 0.7;
    transition: var(--transition-smooth);
    padding: 0 40px;
    /* Espaço entre logos ajustado via padding */
}

.logo-item img {
    max-height: 85px;
    /* Ampliado para atender ao pedido do cliente */
    transition: var(--transition-smooth);
}

.logo-item:hover img {
    transform: scale(1.05);
    /* Pequeno efeito extra já que tiramos as cores de hover */
    opacity: 1;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ============================== */
/*          SOBRE NÓS             */
/* ============================== */
.about-container {
    max-width: 1000px;
    margin: 0 auto;
}

.about-text {
    text-align: center;
}

.about-text h2 {
    margin-bottom: 40px;
}

.about-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: center;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.about-text-content {
    text-align: left;
}

.about-text-content p {
    margin-bottom: 16px;
}

.about-visual {
    padding: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.floating-logo {
    max-width: 250px;
    height: auto;
    filter: drop-shadow(0 10px 25px rgba(249, 207, 36, 0.4));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Depoimentos - Foco Único */
.single-testimonial {
    display: flex;
    justify-content: center;
}

.single-testimonial .testimonial-card {
    max-width: 800px;
    width: 100%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.testimonial-content {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--text-primary);
}

.testimonial-text {
    margin-bottom: 16px;
}

.stars {
    margin-bottom: 16px;
    font-size: 1.2rem;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 16px;
    border-top: 1px solid var(--glass-border);
    padding-top: 24px;
}

.client-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--brand-accent);
}

.client-details strong {
    display: block;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.client-details span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Footer */
footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    margin-top: 100px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ========================================================================= */
/*                          RESPONSIVIDADE (MOBILE)                          */
/* ========================================================================= */
@media screen and (max-width: 768px) {
    .section {
        padding: 60px 0;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    /* Navbar Mobile (Dropdown / Hambuguer) */
    .nav-content {
        flex-direction: row;
        /* Volta ao normal para segurar Logo e Botão lado a lado */
        justify-content: space-between;
        align-items: center;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
    }

    /* Logo Responsiva sem Fundo */
    .nav-logo-img {
        max-height: 42px;
        width: auto;
        max-width: 120px;
        /* Impede vazar */
    }

    /* Layout Sidebar Superior para Logo | Botão | Menu Hamburguer */
    .nav-actions {
        gap: 8px;
        /* Reduz espaço no mobile ultra-pequeno */
    }

    .header-cta {
        padding: 6px 14px !important;
        font-size: 0.8rem !important;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
    }

    .mobile-menu-btn {
        display: flex;
        /* Exibe o botão */
    }

    /* Ocultar os links num Dropdown Vertical (Escondido por default) */
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(15, 15, 15, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        padding: 0;
        visibility: hidden;
        opacity: 0;
        transform: translateY(-10px);
        transition: visibility 0.4s, opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
        border-bottom: 1px solid var(--glass-border);
    }

    .nav-links.active {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
        padding: 24px 0;
    }

    .nav-links a {
        font-size: 1.1rem;
        padding: 12px 24px;
        width: 100%;
        text-align: center;
    }

    /* Animação do 'X' do botão hamburguer ativo */
    .mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Hero Section Mobile */
    .hero {
        padding-top: 120px;
        min-height: 80vh;
    }

    .hero h1 {
        font-size: 2.2rem;
        margin-bottom: 16px;
    }

    .hero p {
        font-size: 1rem;
        padding: 0;
    }

    .hero-actions {
        flex-direction: column;
        padding: 0 24px;
    }

    /* Carrossel de Serviços Ajuste */
    .service-media-placeholder {
        aspect-ratio: 9 / 16;
        height: auto;
    }

    .service-card {
        height: 100%;
        min-height: auto;
    }

    /* Sobre Nós Mobile */
    .about-content-grid {
        grid-template-columns: 1fr;
        font-size: 0.95rem;
        gap: 24px;
    }

    .about-visual {
        padding: 40px 20px;
    }

    .floating-logo-hub {
        max-width: 220px;
    }

    /* correção essencial MARQUEE LOGOS NO MOBILE (Forçar linha e espaço) */
    .partners-banner {
        padding: 40px 0;
        margin: 40px auto;
        width: 92%;
    }

    .partners-logos {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 0 !important;
        /* Controle pelo padding */
    }

    .logo-item {
        padding: 0 30px;
        /* Reduz espaçamento no mobile para não parecer tão vazio */
    }

    .logo-item img {
        max-height: 60px;
        /* Redimensionado proporcionalmente maior pro mobile */
    }

    .digital-workers-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .digital-workers-section {
        overflow: hidden;
        /* impede o escape horizontal do underlay glow */
    }

    .digital-workers-image::before {
        width: 100%;
        height: 100%;
    }

    .overlay-wrapper {
        min-height: 400px;
        /* Ajuste para caber bem no celular */
        padding: 40px 15px;
        align-items: center;
        /* Volta ao centro / parte inferior equilibrada */
    }

    .overlay-content {
        margin-top: 80px;
        /* Alivia os 280px pesados do Desktop */
    }

    .overlay-content h2 {
        font-size: 1.3rem;
        /* Título menor da overlay no mobile */
        margin-bottom: 15px;
    }

    .overlay-content p {
        font-size: 0.95rem;
        /* Copia menor */
    }

    .automate-content h2 {
        font-size: 1.8rem;
    }

    .services-cta .btn-primary {
        width: 100%;
    }

    /* Depoimentos Mobile */
    .single-testimonial .testimonial-card {
        padding: 24px;
    }

    .testimonial-content {
        font-size: 1rem;
    }

    .client-info {
        flex-direction: column;
        text-align: center;
    }
}