/* =========================================
   VARIÁVEIS & RESET
   ========================================= */
:root {
    --bg-dark: #020617;       /* Slate 950 - Fundo muito escuro */
    --bg-card: #1e293b;       /* Slate 800 - Cards */
    --primary: #3b82f6;       /* Azul */
    --accent: #06b6d4;        /* Ciano */
    --text-main: #f8fafc;     /* Branco quase puro */
    --text-muted: #cbd5e1;    /* Cinza claro (muito legível) */
    
    --font-main: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden; /* Evita rolagem lateral */
    
    /* Textura de Fundo Sutil */
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* Utilitários */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px; /* Margem de segurança lateral para celular */
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* Tipografia Fluida (Ajusta sozinha do celular pro PC) */
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 800; line-height: 1.1; margin-bottom: 20px; }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 700; margin-bottom: 20px; color: white; }
p { color: var(--text-muted); font-size: 1rem; margin-bottom: 20px; }

.text-gradient {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.mono {
    font-family: var(--font-mono); color: var(--accent); font-size: 0.8rem;
    letter-spacing: 2px; text-transform: uppercase; display: block; margin-bottom: 10px;
}

/* Botão */
.btn {
    display: inline-block; padding: 12px 30px;
    background: var(--primary); color: white;
    font-weight: 700; border-radius: 6px; text-transform: uppercase;
    font-size: 0.85rem; letter-spacing: 1px;
    border: 1px solid rgba(255,255,255,0.1);
}
.btn:hover { background: var(--accent); transform: translateY(-3px); }

/* =========================================
   HEADER
   ========================================= */
header {
    position: fixed; top: 0; width: 100%; padding: 15px 0; z-index: 1000;
    background: rgba(2, 6, 23, 0.95); /* Quase sólido para leitura */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.5rem; font-weight: 800; letter-spacing: -1px; }
.dot { color: var(--primary); }

.nav-links { display: flex; gap: 30px; }
.nav-links a { font-size: 0.9rem; font-weight: 500; color: var(--text-muted); }
.nav-links a:hover { color: white; }

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    position: relative; min-height: 100vh;
    display: flex; align-items: center;
    padding-top: 80px;
}
.hero-bg {
    position: absolute; inset: 0;
    background-image: url('https://images.unsplash.com/photo-1621905251189-08b45d6a269e?q=80&w=2069&auto=format&fit=crop');
    background-size: cover; background-position: center;
}
.hero-overlay {
    position: absolute; inset: 0;
    /* Fundo bem escuro para o texto branco aparecer */
    background: rgba(2, 6, 23, 0.9); 
}
.hero-content { position: relative; z-index: 2; max-width: 800px; }
.hero-content p { max-width: 600px; font-size: 1.1rem; border-left: 3px solid var(--primary); padding-left: 20px; }

/* =========================================
   CLIENTES (MARQUEE)
   ========================================= */
.clients { padding: 40px 0; background: #000; border-bottom: 1px solid #333; }
.marquee-wrapper { overflow: hidden; white-space: nowrap; position: relative; }
.marquee-content { display: inline-flex; animation: scroll 30s linear infinite; }
.client-logo { height: 35px; margin: 0 40px; filter: grayscale(100%) opacity(0.6); }

/* =========================================
   SOBRE (ALINHAMENTO CHECKLIST)
   ========================================= */
.about-section { padding: 100px 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }

.check-list li {
    display: flex; align-items: flex-start; /* Alinha topo */
    gap: 15px; margin-bottom: 15px;
    font-size: 1rem; color: white;
}
.check-icon { color: var(--primary); font-weight: bold; }

.about-image img { border-radius: 8px; border: 1px solid rgba(255,255,255,0.1); }

/* =========================================
   SERVIÇOS (CARDS)
   ========================================= */
.services { padding: 100px 0; background: rgba(30, 41, 59, 0.3); }
.section-header { margin-bottom: 50px; }
.grid-services { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }

.card {
    background: var(--bg-card); padding: 30px;
    border: 1px solid rgba(255,255,255,0.05); border-radius: 12px;
    transition: 0.3s;
}
.card:hover { transform: translateY(-5px); border-color: var(--primary); }
.icon-box { font-size: 2rem; margin-bottom: 20px; }
.card h3 { color: white; margin-bottom: 10px; font-size: 1.3rem; }

/* =========================================
   PROJETOS
   ========================================= */
.projects-section { padding: 100px 0; }
.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }

