/* ============================================================
   leandrogomes.dev — shared styles (PT + EN)
   Dark/tech theme with living-background experience layer
   ============================================================ */

:root {
  --bg: #0b0a10;
  --bg-soft: #110f18;
  --surface: #16141f;
  --surface-2: #1c1a27;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #ece9f5;
  --text-muted: #a39fb6;
  --text-dim: #75718a;
  --accent: #8b7ff0;
  --accent-soft: #b4abf7;
  --gold: #d6a94e;
  --lav: #dbe4f7;
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1080px;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; background: var(--bg); }

body {
  background: transparent;
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(139, 127, 240, .35); color: var(--text); }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2a2740; border-radius: 8px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #3a3658; }

a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

/* Aurora backdrop */
body::before {
  content: ""; position: fixed; inset: -25%; z-index: -2; pointer-events: none;
  background:
    radial-gradient(38% 38% at 18% 22%, rgba(139, 127, 240, .20), transparent 62%),
    radial-gradient(34% 34% at 82% 28%, rgba(214, 169, 78, .12), transparent 62%),
    radial-gradient(42% 42% at 65% 88%, rgba(139, 127, 240, .14), transparent 62%);
  animation: aurora 28s ease-in-out infinite alternate;
}
@keyframes aurora {
  0% { transform: translate3d(0, 0, 0) scale(1) rotate(0deg); }
  50% { transform: translate3d(2.5%, -2%, 0) scale(1.08) rotate(2deg); }
  100% { transform: translate3d(-2.5%, 2.5%, 0) scale(1.04) rotate(-2deg); }
}

/* Experience layer: particles canvas, cursor glow, grain, progress */
#fx { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }

#glow {
  position: fixed; left: 0; top: 0; width: 520px; height: 520px; border-radius: 50%;
  pointer-events: none; z-index: 1; display: none;
  background: radial-gradient(circle, rgba(139, 127, 240, .085), transparent 62%);
  mix-blend-mode: screen;
}
#glow.on { display: block; }

.noise { display: none; }
@media (pointer: fine) {
  .noise {
    display: block; position: fixed; inset: 0; z-index: 300; pointer-events: none;
    opacity: .04; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
  }
}

#progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%; z-index: 200;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  box-shadow: 0 0 10px rgba(139, 127, 240, .55);
}

#toTop {
  position: fixed; right: 22px; bottom: 22px; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--border-strong); background: rgba(22, 20, 31, .82); backdrop-filter: blur(8px);
  color: var(--text-muted); display: flex; align-items: center; justify-content: center; cursor: pointer;
  opacity: 0; pointer-events: none; transform: translateY(14px); transition: .35s var(--ease-out); z-index: 90;
}
#toTop.show { opacity: 1; pointer-events: auto; transform: none; }
#toTop:hover { color: var(--text); border-color: var(--accent); box-shadow: 0 0 18px rgba(139, 127, 240, .35); }
#toTop svg { width: 18px; height: 18px; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

section { padding: 96px 0; position: relative; }

.eyebrow {
  font-family: var(--font-display);
  font-size: 13px; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--accent-soft);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--accent); opacity: .6; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; }
.section-title { font-size: clamp(28px, 4vw, 40px); margin: 18px 0 14px; }
.section-lead { color: var(--text-muted); font-size: 17px; max-width: 640px; }

