:root {
    --bg-dark: #050505;
    --primary-purple: #8b5cf6;
    --primary-orange: #f97316;
    --text-main: #ffffff;
    --text-dim: #a1a1aa;
    --glass: rgba(255, 255, 255, 0.03);
    --border-glass: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    overflow-x: hidden;
    width: 100%;
}

body {
    max-width: 100%;
    width: 100%;
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    margin: 0;
    padding: 0;
}

/* 1. Efeito de Ruído (Texture) para o fundo não parecer vazio */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 0.05; /* Bem sutil */
    pointer-events: none;
    z-index: 1;
}

/* Estado inicial de todas as seções ou elementos que vão animar */
.reveal {
    opacity: 0;
    transform: translateY(40px); /* Começa um pouco abaixo */
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Transição suave */
    transition-property: opacity, transform;
    will-change: opacity, transform;
}

/* Estado quando o elemento entra na tela */
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Variantes de direção (opcional) */
.reveal-left { transform: translateX(-50px); opacity: 0; }
.reveal-right { transform: translateX(50px); opacity: 0; }

.reveal-left.active, .reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* Animações de Revelação (já existentes, mas garantir delays) */
.reveal.delay-1 { animation-delay: 0.2s; }
.reveal.delay-2 { animation-delay: 0.4s; }
.reveal.delay-3 { animation-delay: 0.6s; }
.reveal.delay-4 { animation-delay: 0.8s; }
.reveal.delay-5 { animation-delay: 1.0s; }

/* --- Background Fixo Estático --- */
.fixed-bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -2; /* Fica atrás de absolutamente tudo */
    background-color: #000; /* Cor base do site */
    overflow: hidden;
}

.light-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px); /* O desfoque que cria o efeito de luz */
    opacity: 0.15; /* Discreto como você pediu */
    pointer-events: none;
}

.orange-top {
    width: 600px;
    height: 600px;
    background: #f97316;
    top: -150px;
    left: -150px;
}

.purple-bottom {
    width: 700px;
    height: 700px;
    background: #8b5cf6;
    bottom: -200px;
    right: -200px;
}

/* --- Efeito de Camadas nas Seções --- */

section {
    position: relative;
    z-index: 1;
    /* Por padrão, as seções são transparentes para mostrar o fundo fixo */
    background: transparent; 
}

/* Seções com "Prioridade" (que tapam o fundo ao passar) */
/* Adicione a classe .priority-section nas seções que devem cobrir o fundo */
.priority-section {
    background: #000; /* Cor sólida para cobrir o gradiente */
    z-index: 2;
    box-shadow: 0 0 50px rgba(0,0,0,0.5); /* Sombra para dar profundidade no parallax */
}

#bg-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* Fica atrás de todo o conteúdo da Hero */
    pointer-events: none; /* Permite clicar nos botões e textos à frente */
}

.hero-layout, .hero-stats, .header-spacer {
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1000px;
    background: var(--glass);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--border-glass);
    border-radius: 100px;
    padding: 12px 30px;
    z-index: 1000;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* .logo { font-weight: 900; font-size: 1.4rem; letter-spacing: -1px; }
.logo span { color: var(--primary-purple); } */

/* Container do Logo */
.logo {
    display: flex;
    align-items: center;
    height: 100%; /* Garante que o link ocupe a altura da div */
}

/* A Imagem do Logo propriamente dita */
.logo-img {
    height: 35px; /* Tamanho ideal para menu estilo pílula */
    width: auto;  /* Mantém a proporção */
    display: block;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05); /* Leve interação ao passar o mouse */
}

.nav-menu { list-style: none; display: flex; gap: 30px; }
.nav-menu a { text-decoration: none; color: var(--text-dim); font-size: 0.9rem; transition: 0.3s; }
.nav-menu a:hover { color: white; }

.btn-nav {
    background: white;
    color: black;
    padding: 10px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 800;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    box-shadow: 0 0 0px rgba(255, 255, 255, 0);
}

.btn-nav:hover {
    transform: scale(1.1); /* Ganho de escala */
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4), 
                0 0 40px rgba(139, 92, 246, 0.2); /* Glow Roxo/Branco */
    background-color: #fff;
}

/* --- Ajuste Geral da Navbar --- */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px; /* Espaço entre o botão e o hambúrguer */
}

/* Esconder hambúrguer no Desktop */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    margin-left: 15px;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: white;
    transition: 0.3s;
}

