/* Variáveis de Cores e Temas */
:root {
    --bg-main: #050505;
    --bg-darker: #070B15;
    --bg-card: #121212;
    --text-main: #FFFFFF;
    --text-muted: #94A3B8;
    --accent-cyan: #06B6D4;
    --accent-blue: #3B82F6;
    --accent-green: #10B981;
    --whatsapp: #25D366;
    --primary-blue: #2563EB;
    --primary-blue-hover: #1D4ED8;
    --whatsapp-hover: #128C7E;
}

body { 
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    overflow-x: hidden;
}

/* Utilitários de Texto e Espaçamento */
.text-light-gray { color: var(--text-muted); }
.text-cyan { color: var(--accent-cyan); }
.py-6 { padding-top: 80px; padding-bottom: 80px; }
.tracking-wide { letter-spacing: 2px; font-size: 0.85rem; }

/* Gradientes */
.text-gradient {
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.divider {
    height: 4px;
    width: 60px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue));
    border-radius: 2px;
}

/* Navbar (Glassmorphism) */
.glass-nav {
    background: rgba(11, 17, 33, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link {
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.3s;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: var(--accent-cyan);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    background: radial-gradient(circle at top right, rgba(6, 182, 212, 0.15), transparent 40%),
                radial-gradient(circle at bottom left, rgba(59, 130, 246, 0.1), transparent 40%);
    padding-top: 100px;
}

.badge-tech {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(6, 182, 212, 0.1);
    color: var(--accent-cyan);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Botões */
.btn-custom-whatsapp {
    background-color: var(--whatsapp);
    color: white;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
}

.btn-primary-blue {
    background-color: var(--primary-blue);
    color: #FFFFFF !important; /* Força o texto a ser branco */
    font-weight: 600;
    border: none;
}

.btn-link-corp:hover {
    color: #FFFFFF !important;
}

.btn-link-corp {
    color: #60A5FA !important; /* Azul claro para destacar no fundo escuro */
    text-decoration: none;
    font-weight: 600;
}

.btn-custom-whatsapp:hover {
    background-color: var(--whatsapp-hover);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
}

.btn-link-custom {
    color: var(--accent-cyan);
    text-decoration: none;
    font-weight: 600;
    padding: 0;
    transition: all 0.3s;
}

.btn-link-custom:hover {
    color: white;
    letter-spacing: 1px;
}

/* Cartões (Serviços e Projetos) */
.bg-darker { background-color: var(--bg-darker); }

.service-card, .project-card {
    background-color: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    transition: all 0.4s ease;
}

.service-card:hover, .project-card:hover {
    transform: translateY(-10px);
    border-color: rgba(6, 182, 212, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.icon-box {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(6, 182, 212, 0.1);
    color: var(--accent-cyan);
    border-radius: 12px;
    font-size: 1.8rem;
}

/* Imagens dos Projetos */
.project-img-wrapper {
    overflow: hidden;
    border-radius: 16px 16px 0 0;
}

.placeholder-img {
    height: 220px;
    background: linear-gradient(45deg, #1A2438, #23304A);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.5s ease;
}

.project-card:hover .placeholder-img {
    transform: scale(1.05);
}

/* Labels e Badges */
.bg-cyan-subtle { background-color: rgba(6, 182, 212, 0.1); }

.tech-pill {
    padding: 10px 24px;
    background-color: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tech-pill:hover {
    border-color: var(--accent-cyan);
    color: white;
    background-color: rgba(6, 182, 212, 0.05);
}

.border-cyan { border-color: rgba(6, 182, 212, 0.5); color: var(--accent-cyan); }

/* Footer & CTA */
.cta-box {
    background: linear-gradient(135deg, var(--bg-card), #1A2642);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Footer spacing adjustments */
.footer-section {
    padding-top: 110px; /* aumenta o espaçamento entre a borda superior e o conteúdo */
    padding-bottom: 40px;
}

@media (max-width: 576px) {
    .footer-section { padding-top: 64px; }
}

/* Classes para Animação JS */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

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

/* Skip link - acessibilidade */
.skip-link {
    position: absolute;
    left: -999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.skip-link:focus {
    left: 1rem;
    top: 1rem;
    width: auto;
    height: auto;
    padding: 0.5rem 0.75rem;
    background: var(--bg-card);
    color: var(--text-main);
    border-radius: 6px;
    z-index: 1050;
}

/* Navbar specific styles */
.corporativo-nav {
    background: rgba(6, 10, 20, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}
.corporativo-nav .navbar-brand { letter-spacing: 1px; }
.corporativo-nav .nav-link { color: rgba(255,255,255,0.9); margin-left: .5rem; margin-right: .5rem; }
.corporativo-nav .nav-link:hover, .corporativo-nav .nav-link:focus { color: var(--accent-cyan); }

/* Focus-visible for accessibility */
a:focus-visible, button:focus-visible, .nav-link:focus-visible {
    outline: 3px solid rgba(6,182,212,0.18);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
    .reveal { transition: none; transform: none; opacity: 1; }
    * { scroll-behavior: auto; }
}

/* --- Estilos para o Visual Combinado (Hero Right) --- */
.code-visual-container {
    background: linear-gradient(135deg, rgba(17, 17, 17, 0.9) 0%, rgba(10, 10, 10, 0.9) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 102, 255, 0.1);
    overflow: hidden;
    position: relative;
    transform: perspective(1000px) rotateY(-5deg); /* Leve perspectiva 3D */
    transition: all 0.4s ease;
}

.code-visual-container:hover {
     transform: perspective(1000px) rotateY(0deg) translateY(-5px);
     box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 102, 255, 0.2);
}

/* Header da Janela de Código */
.code-header {
    background-color: #1a1a1a;
    padding: 10px 50px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dots { height: 12px; width: 12px; border-radius: 50%; display: inline-block; margin-right: 8px; }
.red { background-color: #ff5f56; }
.yellow { background-color: #ffbd2e; }
.green { background-color: #27c93f; }

.filename {
    font-size: 0.85rem;
    color: #888;
    font-family: 'Inter', sans-serif;
    margin-left: 10px;
    font-weight: 500;
}

/* Corpo do Código e Coloração Sintática (Ideia 3) */
.code-body {
    padding: 20px;
    position: relative;
    z-index: 1;
}

.code-body pre {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.85rem;
    color: #d4d4d4;
    background-color: transparent;
    margin: 0;
    line-height: 1.6;
    white-space: pre-wrap;       /* Permite que o código quebre para a próxima linha */
    word-wrap: break-word;       /* Evita que palavras longas vazem do container */
    overflow-x: hidden;          /* Remove definitivamente a barra de rolagem horizontal */
}

/* Tokens de sintaxe */
.token.keyword { color: #0066FF; font-weight: 600; } /* Azul Corporativo */
.token.comment { color: #6a737d; font-style: italic; } /* Cinza */
.token.string { color: #00cc66; } /* Verde Esmeralda */
.token.number { color: #f59e0b; } /* Laranja */

/* Sobreposição de Fluxo de Dados (Ideia 2 sutil) */
.data-stream-overlay {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    pointer-events: none;
    z-index: 2;
}

.stream-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, rgba(0, 102, 255, 0.2), transparent);
    height: 1px;
    width: 100%;
    opacity: 0;
    animation: streamAnimate 4s infinite;
}

.stream-line:nth-child(1) { top: 30%; animation-delay: 0s; }
.stream-line:nth-child(2) { top: 70%; animation-delay: 2s; }

@keyframes streamAnimate {
    0% { transform: translateY(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(100px); opacity: 0; }
}

/* Ajuste de delay de animação reveal */
.delay-1 { animation-delay: 0.2s; }