/* ===== NAV ===== */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(11, 10, 16, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
header.scrolled { border-bottom-color: var(--border); background: rgba(11, 10, 16, 0.9); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 18px; }
.brand .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); animation: brandpulse 3.2s ease-in-out infinite; }
@keyframes brandpulse { 0%, 100% { box-shadow: 0 0 8px var(--accent); } 50% { box-shadow: 0 0 18px var(--accent), 0 0 34px rgba(139, 127, 240, .45); } }
.brand .badge { width: 22px; height: 22px; border-radius: 5px; margin-left: 4px; box-shadow: 0 0 0 1px var(--border); transition: transform .25s var(--ease-out); }
.brand a:hover .badge { transform: scale(1.15) rotate(-4deg); }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; }
.nav-links a {
  font-size: 14.5px; color: var(--text-muted); padding: 8px 14px; border-radius: 8px;
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-links a.active { color: var(--text); background: var(--surface-2); box-shadow: inset 0 -2px 0 var(--accent); }
.lang { font-family: var(--font-display); font-size: 13px; font-weight: 600; color: var(--text-dim); border: 1px solid var(--border); padding: 6px 12px; border-radius: 8px; margin-left: 8px; transition: .2s; }
.lang:hover { color: var(--text); border-color: var(--border-strong); }
.nav-toggle { display: none; background: none; border: 1px solid var(--border); color: var(--text); width: 42px; height: 42px; border-radius: 10px; cursor: pointer; font-size: 20px; }

/* ===== HERO ===== */
#hero { padding: 0; min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; }
.orb-1 { width: 520px; height: 520px; background: #4b3fb0; top: -160px; right: -120px; opacity: .35; animation: floatA 19s ease-in-out infinite alternate; }
.orb-2 { width: 420px; height: 420px; background: #6b5418; bottom: -160px; left: -120px; opacity: .22; animation: floatB 23s ease-in-out infinite alternate; }
@keyframes floatA { from { transform: translate(0, 0) scale(1); } to { transform: translate(-46px, 34px) scale(1.12); } }
@keyframes floatB { from { transform: translate(0, 0) scale(1); } to { transform: translate(34px, -28px) scale(1.1); } }
.grid-lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 75%);
  opacity: .35;
  animation: gridmove 90s linear infinite;
}
@keyframes gridmove { to { background-position: 64px 64px, 64px 64px; } }
.hero-inner { position: relative; z-index: 1; width: 100%; }

/* staggered hero entrance (JS-gated to avoid no-JS blank page) */
html.js .hero > * { opacity: 0; transform: translateY(28px); animation: rise .85s var(--ease-out) forwards; }
html.js .hero > *:nth-child(1) { animation-delay: .05s; }
html.js .hero > *:nth-child(2) { animation-delay: .15s; }
html.js .hero > *:nth-child(3) { animation-delay: .25s; }
html.js .hero > *:nth-child(4) { animation-delay: .35s; }
html.js .hero > *:nth-child(5) { animation-delay: .45s; }
html.js .hero > *:nth-child(6) { animation-delay: .55s; }
@keyframes rise { to { opacity: 1; transform: none; } }

.status-pill {
  display: inline-flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--text-muted);
  background: var(--surface); border: 1px solid var(--border); padding: 7px 15px; border-radius: 999px; margin-bottom: 28px;
  transition: border-color .3s, box-shadow .3s;
}
.status-pill:hover { border-color: rgba(74, 222, 128, .35); box-shadow: 0 0 22px rgba(74, 222, 128, .12); }
.status-pill .live { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 4px rgba(74, 222, 128, .15); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }
.status-pill b { color: var(--text); font-weight: 600; }

.hero h1 { font-size: clamp(44px, 8vw, 88px); font-weight: 700; letter-spacing: -0.03em; }
.hero h1 .grad {
  background: linear-gradient(110deg, var(--lav) 0%, var(--accent-soft) 30%, var(--gold) 52%, var(--accent-soft) 72%, var(--lav) 100%);
  background-size: 240% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: shimmer 8s linear infinite;
}
@keyframes shimmer { to { background-position: -240% 0; } }

.hero .role { font-family: var(--font-display); font-size: clamp(18px, 2.6vw, 26px); color: var(--text); font-weight: 500; margin-top: 8px; }
.rotator {
  display: inline-block;
  background: linear-gradient(90deg, var(--accent-soft), var(--gold));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  transition: opacity .35s ease, transform .35s ease;
}
.rotator.swap { opacity: 0; transform: translateY(12px); }

.hero .tagline { font-size: clamp(16px, 2vw, 19px); color: var(--text-muted); max-width: 620px; margin-top: 22px; }
.hero-meta { display: flex; align-items: center; gap: 18px; margin-top: 14px; color: var(--text-dim); font-size: 14.5px; flex-wrap: wrap; }
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 500; font-size: 15px; padding: 13px 22px; border-radius: 12px; border: 1px solid var(--border); color: var(--text); transition: transform .15s, background .2s, border-color .2s, box-shadow .3s; cursor: pointer; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #0b0a10; font-weight: 600; position: relative; overflow: hidden; }
.btn-primary::after {
  content: ""; position: absolute; top: 0; left: -130%; width: 55%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .4), transparent);
  transform: skewX(-20deg); transition: left .55s ease;
}
.btn-primary:hover { background: var(--accent-soft); box-shadow: 0 10px 30px -10px var(--accent); }
.btn-primary:hover::after { left: 150%; }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--border-strong); }
.icon-btns { display: flex; gap: 10px; }
.icon-btn { width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--text-muted); transition: .2s; }
.icon-btn:hover { color: var(--text); border-color: var(--border-strong); transform: translateY(-2px) scale(1.06); background: var(--surface-2); box-shadow: 0 6px 18px -8px rgba(139, 127, 240, .5); }
.icon-btn svg { width: 20px; height: 20px; }

