/*==================================*/
/* VARIÁVEIS DE CORES               */
/*==================================*/
:root {
    --primary-color: #005fa0;
    --secondary-color: #f42c3b;
    --bg-color: #000;
    --card-bg: #1a1a1a;
    --card-bg-secondary: #222;
    --text-color: #fff;
    --sub-text-color: #ccc;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
    --glass-bg: rgba(17, 17, 17, 0.4);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: 10px;
}

/*==================================*/
/* RESET E ESTILOS GERAIS           */
/*==================================*/
body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    scroll-behavior: smooth;
}

/*==================================*/
/* NAVBAR                           */
/*==================================*/
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
    transform: translateY(0);
    opacity: 1;
    min-height: 96px;
}

.navbar--hidden {
    transform: translateY(-100%);
    opacity: 0;
}

.navbar--glass {
    background: #000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.navbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.5rem 1.75rem;
}

.navbar__brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar__logo {
    height: 72px;
    width: auto;
    display: block;
    transition: transform 0.25s ease, filter 0.25s ease;
    transform-origin: center;
}

.navbar__logo:hover {
    transform: scale(1.08);
    filter: drop-shadow(0 10px 24px rgba(244, 44, 59, 0.35));
}

.navbar__brand:focus-visible .navbar__logo,
.navbar__logo:focus-visible {
    outline: none;
    transform: scale(1.08);
    filter: drop-shadow(0 10px 24px rgba(244, 44, 59, 0.35));
}

.navbar__links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.navbar__links a {
    color: var(--text-color);
    text-decoration: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: color 0.2s ease, background-color 0.2s ease;
    font-size: 1.125rem; /* ~18px padrão desktop */
}

.navbar__links a:hover {
    background-color: rgba(255,255,255,0.06);
    text-decoration: none;
}

.navbar__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    background: var(--secondary-color);
    color: #fff;
    font-weight: 700;
    font-size: 1.0625rem; /* ~17px */
    box-shadow: 0 10px 24px rgba(244, 44, 59, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.navbar__cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 32px rgba(244, 44, 59, 0.45);
    text-decoration: none;
}

/* Toggle (mobile) */
.navbar__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.navbar__bar {
    width: 26px;
    height: 3px;
    background: #fff;
    display: block;
}

/* Responsivo */
@media (max-width: 900px) {
    .navbar__toggle { display: inline-flex; }
    .navbar__links { 
        position: fixed;
        top: 104px;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        background: #000;
        padding: 1rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .navbar__links.is-open { display: flex; }
}

h1, h2, h3 {
    font-family: 'Poppins', sans-serif;
    line-height: 1.2;
    font-weight: 700;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.25rem; }

h1, .hero-title {
    color: var(--text-color);
}

/* Apenas títulos principais das seções (h2) em vermelho secundário */
main h2,
section h2,
.section-title {
    color: var(--secondary-color);
    font-weight: 700;
}

.text-center {
    text-align: center;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/*==================================*/
/* LAYOUT PRINCIPAL                 */
/*==================================*/
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
}

section {
    padding: 4rem 0;
}

/* Remove qualquer linha de separação entre hero e projetos */
#projetos {
    border-top: 0;
    margin-top: 0;
    padding-top: 0;
}

/*==================================*/
/* SEÇÃO HERO - GALÁXIA E METEOROS  */
/*==================================*/
.hero {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
    text-align: center;
    background: #000; /* fundo preto sólido */
    border: 0; /* remove linha de corte */
    margin: 0;
    padding: 0;
    perspective: 1000px; /* base para efeito 3D sutil */
}

/* Brilho reativo do cursor apenas na hero (referência ss) */
.hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--secondary-color), transparent 65%);
    filter: blur(100px);
    transform: translate(-50%, -50%);
    left: var(--mouse-x, 50%);
    top: var(--mouse-y, 50%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1; /* abaixo da grid (z=2) e acima do fundo */
    pointer-events: none;
}

.hero:hover::before {
    opacity: 0.08; /* sutil e elegante */
}

/* Removido - estrelas oscilantes removidas conforme solicitado */

/* Nebulosa colorida */
/* desativa nebulosa para dar destaque à grid central */
/* Brilho fixo central que ilumina grid e texto */
.hero::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 900px;
    height: 900px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(244,44,59,0.22) 0%, rgba(244,44,59,0.12) 35%, rgba(244,44,59,0.04) 60%, transparent 75%);
    filter: blur(80px);
    z-index: 1; /* abaixo da grid (2) e do conteúdo (3) */
    pointer-events: none;
}

/* Chuva de meteoros */
.meteor {
    position: absolute;
    width: 2px;
    height: 2px;
    background: linear-gradient(45deg, #fff, #ff6b6b, #4ecdc4);
    border-radius: 50%;
    box-shadow: 0 0 6px #fff, 0 0 10px #ff6b6b, 0 0 14px #4ecdc4;
    animation: meteor-fall 3s linear infinite;
    z-index: 1; /* envia meteoros para trás para não competir com a grid */
}

.meteor:nth-child(1) {
    top: -10px;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 2.5s;
}

.meteor:nth-child(2) {
    top: -10px;
    left: 30%;
    animation-delay: 0.5s;
    animation-duration: 3s;
}

.meteor:nth-child(3) {
    top: -10px;
    left: 50%;
    animation-delay: 1s;
    animation-duration: 2.8s;
}

.meteor:nth-child(4) {
    top: -10px;
    left: 70%;
    animation-delay: 1.5s;
    animation-duration: 3.2s;
}

.meteor:nth-child(5) {
    top: -10px;
    left: 90%;
    animation-delay: 2s;
    animation-duration: 2.7s;
}

.meteor:nth-child(6) {
    top: -10px;
    left: 20%;
    animation-delay: 2.5s;
    animation-duration: 3.5s;
}

.meteor:nth-child(7) {
    top: -10px;
    left: 60%;
    animation-delay: 3s;
    animation-duration: 2.9s;
}

.meteor:nth-child(8) {
    top: -10px;
    left: 80%;
    animation-delay: 3.5s;
    animation-duration: 3.1s;
}

/* Removido - animação das estrelas removida */

/* Animação da nebulosa flutuante */
@keyframes nebula-drift {
    0%, 100% {
        transform: translateX(0) translateY(0);
        opacity: 0.7;
    }
    25% {
        transform: translateX(-10px) translateY(-5px);
        opacity: 0.9;
    }
    50% {
        transform: translateX(5px) translateY(-10px);
        opacity: 0.6;
    }
    75% {
        transform: translateX(-8px) translateY(5px);
        opacity: 0.8;
    }
}

/* Animação da chuva de meteoros */
@keyframes meteor-fall {
    0% {
        transform: translateY(-10px) translateX(0) rotate(45deg);
        opacity: 1;
    }
    70% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) translateX(100px) rotate(45deg);
        opacity: 0;
    }
}

