/* --- CONFIGURAÇÕES BASE E BARRA DE ROLAGEM LUXUOSA --- */
:root {
    --bg-dark: #070707; 
    --text-white: #ffffff;
    --text-muted: #888888;
    --line-color: rgba(255, 255, 255, 0.1); 
    --font-sans: 'Inter', sans-serif;
    --font-serif: 'Playfair Display', serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background-color: var(--bg-dark); color: var(--text-white); font-family: var(--font-sans); line-height: 1.6; overflow-x: hidden; }

/* CUSTOM SCROLLBAR */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: #222; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #444; }

/* --- PRELOADER --- */
#preloader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background-color: var(--bg-dark); z-index: 999999;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    transition: opacity 0.8s ease-out, visibility 0.8s ease-out;
}
.preloader-logo {
    font-size: 2rem; font-weight: 700; color: var(--text-white); margin-bottom: 20px;
    letter-spacing: 1px; animation: pulse-logo 1.5s infinite alternate;
}
.preloader-progress {
    width: 150px; height: 2px; background: rgba(255, 255, 255, 0.1);
    position: relative; overflow: hidden;
}
.preloader-progress::after {
    content: ''; position: absolute; top: 0; left: 0; height: 100%; width: 0%;
    background: var(--text-white);
    animation: load-bar 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes pulse-logo { 0% { opacity: 0.3; } 100% { opacity: 1; } }
@keyframes load-bar { 0% { width: 0%; } 100% { width: 100%; } }

/* --- WHATSAPP FLUTUANTE --- */
.floating-wa {
    position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px;
    background-color: var(--text-white); color: var(--bg-dark);
    border-radius: 50%; display: flex; justify-content: center; align-items: center;
    z-index: 9000; box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    opacity: 0; transform: translateY(20px) scale(0.9);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1); cursor: pointer; visibility: hidden;
}
.floating-wa svg { width: 30px; height: 30px; }
.floating-wa:hover { transform: translateY(0) scale(1.05); box-shadow: 0 15px 35px rgba(255,255,255,0.2); animation: none; }
.floating-wa.show { visibility: visible; opacity: 1; transform: translateY(0) scale(1); animation: float-pulse 2s infinite; }
@keyframes float-pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(255, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

/* --- AURA --- */
.cursor-aura {
    position: fixed; top: 0; left: 0; width: 600px; height: 600px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0) 50%);
    pointer-events: none; transform: translate(-50%, -50%); z-index: 8000;
}

/* --- TEXTO LETRA POR LETRA --- */
.split-text { visibility: hidden; }
.split-text.animated { visibility: visible; }
.letter {
    display: inline-block; opacity: 0; transform: translateY(15px);
    animation: letterFadeUp 0.5s cubic-bezier(0.2, 1, 0.3, 1) forwards;
    will-change: transform, opacity;
}
@keyframes letterFadeUp { 0% { opacity: 0; transform: translateY(15px); } 100% { opacity: 1; transform: translateY(0); } }

