/* =====================================================================
   style.css — Portfólio Rodrigo Ferreira (v3 · ARQUIVO COMPLETO)
   Substitui TODO o style.css anterior (incluindo os blocos colados).
   Estrutura: variáveis > base > header > hero > seções > cards > diálogos
              > efeitos > responsivo (1100 / 960 / 900 / 820 / 620 / 480)
   ===================================================================== */

/* ---------- 1. Variáveis ---------- */
:root {
  --ink: #0b1226;
  --ink-2: #1e293b;
  --muted: #475569;
  --subtle: #64748b;
  --line: #e2e8f0;
  --paper: #ffffff;
  --page: #f6f8fc;
  --indigo: #4f46e5;
  --indigo-dark: #4338ca;
  --navy: #070b18;
  --navy-2: #0b1226;
  --grad: linear-gradient(120deg, #4f46e5 0%, #2563eb 55%, #06b6d4 110%);
  --grad-soft: linear-gradient(100deg, #a5b4fc 0%, #7dd3fc 60%, #67e8f9 100%);
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Plus Jakarta Sans", "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05), 0 10px 24px -14px rgba(15, 23, 42, .2);
  --shadow-md: 0 2px 4px rgba(15, 23, 42, .04), 0 28px 50px -26px rgba(37, 99, 235, .4);
  --radius: 20px;
  font-family: var(--font-body);
  color: var(--ink-2);
  background: var(--page);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { min-width: 320px; margin: 0; background: var(--page); color: var(--ink-2); font-size: 16px; line-height: 1.65; overflow-x: hidden; }
img, video { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible { outline: 3px solid rgba(99, 102, 241, .6); outline-offset: 3px; }
::selection { background: #c7d2fe; color: var(--ink); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); text-wrap: balance; }
svg.icon { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon-small { width: 14px !important; height: 14px !important; }
.container { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 200; top: -60px; left: 16px; padding: 10px 14px; border-radius: 8px; background: var(--ink); color: #fff; }
.skip-link:focus { top: 12px; }

/* ---------- 3. Header ---------- */
.scroll-progress { position: fixed; z-index: 120; top: 0; left: 0; right: 0; height: 3px; background: var(--grad); transform: scaleX(0); transform-origin: left; pointer-events: none; }
.site-header { position: sticky; z-index: 30; top: 0; border-bottom: 1px solid rgba(255, 255, 255, .07); background: rgba(7, 11, 24, .74); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); transition: background .3s, box-shadow .3s; }
.site-header.is-scrolled { background: rgba(7, 11, 24, .94); box-shadow: 0 14px 30px -18px rgba(0, 0, 0, .6); }
.nav { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: #fff; font-family: var(--font-head); font-size: 15px; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }
.brand-mark { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 12px; background: var(--grad); color: #fff; font-size: 12px; font-weight: 800; box-shadow: 0 8px 20px -6px rgba(37, 99, 235, .7); }
.brand-suffix { color: #94a3b8; font-weight: 500; }
.nav-links { display: flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 550; }
.nav-links > a:not(.nav-contact) { padding: 8px 13px; border-radius: 10px; color: #cbd5e1; transition: color .2s, background .2s; }
.nav-links > a:not(.nav-contact):hover { background: rgba(255, 255, 255, .08); color: #fff; }
.nav-links > a.is-active { background: rgba(255, 255, 255, .1); color: #fff; }
.nav-contact { display: inline-flex; align-items: center; gap: 7px; margin-left: 8px; padding: 10px 16px; border-radius: 12px; background: #fff; color: var(--navy-2); font-weight: 650; transition: transform .2s var(--ease), box-shadow .2s; }
.nav-contact:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -10px rgba(125, 211, 252, .6); }
.nav-contact .icon-small { color: var(--indigo); }
.menu-toggle { display: none; }

/* ---------- 4. Botões ---------- */
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 20px; border: 1px solid transparent; border-radius: 12px; font-size: 14px; font-weight: 650; line-height: 1; cursor: pointer; transition: transform .2s var(--ease), background-position .4s ease, box-shadow .25s, border-color .2s, color .2s, background-color .2s; }
.button:hover { transform: translateY(-2px); }
.button:disabled { opacity: .65; cursor: wait; transform: none; }
.button-primary { background: var(--grad); background-size: 160% 100%; color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 14px 28px -12px rgba(37, 99, 235, .7); }
.button-primary:hover { background-position: 100% 0; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 20px 34px -12px rgba(37, 99, 235, .75); }
.button-secondary { border-color: #d3dae8; background: #fff; color: var(--ink-2); }
.button-secondary:hover { border-color: var(--indigo); color: var(--indigo-dark); }
.button-whatsapp { border-color: #d3dae8; background: #fff; color: #047857; }
.button-whatsapp:hover { border-color: #6ee7b7; background: #ecfdf5; }
.hero-actions, .contact-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }

/* ---------- 5. Hero ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; color: #cbd5e1; background: radial-gradient(1100px 560px at 88% -12%, rgba(79, 70, 229, .5), transparent 60%), radial-gradient(900px 560px at -8% 112%, rgba(6, 182, 212, .3), transparent 60%), linear-gradient(180deg, var(--navy), var(--navy-2) 72%, #0d1530); }
.hero::before { position: absolute; inset: 0; z-index: -1; content: ""; pointer-events: none; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 48px 48px; -webkit-mask-image: radial-gradient(ellipse 75% 80% at 70% 30%, #000 5%, transparent 72%); mask-image: radial-gradient(ellipse 75% 80% at 70% 30%, #000 5%, transparent 72%); }
.hero-decoration { position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; }
.hero-decoration-one { top: -180px; right: -100px; width: 560px; height: 560px; background: radial-gradient(circle, rgba(99, 102, 241, .45), transparent 68%); animation: float 16s ease-in-out infinite; }
.hero-decoration-two { bottom: -220px; left: -140px; width: 500px; height: 500px; background: radial-gradient(circle, rgba(34, 211, 238, .3), transparent 68%); animation: float 20s ease-in-out infinite reverse; }
@keyframes float { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(34px, 26px); } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr); align-items: center; gap: clamp(36px, 5vw, 72px); padding-block: clamp(52px, 8vw, 104px); }
.hero-copy { max-width: 700px; }
.hero-copy > * { animation: rise .85s var(--ease) backwards; }
.hero-copy > :nth-child(2) { animation-delay: .08s; }
.hero-copy > :nth-child(3) { animation-delay: .16s; }
.hero-copy > :nth-child(4) { animation-delay: .24s; }
.hero-copy > :nth-child(5) { animation-delay: .32s; }
.hero-copy > :nth-child(6) { animation-delay: .4s; }
.availability { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 24px; padding: 8px 15px; border: 1px solid rgba(52, 211, 153, .35); border-radius: 999px; background: rgba(16, 185, 129, .1); color: #6ee7b7; font-size: 13px; font-weight: 600; }
.pulse-dot { position: relative; width: 8px; height: 8px; flex: none; border-radius: 50%; background: #34d399; }
.pulse-dot::after { position: absolute; inset: -3px; border: 1px solid #34d399; border-radius: 50%; content: ""; animation: pulse 2s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(.7); opacity: .8; } 100% { transform: scale(1.9); opacity: 0; } }
.eyebrow { margin: 0 0 14px; color: #93c5fd; font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.hero h1 { margin: 0; color: #fff; font-size: clamp(2.3rem, 5.4vw, 4.3rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.06; }
.hero h1 span { background: var(--grad-soft); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.hero-lead { max-width: 600px; margin: 22px 0 0; color: #b4c0d6; font-size: clamp(1rem, 1.5vw, 1.14rem); line-height: 1.75; }
.hero .button-secondary, .hero .button-whatsapp { border-color: rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .06); color: #e2e8f0; backdrop-filter: blur(8px); }
.hero .button-secondary:hover { border-color: rgba(165, 180, 252, .7); background: rgba(255, 255, 255, .12); color: #fff; }
.hero .button-whatsapp:hover { border-color: rgba(110, 231, 183, .7); background: rgba(16, 185, 129, .14); color: #a7f3d0; }
.hero-specialties { display: flex; flex-wrap: wrap; gap: 12px 26px; margin-top: 34px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); color: #cbd5e1; font-size: 13px; font-weight: 560; }
.hero-specialties span { display: inline-flex; align-items: center; gap: 8px; }
.hero-specialties .icon { color: #67e8f9; }

/* ---------- 6. Cartão de perfil ---------- */
.profile-card { position: relative; width: 100%; padding: 22px; border-radius: 26px; background: #fff; color: var(--ink-2); box-shadow: 0 44px 80px -32px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .1), 0 0 90px -24px rgba(99, 102, 241, .55); transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s ease-out; animation: rise .9s .25s var(--ease) backwards; }
.profile-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.overline { margin: 0; color: var(--subtle); font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: .14em; }
.location { margin: 5px 0 0; color: var(--subtle); font-size: 13px; }
.profile-badge { padding: 6px 11px; border: 1px solid #a7f3d0; border-radius: 99px; background: #ecfdf5; color: #047857; font-size: 11px; font-weight: 600; white-space: nowrap; }
.profile-person { position: relative; display: flex; flex-direction: column; gap: 14px; margin: 18px 0; }
.profile-person h2 { margin: 0; font-size: 22px; font-weight: 750; letter-spacing: -.03em; }
.profile-person p { margin: 3px 0 0; color: var(--subtle); font-size: 13.5px; }
.photo-zoom { position: relative; display: block; width: 100%; aspect-ratio: 1 / 1; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: #f1f5f9; cursor: zoom-in; }
.profile-photo { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 28%; transition: transform .6s var(--ease); }
.photo-eye { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(11, 18, 38, .45); color: #fff; opacity: 0; transition: opacity .25s; }
.photo-eye .icon { width: 46px; height: 46px; stroke-width: 1.5; transform: scale(.8); transition: transform .25s; }
.photo-zoom:hover .photo-eye, .photo-zoom:focus-visible .photo-eye { opacity: 1; }
.photo-zoom:hover .photo-eye .icon, .photo-zoom:focus-visible .photo-eye .icon { transform: scale(1); }
.photo-zoom:hover .profile-photo { transform: scale(1.05); }
.profile-divider { height: 1px; background: #eef2f7; }
.profile-subtitle { margin: 16px 0 6px; }
.contribution-list { margin: 0; padding: 0; list-style: none; }
.contribution-list li { min-height: 54px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid #eef2f7; color: #334155; font-size: 14px; font-weight: 550; }
.contribution-list li:last-child { border-bottom: 0; }
.contribution-number { color: var(--indigo); font-family: var(--font-mono); font-size: 11px; font-weight: 600; }
.contribution-icon { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border: 1px solid #eef2f7; border-radius: 11px; background: #f8fafc; color: #64748b; transition: background .25s, color .25s, border-color .25s; }
.contribution-icon .icon { width: 16px; height: 16px; }
.contribution-arrow { width: 14px !important; height: 14px !important; margin-left: auto; color: #94a3b8; transition: color .2s, transform .2s; }
.contribution-list li:hover .contribution-icon { border-color: transparent; background: var(--grad); color: #fff; }
.contribution-list li:hover .contribution-arrow { color: var(--indigo); transform: translate(2px, -2px); }
.profile-links { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid #eef2f7; }
.profile-links a { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 11px; color: #64748b; transition: border-color .2s, color .2s, transform .2s; }
.profile-links a:hover { border-color: #a5b4fc; color: var(--indigo); transform: translateY(-2px); }
.profile-links a .icon { width: 16px; height: 16px; }
.linkedin-icon { font-size: 13px; font-weight: 800; }
.profile-links > span { margin-left: auto; color: #94a3b8; font-size: 12px; }

/* ---------- 7. Faixa de tecnologias (gerada pelo JS) ---------- */
.tech-marquee { overflow: hidden; padding: 16px 0; border-block: 1px solid rgba(255, 255, 255, .08); background: #0a1024; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.tech-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.tech-marquee:hover .tech-track { animation-play-state: paused; }
.tech-chip { display: inline-flex; align-items: center; gap: 9px; margin-right: 12px; padding: 8px 16px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 99px; background: rgba(255, 255, 255, .04); color: #cbd5e1; font-size: 13px; font-weight: 550; white-space: nowrap; }
.tech-chip::before { width: 6px; height: 6px; border-radius: 50%; background: var(--grad); content: ""; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 8. Estrutura das seções ---------- */
.section { padding-block: clamp(64px, 9vw, 112px); }
.section-white { border-block: 1px solid var(--line); background: #fff; }
#projetos { border-block: 1px solid var(--line); background: linear-gradient(180deg, #eef2fb 0%, #f6f8fc 100%); }
.section-label { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 24px; padding: 7px 14px; border: 1px solid #dbe4ff; border-radius: 99px; background: #eef2ff; color: var(--indigo-dark); font-family: var(--font-mono); font-size: 11.5px; font-weight: 600; letter-spacing: .13em; }
.section-label > span { width: 6px; height: 6px; border-radius: 50%; background: var(--indigo); }
.about-grid h2, .experience-intro h2, .education-intro h2, .section-heading-row h2, .contact-inner h2 { margin: 0; font-weight: 800; letter-spacing: -.035em; line-height: 1.12; }
.about-grid h2, .experience-intro h2, .section-heading-row h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); }
.about-grid h2 span, .experience-intro h2 span, .section-heading-row h2 span { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.section-heading-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-heading-row h2 { max-width: 680px; }
.section-heading-row > p, .section-heading-row > div > p { max-width: 380px; margin: 0; color: var(--subtle); font-size: 15px; line-height: 1.7; }
.project-heading > div > p { margin-top: 12px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; color: var(--indigo); font-size: 14px; font-weight: 650; transition: gap .2s; }
.text-link:hover { gap: 13px; }
.text-link .icon { width: 16px; height: 16px; }

/* Sobre */
.about-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(32px, 6vw, 80px); }
.about-copy { max-width: 640px; color: var(--muted); font-size: 16px; line-height: 1.8; }
.about-copy p { margin: 0 0 14px; }
.about-copy p:first-child { color: var(--ink-2); font-size: 1.08rem; }
.impact-row { counter-reset: impact; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: clamp(40px, 6vw, 64px); }
.impact-row > div { --accent: #4f46e5; position: relative; display: flex; flex-direction: column; gap: 2px; overflow: hidden; padding: 22px 22px 24px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s; }
.impact-row > div:nth-child(2) { --accent: #0891b2; }
.impact-row > div:nth-child(3) { --accent: #059669; }
.impact-row > div:nth-child(4) { --accent: #d97706; }
.impact-row > div::before { margin-bottom: 14px; color: var(--accent); content: "0" counter(impact); counter-increment: impact; font-family: var(--font-mono); font-size: 12px; font-weight: 700; }
.impact-row > div::after { position: absolute; right: 0; bottom: 0; left: 0; height: 3px; background: var(--accent); content: ""; transform: scaleX(.25); transform-origin: left; transition: transform .45s var(--ease); }
.impact-row > div:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.impact-row > div:hover::after { transform: scaleX(1); }
.impact-row strong { color: var(--ink); font-family: var(--font-head); font-size: 19px; font-weight: 750; letter-spacing: -.02em; }
.impact-row span { color: var(--subtle); font-size: 13px; }

/* Competências */
.skills-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.skill-card { --accent: #4f46e5; --tint: #eef2ff; position: relative; display: flex; flex-direction: column; min-height: 270px; overflow: hidden; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.skill-card:nth-child(2) { --accent: #7c3aed; --tint: #f3efff; }
.skill-card:nth-child(3) { --accent: #0284c7; --tint: #e0f2fe; }
.skill-card:nth-child(4) { --accent: #059669; --tint: #dcfce7; }
.skill-card::before { position: absolute; inset: 0 0 auto; height: 3px; background: var(--accent); content: ""; transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.skill-card:hover { transform: translateY(-6px); border-color: var(--tint); box-shadow: var(--shadow-md); background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), var(--tint), #fff 70%); }
.skill-card:hover::before { transform: scaleX(1); }
.skill-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--tint); color: var(--accent); transition: background .25s, color .25s, transform .3s var(--ease); }
.skill-icon .icon { width: 21px; height: 21px; }
.skill-card:hover .skill-icon { background: var(--accent); color: #fff; transform: rotate(-6deg) scale(1.06); }
.skill-card h3 { margin: 18px 0 3px; font-size: 18px; font-weight: 750; letter-spacing: -.02em; }
.skill-card > p { margin: 0 0 16px; color: var(--subtle); font-size: 13.5px; }
.skill-card ul { display: flex; flex-wrap: wrap; gap: 7px; margin: auto 0 0; padding: 0; list-style: none; }
.skill-card li, .tech-tags i { padding: 5px 10px; border: 1px solid #e2e8f0; border-radius: 8px; background: #f1f5f9; color: #334155; font-size: 12px; font-style: normal; font-weight: 550; line-height: 1.3; transition: background .25s, border-color .25s; }
.skill-card:hover li { border-color: transparent; background: #fff; }

/* Experiência */
.experience-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 72px); }
.experience-intro { position: sticky; top: 110px; align-self: start; }
.experience-intro > p { max-width: 400px; margin: 16px 0 0; color: var(--muted); font-size: 16px; line-height: 1.75; }
.experience-intro .text-link { margin-top: 18px; }
.timeline { position: relative; display: flex; flex-direction: column; gap: 14px; }
.timeline::before { position: absolute; top: 28px; bottom: 28px; left: 18px; width: 2px; border-radius: 2px; background: linear-gradient(#a5b4fc, #e2e8f0); content: ""; }
.timeline-item { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; padding: 22px 22px 22px 60px; border: 1px solid var(--line); border-left: 3px solid #c7d2fe; border-radius: 18px; background: #fff; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.timeline-item:hover { transform: translateX(6px); border-left-color: var(--indigo); box-shadow: var(--shadow-md); background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), #f3f6ff, #fff 70%); }
.timeline-icon { position: absolute; top: 22px; left: 5px; z-index: 1; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--grad); color: #fff; box-shadow: 0 0 0 5px var(--page), 0 8px 16px -6px rgba(37, 99, 235, .6); }
.timeline-icon .icon { width: 14px; height: 14px; }
.timeline-period { margin: 0 0 5px; color: var(--indigo-dark); font-family: var(--font-mono); font-size: 11.5px; font-weight: 600; letter-spacing: .08em; }
.timeline-item h3 { margin: 0; font-size: 19px; font-weight: 750; letter-spacing: -.02em; }
.timeline-item h4 { margin: 3px 0 0; color: var(--muted); font-size: 14px; font-weight: 550; }
.timeline-item .exp-desc, .timeline-item div > p:last-child { margin: 10px 0 0; color: var(--subtle); font-size: 14.5px; line-height: 1.7; }
.timeline-label { align-self: start; padding: 5px 10px; border: 1px solid #dbe4ff; border-radius: 99px; background: #eef2ff; color: var(--indigo-dark); font-size: 11px; font-weight: 600; white-space: nowrap; }
.exp-media { margin-top: 14px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #f1f5f9; }
.exp-media img, .exp-media video { display: block; width: 100%; max-height: 280px; object-fit: cover; }

/* Projetos */
.project-count { flex-shrink: 0; padding: 7px 13px; border: 1px solid #dbe4ff; border-radius: 99px; background: #eef2ff; color: var(--indigo-dark); font-family: var(--font-mono); font-size: 12px; font-weight: 600; }
.projects-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.proj-wrap { min-width: 0; }
.project-card { position: relative; display: block; min-width: 0; overflow: hidden; padding: 12px; border: 1px solid var(--line); border-radius: 24px; background: #fff; text-align: left; cursor: pointer; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; }
.project-card:hover { transform: translateY(-7px); border-color: #c7d2fe; box-shadow: var(--shadow-md); background: radial-gradient(460px circle at var(--mx, 50%) var(--my, 0%), #f3f6ff, #fff 70%); }
.preview { position: relative; min-height: 210px; display: block; overflow: hidden; padding: 16px; border: 1px solid #e2e8f0; border-radius: 16px; background-color: #f5f8fc; background-image: radial-gradient(rgba(148, 163, 184, .2) .8px, transparent .8px); background-size: 17px 17px; }
.preview-marina { background-color: #eaf3ff; }
.preview-crm { background-color: #f1eeff; }
.preview-workflow { background-color: #e9f8f1; }
.preview-bi { background-color: #e8f6fd; }
.preview.has-media { padding: 0; }
.preview-top { display: flex; align-items: center; justify-content: space-between; padding-bottom: 11px; border-bottom: 1px solid #e2e8f0; }
.preview-product { display: inline-flex; align-items: center; gap: 8px; color: #1e293b; font-size: 12px; font-weight: 700; }
.preview-icon { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; background: #e0e7ff; color: #4338ca; }
.preview-icon .icon { width: 14px; height: 14px; }
.preview-violet { background: #ede9fe; color: #6d28d9; }
.preview-sky { background: #e0f2fe; color: #0369a1; }
.preview-status { padding: 4px 9px; border-radius: 99px; background: #fff; color: #64748b; font-size: 9px; }
.marina-dashboard { display: grid; grid-template-columns: 48px 1fr; gap: 12px; padding-top: 12px; }
.preview-sidebar { display: flex; flex-direction: column; gap: 7px; padding: 8px; border-radius: 9px; background: #fff; }
.preview-sidebar i { height: 12px; border-radius: 4px; background: #f1f5f9; }
.preview-sidebar i:first-child { background: #e0e7ff; }
.marina-content { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.mock-label { color: #64748b; font-size: 9px; }
.marina-content > strong { color: #1e293b; font-size: 13px; }
.mini-stats { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 7px; }
.mini-stats i { min-height: 50px; display: flex; flex-direction: column; gap: 6px; padding: 7px 5px; border: 1px solid #eef2f7; border-radius: 8px; background: #fff; color: #64748b; font-size: 8px; font-style: normal; }
.mini-stats b { width: 15px; height: 15px; border-radius: 5px; background: #e0e7ff; }
.mini-stats i:nth-child(2) b { background: #e0f2fe; }
.mini-stats i:nth-child(3) b { background: #d1fae5; }
.mock-lines { width: 100%; display: flex; flex-direction: column; gap: 4px; margin-top: 5px; }
.mock-lines i { height: 4px; border-radius: 4px; background: #e9eef5; }
.mock-lines i:nth-child(2) { width: 80%; }
.mock-lines i:nth-child(3) { width: 90%; }
.preview-caption { position: absolute; right: 10px; bottom: 6px; color: #94a3b8; font-size: 8px; }
.crm-columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding-top: 13px; }
.crm-columns > span { min-height: 116px; padding: 8px; border-radius: 10px; background: rgba(226, 232, 240, .65); }
.crm-columns b { display: block; margin-bottom: 8px; color: #475569; font-size: 9px; font-weight: 600; }
.crm-columns i { height: 31px; display: block; margin-top: 6px; border: 1px solid #eef2f7; border-radius: 6px; background: #fff; box-shadow: 0 1px 2px #0f172a0b; }
.crm-columns i::before, .crm-columns i::after { width: 55%; height: 3px; display: block; margin: 7px 0 0 6px; border-radius: 4px; background: #e2e8f0; content: ""; }
.crm-columns i::after { width: 75%; margin-top: 4px; background: #f1f5f9; }
.crm-columns > span:nth-child(1) i:first-of-type { border-top: 2px solid #818cf8; }
.crm-columns > span:nth-child(2) i:first-of-type { border-top: 2px solid #fbbf24; }
.crm-columns > span:nth-child(3) i:first-of-type { border-top: 2px solid #34d399; }
.preview-workflow { display: flex; align-items: center; justify-content: center; gap: 9px; }
.workflow-node { width: 96px; min-height: 58px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 1px solid #e2e8f0; border-radius: 11px; background: #fff; box-shadow: 0 2px 5px #0f172a0b; }
.workflow-node b { font-size: 10px; font-weight: 650; }
.workflow-node small { color: #64748b; font-size: 9px; }
.workflow-active { border-color: #c7d2fe; color: #4338ca; }
.workflow-success { border-color: #a7f3d0; }
.workflow-success small { color: #047857; }
.workflow-connector { width: 20px; height: 2px; background: #a5b4fc; }
.bi-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; padding-top: 10px; }
.bi-stats i { min-height: 38px; display: flex; flex-direction: column; gap: 4px; padding: 6px 8px; border: 1px solid #eef2f7; border-radius: 8px; background: #fff; font-style: normal; }
.bi-stats small { color: #64748b; font-size: 8px; }
.bi-stats b { width: 34px; height: 5px; border-radius: 4px; background: #e2e8f0; }
.bi-chart { display: grid; grid-template-columns: 1.5fr .5fr; gap: 7px; height: 68px; margin-top: 7px; }
.bar-chart { display: flex; align-items: flex-end; justify-content: space-around; gap: 5px; padding: 9px; border: 1px solid #eef2f7; border-radius: 8px; background: #fff; }
.bar-chart i { width: 9%; height: 30%; border-radius: 3px 3px 0 0; background: #a5b4fc; }
.bar-chart i:nth-child(2) { height: 48%; background: #c7d2fe; }
.bar-chart i:nth-child(3) { height: 40%; }
.bar-chart i:nth-child(4) { height: 74%; background: #818cf8; }
.bar-chart i:nth-child(5) { height: 53%; }
.bar-chart i:nth-child(6) { height: 88%; background: #818cf8; }
.bar-chart i:nth-child(7) { height: 64%; background: #a5b4fc; }
.donut-chart { display: grid; place-items: center; border: 8px solid #c7d2fe; border-right-color: #6ee7b7; border-top-color: #bae6fd; border-radius: 50%; background: #fff; color: #475569; font-size: 10px; font-weight: 650; }
.project-info { display: flex; flex-direction: column; padding: 18px 8px 8px; }
.project-category { margin: 0 0 8px; color: var(--indigo-dark); font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: .1em; }
.project-title-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.project-title-row > strong { color: var(--ink); font-family: var(--font-head); font-size: 21px; font-weight: 750; letter-spacing: -.025em; }
.project-open { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 11px; color: #64748b; transition: border-color .25s, color .25s, background .25s; }
.project-open .icon { width: 16px; height: 16px; }
.project-card:hover .project-open { border-color: transparent; background: var(--grad); color: #fff; }
.project-description { min-height: 48px; margin-top: 8px; color: var(--muted); font-size: 14.5px; line-height: 1.65; }
.tech-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.project-info .tech-tags { margin-top: 12px; }
.project-details-link { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; padding-top: 13px; border-top: 1px solid #eef2f7; color: var(--indigo); font-size: 13px; font-weight: 700; }
.project-details-link .icon { width: 15px; height: 15px; transition: transform .25s; }
.project-card:hover .project-details-link .icon { transform: translateX(4px); }
.projects-note { margin: 18px 0 0; color: var(--subtle); font-size: 12.5px; text-align: center; }

/* Formação */
.education-section { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: clamp(20px, 4vw, 40px); padding-block: clamp(56px, 7vw, 88px); }
.education-intro h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); }
.education-intro .section-label { margin-bottom: 18px; }
.education-intro > p { max-width: 420px; margin: 12px 0 0; color: var(--muted); font-size: 15px; }
.education-card { display: flex; align-items: center; gap: 16px; padding: 24px; border: 1px solid var(--line); border-left: 3px solid var(--indigo); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s; }
.education-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.education-icon { width: 48px; height: 48px; flex: none; display: grid; place-items: center; border-radius: 14px; background: var(--grad); color: #fff; }
.education-period { margin: 0 0 4px; color: var(--indigo-dark); font-family: var(--font-mono); font-size: 11.5px; font-weight: 600; letter-spacing: .08em; }
.education-card h3 { margin: 0; font-size: 18px; font-weight: 750; letter-spacing: -.02em; }
.education-card div > p:last-child { margin: 3px 0 0; color: var(--subtle); font-size: 14px; }
.education-check { display: grid; width: 30px; height: 30px; flex: none; place-items: center; margin-left: auto; border-radius: 50%; background: #ecfdf5; color: #059669; }
.education-check .icon { width: 15px; height: 15px; }

/* Cursos */
.courses-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.course-card { --accent: #4f46e5; --tint: #eef2ff; position: relative; min-height: 160px; display: flex; flex-direction: column; gap: 14px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.course-card:nth-child(4n+2) { --accent: #7c3aed; --tint: #f3efff; }
.course-card:nth-child(4n+3) { --accent: #0284c7; --tint: #e0f2fe; }
.course-card:nth-child(4n+4) { --accent: #059669; --tint: #dcfce7; }
.course-card:hover { transform: translateY(-5px); border-color: var(--tint); box-shadow: var(--shadow-md); background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), var(--tint), #fff 70%); }
.course-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: var(--tint); color: var(--accent); transition: background .25s, color .25s; }
.course-card:hover .course-icon { background: var(--accent); color: #fff; }
.course-meta { margin: 0 0 4px; color: var(--accent); font-family: var(--font-mono); font-size: 11.5px; font-weight: 600; letter-spacing: .08em; }
.course-card h3 { margin: 0; font-size: 17px; font-weight: 750; letter-spacing: -.02em; line-height: 1.35; }
.course-inst { margin: 4px 0 0; color: var(--subtle); font-size: 14px; }
.course-cert { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--indigo); font-size: 13px; font-weight: 650; }
.course-cert .icon { width: 14px; height: 14px; }
.courses-empty { grid-column: 1 / -1; margin: 0; padding: 24px; border: 1px dashed #cbd5e1; border-radius: 14px; color: var(--subtle); font-size: 14px; text-align: center; }

/* ---------- 9. Contato e rodapé ---------- */
.contact-section { position: relative; overflow: hidden; isolation: isolate; color: #fff; background: radial-gradient(700px 340px at 10% 0%, rgba(79, 70, 229, .5), transparent 70%), radial-gradient(600px 320px at 95% 100%, rgba(6, 182, 212, .3), transparent 70%), var(--navy); }
.contact-section::before { position: absolute; inset: 0; z-index: -1; content: ""; pointer-events: none; background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px); background-size: 48px 48px; -webkit-mask-image: radial-gradient(ellipse 80% 100% at 50% 50%, #000, transparent 75%); mask-image: radial-gradient(ellipse 80% 100% at 50% 50%, #000, transparent 75%); }
.contact-inner { display: flex; align-items: center; justify-content: space-between; gap: 36px; padding-block: clamp(56px, 8vw, 96px); }
.section-label-light { margin-bottom: 16px; border-color: rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .08); color: #c7d2fe; }
.section-label-light > span { background: #a5b4fc; }
.contact-inner h2 { max-width: 640px; color: #fff; font-size: clamp(1.9rem, 4vw, 3rem); }
.contact-inner h2 span { background: var(--grad-soft); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.contact-inner > div > p { margin: 14px 0 0; color: #b4c0d6; font-size: 16px; }
.contact-actions { flex-shrink: 0; margin-top: 0; }
.contact-email { background: #fff; color: var(--navy-2); box-shadow: 0 16px 32px -14px rgba(165, 180, 252, .6); }
.contact-email:hover { background: #eef2ff; }
.contact-whatsapp { border-color: rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .06); color: #fff; }
.contact-whatsapp:hover { border-color: #6ee7b7; background: rgba(16, 185, 129, .14); color: #a7f3d0; }
.site-footer { border-top: 1px solid rgba(255, 255, 255, .06); background: #050813; color: #94a3b8; }
.footer-inner { display: flex; min-height: 84px; align-items: center; justify-content: space-between; gap: 16px; padding-block: 8px; }
.footer-inner .brand { font-size: 14px; }
.footer-inner .brand-mark { width: 32px; height: 32px; border-radius: 10px; font-size: 11px; }
.footer-inner > p { margin: 0; font-size: 13px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; }
.footer-links a { transition: color .2s; }
.footer-links a:hover { color: #fff; }

/* ---------- 10. Diálogos ---------- */
.project-dialog { width: min(1080px, calc(100% - 32px)); max-width: none; max-height: min(90vh, 860px); padding: 0; overflow: auto; border: 0; border-radius: 26px; background: #fff; color: var(--ink-2); box-shadow: 0 30px 100px rgba(7, 11, 24, .45); }
.project-dialog::backdrop, .cms-dialog::backdrop { background: rgba(7, 11, 24, .6); backdrop-filter: blur(5px); }
.project-dialog[open], .photo-dialog[open] { animation: dialog-enter .25s ease-out both; }
@keyframes dialog-enter { from { transform: translateY(14px) scale(.985); opacity: .3; } to { transform: none; opacity: 1; } }
.dialog-shell { position: relative; display: grid; grid-template-columns: 1fr 1fr; min-height: 560px; }
.dialog-close { position: absolute; z-index: 3; top: 16px; right: 16px; width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .96); color: #475569; cursor: pointer; transition: color .2s, background .2s; }
.dialog-close:hover { background: #f1f5f9; color: var(--ink); }
.dialog-preview-column { padding: 24px; border-right: 1px solid var(--line); background: #f4f6fb; }
.dialog-back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px; padding: 6px 0; border: 0; background: transparent; color: var(--subtle); font-size: 13px; font-weight: 600; cursor: pointer; }
.dialog-back:hover { color: var(--indigo); }
.dialog-back .icon { width: 15px; height: 15px; transform: rotate(180deg); }
.dialog-preview .preview { min-height: 320px; }
.dialog-preview .preview-workflow { min-height: 320px; flex-direction: column; }
.dialog-preview .preview-workflow .workflow-connector { width: 2px; height: 15px; }
.dialog-preview .preview-workflow .workflow-node { width: 150px; min-height: 54px; }
.dialog-tech { margin-top: 22px; }
.dialog-tech h3, .dialog-details h3 { margin: 0 0 8px; color: #334155; font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.dialog-disclaimer { margin: 16px 0 0; color: var(--subtle); font-size: 12px; line-height: 1.6; }
.dialog-content { padding: 52px 36px 32px; }
.dialog-content .project-category { margin-bottom: 10px; }
.dialog-content > h2 { margin: 0; font-size: clamp(1.6rem, 3vw, 2rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.15; }
.dialog-tagline { margin: 8px 0 0; color: var(--subtle); font-size: 15px; }
.dialog-details { display: flex; flex-direction: column; gap: 18px; margin-top: 24px; }
.dialog-details h3 { margin-bottom: 5px; }
.dialog-details p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.75; }
.dialog-details .results-note { padding: 13px 15px; border: 1px solid #fde68a; border-radius: 12px; background: #fffbeb; }
.dialog-details .results-note h3, .dialog-details .results-note p { color: #854d0e; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.dialog-actions .button { min-height: 44px; padding-inline: 14px; font-size: 13px; }
.dialog-action-note { margin: 10px 0 0; color: #94a3b8; font-size: 11.5px; text-align: center; }

.photo-dialog { position: fixed; inset: 0; width: fit-content; height: fit-content; margin: auto; max-width: none; max-height: none; padding: 0; overflow: visible; border: 0; background: transparent; }
.photo-dialog::backdrop { background: rgba(7, 11, 24, .85); backdrop-filter: blur(6px); }
.photo-dialog img { display: block; width: auto; height: auto; max-width: 92vw; max-height: 90vh; border-radius: 20px; box-shadow: 0 30px 90px rgba(0, 0, 0, .5); cursor: zoom-out; }
.photo-dialog-close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: rgba(255, 255, 255, .95); color: #334155; cursor: pointer; }

/* ---------- 11. Efeitos extras ---------- */
.js-reveal .reveal { opacity: 0; transform: translateY(28px); transition: opacity .75s var(--ease), transform .75s var(--ease); }
.js-reveal .reveal.is-visible { opacity: 1; transform: none; }
.to-top { position: fixed; z-index: 40; right: 18px; bottom: 18px; width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .14); border-radius: 14px; background: rgba(11, 18, 38, .88); backdrop-filter: blur(10px); color: #fff; cursor: pointer; opacity: 0; pointer-events: none; transform: translateY(12px); transition: opacity .3s, transform .3s var(--ease), background .2s; }
.to-top .icon { transform: rotate(180deg); }
.to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { background: var(--indigo); }
.is-admin .to-top { display: none; }

/* Página de login do painel (painel.html) */
.login .brand { color: var(--ink); }
.login .brand-suffix { color: #94a3b8; }

/* ---------- 12. Responsivo ---------- */
@media (max-width: 1100px) {
  .skills-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .skill-card { min-height: 0; }
  .brand-suffix { display: none; }
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .profile-card { max-width: 480px; justify-self: center; }
  .experience-grid { grid-template-columns: 1fr; }
  .experience-intro { position: static; }
  .courses-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline-label { display: none; }
}
@media (max-width: 900px) {
  :root { scroll-padding-top: 70px; }
  .nav { min-height: 64px; }
  .menu-toggle { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .16); border-radius: 12px; background: rgba(255, 255, 255, .06); color: #fff; cursor: pointer; }
  .nav-links { position: absolute; top: 64px; right: 0; left: 0; display: none; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px 20px 18px; border-bottom: 1px solid rgba(255, 255, 255, .08); background: rgba(7, 11, 24, .98); box-shadow: 0 24px 40px -16px rgba(0, 0, 0, .6); }
  .nav-links.is-open { display: flex; }
  .nav-links > a:not(.nav-contact) { padding: 12px 12px; font-size: 15px; }
  .nav-contact { justify-content: center; margin: 8px 0 0; padding: 14px 16px; }
  .about-grid { grid-template-columns: 1fr; gap: 24px; }
  .impact-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .education-section { grid-template-columns: 1fr; }
  .contact-inner { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 820px) {
  .projects-grid { grid-template-columns: 1fr; }
  .section-heading-row { align-items: flex-start; flex-direction: column; gap: 14px; }
  .project-heading { flex-direction: row; align-items: center; }
  .project-dialog { width: calc(100% - 14px); max-height: 94dvh; border-radius: 22px; }
  .dialog-shell { grid-template-columns: 1fr; }
  .dialog-close { position: fixed; top: max(18px, env(safe-area-inset-top)); right: 18px; }
  .dialog-preview-column { padding: 20px 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  .dialog-preview .preview, .dialog-preview .preview-workflow { min-height: 230px; }
  .dialog-content { padding: 26px 20px 24px; }
  .dialog-content > h2 { padding-right: 28px; }
  .dialog-actions { flex-direction: column; }
}
@media (max-width: 620px) {
  .container { width: calc(100% - 36px); }
  .skills-grid, .courses-grid { grid-template-columns: 1fr; }
  .hero-actions .button { flex: 1 1 auto; }
  .profile-card { padding: 18px; }
  .footer-inner { align-items: flex-start; flex-direction: column; padding-block: 22px; }
  .contact-actions { width: 100%; }
  .contact-actions .button { flex: 1 1 auto; }
  .timeline::before { left: 14px; }
  .timeline-item { padding: 18px 16px 18px 50px; }
  .timeline-icon { left: 1px; }
  .to-top { right: 14px; bottom: 14px; }
}
@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .button, .contact-actions .button { width: 100%; }
  .impact-row { gap: 12px; }
  .impact-row > div { padding: 18px 16px 20px; }
  .project-heading { align-items: flex-start; flex-direction: column; }
  .preview { min-height: 200px; }
  .workflow-node { width: 82px; }
  .workflow-connector { width: 12px; }
  .availability { font-size: 12px; }
}
@media (hover: none) {
  .photo-eye { place-items: end end; padding: 12px; background: transparent; opacity: 1; }
  .photo-eye .icon { width: 36px; height: 36px; padding: 8px; border-radius: 50%; background: rgba(11, 18, 38, .6); transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .tech-track { animation: none !important; }
}

/* ---------- Botão de idioma (PT | EN) ---------- */
.lang-switch { display: inline-flex; align-items: center; gap: 2px; margin-left: 8px; padding: 3px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 12px; background: rgba(255, 255, 255, .06); color: #cbd5e1; font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: .08em; line-height: 1; cursor: pointer; transition: border-color .2s, background .2s; }
.lang-switch:hover { border-color: rgba(165, 180, 252, .7); background: rgba(255, 255, 255, .1); }
.lang-switch span { padding: 7px 9px; border-radius: 9px; transition: background .25s, color .25s; }
.lang-switch[data-lang="pt"] span[data-l="pt"],
.lang-switch[data-lang="en"] span[data-l="en"] { background: var(--grad); color: #fff; box-shadow: 0 6px 14px -6px rgba(37, 99, 235, .8); }
.lang-switch:focus-visible { outline: 3px solid rgba(99, 102, 241, .6); outline-offset: 3px; }
.is-admin .lang-switch { display: none; }

/* Chip do cartão de perfil (texto vem do CSS, não do HTML) */
html[lang="en"] .profile-person::after { content: "⚡ Automation & AI"; }

@media (max-width: 900px) {
  .lang-switch { align-self: flex-start; margin: 10px 0 0; }
}