/* Hero */
/* .hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 120px;
    position: relative;
    overflow: hidden;
} */

/* .hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 120px;
    padding-bottom: 50px;
} */

.hero {
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Removemos o justify-content: center para o conteúdo não subir */
    justify-content: flex-start; 
    position: relative;
    overflow: hidden;
    padding-bottom: 40px;
    background: transparent !important;
}

/* Esse bloco garante que nada chegue perto do menu */
.header-spacer {
    height: 160px; /* Ajuste esse valor para aumentar ou diminuir o respiro */
    width: 100%;
    flex-shrink: 0; /* Impede que o flexbox esmague o espaçador */
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -1;
    mask-image: radial-gradient(ellipse at center, black, transparent 80%);
}

/* .hero-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 20px;
} */

/* .hero-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 60px;
} */

.hero-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
    margin-bottom: auto; /* Empurra o que estiver abaixo (stats) para o final */
}

/* h1 { 
    font-size: clamp(2.5rem, 8vw, 5.5rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -3px;
} */

/* Botão Principal da Hero */
.btn-main {
    display: inline-block;
    padding: 18px 45px;
    background: rgba(255, 255, 255, 0.1); /* Fundo quase transparente */
    color: white;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 1.5px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1;
}

/* Efeito de brilho que passa pelo botão */
.btn-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.6s;
}

.btn-main:hover::before {
    left: 100%;
}

.btn-main:hover {
    transform: scale(1.05) translateY(-3px); /* Ganho de escala e leve subida */
    border-color: #8b5cf6; /* Cor roxa da M10 */
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3); /* Glow roxo suave */
    background: rgba(139, 92, 246, 0.1);
}

.animated-gradient {
  background: linear-gradient(
    90deg,
    #8b5cf6, /* Cor A */
    #f97316, /* Cor B */
    #d946ef, /* Cor C */
    #8b5cf6  /* Cor A (Repetida para o loop) */
  );
  
  /* Mantemos o tamanho em 300% */
  background-size: 300% auto;

  background-clip: text;
  -webkit-background-clip: text;

  color: transparent;
  -webkit-text-fill-color: transparent;

  /* 8s ou 10s deixa o movimento mais luxuoso e menos frenético */
  animation: gradientMove 8s linear infinite;
}

@keyframes gradientMove {
    0% { 
        background-position: 0% center; 
    }
    100% { 
        /* O segredo: mover 150% ou 200% para alinhar o ciclo das cores */
        background-position: 150% center; 
    }
}

/* --- Hero Wall of Work (Fundo Animado) --- */

/* --- Wall of Work CSS --- */
.hero-wall-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    background-color: #000;
    pointer-events: none;
}

.hero-wall-mask {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: radial-gradient(circle at center, rgba(0,0,0,0.3) 0%, #000000 90%);
}

.wall-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem; /* Espaço entre as colunas (lados) */
    width: 130%;
    height: 140%;
    margin-left: -15%;
    margin-top: -20%;
    transform: rotate(6deg);
    opacity: 0.4;
}

.wall-col {
    display: flex;
    flex-direction: column;
    /* IMPORTANTE: Sem gap aqui! */
}

.wall-group {
    display: flex;
    flex-direction: column;
    gap: 1.5rem; /* Espaço entre as fotos (vertical) */
    padding-bottom: 1.5rem; /* Espaço no final para emendar com o próximo grupo */
}

.wall-group img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
    filter: grayscale(100%);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    display: block;
}

/* --- ANIMAÇÕES (Mova 50% exatamente) --- */
.col-up, .col-up-slow {
    animation: scrollUp 60s linear infinite;
}

/* Se quiser a primeira coluna mais lenta, sobrescreva o tempo */
.col-up-slow {
    animation-duration: 75s; 
}

.col-down {
    animation: scrollDown 50s linear infinite;
}

@keyframes scrollUp {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); } 
}

@keyframes scrollDown {
    0% { transform: translateY(-50%); }
    100% { transform: translateY(0); }
}

/* --- Correção da Formatação do Texto (Lado Esquerdo) --- */
.hero-text-side {
    flex: 1; /* Dá um pouco mais de espaço para o texto */
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 10;
}

.hero-text-side h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 25px;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-dim);
    max-width: 550px;
    margin-bottom: 35px;
    line-height: 1.6;
}

