/* CSS Variables for Theme */
:root {
    /* Color Palette: Dark Premium Theme */
    --bg-main: #0B0E14; /* Deep dark blue/black */
    --bg-secondary: #121822;
    --text-main: #F0F4F8;
    --text-muted: #B4C2D8; /* Improved contrast ratio */
    
    /* Gradients / Accents - Electric Blue & Purple */
    --accent-primary: #3B82F6;
    --accent-secondary: #8B5CF6;
    --gradient-brand: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    
    /* Glassmorphism */
    --glass-bg: rgba(18, 24, 34, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    
    /* Spacing & Sizes */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    
    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    overflow-wrap: anywhere; /* UX: Prevent long text from breaking layout */
    word-break: break-word;
    position: relative;
    z-index: 0;
}

/* Efeito de Fundo Global (Ambient Glow) */
body::before, body::after {
    content: '';
    position: fixed;
    width: 70vw;
    height: 70vw;
    border-radius: 50%;
    z-index: -1;
    filter: blur(120px);
    opacity: 0.12;
    pointer-events: none;
    animation: ambient-move 25s infinite alternate ease-in-out;
}

body::before {
    background: radial-gradient(circle, var(--accent-primary) 0%, transparent 70%);
    top: -20%;
    left: -20%;
}

body::after {
    background: radial-gradient(circle, var(--accent-secondary) 0%, transparent 70%);
    bottom: -20%;
    right: -20%;
    animation-duration: 30s;
    animation-delay: -15s;
}

@keyframes ambient-move {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(15vw, 10vh) scale(1.1); }
    100% { transform: translate(-10vw, -5vh) scale(0.9); }
}

/* UX: Fallback for broken images and responsive safeguard */
img {
    font-style: italic;
    color: var(--text-muted);
    max-width: 100%; /* Responsividade: imagens nunca estouram a tela */
    height: auto;
}

/* Typography */
h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    margin-bottom: 1rem;
}

.gradient-text, .text-gradient {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

a {
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.2s ease; /* Snappier transition */
}

a:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 4px;
    border-radius: var(--radius-sm);
}

ul {
    list-style: none;
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 6rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.section-header p {
    font-size: 1.125rem;
}

.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
    font-size: 1rem;
}

.btn:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 4px;
}

.btn:active {
    transform: scale(0.98); /* Tactile feedback on press */
}

.btn-primary {
    background: var(--gradient-brand);
    color: #fff;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
    color: #fff;
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--text-main);
}

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

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.glow-btn {
    animation: glowPulse 2s infinite alternate;
}

@keyframes glowPulse {
    0% { box-shadow: 0 0 10px rgba(59, 130, 246, 0.5); }
    100% { box-shadow: 0 0 25px rgba(139, 92, 246, 0.8); }
}

/* Glass Panels */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
}

/* Utility classes */
.mt-3 {
    margin-top: 1rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(11, 14, 20, 0.8);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    padding: 0.75rem 0;
}

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

.logo img {
    height: 100px;
    width: auto;
    transition: all 0.3s ease;
}

.header.scrolled .logo img {
    height: 70px;
}

.text-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-menu ul {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0; /* UX: Increase click target area */
}

.nav-link:hover, .nav-link.active {
    color: #fff;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--gradient-brand);
    transition: width 0.2s ease;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #fff;
}

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

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Hero Visuals */
.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.visual-card {
    position: absolute;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    text-align: center;
    min-width: 200px;
}

.visual-card i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.visual-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.visual-card p {
    font-size: 0.875rem;
    margin: 0;
}

.float-anim-1 { animation: float 6s ease-in-out infinite; top: 5%; right: 10%; }
.float-anim-2 { animation: float 8s ease-in-out infinite reverse; top: 35%; left: 0%; z-index: 5;}
.float-anim-3 { animation: float 7s ease-in-out infinite 1s; bottom: 15%; right: 5%; }
.float-anim-4 { animation: float 9s ease-in-out infinite 0.5s reverse; bottom: 5%; left: 15%; z-index: 4; }

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