.hero-content {
    position: relative;
    z-index: 3;
}

/* ================================ */
/* GRID CENTRAL COM FADE E 3D      */
/* ================================ */
.hero-grid {
    position: absolute;
    inset: 0;
    margin: auto;
    width: min(100%, 900px);
    height: min(80vh, 640px);
    z-index: 2;
    /* linhas no estilo da hero da pasta ss */
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 50px 50px;
    border-radius: 24px;
    /* máscara elíptica para suavizar bordas, como referência */
    -webkit-mask-image: radial-gradient(ellipse 70% 40% at center, black 40%, transparent 80%);
    mask-image: radial-gradient(ellipse 70% 40% at center, black 40%, transparent 80%);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
    animation: move-forward 25s linear infinite;
}

@keyframes move-forward {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    99.9% {
        transform: scale(1.5);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .hero-grid {
        width: min(92%, 720px);
        height: min(60vh, 520px);
        border-radius: 18px;
        -webkit-mask-image: radial-gradient(ellipse 75% 45% at center, black 46%, transparent 85%);
        mask-image: radial-gradient(ellipse 75% 45% at center, black 46%, transparent 85%);
    }
}

.hero-title {
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    line-height: 1.15;
    margin: 0 auto 1.25rem; /* reduz espaçamento final sob o título */
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    letter-spacing: -0.01em;
    max-width: 22ch; /* largura agradável para 4 linhas equilibradas */
    text-wrap: balance;
}

.hero-title .hero-line {
    display: block;
}

.hero-title .hero-line + .hero-line {
    margin-top: 0.15em; /* respiro entre linhas */
}

/* Remove altura fixa para não sobrar espaço abaixo da quarta linha */

@media (max-width: 768px) {
    .hero-title {
        font-size: clamp(1.6rem, 6vw, 2.4rem);
        max-width: 24ch;
    }
}

/* Text Morphing - referência ss (fade + blur) */
#morphing-text {
    display: inline-block;
    white-space: nowrap;
    color: var(--secondary-color);
    transition: opacity 0.25s ease-in-out, filter 0.25s ease-in-out, transform 0.25s ease-in-out;
    margin: 0 auto;
    min-width: 20ch;
    text-align: center;
}

#morphing-text.is-morphing {
    opacity: 0;
    filter: blur(8px);
    transform: scale(1.2);
}

/* Removido pseudo-elemento de reserva para evitar espaço extra */

.hero-logo {
    max-width: 180px;
    height: auto;
    margin-bottom: 2rem;
    transition: transform 0.3s ease, filter 0.3s ease;
    will-change: transform, filter;
}

.hero-logo:hover {
    transform: scale(1.08);
    filter: drop-shadow(0 12px 30px rgba(244, 44, 59, 0.35));
}

/* Acessibilidade: efeito também no foco por teclado */
.hero-logo:focus-visible {
    outline: none;
    transform: scale(1.08);
    filter: drop-shadow(0 12px 30px rgba(244, 44, 59, 0.35));
}



/* Removido brilho do título para visual limpo */



/*==================================*/
/* SEÇÕES DE CONTEÚDO               */
/*==================================*/
/* CTA da hero: apenas borda, sem fundo */
.hero .cta-button {
    background: transparent !important;
    border: 2px solid var(--secondary-color);
    color: var(--text-color);
    box-shadow: none;
}

.hero .cta-button:hover {
    background: rgba(244, 44, 59, 0.1);
    border-color: var(--secondary-color);
    color: var(--text-color);
    text-decoration: none;
}
main {
    background-color: transparent;
    box-shadow: none;
    border-radius: 0;
    margin-top: 4rem;
    position: relative;
    padding: 2rem 0;
}

.intro-text, .conclusion-text {
    color: var(--sub-text-color);
    max-width: 800px;
    margin: 0.5rem auto 1.5rem auto;
}

.conclusion-text {
    margin: 2rem auto 0 auto;
    font-style: italic;
    font-size: 1.1rem;
}

/*==================================*/
/* SEÇÃO DE DESAFIOS ESTILIZADA      */
/*==================================*/
.challenges-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    padding: 0 1rem;
}

.challenge-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 2.5rem 2rem 2rem 2rem;
    border-radius: 20px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.2),
        0 4px 16px rgba(0, 95, 160, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    text-align: center;
    color: var(--text-color);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 0.5rem;
}

.challenge-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 95, 160, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.challenge-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 8px 24px rgba(0, 95, 160, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(0, 95, 160, 0.3);
}

.challenge-card:hover::before {
    opacity: 1;
}

.challenge-card .challenge-icon {
    width: 4.5rem;
    height: auto;
    margin-bottom: 1.5rem;
    margin-top: 0.5rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    opacity: 0.9;
}

.challenge-card:hover .challenge-icon {
    transform: scale(1.15) rotate(5deg);
    filter: drop-shadow(0 8px 16px rgba(0, 95, 160, 0.4));
    opacity: 1;
}

.challenge-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.challenge-card p {
    color: var(--sub-text-color);
    line-height: 1.6;
    font-size: 1rem;
    margin: 0;
    flex: 1;
    display: flex;
    align-items: center;
    text-align: center;
    max-width: 100%;
}

/* Estilo para os cards menores */
.challenge-card.small {
    padding: 2rem 1.5rem;
    min-height: 280px;
}

.challenge-card.small h3 {
    font-size: 1.2rem;
}

.challenge-card.small p {
    font-size: 0.95rem;
}

.challenge-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.03),
        transparent,
        rgba(0, 95, 160, 0.05),
        transparent
    );
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
    pointer-events: none;
}

.challenge-card:hover::after {
    opacity: 1;
    transform: rotate(45deg) translate(50%, 50%);
}

/* Media Queries para Responsividade */
@media (max-width: 1200px) {
    .challenges-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 0 0.5rem;
    }
    
    .challenge-card {
        padding: 2rem 1.5rem;
        min-height: 300px;
    }
}

@media (max-width: 768px) {
    .challenges-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
        padding: 0 1rem;
    }
    
    .challenge-card {
        padding: 2rem 1.5rem 1.5rem 1.5rem;
        min-height: auto;
        border-radius: 16px;
        gap: 0.25rem;
    }
    
    .challenge-card .challenge-icon {
        width: 4rem;
        margin-bottom: 1.25rem;
        margin-top: 0.25rem;
    }
    
    .challenge-card h3 {
        font-size: 1.3rem;
        margin-bottom: 0.875rem;
    }
    
    .challenge-card p {
        font-size: 0.95rem;
        line-height: 1.5;
    }
}