/* --- Organização dos 5 Cards Flutuantes --- */
.hero-visual-side {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 500px; /* Altura controlada para o container de cards */
}

.cards-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.floating-card {
    display: flex; /* Garante que apareçam no PC */
    position: absolute;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 14px 22px;
    border-radius: 16px;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.4s ease;
    z-index: 5;
}

/* Cores Alternadas para os ícones dos cards */
.floating-card i { font-size: 1.2rem; }
.c1 i, .c3 i, .c5 i { color: var(--primary-purple); }
.c2 i, .c4 i { color: var(--primary-orange); }

/* Posições dos Cards no Desktop */
.c1 { top: 10%; right: 5%; animation: float 4s ease-in-out infinite; }
.c2 { top: 30%; right: 45%; animation: float 5s ease-in-out infinite; animation-delay: 0.5s; }
.c3 { top: 55%; right: 10%; animation: float 6s ease-in-out infinite; animation-delay: 1s; }
.c4 { top: 75%; right: 40%; animation: float 4.5s ease-in-out infinite; animation-delay: 1.5s; }
.c5 { top: 45%; right: -10%; animation: float 5.5s ease-in-out infinite; animation-delay: 2s; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

/* --- Tooltip Melhorado --- */
.floating-card::after {
    content: attr(data-tooltip);
    position: absolute;
    top: -45px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    background: white;
    color: black;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    width: max-content;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.floating-card:hover::after {
    transform: translateX(-50%) scale(1);
    opacity: 1;
    top: -55px;
}

.floating-card:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--primary-purple);
    z-index: 100;
    transform: scale(1.1);
}

/* Container de Stats */
/* .hero-stats {
    display: flex;
    justify-content: center;
    gap: 15px;
    width: 90%;
    max-width: 1200px;
    margin: 50px auto 0;
    padding-bottom: 40px;
} */

/* .hero-stats {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 15px;
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
} */

/* Ajuste nos Stats para ficarem bem posicionados na base */
.hero-stats {
    display: flex;
    gap: 20px;
    width: 100%;
    max-width: 1200px;
    padding: 40px 20px;
    margin-top: 60px; /* Distância mínima do conteúdo de cima */
    margin-bottom: 0;
}

.stat-item {
    flex: 1;
    position: relative;
    height: 140px;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: grayscale(100%) brightness(20%); /* Efeito escuro da imagem */
    transition: 0.5s ease;
}

.stat-item:hover .stat-bg {
    transform: scale(1.1);
    filter: grayscale(0%) brightness(30%); /* Ganha um pouco de cor no hover */
}

.stat-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 5px;
    color: #fff;
    letter-spacing: -1px;
}

.stat-content p {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-dim);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* --- Seção Pilares (Bento Grid) --- */

/* --- Títulos de Seção Padronizados --- */
.section-header {
    text-align: center;
    margin-bottom: 60px; /* Espaço generoso antes do conteúdo */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 250px);
    gap: 20px;
    margin-top: 20px;
}

/* Mapeamento do Layout igual à imagem */
.branding { grid-area: 1 / 1 / 2 / 3; }
.performance { grid-area: 1 / 3 / 3 / 4; }
.conteudo { grid-area: 2 / 1 / 3 / 2; }
.dados { grid-area: 2 / 2 / 3 / 3; }

.bento-item {
    background: #050505;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    padding: 35px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.4s ease;
}

.bento-item:hover {
    border-color: rgba(139, 92, 246, 0.4);
    background: #080808;
}

