:root {
  --bg: #0b0910;
  --bg-rgb: 11, 9, 16;
  --bg-2: #110d17;
  --card: #18131f;
  --card-2: #211a2b;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f7f3fa;
  --muted: #b4a9bf;
  --p1: #ff7a00;
  --p1-rgb: 255, 122, 0;
  --p2: #ff2e88;
  --p2-rgb: 255, 46, 136;
  --p3: #ffc53d;
  --soft: #ffb27a;
  --grad: linear-gradient(135deg, var(--p1), var(--p2));
  --wa: #25d366;
  --radius: 18px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.7);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: Poppins, Inter, sans-serif; line-height: 1.2; }
.container { width: min(1160px, 100% - 40px); margin-inline: auto; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ico { width: 20px; height: 20px; }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: 15px; border: 1px solid transparent; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s; font-family: inherit; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 30px -10px rgba(var(--p1-rgb), .7); }
.btn-ghost { border-color: var(--line); background: rgba(255,255,255,.04); color: var(--text); }
.btn-ghost:hover { background: rgba(255,255,255,.08); }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-block { width: 100%; }

/* Navegação */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(var(--bg-rgb), .82); backdrop-filter: blur(14px); border-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: Poppins, sans-serif; font-weight: 600; font-size: 19px; }
.brand b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 700; }
.menu { display: flex; align-items: center; gap: 30px; font-size: 15px; color: var(--muted); }
.menu a:not(.btn):hover { color: var(--text); }
.menu .btn { color: #fff; }
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; width: 40px; height: 40px; flex-direction: column; justify-content: center; gap: 6px; padding: 8px; }
.menu-toggle span { height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }

/* Hero */
.hero { position: relative; padding: 150px 0 100px; overflow: hidden; }
.glow { position: absolute; border-radius: 50%; filter: blur(110px); opacity: .45; pointer-events: none; }
.glow-1 { width: 520px; height: 520px; background: var(--p1); top: -180px; left: -160px; }
.glow-2 { width: 460px; height: 460px; background: var(--p2); bottom: -220px; right: -120px; opacity: .3; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--wa); box-shadow: 0 0 0 4px rgba(37, 211, 102, .2); }
.hero h1 { font-size: clamp(36px, 5.4vw, 62px); margin: 22px 0 10px; font-weight: 700; }
.role { font-family: Poppins, sans-serif; font-size: clamp(18px, 2vw, 22px); color: var(--text); opacity: .9; }
.lead { color: var(--muted); font-size: 18px; margin: 14px 0 32px; max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.stats { list-style: none; display: flex; gap: 40px; margin-top: 48px; flex-wrap: wrap; }
.stats strong { display: block; font-family: Poppins, sans-serif; font-size: 30px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats span { color: var(--muted); font-size: 14px; }
.hero-art { position: relative; }
.art-card { position: relative; background: linear-gradient(160deg, var(--card-2), var(--card)); border: 1px solid var(--line); border-radius: 28px; padding: 34px; box-shadow: var(--shadow); transform: rotate(-2deg); }
.art-card img { width: 92px; margin-bottom: 26px; filter: drop-shadow(0 12px 30px rgba(var(--p1-rgb),.5)); }
.code { font-family: 'SFMono-Regular', Consolas, monospace; font-size: 14px; color: #eadff0; line-height: 1.9; background: rgba(0,0,0,.25); padding: 18px 20px; border-radius: 14px; }
.c1 { color: var(--soft); } .c2 { color: #ffd166; } .c3 { color: #ff7ab6; } .c4 { color: #86efac; }
.float-badge { position: absolute; background: var(--card-2); border: 1px solid var(--line); padding: 10px 16px; border-radius: 14px; font-size: 14px; font-weight: 600; box-shadow: var(--shadow); animation: float 5s ease-in-out infinite; }
.b1 { top: -18px; right: 10px; } .b2 { bottom: -18px; left: -10px; animation-delay: -2.5s; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* Seções */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 50px; }
.section-head p { color: var(--muted); margin-top: 12px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 10px; }
h2 { font-size: clamp(28px, 3.6vw, 42px); }

/* Serviços */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; }
.service { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; transition: transform .3s, border-color .3s; }
.service:hover { transform: translateY(-6px); border-color: rgba(var(--p1-rgb),.5); }
.service .num { width: 48px; height: 48px; border-radius: 14px; background: var(--grad); display: grid; place-items: center; font-family: Poppins; font-weight: 700; margin-bottom: 20px; }
.service h3 { font-size: 20px; margin-bottom: 8px; }
.service p { color: var(--muted); }

/* Projetos */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 36px; }
.chip { padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; font: inherit; font-size: 14px; transition: .2s; }
.chip:hover { color: var(--text); }
.chip.active { background: var(--grad); color: #fff; border-color: transparent; }
.projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 26px; }
.project { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; cursor: pointer; transition: transform .3s, box-shadow .3s, border-color .3s; display: flex; flex-direction: column; text-align: left; color: inherit; font: inherit; padding: 0; }
.project:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(var(--p2-rgb),.4); }
.project .thumb { aspect-ratio: 16/10; background: var(--card-2); overflow: hidden; position: relative; }
.project .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.project:hover .thumb img { transform: scale(1.06); }
.project .thumb .badge { position: absolute; top: 12px; left: 12px; background: rgba(var(--bg-rgb),.8); backdrop-filter: blur(6px); padding: 4px 12px; border-radius: 999px; font-size: 12px; }
.project .thumb .count { position: absolute; bottom: 12px; right: 12px; background: rgba(var(--bg-rgb),.8); padding: 3px 10px; border-radius: 999px; font-size: 12px; }
.project .no-img { width: 100%; height: 100%; display: grid; place-items: center; background: var(--grad); opacity: .7; font-family: Poppins; font-size: 42px; font-weight: 700; }
.project .info { padding: 22px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.project h3 { font-size: 19px; }
.project p { color: var(--muted); font-size: 15px; flex: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 12px; padding: 3px 10px; border-radius: 999px; background: rgba(var(--p1-rgb),.15); color: var(--soft); }
.empty { grid-column: 1 / -1; text-align: center; padding: 60px 20px; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }

/* Sobre */
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; align-items: center; }
.about-card { aspect-ratio: 1; border-radius: 28px; background: radial-gradient(circle at 30% 20%, rgba(var(--p1-rgb),.35), transparent 60%), radial-gradient(circle at 80% 90%, rgba(var(--p2-rgb),.3), transparent 55%), var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; text-align: center; }
.about-card img { width: 46%; filter: drop-shadow(0 20px 40px rgba(var(--p1-rgb),.5)); }
.about-card strong { display: block; font-family: Poppins; font-size: 22px; }
.about-card span { color: var(--muted); font-size: 14px; }
.about-text { color: var(--muted); margin: 18px 0 26px; font-size: 17px; white-space: pre-line; }
.skills { display: flex; flex-wrap: wrap; gap: 10px; }
.skill { padding: 8px 16px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); font-size: 14px; }

/* Contato */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact > div > p { color: var(--muted); margin: 14px 0 26px; }
.contact-list { list-style: none; display: grid; gap: 14px; }
.contact-list a { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); transition: border-color .2s; }
.contact-list a:hover { border-color: rgba(var(--p1-rgb),.5); }
.contact-list .ci { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--grad); flex-shrink: 0; }
.contact-list small { display: block; color: var(--muted); font-size: 12px; }
.contact-form { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 32px; display: grid; gap: 18px; }
.contact-form label { display: grid; gap: 8px; font-size: 14px; font-weight: 500; }
input, select, textarea { width: 100%; padding: 13px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; font-size: 15px; transition: border-color .2s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--p1); }
textarea { resize: vertical; }