@media (max-width: 480px) {
    .challenges-grid {
        gap: 1.25rem;
        padding: 0 0.75rem;
    }
    
    .challenge-card {
        padding: 1.75rem 1.25rem;
        border-radius: 14px;
    }
    
    .challenge-card .challenge-icon {
        width: 3.5rem;
        margin-bottom: 1rem;
    }
    
    .challenge-card h3 {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }
    
    .challenge-card p {
        font-size: 0.9rem;
    }
}

@media (max-width: 360px) {
    .challenges-grid {
        gap: 1rem;
        padding: 0 0.5rem;
    }
    
    .challenge-card {
        padding: 1.5rem 1rem;
    }
    
    .challenge-card .challenge-icon {
        width: 3rem;
    }
    
    .challenge-card h3 {
        font-size: 1.1rem;
    }
    
    .challenge-card p {
        font-size: 0.85rem;
    }
}
/* =================================
   VANTAGENS (TIMELINE ANIMADA) - VERSÃO CORRIGIDA
   ================================= */

#solucao .section-title {
    margin-bottom: 1rem;
    text-align: center;
    color: var(--secondary-color);
}

#solucao .intro-text {
    margin-bottom: 4rem;
}

.solution-timeline-container {
    max-width: 960px;
    margin: 0 auto;
    position: relative;
    padding: 20px 0;
}

/* Linha de fundo estática */
.solution-timeline-bg-line {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background-color: #333; /* Cor de fundo da linha */
    z-index: 1;
}

/* A linha que será animada pelo JavaScript */
.solution-timeline-fill-line {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    background-color: var(--primary-color); /* Cor da linha animada */
    z-index: 2;
    height: 0%; /* Começa com altura 0 e o JS cuida do resto */
}

.timeline-item {
    display: flex;
    position: relative;
    width: 50%;
    padding: 20px 40px;
    box-sizing: border-box;
    margin-bottom: 2rem;
    z-index: 3; /* Adicione esta linha */
}

.timeline-item--right {
    margin-left: 50%;
}

.timeline-icon {
    background-color: var(--bg-color);
    color: var(--primary-color);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: 3px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 95, 160, 0.4);
}

.timeline-item--left .timeline-icon {
    right: -31.5px; /* Metade da largura (60/2) + metade da borda (3) */
}

.timeline-item--right .timeline-icon {
    left: -31.5px;
}

.timeline-content {
    background: var(--card-bg-secondary);
    padding: 30px;
    border-radius: 12px;
    width: 100%;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.timeline-item--left .timeline-content {
    text-align: right;
}

.timeline-content h3 {
    color: var(--text-color);
    margin: 0 0 10px 0;
    font-size: 1.5rem;
}

.timeline-content p {
    margin: 0;
    color: var(--sub-text-color);
    line-height: 1.6;
}

/* =================================
   EFEITOS DE HOVER PARA OS CARDS DA TIMELINE
   ================================= */

/* Efeito de hover no card completo */
.timeline-item {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.timeline-item:hover {
    transform: translateY(-8px);
}

/* Efeito de hover no conteúdo do card */
.timeline-content {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-color));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.timeline-content:hover::before {
    transform: scaleX(1);
}

.timeline-content:hover {
    background: linear-gradient(135deg, rgba(34, 34, 34, 0.95) 0%, rgba(26, 26, 26, 0.95) 100%);
    box-shadow: 
        0 15px 35px rgba(0, 95, 160, 0.2),
        0 8px 20px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-color: rgba(0, 95, 160, 0.3);
    transform: translateY(-5px);
}

/* Efeito de hover no ícone */
.timeline-icon {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.timeline-item:hover .timeline-icon {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 
        0 0 30px rgba(244, 44, 59, 0.6),
        0 0 60px rgba(244, 44, 59, 0.3);
    border-color: var(--secondary-color);
    background: var(--secondary-color);
}

.timeline-item:hover .timeline-icon svg {
    color: white;
    transform: scale(1.1);
}

.timeline-icon svg {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Efeito de hover no título */
.timeline-content:hover h3 {
    color: var(--secondary-color);
    transform: translateX(5px);
}

.timeline-content h3 {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Efeito de hover no texto */
.timeline-content:hover p {
    color: var(--text-color);
    transform: translateX(5px);
}

.timeline-content p {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Efeito de brilho no hover */
.timeline-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.timeline-content:hover::after {
    left: 100%;
}

/* Efeito de pulso no ícone durante hover */
@keyframes icon-pulse {
    0% {
        transform: translateY(-50%) scale(1.1);
    }
    50% {
        transform: translateY(-50%) scale(1.15);
    }
    100% {
        transform: translateY(-50%) scale(1.1);
    }
}

.timeline-item:hover .timeline-icon {
    animation: icon-pulse 2s ease-in-out infinite;
}

/* Media Queries para Responsividade */
@media (max-width: 768px) {
    .solution-timeline-bg-line, .solution-timeline-fill-line {
        left: 30px;
    }
    .timeline-item {
        width: 100%;
        margin-left: 0;
        padding: 15px 15px 15px 80px;
    }
    .timeline-item--left .timeline-icon,
    .timeline-item--right .timeline-icon {
        left: 0;
    }
    .timeline-item--left .timeline-content,
    .timeline-item--right .timeline-content {
        text-align: left;
    }
}

/*==================================*/
/* SEÇÃO DE PROJETOS                */
/*==================================*/
#projetos h2 {
    margin-bottom: 3rem;
    color: var(--secondary-color);
}

.carousel-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.projects-carousel {
    display: flex;
    gap: 1rem;
    white-space: nowrap;
    position: relative;
    width: calc(250px * 10 + 1rem * 9); /* Largura para apenas 10 cards (metade) */
    animation: scroll-carousel 15s linear infinite; /* Velocidade mais lenta para suavidade */
    will-change: transform; /* Otimiza a performance da animação */
    margin: 0 auto;
    /* Otimizações adicionais para animação fluida */
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Animação para o carrossel infinito - movimento perfeito sem pausa */
@keyframes scroll-carousel {
    0% { 
        transform: translateX(0); 
    }
    100% { 
        transform: translateX(calc(-250px * 5 - 1rem * 4)); /* Move exatamente 5 cards + gaps */
    }
}

.project-card {
    flex-shrink: 0;
    width: 250px;
    height: 312.5px; /* Proporção de 4:5 para o feed do Instagram */
    overflow: hidden;
    border-radius: 12px;
    position: relative;
    transition: transform 0.3s ease, border-image 0.5s linear;
    border: 2px solid transparent;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: scale(1.05);
    border-image: linear-gradient(to right, #fff 0%, #fff 100%);
    border-image-slice: 1;
    animation: border-orbit 2s linear infinite;
}

.project-card:hover img {
    transform: scale(1.1);
}
#projetos {
    padding: 4rem 0;
    background-color: var(--bg-color); /* Fundo preto padrão do site */
}

/* Estilos otimizados para o carrossel infinito */
.carousel-wrapper {
    -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
    /* Melhora a performance da animação */
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}



.project-card {
    flex-shrink: 0;
    width: 250px; /* Largura fixa para cada card */
    margin: 0 15px;
    transition: transform 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-card:hover {
    transform: scale(1.05);
}
/* =================================
   SEÇÃO PROJETOS EM DESTAQUE (GRID)
   ================================= */
.projetos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    position: relative;
}

.projeto-card-destaque {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4 / 5; /* Proporção de post de Instagram */
    border: 2px solid transparent;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--primary-color));
    background-size: 200% 200%;
    animation: border-flow 4s ease-in-out infinite;
    padding: 2px;
}

.projeto-card-destaque::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--card-bg);
    border-radius: 10px;
    z-index: 1;
}

.projeto-card-destaque img {
    position: relative;
    z-index: 2;
    border-radius: 10px;
}

@keyframes border-flow {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.projeto-card-destaque img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.projeto-card-destaque .card-overlay {
    position: absolute;
    inset: 2px;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-color);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 10px;
    z-index: 3;
}

.projeto-card-destaque:hover .card-overlay {
    opacity: 1;
}

.projeto-card-destaque:hover img {
    transform: scale(1.1);
}

.projeto-card-destaque:hover {
    animation: border-flow 2s ease-in-out infinite;
    box-shadow: 0 0 15px rgba(0, 95, 160, 0.3);
}

/* =================================
   ESTILOS DO MODAL DE PROJETOS
   ================================= */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    /* Começa invisível */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--card-bg);
    border-radius: 16px;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.4s ease;
}