/* Estilo dos Ícones */
.bento-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.bento-icon.orange i { color: #f97316; }

/* Textos do Bento */
.bento-item h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.bento-item p {
    font-size: 0.95rem;
    color: #a1a1aa;
    line-height: 1.6;
}

/* Efeito de Glow (Brilho Roxa/Laranja) nas laterais */
.bento-glow {
    position: absolute;
    top: 0; 
    right: 0;
    width: 300px; 
    height: 300px;
    /* Começa bem suave (0.15 de opacidade) */
    background: radial-gradient(circle at top right, rgba(139, 92, 246, 0.15), transparent 70%);
    pointer-events: none;
    transition: all 0.5s ease; /* Transição para o realce */
    z-index: 1;
}

.bento-glow-orange {
    position: absolute;
    bottom: 0; 
    right: 0;
    width: 350px; 
    height: 350px;
    /* Começa suave (0.1 de opacidade) */
    background: radial-gradient(circle at bottom right, rgba(249, 115, 22, 0.1), transparent 70%);
    pointer-events: none;
    transition: all 0.5s ease;
    z-index: 1;
}

/* Ajuste específico para o card vertical */
.performance {
    justify-content: space-between;
}

/* --- Efeito de Realce ao Passar o Mouse --- */

/* Quando passa o mouse no card de Branding, o roxo realça */
.branding:hover .bento-glow {
    background: radial-gradient(circle at top right, rgba(139, 92, 246, 0.35), transparent 75%);
    filter: brightness(1.2);
    transform: scale(1.1); /* O brilho expande levemente */
}

/* Quando passa o mouse no card de Performance, o laranja realça */
.performance:hover .bento-glow-orange {
    background: radial-gradient(circle at bottom right, rgba(249, 115, 22, 0.3), transparent 75%);
    filter: brightness(1.3);
    transform: scale(1.1);
}

/* Garante que o conteúdo fique acima do brilho para não perder legibilidade */
.bento-content, .bento-icon {
    position: relative;
    z-index: 2;
}

/* Seção de Portfolio/Cases (Tema Claro) */
#portfolio {
    /* background-color: #8b8b8b; */
    /* backdrop-filter: blur(12px); */
    /* position: relative;
    z-index: 10; */
    background: transparent;
    padding-top: 100px;
    padding-bottom: 100px;
    /* background: var(--glass); */
    /* backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px); */
}

/* Inversão de Cores do Título (só dentro do #portfolio) */
#portfolio .section-title {
    color: #fff;
}

#portfolio .section-subtitle {
    color: var(--text-dim);
}

/* Grid e Cards */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.portfolio-item {
    display: block;
    position: relative;
    height: 420px;
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* No hover, o card "flutua" mais no fundo branco */
.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.portfolio-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
    filter: brightness(100%);
}

.portfolio-item:hover .portfolio-bg {
    transform: scale(1.1);
}

/* Overlay e Conteúdo Interno */
/* Mantemos o overlay escuro para o texto branco ser legível sobre a foto */
.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 10%, rgba(0, 0, 0, 0.2) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

/* Textos dentro do card (Continuam brancos pois estão sobre o overlay escuro) */
.portfolio-content {
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.portfolio-item:hover .portfolio-content {
    transform: translateY(0);
}

.portfolio-content h3 {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.portfolio-content p {
    color: #d4d4d8;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Tags coloridas */
.portfolio-category {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: inline-block;
    text-transform: uppercase;
}

.tag-orange { color: #f97316; }
.tag-purple { color: #8b5cf6; }

/* Seta */
.portfolio-arrow {
    position: absolute;
    bottom: 30px;
    right: 30px;
    color: #fff;
    font-size: 1.2rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.4s ease 0.1s;
}

.portfolio-item:hover .portfolio-arrow {
    opacity: 1;
    transform: translateX(0);
    color: #f97316;
}

/* Seção Metodologia */
#metodologia {
    padding-top: 90px;
    padding-bottom: 90px;
    margin-top: 100px;
    margin-bottom: 100px;
}

/* Cabeçalho */
.meto-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 80px;
    flex-wrap: wrap;
    gap: 30px;
}

.meto-tag {
    color: #f97316;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 10px;
}

.meto-title-block h2 {
    font-size: clamp(2.5rem, 5vw, 4rem); /* Fonte bem grande e pesada */
    font-weight: 900;
    line-height: 1;
    color: #fff;
    letter-spacing: -1px;
}

.meto-desc-block p {
    max-width: 350px;
    color: #a1a1aa;;
    font-size: 1rem;
    line-height: 1.5;
    text-align: left; /* Garante alinhamento à esquerda */
}

/* Grid */
.meto-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.meto-item {
    position: relative;
    padding-top: 30px; /* Espaço entre a linha e o número */
    transition: transform 0.3s ease;
}

/* A Linha Mágica */
.meto-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.15); /* A linha cinza fixa */
    overflow: hidden; /* Para esconder a barra colorida saindo */
}

.meto-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%; /* Começa invisível */
    height: 5px; /* Um pouco mais grossa que a linha base */
    transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Cores da Barra no Hover */
.orange-theme:hover .meto-line::after {width: 100%; background: #f97316;}
.purple-theme:hover .meto-line::after {width: 100%; background: #8b5cf6;}

/* Tipografia dos Itens */
.meto-number {
    display: block;
    font-size: 3rem;
    font-weight: 900;
    color: #1f1f1f;
    margin-bottom: 15px;
    transition: color 0.4s ease, transform 0.4s ease;
}

.meto-item h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.meto-item p {
    font-size: 1rem;
    color: #71717a;
    line-height: 1.6;
}

/* Efeitos de Hover (acender os números) */
.orange-theme:hover .meto-number {
    color: rgba(249, 115, 22, 1);
    transform: translateX(5px);
}

.purple-theme:hover .meto-number {
    color: rgba(139, 92, 246, 1);
    transform: translateX(5px);
}

/* Estilos para a Seção de Serviços */
.section {
    padding: 60px 0;
    position: relative; /* Necessário para posicionamento do after */
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem); /* Responsivo */
    margin-bottom: 15px;
    font-weight: 900;
    border-left: 5px solid var(--primary-purple);
    padding-left: 20px;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.section-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-dim);
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: 25px;
    line-height: 1.6;
    /* margin: 0 auto; */
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Mais espaçoso */
    gap: 30px; /* Aumentei o gap */
}

/* Card de Serviço - Estilo Glassmorphism Premium */
.service-card {
    background: var(--glass);
    border: 1px solid var(--border-glass);
    padding: 40px;
    border-radius: 25px; /* Bordas um pouco mais suaves */
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Transição elegante */
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    height: auto; /* Ajusta altura ao conteúdo */
}

.service-card:hover {
    transform: translateY(-12px) scale(1.02); /* Leve subida e escala */
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3),
                0 0 30px rgba(139, 92, 246, 0.2); /* Sombra mais intensa no hover */
}