/* Rodapé */
.footer { padding: 34px 0; border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer p { color: var(--muted); font-size: 14px; }
.socials { display: flex; gap: 10px; }
.socials a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.socials a:hover { border-color: var(--p1); }

/* WhatsApp flutuante */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 60px; height: 60px; border-radius: 50%; background: var(--wa); display: grid; place-items: center; color: #fff; box-shadow: 0 12px 30px -6px rgba(37,211,102,.6); transition: transform .2s; }
.wa-float svg { width: 32px; height: 32px; }
.wa-float:hover { transform: scale(1.08); }
.wa-float::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa); animation: pulse 2s infinite; }
@keyframes pulse { to { transform: scale(1.6); opacity: 0; } }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(6,4,10,.8); backdrop-filter: blur(6px); }
.modal-box { position: relative; width: min(980px, 100%); max-height: 92vh; overflow: auto; background: var(--card); border: 1px solid var(--line); border-radius: 24px; display: grid; grid-template-columns: 1.3fr 1fr; animation: pop .25s ease; }
@keyframes pop { from { transform: scale(.96); opacity: 0; } }
.modal-close { position: absolute; top: 12px; right: 12px; z-index: 3; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(var(--bg-rgb),.85); color: #fff; font-size: 26px; cursor: pointer; }
.gallery { position: relative; background: #07050a; display: flex; flex-direction: column; }
.gallery > img { width: 100%; aspect-ratio: 4/3; object-fit: contain; }
.g-nav { position: absolute; top: 40%; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(var(--bg-rgb),.8); color: #fff; font-size: 26px; cursor: pointer; }
.g-nav.prev { left: 12px; } .g-nav.next { right: 12px; }
.thumbs { display: flex; gap: 8px; padding: 10px; overflow-x: auto; }
.thumbs img { width: 64px; height: 48px; object-fit: cover; border-radius: 8px; cursor: pointer; opacity: .5; border: 2px solid transparent; flex-shrink: 0; }
.thumbs img.active { opacity: 1; border-color: var(--p2); }
.modal-body { padding: 34px 30px; display: flex; flex-direction: column; gap: 14px; }
.modal-body h3 { font-size: 26px; }
.modal-body p { color: var(--muted); white-space: pre-line; }
.tag-cat { font-size: 13px; font-weight: 600; color: var(--p2); text-transform: uppercase; letter-spacing: 1.5px; }
.modal-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 10px; }

/* Animação de entrada */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* Responsivo */
@media (max-width: 900px) {
  .hero { padding-top: 120px; }
  .hero-grid, .about, .contact { grid-template-columns: 1fr; gap: 50px; }
  .hero-art { max-width: 440px; margin: 0 auto; width: 100%; }
  .about-card { max-width: 360px; margin: 0 auto; width: 100%; }
  .modal-box { grid-template-columns: 1fr; }
  .menu-toggle { display: flex; }
  .menu { position: fixed; top: 76px; left: 0; right: 0; flex-direction: column; gap: 0; padding: 10px 20px 24px; background: rgba(var(--bg-rgb),.97); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); transform: translateY(-120%); transition: transform .35s; }
  .menu a:not(.btn) { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .menu .btn { margin-top: 18px; width: 100%; }
  .nav.open .menu { transform: none; }
  .nav.open { background: rgba(var(--bg-rgb),.97); }
  .nav.open .menu-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav.open .menu-toggle span:nth-child(2) { opacity: 0; }
  .nav.open .menu-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}
@media (max-width: 560px) {
  .section { padding: 70px 0; }
  .projects { grid-template-columns: 1fr; }
  .stats { gap: 26px; }
  .hero-actions .btn { flex: 1; padding: 14px 16px; white-space: nowrap; }
  .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .stats strong { font-size: 24px; }
  .stats span { font-size: 12px; }
  .contact-form { padding: 24px; }
  .footer-inner { flex-direction: column; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } .reveal { opacity: 1; transform: none; } }

/* Chamados */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-note { font-size: 13px; color: var(--muted); text-align: center; min-height: 18px; }

/* =========================================================
   Visual 2.0 — cores vibrantes, profundidade e detalhes
   ========================================================= */
::selection { background: var(--p2); color: #fff; }
body { background: radial-gradient(1200px 600px at 100% -10%, rgba(var(--p2-rgb), .10), transparent 60%), var(--bg); }
h1, h2 { letter-spacing: -0.025em; }

/* Gradiente animado nos destaques */
.grad, .brand b, .stats strong, .eyebrow { background: linear-gradient(90deg, var(--p3), var(--p1), var(--p2), var(--p1), var(--p3)); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 8s linear infinite; }
@keyframes shine { to { background-position: 300% 0; } }

/* Botões com brilho */
.btn-primary { background: linear-gradient(135deg, var(--p1), var(--p2)); box-shadow: 0 12px 34px -10px rgba(var(--p2-rgb), .75), inset 0 1px 0 rgba(255,255,255,.25); position: relative; overflow: hidden; }
.btn-primary::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s; }
.btn-primary:hover::after { transform: translateX(120%); }
.btn-ghost { backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: rgba(var(--p1-rgb), .6); }

/* Hero com grade e brilhos */
.hero { padding-bottom: 120px; }
.hero::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%); pointer-events: none; }
.glow-1 { background: var(--p1); opacity: .35; }
.glow-2 { background: var(--p2); opacity: .35; }
.hero h1 { font-size: clamp(38px, 6vw, 72px); }
.pill { border-color: rgba(var(--p1-rgb), .35); background: rgba(var(--p1-rgb), .08); color: #ffd9bf; }
.art-card { background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.02)), var(--card); border: 1px solid rgba(255,255,255,.1); }
.art-card::before { content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(135deg, var(--p1), transparent 40%, transparent 60%, var(--p2)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.c1 { color: var(--soft); } .c2 { color: var(--p3); } .c3 { color: #ff7ab6; }
.float-badge { background: rgba(var(--bg-rgb), .85); backdrop-filter: blur(10px); border-color: rgba(var(--p1-rgb), .35); }

/* Faixa de tecnologias rolando */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--bg-2); padding: 18px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 46px; width: max-content; animation: marquee 30s linear infinite; }
.marquee span { font-family: Poppins, sans-serif; font-weight: 600; font-size: 18px; color: var(--muted); white-space: nowrap; display: flex; align-items: center; gap: 46px; }
.marquee span::after { content: '✦'; color: var(--p1); font-size: 14px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Cartões com borda em gradiente no hover */
.service, .project, .contact-list a, .assist-card, .contact-form { position: relative; }
.service::after, .project::after { content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .3s; pointer-events: none; }
.service:hover::after, .project:hover::after { opacity: 1; }
.service:hover, .project:hover { border-color: transparent; box-shadow: 0 24px 60px -24px rgba(var(--p2-rgb), .45); }
.service .num { background: var(--grad); box-shadow: 0 10px 24px -8px rgba(var(--p2-rgb), .7); }
.project .thumb::after { content: 'Ver detalhes →'; position: absolute; inset: 0; display: grid; place-items: center; font-weight: 600; background: linear-gradient(180deg, rgba(var(--p2-rgb), .15), rgba(var(--bg-rgb), .75)); opacity: 0; transition: opacity .3s; }
.project:hover .thumb::after { opacity: 1; }
.tag { background: rgba(var(--p1-rgb), .14); color: var(--soft); }
.chip.active { box-shadow: 0 8px 20px -8px rgba(var(--p2-rgb), .7); }
.section-alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.about-card { background: radial-gradient(circle at 30% 20%, rgba(var(--p1-rgb), .35), transparent 60%), radial-gradient(circle at 80% 90%, rgba(var(--p2-rgb), .3), transparent 55%), var(--card); }

/* Ajustes finos no celular */
@media (max-width: 900px) {
  .hero { padding: 112px 0 80px; }
  .hero-art { max-width: 360px; }
  .art-card { padding: 24px; transform: rotate(-1.5deg); }
  .art-card img { width: 64px; margin-bottom: 18px; }
  .code { font-size: 12.5px; }
}
@media (max-width: 560px) {
  .container { width: calc(100% - 32px); }
  .hero h1 { font-size: 40px; }
  .lead { font-size: 16.5px; }
  .float-badge { font-size: 12px; padding: 7px 12px; }
  .b1 { right: 0; } .b2 { left: 0; }
  .section-head { margin-bottom: 34px; }
  .service { padding: 24px; }
  .marquee span { font-size: 15px; gap: 32px; }
  .marquee-track { gap: 32px; }
}