.modal-overlay.is-open .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 2.5rem;
    color: var(--sub-text-color);
    cursor: pointer;
    line-height: 1;
}

.modal-video-container video {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    object-fit: cover;
}

.modal-details {
    overflow-y: auto;
    color: var(--text-color);
}

#modal-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

#modal-description {
    color: var(--sub-text-color);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.modal-info-section h4 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    border-left: 3px solid var(--primary-color);
    padding-left: 10px;
}

.colors-container {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.color-swatch {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid #444;
}

.tools-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tool-tag {
    background-color: var(--card-bg-secondary);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .modal-content {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }
    #modal-title {
        font-size: 1.5rem;
    }
}
/* =================================
   SEÇÃO FAQ (ACORDEÃO ELEGANTE)
   ================================= */

.faq-accordion {
    max-width: 900px;
    margin: 3rem auto 0 auto;
    border-top: 1px solid #333;
}

.faq-item {
    border-bottom: 1px solid #333;
}

.faq-question {
    /* Reset de estilos de botão */
    background: none;
    border: none;
    text-align: left;
    width: 100%;
    
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    cursor: pointer;
    
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--primary-color);
}

.faq-icon {
    flex-shrink: 0;
    margin-left: 1rem;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.faq-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--primary-color);
}

/* Estilos quando o item está ativo (aberto) */
.faq-item.active .faq-question {
    color: var(--primary-color);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

/* Conteúdo da resposta (A MÁGICA DA ANIMAÇÃO) */
.faq-answer {
    overflow: hidden;
    max-height: 0; /* Começa com altura 0, escondido */
    opacity: 0;
    transition: max-height 0.5s ease-out, opacity 0.4s ease-out, padding-bottom 0.5s ease-out;
}

.faq-answer p {
    color: var(--sub-text-color);
    line-height: 1.7;
    padding: 0 0 1.5rem 0;
    margin: 0;
}

/* Expande a resposta quando o item está ativo */
.faq-item.active .faq-answer {
    max-height: 200px; /* Altura suficiente para o texto. Ajuste se precisar de mais. */
    opacity: 1;
}
/* =================================
   SEÇÃO SOBRE MIM (SEM CARD - DESIGN PRINCIPAL)
   ================================= */
.sobre-section {
    padding: 0;
    position: relative;
    overflow: hidden;
    background: #000; /* fundo preto sólido igual à hero */
    min-height: 100vh;
    display: flex;
    align-items: center;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    perspective: 1000px; /* base para efeito 3D sutil */
}

/* Grid central com fade e 3D igual à hero */
.sobre-section::before {
    content: '';
    position: absolute;
    inset: 0;
    margin: auto;
    width: min(100%, 900px);
    height: min(80vh, 640px);
    z-index: 1;
    /* linhas no estilo da hero */
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 50px 50px;
    border-radius: 24px;
    /* máscara elíptica para suavizar bordas */
    -webkit-mask-image: radial-gradient(ellipse 70% 40% at center, black 40%, transparent 80%);
    mask-image: radial-gradient(ellipse 70% 40% at center, black 40%, transparent 80%);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
    animation: move-forward 25s linear infinite;
}

/* Brilho fixo central que ilumina grid e texto igual à hero */
.sobre-section::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 900px;
    height: 900px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(244,44,59,0.22) 0%, rgba(244,44,59,0.12) 35%, rgba(244,44,59,0.04) 60%, transparent 75%);
    filter: blur(80px);
    z-index: 2; /* abaixo da grid (1) e do conteúdo (3) */
    pointer-events: none;
}

/* Responsividade para o grid da seção sobre mim */
@media (max-width: 768px) {
    .sobre-section::before {
        width: min(92%, 720px);
        height: min(60vh, 520px);
        border-radius: 18px;
        -webkit-mask-image: radial-gradient(ellipse 75% 45% at center, black 46%, transparent 85%);
        mask-image: radial-gradient(ellipse 75% 45% at center, black 46%, transparent 85%);
    }
}

.sobre-section .about {
    display: flex;
    align-items: flex-start;
    gap: 4rem;
    flex-wrap: nowrap;
    position: relative;
    z-index: 3; /* acima do grid (1) e da luz (2) */
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.sobre-section .about-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-top: 0.25rem;
}

/* Removidas as camadas de fundo para design mais limpo */

.sobre-section .about-image img {
    width: 160px;
    height: 256px;
    border-radius: 20px;
    object-fit: cover;
    border: 3px solid var(--secondary-color); /* traçado vermelho */
    box-shadow: 0 8px 30px rgba(244, 44, 59, 0.3); /* sombra vermelha sutil */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 1;
}

.sobre-section .about-image img:hover {
    transform: scale(1.08); /* efeito de aproximação mais pronunciado */
    box-shadow: 0 15px 40px rgba(244, 44, 59, 0.5); /* sombra vermelha mais intensa */
    border-color: var(--secondary-color); /* mantém o traçado vermelho */
}

/* Removida a animação de brilho para manter o design limpo */

.sobre-section .about-text {
    flex: 1;
}

.sobre-section .about-text h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    margin-top: 0;
    color: var(--text-color);
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, var(--text-color) 0%, var(--primary-color) 50%, var(--secondary-color) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: text-gradient 3s ease infinite;
    transition: all 0.3s ease;
}