.project-card { 
    position: relative; height: 350px; border-radius: 12px; overflow: hidden; 
    border: 1px solid rgba(255,255,255,0.1);
}
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.project-card:hover img { transform: scale(1.1); }
.project-info {
    position: absolute; bottom: 0; left: 0; width: 100%; padding: 20px;
    background: linear-gradient(to top, black, transparent);
}
.project-cat { font-family: var(--font-mono); font-size: 0.7rem; color: var(--accent); background: rgba(0,0,0,0.6); padding: 3px 8px; border-radius: 4px;}
.project-info h3 { color: white; margin-top: 5px; }

/* =========================================
   STATS (CONTADOR LEGÍVEL)
   ========================================= */
.stats-section { 
    position: relative; padding: 120px 0; 
    background-image: url('https://images.unsplash.com/photo-1541888946425-d81bb19240f5?q=80&w=2070&auto=format&fit=crop');
    background-size: cover; background-attachment: fixed;
}
.stats-overlay { position: absolute; inset: 0; background: rgba(2, 6, 23, 0.95); } /* Quase preto */
.stats-wrapper { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 50px; }

.glass-box {
    background: rgba(30, 41, 59, 0.6); /* Cinza Sólido */
    padding: 40px; border-radius: 12px; border: 1px solid rgba(59,130,246,0.3);
    text-align: center; min-width: 300px;
}
.counter-val { font-family: var(--font-mono); font-size: 3.5rem; color: white; font-weight: 700; }
.counter-val::before { content: '+'; color: var(--primary); }
.counter-label { color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }

/* =========================================
   FOOTER
   ========================================= */
.site-footer { background: #000; padding-top: 60px; border-top: 1px solid #333; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand h3 { font-size: 1.8rem; margin-bottom: 10px; color: white; }
.footer-col h4 { color: white; margin-bottom: 20px; }
.contact-row { margin-bottom: 10px; display: flex; gap: 10px; color: var(--text-muted); }
.footer-bottom { border-top: 1px solid #222; padding: 20px 0; text-align: center; color: #666; font-size: 0.8rem; }

/* Animações */
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.fade-in { opacity: 0; transform: translateY(30px); transition: 0.8s ease-out; }
.visible { opacity: 1; transform: translateY(0); }

/* =========================================
   MOBILE (O QUE ARRUMA O CELULAR)
   ========================================= */
@media (max-width: 768px) {
    /* Esconde menu, mantém botão */
    .nav-links { display: none; }
    
    /* Hero: Centraliza e ajusta margem */
    .hero { text-align: center; }
    .hero-content p { border-left: none; padding-left: 0; margin: 0 auto 30px; }
    
    /* Empilha colunas (Transforma grid em 1 coluna) */
    .about-grid, .stats-wrapper, .footer-grid {
        grid-template-columns: 1fr;
        flex-direction: column;
        display: flex;
        gap: 50px;
    }
    
    /* Ordem do Sobre: Imagem primeiro, texto depois */
    .about-image { order: -1; }
    
    /* Footer Centralizado */
    .footer-grid { text-align: center; gap: 30px; }
    .contact-row { justify-content: center; }
    
    /* Ajustes Gerais */
    .container { padding: 0 20px; } /* Garante que texto não cola na borda */
    .section-header h2 { font-size: 2rem; }
    
    /* Remove efeito parallax e fundo fixo no mobile (melhora performance e visual) */
    .stats-section { background-attachment: scroll; }
}