.service-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-main);
}

.service-card p {
    font-size: 0.95rem;
    color: var(--text-dim);
    line-height: 1.6;
}

/* Ícones dos Cards */
.card-icon-wrapper {
    width: 65px;
    height: 65px;
    border-radius: 18px; /* Borda levemente arredondada */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    position: relative;
    z-index: 1; /* Para o ícone ficar acima do blur */
    overflow: hidden;
}

.card-icon {
    font-size: 1.8rem;
    color: white; /* Cor do ícone */
    position: relative;
    z-index: 2;
}

/* Cores de fundo para os wrappers dos ícones */
.icon-purple-bg { background: linear-gradient(135deg, rgba(139, 92, 246, 0.4), rgba(139, 92, 246, 0.2)); border: 1px solid rgba(139, 92, 246, 0.3); }
.icon-orange-bg { background: linear-gradient(135deg, rgba(249, 115, 22, 0.4), rgba(249, 115, 22, 0.2)); border: 1px solid rgba(249, 115, 22, 0.3); }

/* Cards de Depoimento (Glassmorphism) */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 100px;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    padding: 35px;
    border-radius: 20px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    border-color: rgba(139, 92, 246, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.quote-icon {
    font-size: 1.5rem;
    color: #f97316;
    margin-bottom: 20px;
}

.testimonial-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #d4d4d8;
    margin-bottom: 25px;
    font-style: italic;
}

/* Autor do Depoimento */
.author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #333;
    background-size: cover;
    background-position: center;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.author h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
}

.author span {
    font-size: 0.8rem;
    color: #a1a1aa;
}

/* Slider Infinito de Logos */
.logo-slider {
    position: relative;
    width: 100vw;
    height: 100px;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 10px;
    margin-bottom: 50px;
}

.logo-slider, .logo-ticker-section {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}

.slider-track {
    display: flex;
    width: max-content;
    animation: scroll 40s linear infinite;
}

.slide {
    width: 200px;
    padding: 0 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slide img {
    max-width: 100%;
    max-height: 50px;
    filter: grayscale(100%) opacity(0.5);
    transition: all 0.3s ease;
}

/* Ao passar o mouse no slider, os logos ganham cor */
.logo-slider:hover .slide img {
    filter: grayscale(0%) opacity(1);
    cursor: pointer;
}

/* Animação Keyframes */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Seção CTA Final */
#cta-final {
    position: relative;
    padding: 140px 0;
    text-align: center;
    /* background-color: #050505; */
    background: linear-gradient(
        135deg,
        #3a1605 0%,
        #050505 40%,
        #050505 60%,
        #1e0b36 100%
    );
    overflow: hidden;
    z-index: 10;
}

/* Conteúdo Centralizado */
.cta-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cta-content h2 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 25px;
    letter-spacing: -1px;
}