.sobre-section .about-text h3:hover {
    transform: translateY(-2px);
    filter: drop-shadow(0 4px 8px rgba(0, 95, 160, 0.3));
}

/* Animação do gradiente do texto */
@keyframes text-gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.sobre-section .about-text .cargo {
    display: block;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.sobre-section .about-text p {
    color: var(--sub-text-color);
    line-height: 1.8;
    font-size: 1.1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Responsividade para a seção sobre mim sem card */
@media (max-width: 768px) {
    .sobre-section {
        min-height: 80vh;
        padding: 2rem 0;
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);
    }
    
    .sobre-section .about {
        flex-direction: column;
        text-align: center;
        gap: 2.5rem;
        align-items: center;
        padding: 0 1rem;
        max-width: 100%;
    }
    
    .sobre-section .about-image::before {
        width: 180px;
        height: 288px;
    }
    
    .sobre-section .about-image::after {
        width: 160px;
        height: 256px;
    }
    
    .sobre-section .about-image img {
        width: 140px;
        height: 224px;
    }
    
    .sobre-section .about-text h3 {
        font-size: 2rem;
    }
    
    .sobre-section .stats-container {
        flex-direction: column;
        gap: 1.5rem;
        margin-top: 2rem;
        padding: 2rem 1.5rem;
    }
    
    .sobre-section .stat-number {
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    .sobre-section {
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);
    }
    
    .sobre-section .about {
        padding: 0 0.5rem;
    }
    
    .sobre-section .about-image::before {
        width: 160px;
        height: 256px;
    }
    
    .sobre-section .about-image::after {
        width: 140px;
        height: 224px;
    }
    
    .sobre-section .about-image img {
        width: 120px;
        height: 192px;
    }
    
    .sobre-section .about-text h3 {
        font-size: 1.8rem;
    }
    
    .sobre-section .stat-number {
        font-size: 2.5rem;
    }
    
    .sobre-section .stats-container {
        margin-left: 0.5rem;
        margin-right: 0.5rem;
        padding: 2rem 1rem;
    }
}

/* =================================
   ESTATÍSTICAS COM EFEITOS DE CONTAGEM (SEM CARD)
   ================================= */
.sobre-section .stats-container {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin: 3rem auto 0 auto;
    padding: 3rem 2rem;
    background: transparent; /* fundo completamente transparente */
    border-radius: 25px;
    min-height: 140px;
    position: relative;
    overflow: visible; /* permite que o traçado seja visível */
    border: 2px solid rgba(255, 255, 255, 0.2); /* apenas o traçado visível */
    max-width: 800px; /* centraliza o card */
    transition: all 0.4s ease;
}

/* Removido o efeito de brilho interno para manter apenas o traçado */

.sobre-section .stats-container:hover {
    transform: translateY(-5px);
    border-color: rgba(244, 44, 59, 0.4); /* apenas muda a cor do traçado no hover */
}

.stat-item {
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 80px; /* Altura mínima para cada item */
}

.sobre-section .stat-number {
    font-size: 4rem;
    font-weight: 700;
    color: #ffffff; /* cor branca */
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); /* sombra sutil */
    transition: all 0.4s ease;
    position: relative;
    line-height: 1;
}

.sobre-section .stat-number.animated {
    animation: pulse-glow 2s ease-in-out;
}

.sobre-section .stat-number:hover {
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    color: #ffffff; /* mantém branco no hover */
}

.stat-label {
    font-size: 0.9rem;
    color: var(--sub-text-color);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsividade para as estatísticas */
@media (max-width: 768px) {
    .stats-container {
        flex-direction: column;
        gap: 1.5rem;
        margin: 2rem auto 0 auto; /* mantém centralizado */
        padding: 2rem 1.5rem;
        min-height: auto; /* Remove altura mínima em telas menores */
        max-width: 90%; /* ajusta para telas menores */
    }
    
    .stat-item {
        min-height: 60px; /* Reduz altura mínima em telas menores */
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .stats-container {
        gap: 1rem;
        margin: 1.5rem auto 0 auto; /* mantém centralizado */
        padding: 1.5rem 1rem;
        max-width: 95%; /* ajusta para telas muito pequenas */
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
}

/* Animação de pulso para os números */
@keyframes pulse-glow {
    0% {
        transform: scale(1);
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }
    50% {
        transform: scale(1.05);
        text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    }
    100% {
        transform: scale(1);
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }
}

/* Animação de entrada para elementos da seção sobre mim */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animação de brilho para a seção sobre mim */
@keyframes sobre-glow {
    0%, 100% {
        box-shadow: 0 8px 32px rgba(0, 95, 160, 0.1);
    }
    50% {
        box-shadow: 0 12px 40px rgba(0, 95, 160, 0.2);
    }
}

/* Removida a animação de brilho para manter apenas o traçado */


/* Partículas flutuantes para toda a seção sobre mim */
.sobre-section .floating-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    pointer-events: none;
    z-index: 2;
    animation: float 8s ease-in-out infinite;
}

.sobre-section .floating-particle:nth-child(1) {
    top: 15%;
    left: 15%;
    animation-delay: 0s;
    animation-duration: 10s;
}

.sobre-section .floating-particle:nth-child(2) {
    top: 25%;
    right: 20%;
    animation-delay: 2s;
    animation-duration: 12s;
}

.sobre-section .floating-particle:nth-child(3) {
    bottom: 30%;
    left: 25%;
    animation-delay: 4s;
    animation-duration: 9s;
}

.sobre-section .floating-particle:nth-child(4) {
    bottom: 20%;
    right: 15%;
    animation-delay: 6s;
    animation-duration: 11s;
}

.sobre-section .floating-particle:nth-child(5) {
    top: 60%;
    left: 10%;
    animation-delay: 1s;
    animation-duration: 13s;
}

.sobre-section .floating-particle:nth-child(6) {
    top: 40%;
    right: 10%;
    animation-delay: 3s;
    animation-duration: 8s;
}
/*==================================*/
/* SEÇÃO DE DEPOIMENTOS MODERNA */
/*==================================*/
.testimonials-section {
    padding: 6rem 0 2rem 0;
    background: var(--bg-color);
    position: relative;
    overflow: hidden;
}

.testimonials-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--sub-text-color);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.testimonial-card {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.95) 0%, rgba(34, 34, 34, 0.95) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 95, 160, 0.2);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 95, 160, 0.1);
    min-height: 280px;
    display: flex;
    flex-direction: column;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-color));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.testimonial-card:hover::before {
    transform: scaleX(1);
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 95, 160, 0.2);
    border-color: rgba(244, 44, 59, 0.3);
}



.quote-icon {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: var(--secondary-color);
    opacity: 0.2;
    transition: all 0.3s ease;
    transform: scale(0.8);
}

.testimonial-card:hover .quote-icon {
    opacity: 0.4;
    transform: scale(0.9);
}