.scroll-hint { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); color: var(--text-dim); font-size: 12px; letter-spacing: .15em; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 1; }
.scroll-hint .mouse { width: 22px; height: 36px; border: 1.5px solid var(--border-strong); border-radius: 12px; position: relative; }
.scroll-hint .mouse::before { content: ""; position: absolute; top: 7px; left: 50%; transform: translateX(-50%); width: 3px; height: 7px; background: var(--accent); border-radius: 2px; animation: scrolldot 1.6s infinite; }
@keyframes scrolldot { 0% { opacity: 0; top: 6px; } 40% { opacity: 1; } 80% { opacity: 0; top: 16px; } 100% { opacity: 0; } }

/* ===== METRICS ===== */
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.metric { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 22px; transition: transform .25s, border-color .25s, box-shadow .3s; position: relative; overflow: hidden; }
.metric::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(139, 127, 240, .12), transparent 45%);
}
.metric:hover { border-color: var(--border-strong); transform: translateY(-3px); box-shadow: 0 16px 40px -22px rgba(139, 127, 240, .45); }
.metric:hover::before { opacity: 1; }
.metric .num { font-family: var(--font-display); font-size: 36px; font-weight: 700; letter-spacing: -0.02em; background: linear-gradient(120deg, var(--lav), var(--accent-soft)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.metric .lbl { color: var(--text-muted); font-size: 14px; margin-top: 6px; }

/* ===== CASES ===== */
.cases-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 48px; }
.case { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; transition: transform .25s, opacity .7s, border-color .3s, box-shadow .35s; position: relative; overflow: hidden; }
.case::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); padding: 1px; background: linear-gradient(140deg, var(--accent), transparent 40%); -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; }
.case::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(620px circle at var(--mx, 50%) var(--my, 50%), rgba(139, 127, 240, .10), transparent 46%);
}
.case:hover { transform: translateY(-4px); box-shadow: 0 24px 60px -30px rgba(0, 0, 0, .8), 0 12px 42px -26px rgba(139, 127, 240, .5); }
.case:hover::after { opacity: .6; }
.case:hover::before { opacity: 1; }
.case-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.case-logo { width: 52px; height: 52px; border-radius: 12px; background: #fff; display: flex; align-items: center; justify-content: center; padding: 8px; transition: transform .3s var(--ease-out); }
.case:hover .case-logo { transform: scale(1.08) rotate(-2deg); }
.case-logo img { border-radius: 4px; max-width: 100%; max-height: 100%; object-fit: contain; }
.case-name { font-family: var(--font-display); font-size: 19px; font-weight: 600; }
.case-role { color: var(--accent-soft); font-size: 13.5px; }
.case p { color: var(--text-muted); font-size: 15px; position: relative; }
.case b { color: var(--text); font-weight: 600; }
.case.featured { grid-column: 1 / -1; border-color: var(--border-strong); }
.case.featured .case-name { font-size: 24px; }
.case.featured p { font-size: 16px; }
.case.brief { padding: 20px 24px; }
.case.brief p { font-size: 14px; }
.case-mono { width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 17px; flex-shrink: 0; transition: transform .3s var(--ease-out); }
.case:hover .case-mono { transform: scale(1.08) rotate(-2deg); }
.case-tag { font-size: 11px; font-weight: 600; color: var(--accent-soft); border: 1px solid var(--border-strong); border-radius: 999px; padding: 3px 11px; margin-left: auto; align-self: flex-start; }

/* ===== ABOUT ===== */
.about-grid { display: grid; grid-template-columns: 320px 1fr; gap: 48px; align-items: center; }
.about-photo { position: relative; animation: floatPhoto 7s ease-in-out infinite alternate; }
@keyframes floatPhoto { from { transform: translateY(0); } to { transform: translateY(-10px); } }
.about-photo img { border-radius: var(--radius); border: 1px solid var(--border); aspect-ratio: 4/5; object-fit: cover; object-position: center 20%; width: 100%; transition: transform .5s var(--ease-out); }
.about-photo:hover img { transform: scale(1.025); }
.about-photo::before { content: ""; position: absolute; inset: -1px; border-radius: var(--radius); padding: 1px; background: linear-gradient(160deg, var(--accent), transparent 50%, var(--gold)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: .5; transition: opacity .4s; }
.about-photo:hover::before { opacity: 1; }
.about-text p { color: var(--text-muted); font-size: 16.5px; margin-bottom: 18px; }
.about-text b { color: var(--text); font-weight: 600; }

/* ===== TIMELINE ===== */
.timeline { margin-top: 48px; position: relative; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 4px; top: 8px; bottom: 8px; width: 1px; background: var(--border); }
.tl-line {
  position: absolute; left: 4px; top: 8px; bottom: 8px; width: 1px;
  background: linear-gradient(180deg, var(--accent), var(--gold));
  transform: scaleY(0); transform-origin: top;
  filter: drop-shadow(0 0 6px rgba(139, 127, 240, .55));
}
.tl-item { position: relative; padding-bottom: 38px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item.in { transition: transform .25s ease, opacity .7s ease; }
.tl-item:hover { transform: translateX(6px); }
.tl-item::before { content: ""; position: absolute; left: -28px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); transform: translateX(0.5px); transition: box-shadow .4s, background .4s; }
.tl-item.in::before { box-shadow: 0 0 10px rgba(139, 127, 240, .6); }
.tl-item.now::before { background: var(--accent); box-shadow: 0 0 0 4px rgba(139, 127, 240, .2), 0 0 14px rgba(139, 127, 240, .6); }
.tl-top { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.tl-company { font-family: var(--font-display); font-size: 18px; font-weight: 600; }
.tl-date { font-size: 13px; color: var(--text-dim); font-family: var(--font-display); }
.tl-now-tag { font-size: 11px; font-weight: 600; color: #4ade80; border: 1px solid rgba(74, 222, 128, .3); background: rgba(74, 222, 128, .08); padding: 2px 9px; border-radius: 999px; }
.tl-role { color: var(--accent-soft); font-size: 14.5px; margin-top: 2px; }
.tl-desc { color: var(--text-muted); font-size: 15px; margin-top: 8px; max-width: 680px; }
.tl-sub { list-style: none; margin-top: 10px; display: flex; flex-direction: column; gap: 4px; }
.tl-sub li { color: var(--text-dim); font-size: 14px; padding-left: 16px; position: relative; }
.tl-sub li::before { content: ""; position: absolute; left: 0; top: 10px; width: 5px; height: 5px; border-radius: 50%; background: var(--text-dim); }

/* ===== KNOWLEDGE ===== */
.know-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 48px; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; transition: border-color .3s; }
.panel:hover { border-color: var(--border-strong); }
.panel h3 { font-size: 16px; display: flex; align-items: center; gap: 10px; margin-bottom: 18px; color: var(--text); }
.panel h3 svg { width: 18px; height: 18px; color: var(--accent); }
.skill-group { margin-bottom: 18px; }
.skill-group:last-child { margin-bottom: 0; }
.skill-group .gl { font-size: 12.5px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 9px; font-family: var(--font-display); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 13px; color: var(--text-muted); background: var(--surface-2); border: 1px solid var(--border); padding: 6px 12px; border-radius: 8px; transition: color .2s, border-color .2s, transform .2s, box-shadow .25s; }
.chip:hover { color: var(--text); border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 6px 16px -10px rgba(139, 127, 240, .7); }
.chip.reveal { transition: opacity .5s ease, transform .5s ease, color .2s, border-color .2s, box-shadow .25s; }
.cert-list, .edu-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.cert-list li, .edu-list li { display: flex; gap: 12px; align-items: flex-start; }
.cert-list .ci { color: var(--gold); flex-shrink: 0; margin-top: 3px; }
.cert-list .ci svg, .edu-list .ci svg { width: 17px; height: 17px; }
.cert-list .ct, .edu-list .ct { font-size: 14.5px; color: var(--text); }
.cert-list .cs, .edu-list .cs { font-size: 13px; color: var(--text-dim); }
.cert-featured { display: flex; align-items: center; gap: 14px; background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 15px 16px; margin-bottom: 18px; transition: .25s; }
.cert-featured:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 12px 30px -18px rgba(139, 127, 240, .6); }
.cert-featured img { width: 46px; height: 46px; flex-shrink: 0; transition: transform .3s var(--ease-out); }
.cert-featured:hover img { transform: scale(1.1) rotate(-3deg); }
.cert-featured .cf-t { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--text); }
.cert-featured .cf-s { font-size: 13px; color: var(--text-dim); }
.cert-featured .cf-link { margin-left: auto; font-size: 13px; color: var(--accent-soft); display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.cert-featured:hover .cf-link { color: var(--text); }
.cert-list a.cert-link { display: flex; gap: 12px; align-items: flex-start; transition: .2s; }
.cert-list a.cert-link:hover .ct { color: var(--accent-soft); }
.cert-list a.cert-link .ext { margin-left: auto; color: var(--text-dim); flex-shrink: 0; }
.cert-list a.cert-link:hover .ext { color: var(--accent-soft); }
.lang-bars { display: flex; flex-direction: column; gap: 16px; }
.lang-bar .lt { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 7px; }
.lang-bar .lt span:last-child { color: var(--text-dim); font-size: 13px; }
.lang-bar .track { height: 6px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.lang-bar .fill { width: var(--w, 100%); height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--accent-soft)); transition: width 1.15s var(--ease-out) .25s; }
html.js .panel.reveal:not(.in) .lang-bar .fill { width: 0; }

/* ===== CONTACT ===== */
#contato { text-align: center; }
.contact-card { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 64px 32px; position: relative; overflow: hidden; transition: border-color .4s; }
.contact-card:hover { border-color: var(--border-strong); }
.contact-card .orb-c { position: absolute; width: 360px; height: 360px; background: var(--accent); filter: blur(120px); opacity: .14; top: -120px; left: 50%; transform: translateX(-50%); animation: orbPulse 9s ease-in-out infinite alternate; }
@keyframes orbPulse { from { opacity: .10; transform: translateX(-50%) scale(1); } to { opacity: .20; transform: translateX(-50%) scale(1.18); } }
.contact-card h2 { font-size: clamp(28px, 4vw, 42px); position: relative; }
.contact-card p { color: var(--text-muted); font-size: 17px; margin: 14px auto 32px; max-width: 460px; position: relative; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; position: relative; }

footer { border-top: 1px solid var(--border); padding: 32px 0; }
.foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; color: var(--text-dim); font-size: 13.5px; }
.foot a { color: var(--text-dim); transition: .2s; }
.foot a:hover { color: var(--text); }