.glow-bg {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59,130,246,0.15) 0%, rgba(139,92,246,0.05) 40%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    padding: 2.5rem 2rem;
    transition: transform 0.3s ease, background 0.3s ease;
}

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

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background: var(--gradient-brand);
    color: #fff;
}

/* Sobre */
.sobre-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.sobre-image {
    position: relative;
}

.image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    background: linear-gradient(to bottom right, var(--bg-secondary), #1A2235);
    padding: 1rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.profile-photo {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    border-radius: var(--radius-md);
    display: block;
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--gradient-brand);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    color: #fff;
}

.sobre-content .lead {
    font-size: 1.25rem;
    color: #fff;
    margin-bottom: 1.5rem;
}

.sobre-features {
    margin-top: 2rem;
}

.sobre-features li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 500;
}

/* Metodologia Timeline */
.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 24px;
    height: 100%;
    width: 2px;
    background: rgba(255,255,255,0.1);
}

.timeline-item {
    position: relative;
    padding-left: 80px;
    margin-bottom: 3rem;
}

.timeline-dot {
    position: absolute;
    left: 0;
    top: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-main);
    border: 2px solid var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--accent-primary);
    z-index: 2;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
}

.timeline-content {
    padding: 2rem;
}

.cta-center {
    text-align: center;
    margin-top: 5rem;
}

.cta-center h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

/* FAQ Section (GEO) */
.faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    padding: 2rem;
    text-align: left;
}

.faq-item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: #fff;
}

.faq-item p {
    margin: 0;
    font-size: 1rem;
}

/* Footer */
.footer {
    background: #06080A;
    padding-top: 5rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo {
    height: 90px;
    margin-bottom: 1rem;
}

.footer-brand p {
    max-width: 300px;
    margin-top: 1rem;
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-contact ul li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    margin-right: 0.5rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--gradient-brand);
    color: #fff;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-bottom p {
    margin: 0;
    font-size: 0.875rem;
}

/* Animations / Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Snappier easing */
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
/* Responsive adjustments below... */

/* Mescla de Tonalidades de Azul (Dobras Alternadas) */
.servicos, .como-funciona, .faq {
    background: linear-gradient(180deg, rgba(28, 40, 65, 0.85) 0%, rgba(18, 26, 43, 0.6) 100%);
    box-shadow: inset 0px 1px 0px rgba(255,255,255,0.05); /* Linha sutil de divisão */
}

.sobre, .cta-bottom {
    background: linear-gradient(180deg, rgba(6, 8, 12, 0.95) 0%, rgba(10, 14, 22, 0.8) 100%);
}

@media (max-width: 992px) {
    .hero-container, .sobre-container {
        grid-template-columns: 1fr;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    /* Responsividade: Reduzir tamanho dos visuais flutuantes em tablets */
    .hero-visual {
        height: 400px;
        transform: scale(0.9);
    }
    
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(11, 14, 20, 0.95);
        backdrop-filter: blur(10px);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: left 0.3s ease;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu ul {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }
    
    .nav-link {
        font-size: 1.25rem;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .header-btn {
        display: none;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    /* Responsividade: Reduzir espaçamento vertical das seções para poupar scroll no celular */
    section {
        padding: 4rem 0;
    }
    
    /* Performance Mobile: Desabilitar os grandes filtros de blur e animações de fundo que causam lentidão de renderização (FCP/LCP) em celulares */
    body::before, body::after {
        display: none;
    }

    /* Performance Mobile Avançada: O "backdrop-filter" (Efeito de vidro) derruba a pontuação em celulares simulados pelo Google (Moto G4). Substituindo por cor sólida sem desfoque */
    .glass-card, .glass-panel, .header {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: #0B0E14 !important;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* Performance Mobile Avançada: Parar animações infinitas que forçam a CPU do celular a redesenhar a tela constantemente */
    .visual-card {
        animation: none !important;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    /* Responsividade: Ajustar timeline (Como Funciona) para não espremer o texto */
    .timeline::before {
        left: 20px;
    }
    
    .timeline-dot {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .timeline-item {
        padding-left: 60px;
    }
    
    /* Área de toque maior para links mobile (mínimo 44px) */
    .nav-link {
        padding: 0.75rem 1rem;
        display: inline-block;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}