.testimonial-content {
    margin: 1.5rem 0;
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color);
    font-style: italic;
    margin: 0;
}

.client-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.client-photo-wrapper {
    position: relative;
    flex-shrink: 0;
}

.client-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--secondary-color);
    transition: all 0.3s ease;
}

.testimonial-card:hover .client-photo {
    transform: scale(1.05);
    border-color: var(--primary-color);
}

.client-status-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    background: #10b981;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
    font-size: 0.7rem;
}

.client-details {
    text-align: center;
    min-width: 0;
}

.client-name {
    display: block;
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 0.2rem;
}

.client-role {
    display: block;
    font-size: 0.85rem;
    color: var(--sub-text-color);
    margin-bottom: 0.4rem;
}

.rating {
    display: flex;
    gap: 1px;
    justify-content: center;
}

.star {
    color: #fbbf24;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.testimonial-card:hover .star {
    transform: scale(1.1);
    color: #f59e0b;
}

.testimonials-cta {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.9) 0%, rgba(34, 34, 34, 0.9) 100%);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 95, 160, 0.2);
    box-shadow: 0 8px 32px rgba(0, 95, 160, 0.1);
}

.testimonials-cta p {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.cta-button-secondary {
    display: inline-block;
    background: linear-gradient(135deg, var(--secondary-color), #ff6b6b);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(220, 36, 49, 0.3);
}

.cta-button-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 36, 49, 0.4);
    text-decoration: none;
    color: white;
}

/* Responsividade para depoimentos */
@media (max-width: 1024px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .testimonial-card {
        padding: 1.5rem;
        min-height: 260px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .client-info {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
        margin-top: 1.25rem;
    }
    
    .testimonial-content {
        margin: 1.25rem 0;
    }
    
    .testimonial-text {
        font-size: 0.95rem;
        line-height: 1.5;
    }
}

/* Animações adicionais para depoimentos */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.testimonial-card {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.testimonial-card:nth-child(2) {
    animation-delay: 0.2s;
}

.testimonial-card:nth-child(3) {
    animation-delay: 0.4s;
}



/* Efeito de hover mais suave */
.testimonial-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.testimonial-card:hover {
    transform: translateY(-8px);
}

/* Efeito de brilho no hover */
.testimonial-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.testimonial-card:hover::after {
    left: 100%;
}

/*==================================*/
/* RODAPÉ E CTA                     */
/*==================================*/
.cta-button {
    display: inline-block;
    background-color: #ff0000;
    color: #ffffff;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    text-transform: uppercase;
    font-weight: 700;
    border: 2px solid #ff0000;
    box-shadow: 
        0 0 20px rgba(255, 0, 0, 0.5),
        0 0 40px rgba(255, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover {
    transform: scale(1.05) translateY(-2px);
    text-decoration: none;
    background-color: #cc0000;
    border-color: #cc0000;
    box-shadow: 
        0 0 30px rgba(255, 0, 0, 0.8),
        0 0 60px rgba(255, 0, 0, 0.5),
        0 10px 20px rgba(0, 0, 0, 0.3);
}

.cta-button:hover::before {
    left: 100%;
}

/* =================================
   SEÇÃO RODAPÉ PREMIUM - DESIGN ATUALIZADO
   ================================= */
.footer-premium {
    padding: 80px 40px 20px 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--bg-dark);
}

/* Efeito de escala para a logo do rodapé ao passar o mouse */
.footer-logo-link:hover .footer-logo-img {
    transform: scale(1.05);
}

.footer-container {
    max-width: 1500px;
    margin: 0 auto;
}

/* O Container da Grade */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 60px;
}

/* A Regra Única para Alinhamento de TODAS as Colunas */
.footer-column {
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centraliza o conteúdo interno na vertical */
}

.footer-column .footer-logo-img {
    max-width: 150px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.footer-tagline {
    font-family: 'Inter', sans-serif;
    color: var(--text-gray);
    line-height: 1.6;
    font-size: 0.95rem;
}

.footer-heading {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

/* Linha decorativa sutil abaixo dos títulos */
.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

/* Efeito suave no hover */
.footer-links a:hover {
    color: var(--primary);
    padding-left: 8px;
}

.footer-email {
    display: inline-block;
    color: var(--text-gray);
    text-decoration: none;
    margin-bottom: 25px;
    transition: color 0.3s ease;
}

.footer-email:hover {
    color: var(--primary);
}

.footer-socials {
    display: flex;
    gap: 15px;
}

.footer-socials a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--bg-light);
    color: var(--text-gray);
    transition: all 0.3s ease;
}

.footer-socials a:hover {
    background-color: var(--primary);
    color: var(--bg-dark);
    transform: translateY(-4px);
}

.footer-socials svg {
    width: 20px;
    height: 20px;
}

.footer-legal-bar {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: var(--text-gray);
}

/* Responsividade do Footer */
@media (max-width: 768px) {
    .footer-premium {
        padding: 60px 20px 20px 20px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 40px;
    }
    
    .footer-column {
        text-align: center;
    }
    
    .footer-heading {
        font-size: 1.2rem;
        margin-bottom: 20px;
    }
    
    .footer-socials {
        justify-content: center;
    }
}

/*==================================*/
/* BOTÃO DE VOLTAR AO TOPO          */
/*==================================*/
#back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: none;
    align-items: center;
    color: var(--text-color);
    border: none;
    border-radius: 50px;
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
    background-color: transparent;
    opacity: 0;
    transform: translateY(20px);
}

#back-to-top:hover {
    transform: scale(1.05) translateY(-2px);
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.6);
}

/* Efeito durante o scroll */
#back-to-top.scrolling {
    animation: rocket-launch 1s ease-in-out;
}

/* Animação do foguete durante o scroll */
@keyframes rocket-launch {
    0% {
        transform: scale(1) translateY(0);
    }
    25% {
        transform: scale(1.1) translateY(-5px);
    }
    50% {
        transform: scale(1.2) translateY(-10px);
    }
    75% {
        transform: scale(1.1) translateY(-5px);
    }
    100% {
        transform: scale(1) translateY(0);
    }
}

#back-to-top img {
    width: 24px;
    height: 24px;
    margin-right: 0.5rem;
    transition: all 0.3s ease;
    filter: brightness(1);
}

#back-to-top:hover img {
    transform: translateY(-5px) scale(1.1);
    filter: brightness(1.2) drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
}

/* Efeito especial durante o scroll */
#back-to-top.scrolling img {
    animation: rocket-glow 1s ease-in-out;
}

@keyframes rocket-glow {
    0% {
        filter: brightness(1) drop-shadow(0 0 0px rgba(255, 255, 255, 0));
    }
    50% {
        filter: brightness(1.5) drop-shadow(0 0 15px rgba(255, 255, 255, 0.8));
    }
    100% {
        filter: brightness(1) drop-shadow(0 0 0px rgba(255, 255, 255, 0));
    }
}