/* ===== REVEAL ===== */
html.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s var(--ease-out); }
html.js .reveal.in { opacity: 1; transform: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 880px) {
  .nav-links { position: fixed; top: 70px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px; background: var(--bg-soft); border-bottom: 1px solid var(--border); padding: 14px 24px 22px; transform: translateY(-120%); transition: transform .35s; }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 12px 14px; }
  .lang { margin: 8px 0 0; text-align: center; }
  .nav-toggle { display: flex; align-items: center; justify-content: center; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .cases-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-photo { max-width: 280px; margin: 0 auto; }
  .know-grid { grid-template-columns: 1fr; }
  .contact-card { padding: 48px 22px; }
  .panel { padding: 24px 20px; }
  section { padding: 72px 0; }
  #toTop { right: 16px; bottom: 16px; }
}
@media (max-width: 480px) {
  .metrics { grid-template-columns: 1fr; }
  .btn, .cta-row { width: 100%; justify-content: center; }
  .icon-btns { width: 100%; justify-content: center; }
  .cert-featured .cf-txt { display: none; }
  .case.featured .case-name { font-size: 21px; }
  .hero h1 { font-size: 46px; }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  html.js .reveal, html.js .hero > *, .chip.reveal { opacity: 1 !important; transform: none !important; }
  html.js .panel.reveal:not(.in) .lang-bar .fill { width: var(--w, 100%); }
  .tl-line { transform: scaleY(1); }
  #fx, #glow, .noise { display: none !important; }
}