.cta-content p {
    font-size: 1.1rem;
    color: #a1a1aa;
    margin-bottom: 40px;
    max-width: 500px;
    line-height: 1.6;
}

/* Botão CTA (Branco) */
.btn-cta {
    background-color: #fff;
    color: #000;
    padding: 18px 40px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s ease;
}

.btn-cta i {
    transition: transform 0.3s ease;
}

/* Hover do Botão */
.btn-cta:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.15);
}

.btn-cta:hover i {
    transform: translateX(5px);
}

/*  Backgrounds Específicos (Luzes) */
.cta-glow-orange {
    position: absolute;
    top: -100px;
    left: -100px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.cta-glow-purple {
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

/* Rodapé (Footer) */
.footer {
    background-color: #020202;
    padding: 80px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.95;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

/* Coluna 1: Logo e Texto */
.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.footer-logo .dot {
    color: #f97316;
}

.footer-col p {
    color: #a1a1aa;
    line-height: 1.6;
    max-width: 300px;
}

/* Títulos das Colunas */
.footer-col h4 {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 25px;
    font-weight: 700;
}

/* Links */
.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #71717a;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #f97316;
    padding-left: 5px;
}

/* Ícones Sociais */
.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.social-icons a:hover {
    background: #f97316;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(249, 115, 22, 0.3);
}

/* Barra Inferior (Copyright) */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    color: #52525b;
    font-size: 0.85rem;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

/* Botão flutuante do Whatsapp */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 100;
    transition: all 0.3s ease;
    text-decoration: none;
    animation: pulse-green 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.developed-by a {
    text-decoration: none;
    color: #a1a1aa;
}

/* --- Seção de Contato (Novo Layout) --- */
#contato {
    background: linear-gradient(135deg, #0a0a0a 0%, #000 100%);
    padding: 100px 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Texto de Apoio */
.contact-text .tag-orange {
    color: #f97316;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 15px;
}

.contact-desc {
    color: #a1a1aa;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 90%;
}

.contact-benefits {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-benefits li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
}

.contact-benefits i {
    color: #f97316; /* Check laranja */
    font-size: 1.1rem;
}

/* --- O Formulário --- */
.contact-form {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    margin-left: 5px;
}

/* Estilo dos Inputs */
.contact-form input,
.contact-form select {
    width: 100%;
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: all 0.3s ease;
}

/* Foco no Input */
.contact-form input:focus,
.contact-form select:focus {
    border-color: #f97316;
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.1);
}

/* Placeholder */
.contact-form input::placeholder {
    color: #52525b;
}

/* Custom Select Seta */
.select-wrapper {
    position: relative;
}

.select-arrow {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #a1a1aa;
    pointer-events: none;
}

.contact-form select {
    appearance: none; /* Remove seta padrão do navegador */
    cursor: pointer;
}

/* Botão de Enviar */
.btn-submit {
    width: 100%;
    margin-top: 10px;
    background: #fff;
    color: #000;
    font-weight: 800;
    padding: 18px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255,255,255,0.15);
    background: #f97316; /* Muda para laranja no hover */
    color: #fff;
}

/* --- Ajuste no Rodapé (Links Legais) --- */
.legal-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

.legal-links a {
    color: #52525b;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s;
}

.legal-links a:hover {
    color: #fff;
    text-decoration: underline;
}

.separator {
    color: #52525b;
}

/* =========================================
   PÁGINAS LEGAIS (Termos e Políticas)
   ========================================= */

.legal-main {
    padding-top: 140px; /* Espaço para não ficar atrás do menu */
    padding-bottom: 100px;
    min-height: 100vh;
    position: relative;
    z-index: 2;
}

.legal-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    color: #d1d5db; /* Cinza claro para leitura */
}

/* Cabeçalho da página legal */
.legal-header {
    margin-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 40px;
}

.legal-title {
    font-size: 3rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1.1;
}