.button-text {
    white-space: nowrap;
}

/*==================================*/
/* MEDIA QUERIES (RESPONSIVO)       */
/*==================================*/
@media (max-width: 768px) {
    h1, .hero-title { font-size: 2.5rem; }
    h2 { font-size: 1.75rem; }

    .hero {
        height: auto;
        min-height: 80vh;
        padding: 4rem 1rem;
    }
    
    /* Reduz efeitos em dispositivos móveis para melhor performance */
    .hero::before {
        background-size: 150px 75px;
        animation: twinkle 6s ease-in-out infinite alternate;
    }
    
    .hero::after {
        animation: nebula-drift 30s ease-in-out infinite;
    }
    
    .meteor {
        width: 1px;
        height: 1px;
    }
    
    .floating-particle {
        width: 2px;
        height: 2px;
    }

    .cta-button {
        padding: 1rem 2rem;
    }

    .about {
        flex-direction: column;
        text-align: center;
    }
    
    /* Centraliza a linha vertical à esquerda */
    .timeline-line, .timeline-line::before {
        left: 31px;
    }
    
    /* Faz os itens ocuparem 100% da largura da tela */
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    /* Alinha todos os itens à esquerda */
    .timeline-item:nth-child(even) {
        left: 0;
    }

    /* Ajusta o posicionamento dos círculos e setas para o novo alinhamento */
    .timeline-item::after {
        left: 15px;
    }

    .timeline-item:nth-child(even)::after {
        left: 15px;
    }
    
    .timeline-item::before {
        left: 60px;
        border-color: transparent #005fa0 transparent transparent;
    }
    
    .timeline-item:nth-child(even)::before {
        left: 60px;
        border-color: transparent #005fa0 transparent transparent;
    }

    /* Responsividade do botão */
    #back-to-top {
        right: 1rem;
        bottom: 1rem;
        padding: 0.6rem 1rem;
    }
    .button-text {
        display: none; /* Oculta o texto em telas pequenas */
    }
}

/*==================================*/
/* SEÇÃO DE CONTATO MODERNA         */
/*==================================*/
#contato {
    background: var(--bg-color);
    padding: 4rem 0 6rem 0;
    position: relative;
    overflow: hidden;
}

#contato::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
}

.contact-card {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.95) 0%, rgba(34, 34, 34, 0.95) 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 95, 160, 0.2);
    border-radius: 25px;
    padding: 3rem;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 20px 40px rgba(0, 95, 160, 0.1),
        0 8px 16px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-color));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.contact-card:hover::before {
    transform: scaleX(1);
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 
        0 30px 60px rgba(0, 95, 160, 0.2),
        0 15px 30px rgba(0, 0, 0, 0.4);
    border-color: rgba(244, 44, 59, 0.3);
}

.contact-header {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 2;
}

.contact-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.contact-subtitle {
    font-size: 1.1rem;
    color: var(--sub-text-color);
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 95, 160, 0.1), transparent);
    transition: left 0.5s ease;
}

.contact-item:hover::before {
    left: 100%;
}

.contact-item:hover {
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 95, 160, 0.3);
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    border-radius: 12px;
    color: white;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.contact-item:hover .contact-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 20px rgba(244, 44, 59, 0.4);
}

.contact-details h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.contact-details p {
    color: var(--sub-text-color);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.contact-link {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

.contact-cta {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(0, 95, 160, 0.1), rgba(0, 95, 160, 0.05));
    border-radius: 20px;
    border: 1px solid rgba(0, 95, 160, 0.2);
    position: relative;
    overflow: hidden;
}

.contact-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.03), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.contact-cta:hover::before {
    opacity: 1;
    transform: rotate(45deg) translate(50%, 50%);
}

.contact-cta h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.contact-cta p {
    color: var(--sub-text-color);
    line-height: 1.6;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.whatsapp-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: transparent !important;
    border: 2px solid var(--secondary-color);
    color: var(--text-color);
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: none;
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.whatsapp-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.whatsapp-button:hover::before {
    left: 100%;
}

.whatsapp-button:hover {
    background: rgba(244, 44, 59, 0.1);
    border-color: var(--secondary-color);
    color: var(--text-color);
    text-decoration: none;
}

.whatsapp-icon {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.whatsapp-button:hover .whatsapp-icon {
    transform: scale(1.1);
    color: var(--secondary-color);
}

/* Responsividade para o card de contato */
@media (max-width: 768px) {
    .contact-card {
        padding: 2rem;
        margin: 0 1rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-title {
        font-size: 2rem;
    }
    
    .contact-item {
        padding: 1.25rem;
    }
    
    .contact-icon {
        width: 45px;
        height: 45px;
    }
    
    .whatsapp-button {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .contact-card {
        padding: 1.5rem;
    }
    
    .contact-title {
        font-size: 1.75rem;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
    }
    
    .whatsapp-button {
        padding: 0.9rem 1.8rem;
        font-size: 0.95rem;
    }
}

/*==================================*/
/* PARTÍCULAS FLUTUANTES            */
/*==================================*/
.floating-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    pointer-events: none;
    z-index: 4;
    animation: float 6s ease-in-out infinite;
}

.floating-particle:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 8s;
}

.floating-particle:nth-child(2) {
    top: 60%;
    left: 85%;
    animation-delay: 1s;
    animation-duration: 7s;
}

.floating-particle:nth-child(3) {
    top: 40%;
    left: 70%;
    animation-delay: 2s;
    animation-duration: 9s;
}

.floating-particle:nth-child(4) {
    top: 80%;
    left: 20%;
    animation-delay: 3s;
    animation-duration: 6s;
}

.floating-particle:nth-child(5) {
    top: 30%;
    left: 50%;
    animation-delay: 4s;
    animation-duration: 8.5s;
}

.floating-particle:nth-child(6) {
    top: 70%;
    left: 40%;
    animation-delay: 5s;
    animation-duration: 7.5s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) translateX(0px) rotate(0deg);
        opacity: 0.3;
    }
    25% {
        transform: translateY(-20px) translateX(10px) rotate(90deg);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-10px) translateX(-15px) rotate(180deg);
        opacity: 0.5;
    }
    75% {
        transform: translateY(-30px) translateX(5px) rotate(270deg);
        opacity: 0.9;
    }
}

/*==================================*/
#marketing-digital {
    background: var(--bg-color);
    padding: 5rem 0;
    position: relative;
}

.section-header {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--sub-text-color);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Grid de Serviços */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.service-card {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    border-color: rgba(244, 44, 59, 0.3);
}

.service-icon {
    position: relative;
    width: 6rem;
    height: 6rem;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-rings {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
}

.ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(244, 44, 59, 0.3);
    border-radius: 50%;
    animation: pulse 3s ease-in-out infinite;
}

.ring-1 {
    width: 4rem;
    height: 4rem;
    animation-delay: 0s;
}

