/* Estrutura e linguagem visual no estilo de paolocostanzo.com, com o laranja AWS */
:root {
  --bg: #000;
  --bg-alt: #0a0a0a;
  --card: #111;
  --card2: #1a1a1a;
  --fg: #f5f5f5;
  --muted: #b0b0b0;
  --dim: #6b6b6b;
  --border: #2e2e2e;
  --primary: #ff9900;
  --accent: #ffad33;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --head: "Outfit", system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--fg); font-family: var(--head); font-weight: 400; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
::selection { background: var(--primary); color: #000; }

/* idioma: mostra só o span do idioma ativo */
html[data-lang="pt"] [lang="en"], html[data-lang="en"] [lang="pt"] { display: none !important; }

.pr, .o { color: var(--primary); }
.dim { color: var(--dim); }
.dim60 { opacity: .6; }
.blink { animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* BOOT */
#boot { position: fixed; inset: 0; z-index: 100; background: #000; display: flex; align-items: center; justify-content: center; transition: opacity .5s, visibility .5s; }
#boot.done { opacity: 0; visibility: hidden; }
.boot-box { width: min(560px, 92vw); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: #050505; }
.boot-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--card); }
.boot-bar span { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.boot-bar span:nth-child(2) { background: #febc2e; } .boot-bar span:nth-child(3) { background: #28c840; }
.boot-bar p { font-family: var(--mono); font-size: 12px; color: var(--dim); margin-left: 8px; }
#boot-lines { font-family: var(--mono); font-size: 13px; padding: 16px 18px; min-height: 270px; color: var(--muted); white-space: pre-wrap; }
#boot-lines .ok { color: #4ade80; } #boot-lines .hl { color: var(--primary); }
.boot-progress { height: 3px; margin: 0 18px 18px; background: var(--card2); border-radius: 2px; overflow: hidden; }
.boot-progress i { display: block; height: 100%; width: 0; background: var(--primary); transition: width .6s ease; }

/* NAV */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; align-items: center; gap: 1.5rem; padding: 14px max(1.5rem, calc((100vw - 1220px) / 2)); transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(0,0,0,.85); backdrop-filter: blur(10px); border-color: var(--border); }
.brand { font-family: var(--mono); font-size: 14px; color: var(--fg); white-space: nowrap; }
.nav nav { margin-left: auto; display: flex; gap: 1.5rem; }
.nav nav a { font-family: var(--mono); font-size: 14px; color: var(--muted); transition: color .2s; }
.nav nav a:hover { color: var(--primary); }
.lang { display: flex; gap: 6px; align-items: center; background: none; border: 1px solid var(--border); border-radius: 6px; padding: 6px 10px; color: var(--muted); cursor: pointer; transition: border-color .2s; }
.lang:hover { border-color: var(--primary); }
.chev { font-size: 11px; line-height: 1; }

/* HERO */
.hero { min-height: 100vh; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; padding: 80px 1.5rem 0; }
.grid-bg { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(rgba(255,153,0,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,153,0,.035) 1px, transparent 1px); background-size: 50px 50px; }
.hero-in { position: relative; max-width: 48rem; text-align: center; }
.hello { font-family: var(--mono); font-size: 14px; color: var(--primary); margin-bottom: 1.5rem; }
.h-hero { font-family: var(--head); font-weight: 700; font-size: clamp(2.5rem, 6vw, 4.2rem); line-height: 1.08; letter-spacing: -.03em; margin-bottom: 1rem; }
.hero-sub { font-family: var(--mono); font-weight: 400; font-size: clamp(.95rem, 1.6vw, 1.15rem); color: var(--primary); margin-bottom: 1.5rem; cursor: pointer; user-select: none; }
.hero-p { font-size: 1.15rem; color: var(--muted); max-width: 42rem; margin: 0 auto 1.5rem; font-weight: 300; }
.hero-roles { font-family: var(--mono); font-size: 13px; color: var(--muted); opacity: .8; margin-bottom: 2.2rem; }
.btn-hero { display: inline-flex; align-items: center; gap: 8px; background: var(--primary); color: #000; font-weight: 600; padding: 13px 32px; border-radius: 6px; transition: transform .2s, background .2s, box-shadow .2s; }
.btn-hero:hover { background: var(--accent); transform: scale(1.05); box-shadow: 0 10px 30px rgba(255,153,0,.3); }
.btn-hero svg { width: 17px; height: 17px; }
.fade-up { opacity: 0; animation: fadeInUp .7s ease forwards; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* SEÇÕES */
.sec { padding: 7rem 1.5rem; max-width: 1060px; margin: 0 auto; }
.sec.alt { max-width: none; background: var(--bg-alt); }
.sec.alt > * { max-width: 1060px; margin-left: auto; margin-right: auto; }
.sec-head { text-align: center; margin-bottom: 3rem; position: relative; }
.file { font-family: var(--mono); font-size: 14px; color: var(--primary); margin-bottom: .4rem; }
.file.l { text-align: left; font-size: 12px; }
.h-sec { font-family: var(--head); font-weight: 700; font-size: clamp(2rem, 4vw, 2.5rem); letter-spacing: -.02em; line-height: 1.15; }
.lead { color: var(--muted); margin-top: .8rem; }
.cmt { font-family: var(--mono); font-size: 13px; color: var(--primary); opacity: .75; margin: 1.4rem 0 .9rem; }
.cmt.center { text-align: center; }
.box { background: #0d0d0d; border: 1px solid var(--border); border-radius: 10px; padding: 2.2rem 2rem; }
.muted { color: var(--muted); }

/* ABOUT */
.about > p { font-size: 1.1rem; margin-bottom: 1.1rem; color: var(--fg); font-weight: 300; }
.about em { font-style: normal; color: var(--primary); }
.about a { color: var(--primary); }
.about-links { display: flex; align-items: center; gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-top: 1.4rem; }
.about-links a { font-family: var(--mono); font-size: 12px; color: var(--muted) !important; }
.about-links a:hover { color: var(--primary) !important; }
.about-links i { width: 1px; height: 14px; background: var(--border); }
.contrib { display: grid; grid-template-columns: 200px 1fr; gap: 1.6rem; align-items: center; max-width: 640px; padding: 1.3rem 1.4rem; margin-bottom: 1rem; background: var(--card2); border: 1px solid var(--border); border-left: 3px solid var(--primary); border-radius: 8px; transition: transform .25s, border-color .25s; }
.contrib:hover { transform: translateX(4px); border-color: var(--primary); }
.logo-cell { border-right: 1px solid var(--border); display: flex; flex-direction: column; line-height: 1; }
.logo-cell b { font-family: var(--head); font-size: 2rem; font-weight: 800; letter-spacing: -.03em; }
.logo-cell.aws b { color: #fff; } .logo-cell.aws b::after { content: ""; display: block; width: 46px; height: 7px; margin-top: 2px; border-bottom: 3px solid var(--primary); border-radius: 0 0 50% 50%; }
.logo-cell.ares b { color: #fff; letter-spacing: .12em; }
.logo-cell small { font-family: var(--mono); font-size: 10px; color: var(--muted); margin-top: 6px; }
.tagbox { font-family: var(--mono); font-size: 11px; color: var(--primary); border: 1px solid rgba(255,153,0,.5); border-radius: 3px; padding: 2px 7px; letter-spacing: .05em; vertical-align: middle; }
.since { font-family: var(--mono); font-size: 11px; color: var(--muted); margin-left: 6px; }
.ttl { font-family: var(--mono); font-size: 13px; margin: 6px 0 4px; letter-spacing: .02em; }
.desc { font-family: var(--mono); font-size: 12px; color: var(--muted); line-height: 1.5; }
.skills-t { text-align: center; font-size: 1rem; font-weight: 600; margin: 2.5rem 0 1rem; }
.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 840px; margin: 0 auto; }
.pills span { font-family: var(--mono); font-size: 12px; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 5px 13px; transition: .2s; }
.pills span:hover { border-color: var(--primary); color: var(--primary); }
.quote { border-left: 2px solid var(--primary); padding: .4rem 1.5rem; margin-top: 2rem; font-style: italic; color: var(--muted); font-weight: 300; }

/* RESEARCH */
.research h3 { font-size: 1.15rem; font-weight: 600; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 1rem; }
.research .muted { font-size: .95rem; }
.research .links { font-family: var(--mono); margin-top: 1.4rem; color: var(--dim); }
.research .links a { color: var(--primary); }
.research .links a:hover { text-decoration: underline; }
.note { font-size: 12px; color: var(--muted); margin: .7rem 0 2rem; }
.art { margin-bottom: 1.3rem; }
.art a { font-family: var(--mono); color: var(--primary); }
.art a:hover { text-decoration: underline; }
.art a::after { content: " →"; font-size: .8em; }
.art p { color: var(--muted); font-size: .93rem; }

/* CERTS */
.credly { position: absolute; right: 0; top: .2rem; font-family: var(--mono); font-size: 12px; color: var(--primary); }
.count { text-align: center; font-family: var(--mono); font-size: 13px; color: var(--muted); margin-bottom: 1rem; }
.cert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.cert { display: flex; gap: 12px; padding: 1.2rem; background: var(--card); border: 1px solid var(--border); border-radius: 6px; position: relative; transition: transform .25s, border-color .25s; }
.cert:hover { transform: translateY(-3px); border-color: var(--primary); }
.cert svg { color: var(--primary); }
.cert.new { border-color: rgba(255,153,0,.7); background: #140d03; }
.cert.soon { border-style: dashed; opacity: .65; }
.cn { font-family: var(--mono); font-size: 13px; font-weight: 500; line-height: 1.35; padding-right: 3rem; }
.ci { font-size: 12px; color: var(--primary); margin-top: 4px; }
.cy { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: 4px; }
.new-b { position: absolute; top: 1rem; right: 1rem; font-size: 10px; background: var(--primary); color: #000; border-radius: 3px; padding: 1px 6px; }

/* FOCUS */
.focus { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.focus .cmt { margin-top: 0; }
.fcard { display: flex; gap: 14px; padding: 1.4rem; margin-bottom: 1rem; background: var(--card); border: 1px solid var(--border); border-radius: 8px; transition: transform .25s, border-color .25s, box-shadow .25s; }
.fcard:hover { transform: translateY(-3px); border-color: rgba(255,153,0,.6); box-shadow: 0 10px 30px rgba(255,153,0,.08); }
.fcard > svg { color: var(--primary); margin-top: 2px; }
.dir { font-family: var(--mono); font-size: 12px; color: var(--primary); }
.fcard h4 { font-size: 1.05rem; font-weight: 600; margin: 2px 0 8px; }
.fcard p { color: var(--muted); font-size: .9rem; }
.kw { font-family: var(--mono); font-size: 12px !important; color: var(--dim) !important; margin-top: .8rem; }
.quote-c { text-align: center; font-style: italic; color: var(--muted); font-size: .9rem; margin-top: 2.5rem; }

/* PROJETOS */
.svc { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.scard { display: block; padding: 1.7rem 1.6rem; background: var(--card); border: 1px solid var(--border); border-radius: 8px; transition: transform .25s, border-color .25s, box-shadow .25s; }
.scard:hover { transform: translateY(-4px); border-color: var(--primary); box-shadow: 0 14px 40px rgba(255,153,0,.1); }
.scard svg { color: var(--primary); width: 24px; height: 24px; margin-bottom: 1rem; }
.scard h4 { font-size: 1.2rem; font-weight: 600; margin-bottom: .6rem; }
.scard p { color: var(--muted); font-size: .92rem; }

/* WRITEUP */
.writeup { display: flex; gap: 1.4rem; max-width: 770px; margin: 0 auto; transition: border-color .25s; }
.writeup:hover { border-color: rgba(255,153,0,.6); }
.pr.big { font-family: var(--mono); font-size: 1.6rem; line-height: 1; margin-top: 4px; }
.writeup h3 { font-size: 1.15rem; font-weight: 600; margin: 4px 0 10px; }
.writeup .muted { font-size: .92rem; }
.wtags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1rem; }
.wtags span { font-family: var(--mono); font-size: 12px; color: var(--primary); background: rgba(255,153,0,.08); border: 1px solid rgba(255,153,0,.25); border-radius: 3px; padding: 2px 9px; }

/* MAN + FAQ */
.man, .faq, .see { max-width: 680px; margin: 0 auto; }
.man { font-family: var(--mono); font-size: 14px; background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 1.2rem 1.1rem; line-height: 1.75; }
.ind { padding-left: 1rem; color: var(--muted); }
.ind.o { color: var(--primary); }
.faq-t { font-family: var(--head); font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em; }
.faq details { background: var(--card); border: 1px solid var(--border); border-radius: 6px; margin-bottom: 12px; transition: border-color .2s; }
.faq details[open], .faq details:hover { border-color: rgba(255,153,0,.5); }
.faq summary { list-style: none; cursor: pointer; padding: 16px 20px; font-size: 14px; font-weight: 500; display: flex; justify-content: space-between; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "⌄"; color: var(--muted); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(180deg); }
.faq details p { padding: 0 20px 18px; color: var(--muted); font-size: 14px; animation: fadeInUp .3s ease; }
.see { font-family: var(--mono); font-size: 13px; margin-top: 1.6rem; }
.see a:hover { color: var(--primary); }

/* CONTATO */
.ctable { max-width: 680px; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: var(--card); }
.ctable a { display: grid; grid-template-columns: 24px 80px 1fr auto 170px; align-items: center; gap: 1rem; padding: 15px 16px; border-bottom: 1px solid var(--border); font-size: 14px; transition: background .2s; }
.ctable a:last-child { border-bottom: none; }
.ctable a:hover { background: #161616; }
.ctable svg { color: var(--primary); width: 17px; height: 17px; }
.ctable span { color: var(--muted); }
.ctable em { font-style: normal; color: var(--primary); font-size: 12px; }
.ctable small { text-align: right; font-size: 12px; color: var(--muted); }
.sess { font-family: var(--mono); font-size: 13px; text-align: center; color: var(--muted); margin-top: 2rem; line-height: 2; }

/* FOOTER */
.foot { border-top: 1px solid var(--border); padding: 2.5rem 1.5rem 4rem; background: var(--bg-alt); }
.foot-row { max-width: 1220px; margin: 0 auto; display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; font-size: 13px; }
.foot-row .dim { font-family: var(--mono); }
.foot-row nav { display: flex; gap: 1.5rem; margin-left: auto; margin-right: auto; }
.foot-row nav a:hover { color: var(--primary); }
.legal { max-width: 1100px; margin: 1.5rem auto 0; text-align: center; font-size: 11px; color: var(--dim); }
.teapot { text-align: center; font-family: var(--mono); font-size: 11px; color: var(--dim); opacity: 0; transition: opacity .5s; margin-top: 1rem; }
.teapot.show { opacity: .6; }

/* REVEAL ao rolar */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* easter egg: glitch */
html.glitch body { animation: glitch .3s infinite; }
@keyframes glitch { 0% { transform: translate(0); filter: none; } 20% { transform: translate(-2px,2px); filter: hue-rotate(90deg); } 40% { transform: translate(2px,-2px); filter: hue-rotate(180deg); } 60% { transform: translate(-1px,-1px); filter: hue-rotate(270deg); } 80% { transform: translate(1px,1px); filter: hue-rotate(360deg); } 100% { transform: translate(0); filter: none; } }
#toast { position: fixed; bottom: 24px; right: 24px; z-index: 60; background: var(--card); border: 1px solid var(--primary); border-radius: 8px; padding: 12px 16px; font-family: var(--mono); font-size: 13px; opacity: 0; transform: translateY(10px); transition: .3s; pointer-events: none; }
#toast.show { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .nav nav { display: none; }
  .lang { margin-left: auto; }
  .cert-grid { grid-template-columns: 1fr; }
  .focus, .svc { grid-template-columns: 1fr; }
  .contrib { grid-template-columns: 1fr; }
  .logo-cell { border-right: none; }
  .credly { position: static; display: inline-block; margin-top: .8rem; }
  .ctable a { grid-template-columns: 24px 1fr; }
  .ctable em, .ctable small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .fade-up, .reveal { opacity: 1; transform: none; }
}
.about > p.cmt { font-size: 13px; color: var(--primary); }

/* ---------- Hero próprio (2 colunas) ---------- */
.hero2 { max-width: 72rem; width: 100%; text-align: left; display: grid; grid-template-columns: 1.1fr 1fr; gap: 3.5rem; align-items: center; }
.kicker { font-family: var(--mono); font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: .5rem; border: 1px solid #262626; border-radius: 999px; padding: .3rem .8rem; margin-bottom: 1.6rem; }
.kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: #3fb950; box-shadow: 0 0 10px #3fb950; animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.h-name { font-size: clamp(3.4rem, 9vw, 6.5rem); line-height: .92; font-weight: 800; letter-spacing: -.04em; margin-bottom: 1.6rem; }
.h-name .out { color: transparent; -webkit-text-stroke: 2px var(--primary); }
.h-name .pt { color: var(--primary); }
.hero2 .hero-p { margin: 0 0 2rem; max-width: 34rem; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.btn-ghost { color: var(--text, #f5f5f5); text-decoration: none; font-weight: 500; padding: .9rem 1.2rem; border: 1px solid #333; border-radius: 8px; transition: .2s; }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.id-card { background: #0c0c0c; border: 1px solid #262626; border-radius: 12px; overflow: hidden; box-shadow: 0 20px 60px -20px rgba(255,153,0,.25); transform: rotate(1.5deg); transition: transform .4s; }
.id-card:hover { transform: rotate(0); }
.id-bar { display: flex; align-items: center; gap: 6px; padding: .7rem 1rem; border-bottom: 1px solid #1f1f1f; background: #111; }
.id-bar i { width: 10px; height: 10px; border-radius: 50%; background: #333; }
.id-bar i:first-child { background: var(--primary); }
.id-bar span { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-left: .6rem; }
.id-card pre { font-family: var(--mono); font-size: 13.5px; line-height: 1.75; padding: 1.2rem 1.3rem; margin: 0; white-space: pre-wrap; color: #bbb; }
.id-card k { color: var(--accent); } .id-card v { color: #e6e6e6; }
.id-foot { font-family: var(--mono); font-size: 12px; color: var(--primary); padding: 0 1.3rem 1rem; cursor: pointer; user-select: none; }
@media (max-width: 860px) { .hero2 { grid-template-columns: 1fr; gap: 2.5rem; } .id-card { transform: none; } }