/* --- HERO & FOTO --- */
.hero { min-height: 100vh; padding: 180px 5% 80px 5%; display: flex; flex-direction: column; justify-content: center; position: relative; }
.hero-bg {
    position: absolute; top: 0; right: 0; width: 65%; height: 100%;
    background-image: url('sua-foto.png'); /* 📸 ATENÇÃO AQUI: Deixei .png para garantir que encontre sua foto */
    background-size: cover; background-position: center 15%; filter: grayscale(100%) contrast(115%); 
    opacity: 0.5; z-index: 1; pointer-events: none;
    -webkit-mask-image: linear-gradient(to left, black 40%, transparent 100%);
    mask-image: linear-gradient(to left, black 40%, transparent 100%);
}
.hero-content, .hero-bottom-info { position: relative; z-index: 2; }
.hero-content h1 { font-size: clamp(3rem, 6vw, 6rem); font-weight: 400; line-height: 1.05; margin-bottom: 20px; }
.serif-italic { font-family: var(--font-serif); font-style: italic; color: #dedede; }

/* --- LETREIRO INFINITO (MARQUEE) --- */
.marquee-section {
    overflow: hidden; width: 100%; padding: 30px 0; border-top: 1px solid var(--line-color);
    border-bottom: 1px solid var(--line-color); background: var(--bg-dark); display: flex;
    user-select: none; pointer-events: none;
}
.marquee-track { display: flex; width: max-content; animation: marquee-scroll 25s linear infinite; }
.marquee-text { font-family: var(--font-serif); font-size: clamp(2.5rem, 5vw, 4.5rem); color: rgba(255, 255, 255, 0.05); white-space: nowrap; }
@keyframes marquee-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* --- REVEAL GERAL --- */
.reveal { opacity: 0; transform: translateY(40px); transition: all 1s cubic-bezier(0.25, 1, 0.5, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }

/* --- SEÇÕES GERAIS --- */
.section-marker { color: var(--text-muted); font-size: 0.75rem; letter-spacing: 2px; margin-bottom: 40px; text-transform: uppercase; }
.sobre-section, .servicos-section, .portfolio-section, .diferenciais-section, .depoimentos-section, .faq-section { padding: 120px 5%; border-top: 1px solid var(--line-color); }
.title-large { font-size: clamp(2rem, 3.5vw, 3.5rem); font-weight: 400; }
.title-huge { font-family: var(--font-serif); font-size: clamp(3rem, 5vw, 4.5rem); font-weight: 400; margin-bottom: 80px; }
.divider { height: 1px; background-color: var(--line-color); margin: 30px 0; }

.sobre-container { display: flex; position: relative; }
.sobre-bg-text { font-family: var(--font-serif); font-size: 15vw; color: rgba(255, 255, 255, 0.03); position: absolute; left: -5%; top: -50px; user-select: none; }
.sobre-content { margin-left: auto; max-width: 650px; z-index: 2; }
.sobre-content p { color: var(--text-muted); margin-bottom: 20px; font-size: 1.05rem; }
.tech-stack { font-family: monospace; color: #666; font-size: 0.85rem; }

/* --- 📈 NÚMEROS DE CREDIBILIDADE (STATS) --- */
.stats-grid {
    display: flex; gap: 60px; margin-top: 40px; margin-bottom: 20px; 
    padding-top: 40px; border-top: 1px solid var(--line-color);
}
.stat-item { display: flex; flex-direction: column; }
.stat-number { font-size: 3.5rem; line-height: 1; margin-bottom: 5px; color: var(--text-white); }
.stat-label { font-size: 0.75rem; color: var(--text-muted); letter-spacing: 2px; text-transform: uppercase; font-family: monospace; }

/* --- SERVIÇOS --- */
.service-row { display: flex; padding: 40px 0; border-top: 1px solid var(--line-color); text-decoration: none; color: var(--text-white); }
.service-num { width: 80px; color: var(--text-muted); font-family: monospace; }
.service-info { flex: 1; max-width: 600px; }
.service-info h3 { font-size: 1.8rem; font-weight: 400; margin-bottom: 15px; }
.service-info p { color: var(--text-muted); font-size: 1rem; }
.service-arrow { font-size: 1.5rem; color: var(--text-muted); transition: 0.3s; }
.service-row:hover .service-arrow { transform: translateX(10px); color: var(--text-white); }

/* --- PORTFOLIO --- */
.portfolio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }

/* A caixa principal da imagem agora aceita backgrounds */
.portfolio-img-box { 
    height: 400px; 
    background-color: #111; 
    border: 1px solid var(--line-color); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    margin-bottom: 20px; 
    transition: 0.4s; 
    background-size: cover; 
    background-position: center; 
    position: relative; 
    z-index: 1; 
}

/* Película escura por cima da imagem para manter a estética CodeBlack */
.portfolio-img-box::before {
    content: ''; 
    position: absolute; 
    inset: 0; 
    background: rgba(0,0,0,0.5); 
    transition: 0.4s; 
    z-index: -1;
}

/* Imagens de Fundo de cada projeto (Imagens Premium Automáticas) */
.bg-barber { background-image: url('https://images.unsplash.com/photo-1503951914875-452162b0f3f1?ixlib=rb-1.2.1&auto=format&fit=crop&w=800&q=80'); }
.bg-odonto { background-image: url('https://images.unsplash.com/photo-1606811841689-23dfddce3e95?ixlib=rb-1.2.1&auto=format&fit=crop&w=800&q=80'); }
.bg-fitcore { background-image: url('https://images.unsplash.com/photo-1534438327276-14e5300c3a48?ixlib=rb-1.2.1&auto=format&fit=crop&w=800&q=80'); }
.bg-simulador { background-image: url('https://images.unsplash.com/photo-1611974789855-9c2a0a7236a3?ixlib=rb-1.2.1&auto=format&fit=crop&w=800&q=80'); }

/* Efeitos de Hover (Passar o mouse) */
.portfolio-item:hover .portfolio-img-box { border-color: rgba(255,255,255,0.4); }
.portfolio-item:hover .portfolio-img-box::before { background: rgba(0,0,0,0.85); } /* Escurece mais para ler o texto */

.hover-text { opacity: 0; transition: 0.3s; font-family: var(--font-serif); font-size: 1.2rem; color: #fff; }
.portfolio-item:hover .hover-text { opacity: 1; }

.portfolio-meta { display: flex; justify-content: space-between; color: var(--text-muted); font-size: 0.8rem; margin-bottom: 10px; font-family: monospace; }
.portfolio-item h3 { font-size: 1.8rem; font-family: var(--font-serif); margin-bottom: 10px; }
/* --- DIFERENCIAIS --- */
.dif-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 80px; align-items: start; }
.dif-left { position: sticky; top: 150px; }
.dif-left .title-huge { margin-bottom: 40px; line-height: 1.1; }
.dif-item { display: flex; gap: 20px; padding: 40px 0; border-bottom: 1px solid var(--line-color); }
.dif-item:first-child { padding-top: 0; }
.dif-item svg { width: 32px; height: 32px; color: #555; flex-shrink: 0; }
.dif-item h3 { font-size: 1.4rem; font-family: var(--font-serif); font-weight: 400; margin-bottom: 10px; }
.dif-item p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }

/* --- DEPOIMENTOS --- */
.depoimentos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.dep-card { background-color: rgba(255, 255, 255, 0.02); border: 1px solid var(--line-color); padding: 40px; border-radius: 4px; display: flex; flex-direction: column; }
.stars { color: #a3a3a3; font-size: 1.2rem; margin-bottom: 20px; letter-spacing: 2px; }
.dep-card p { color: var(--text-muted); font-size: 1.05rem; line-height: 1.6; flex: 1; }
.dep-divider { width: 100%; height: 1px; background-color: var(--line-color); margin: 30px 0; }
.dep-author { display: flex; align-items: center; gap: 15px; }
.dep-avatar { width: 45px; height: 45px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2); display: flex; justify-content: center; align-items: center; font-size: 0.8rem; font-family: monospace; color: #888; }
.dep-author h4 { font-size: 0.95rem; font-weight: 600; }
.dep-author span { font-size: 0.75rem; color: #666; text-transform: uppercase; letter-spacing: 1px; font-family: monospace; }

/* --- NAVBAR & BOTÕES --- */
.navbar { position: fixed; top: 0; width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 25px 5%; background: rgba(7,7,7,0.85); backdrop-filter: blur(10px); z-index: 1000; border-bottom: 1px solid var(--line-color); }
.navbar .logo { font-size: 1.2rem; font-weight: 700; }
.navbar nav ul { display: flex; list-style: none; gap: 30px; }
.navbar nav a { text-decoration: none; color: var(--text-muted); font-size: 0.85rem; text-transform: uppercase; transition: 0.3s; }
.navbar nav a:hover { color: var(--text-white); }
.btn-nav, .btn-primary { text-decoration: none; background: var(--text-white); color: var(--bg-dark); padding: 12px 24px; font-weight: 600; text-transform: uppercase; font-size: 0.85rem; transition: 0.3s; display: inline-block; }
.btn-primary { padding: 16px 36px; font-size: 1rem; }
.btn-nav:hover, .btn-primary:hover { background-color: #d4d4d4; }

/* --- FAQ --- */
.faq-list { max-width: 900px; margin: 0 auto; }
.faq-row { border-bottom: 1px solid var(--line-color); }
.faq-question { width: 100%; background: none; border: none; color: white; padding: 40px 0; text-align: left; cursor: pointer; display: flex; justify-content: space-between; font-size: 1.2rem; }
.faq-icon { font-size: 1.5rem; font-weight: 300; transition: transform 0.3s; }
.faq-row.active .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: 0.4s ease; color: var(--text-muted); }
.faq-row.active .faq-answer { max-height: 250px; padding-bottom: 40px; font-size: 1.05rem; }

/* --- CTA FINAL --- */
.cta-section { padding: 150px 5%; text-align: center; border-top: none; display: flex; flex-direction: column; align-items: center; background-color: var(--bg-dark); }
.title-giant { font-size: clamp(2.5rem, 4.5vw, 4.5rem); font-weight: 400; line-height: 1.1; margin-bottom: 30px; max-width: 900px; }
.cta-section p { color: var(--text-muted); max-width: 500px; margin-bottom: 50px; font-size: 1.1rem; }

/* --- FOOTER --- */
.footer { border-top: none; padding: 80px 5% 40px 5%; background-color: var(--bg-dark); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; margin-bottom: 80px; }
.footer-col h3 { font-size: 1.2rem; margin-bottom: 20px; }
.footer-location { margin-top: 20px; font-size: 0.85rem !important; opacity: 0.6; }
.footer-col h4 { font-size: 0.75rem; color: var(--text-white); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 25px; }
.footer-col p, .footer-col a { color: var(--text-muted); text-decoration: none; display: block; margin-bottom: 15px; font-size: 0.95rem; transition: color 0.3s; }
.footer-col a:hover { color: var(--text-white); }
.footer-bottom { display: flex; justify-content: space-between; border-top: 1px solid var(--line-color); padding-top: 30px; color: #555; font-family: monospace; font-size: 0.8rem; }

/* --- RESPONSIVIDADE --- */
@media (max-width: 900px) {
    .navbar nav, .cursor-aura { display: none; }
    .floating-wa { bottom: 20px; right: 20px; width: 50px; height: 50px; }
    .floating-wa svg { width: 25px; height: 25px; }
    .hero { padding-top: 120px; }
    .hero-bg { width: 100%; -webkit-mask-image: none; mask-image: none; opacity: 0.2; } 
    .sobre-bg-text { display: none; }
    .sobre-content { margin: 0; }
    .stats-grid { gap: 20px; } /* Ajusta os números no celular */
    .stat-number { font-size: 2.5rem; }
    .service-row { flex-direction: column; position: relative; }
    .service-num { margin-bottom: 15px; }
    .service-arrow { position: absolute; right: 0; top: 40px; }
    .portfolio-grid { grid-template-columns: 1fr; }
    .dif-grid { grid-template-columns: 1fr; gap: 40px; }
    .dif-left { position: relative; top: 0; }
    .depoimentos-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 50px; }
    .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}