.ring-2 {
    width: 5rem;
    height: 5rem;
    animation-delay: 1s;
}

.ring-3 {
    width: 6rem;
    height: 6rem;
    animation-delay: 2s;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.05);
    }
}

.icon-core {
    position: relative;
    z-index: 2;
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, #f42c3b 0%, #ff6b6b 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 0 20px rgba(244, 44, 59, 0.5);
    transition: all 0.4s ease;
}

.service-card:hover .icon-core {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(244, 44, 59, 0.7);
}

.service-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
    transition: all 0.4s ease;
}

.service-card:hover h3 {
    color: #f42c3b;
}

.service-card p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    font-size: 1rem;
    margin: 0;
}


/* Responsividade */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
    }
    
    .service-icon {
        width: 5rem;
        height: 5rem;
        margin-bottom: 1.5rem;
    }
    
    .ring-1 {
        width: 3rem;
        height: 3rem;
    }
    
    .ring-2 {
        width: 4rem;
        height: 4rem;
    }
    
    .ring-3 {
        width: 5rem;
        height: 5rem;
    }
    
    .icon-core {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .service-card h3 {
        font-size: 1.3rem;
    }
    
    .service-card p {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .service-card {
        padding: 1.5rem 1rem;
    }
    
    .service-icon {
        width: 4rem;
        height: 4rem;
    }
    
    .ring-1 {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .ring-2 {
        width: 3rem;
        height: 3rem;
    }
    
    .ring-3 {
        width: 4rem;
        height: 4rem;
    }
    
    .icon-core {
        width: 2rem;
        height: 2rem;
    }
    
    .service-card h3 {
        font-size: 1.2rem;
    }
    
    .service-card p {
        font-size: 0.9rem;
    }
}

/*==================================*/
/* MODAL CTA                        */
/*==================================*/
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow-x: hidden;
    overflow-y: auto;
}

.modal.modal-active {
    opacity: 1;
}

.modal-content {
    background: linear-gradient(135deg, var(--card-bg) 0%, var(--card-bg-secondary) 100%);
    margin: 2% auto;
    padding: 0;
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-x: hidden;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: translateY(-50px) scale(0.9);
    transition: transform 0.3s ease;
    position: relative;
    box-sizing: border-box;
}

.modal.modal-active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-header {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #ff4757 100%);
    padding: 1.5rem 2rem;
    border-radius: 20px 20px 0 0;
    position: relative;
    text-align: center;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-header h2 {
    margin: 0;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    z-index: 10;
}

.close:hover,
.close:focus {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.modal-form {
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--glass-border);
    border-radius: 10px;
    background: var(--card-bg-secondary);
    color: var(--text-color);
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(244, 44, 59, 0.2);
    background: var(--card-bg);
}

.form-group input::placeholder {
    color: var(--sub-text-color);
}

.form-group select {
    cursor: pointer;
    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='%23ccc' 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 1rem center;
    background-size: 1rem;
    padding-right: 3rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--glass-border);
}

.btn-secondary,
.btn-primary {
    padding: 1rem 2rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    min-width: 120px;
    justify-content: center;
}

.btn-secondary {
    background: var(--card-bg-secondary);
    color: var(--text-color);
    border: 2px solid var(--glass-border);
}

.btn-secondary:hover {
    background: var(--card-bg);
    border-color: var(--sub-text-color);
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #ff4757 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(244, 44, 59, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 44, 59, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Responsividade do Modal */
@media (max-width: 768px) {
    .modal {
        overflow-x: hidden;
    }
    
    .modal-content {
        margin: 5% auto;
        width: 95%;
        max-width: calc(100vw - 20px);
        max-height: 85vh;
        overflow-x: hidden;
    }
    
    .modal-header {
        padding: 1rem 1.5rem;
        min-height: 50px;
    }
    
    .modal-header h2 {
        font-size: 1.3rem;
    }
    
    .modal-form {
        padding: 1.5rem;
        overflow-x: hidden;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn-secondary,
    .btn-primary {
        width: 100%;
    }
    
    .close {
        right: 0.8rem;
        top: 0.8rem;
        font-size: 1.3rem;
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 480px) {
    .modal {
        overflow-x: hidden;
    }
    
    .modal-content {
        margin: 2% auto;
        width: 98%;
        max-width: calc(100vw - 10px);
        border-radius: 15px;
        overflow-x: hidden;
    }
    
    .modal-header {
        padding: 0.8rem 1rem;
        min-height: 45px;
        border-radius: 15px 15px 0 0;
    }
    
    .modal-header h2 {
        font-size: 1.2rem;
    }
    
    .close {
        right: 0.7rem;
        top: 0.7rem;
        font-size: 1.2rem;
        width: 28px;
        height: 28px;
    }
    
    .modal-form {
        padding: 1rem;
        overflow-x: hidden;
    }
    
    .form-group input,
    .form-group select {
        padding: 0.8rem;
        max-width: 100%;
        box-sizing: border-box;
    }
}

/*==================================*/
/* SEÇÃO SUBTÍTULO COM SETA ANIMADA */
/*==================================*/
.section-subtitle-with-arrow {
    margin-bottom: 3rem;
}

.section-subtitle-with-arrow .intro-text {
    color: var(--sub-text-color);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.arrow-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.arrow-container:hover {
    transform: translateY(-2px);
}

.arrow-text {
    color: var(--secondary-color);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.arrow-container:hover .arrow-text {
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(0, 95, 160, 0.3);
}

.animated-arrow {
    color: var(--secondary-color);
    transition: all 0.3s ease;
    animation: bounce-arrow 2s ease-in-out infinite;
}

.arrow-container:hover .animated-arrow {
    color: var(--primary-color);
    transform: scale(1.1);
}

.animated-arrow svg {
    transition: all 0.3s ease;
}

.arrow-container:hover .animated-arrow svg {
    filter: drop-shadow(0 0 8px rgba(0, 95, 160, 0.4));
}

/* Animação da seta */
@keyframes bounce-arrow {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-8px);
    }
    60% {
        transform: translateY(-4px);
    }
}

/* Responsividade para a seta animada */
@media (max-width: 768px) {
    .section-subtitle-with-arrow .intro-text {
        font-size: 1rem;
        margin-bottom: 1.25rem;
    }
    
    .arrow-text {
        font-size: 0.9rem;
    }
    
    .animated-arrow {
        transform: scale(0.9);
    }
    
    .arrow-container:hover .animated-arrow {
        transform: scale(1);
    }
}

@media (max-width: 480px) {
    .section-subtitle-with-arrow .intro-text {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }
    
    .arrow-text {
        font-size: 0.85rem;
    }
    
    .animated-arrow {
        transform: scale(0.8);
    }
    
    .arrow-container:hover .animated-arrow {
        transform: scale(0.9);
    }
}