.text-gradient-orange {
    background: linear-gradient(90deg, #ff8c00, #ff5e00);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.legal-meta {
    font-size: 0.9rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Conteúdo do Texto */
.legal-content h2 {
    color: #fff;
    font-size: 1.5rem;
    margin-top: 50px;
    margin-bottom: 20px;
    font-weight: 600;
}

.legal-content p {
    margin-bottom: 20px;
    line-height: 1.7;
    font-size: 1rem;
}

.legal-content ul {
    margin-bottom: 30px;
    padding-left: 20px;
}

.legal-content li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.legal-content strong {
    color: #fff;
}

/* Link de voltar no menu */
.nav-back-link {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

.nav-back-link:hover {
    color: #ff8c00; /* Laranja M10 */
}

/* --- RESPONSIVIDADE (Ajustes para Mobile) --- */
@media (max-width: 991px) {
    /* Esconde os cards e o lado visual no Mobile */
    .hero-visual-side, 
    .floating-card {
        display: none !important;
    }

    .hero {
        padding-top: 140px;
        text-align: center;
    }

    .hero-layout {
        flex-direction: column;
    }

    .hero-text-side {
        flex: 1;
        width: 100%;
        text-align: center;
    }

    .hero-text-side h1 {
        font-size: 2.5rem;
        margin-bottom: 20px;
    }

    .hero-description {
        font-size: 1.1rem;
        margin: 0 auto 30px auto;
        text-align: center;
    }

    .cta-wrapper {
        justify-content: center;
    }

    .header-spacer {
        height: 120px; /* Respiro menor no mobile */
    }
    
    .hero-layout {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        display: flex;
        flex-direction: column;
    }

    .bento-item { min-height: 200px; }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .meto-grid {
        grid-template-columns: 1fr 1fr;
        gap: 50px;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-card {
        text-align: center;
    }

    .author {
        justify-content: center;
        text-align: left;
    }

    .quote-icon {
        margin-bottom: 15px;
    }

    .contact-wrapper {
        grid-template-columns: 1fr; /* Empilha no tablet/mobile */
        gap: 40px;
    }
    .contact-text {
        text-align: center;
    }
    .contact-benefits {
        align-items: center; /* Centraliza os itens da lista */
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* Ajuste mobile para o botão */
@media (max-width: 768px) {
    .navbar {
        width: 95%;
        padding: 8px 15px; /* Reduzi um pouco o padding interno */
        /*padding: 6px 15px;  Reduzi o padding vertical para a pílula não ficar muito gorda */
    }

    .logo {
        font-size: 1.1rem; /* Logo um pouco menor para caber tudo */
    }

    .logo-img {
        height: 28px; /* Um pouco menor no celular para sobrar espaço para o botão */
    }

    .btn-nav {
        font-size: 0.7rem;
        padding: 8px 16px;
        white-space: nowrap; /* Impede o texto de quebrar linha */
    }

    .menu-toggle {
        display: flex;
        min-width: 25px; /* Garante que o ícone não encolha */
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%; /* Escondido fora da tela */
        width: 100%;
        height: 100vh;
        background: rgba(5, 5, 5, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
        gap: 40px;
        padding-top: 80px; 
        z-index: 999;
    }

    .nav-menu.active {
        right: 0; /* Desliza para dentro */
    }

    .nav-menu a {
        font-size: 1.5rem;
        font-weight: 700;
        color: white;
    }

    /* Animação do botão X */
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .menu-toggle.active span:nth-child(2) {
        transform: rotate(-45deg);
    }
    
    .btn-nav {
        font-size: 0.7rem;
        padding: 8px 15px;
    }

    .btn-main {
        width: 100%;
        text-align: center;
        padding: 16px 20px;
    }

    .section-title { font-size: 2rem; }
    .section-subtitle { font-size: 0.95rem; margin-bottom: 40px; margin-left: 0; text-align: center; }
    .services-grid { grid-template-columns: 1fr; gap: 20px; }
    .service-card { padding: 30px; text-align: center; align-items: center; }
    .card-icon-wrapper { margin-bottom: 20px; }

    .hero-stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .stat-item {
        width: 100%;
    }

    #metodologia {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    #cta-final {
        padding: 100px 0;
    }

    .cta-content h2 {
        font-size: 2.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-col p {
        margin: 0 auto;
    }

    .social-icons {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 25px;
    }

    .wall-grid {
        grid-template-columns: repeat(2, 1fr);
        width: 160%;
        margin-left: -30%;
    }
    .wall-group img { height: 200px; }
    .wall-col:nth-child(3) { display: none; } /* Esconde a 3ª coluna no celular */

    .legal-title { font-size: 2.2rem; }
    .legal-main { padding-top: 120px; }
}

@media (max-width: 600px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 500px) {
    .meto-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .meto-grid {
        grid-template-columns: 1fr;
    }
}