/* ============================================================
   HD PORTFÓLIO — linguagem: dark premium + tipografia gigante
   Display: Oswald · Corpo: Inter
   ============================================================ */
:root {
  --bg: #0b0b10;
  --surface: #14141b;
  --surface-2: #1b1b24;
  --line: rgba(255, 255, 255, 0.09);
  --champagne: #d8c3a5;
  --white: #ffffff;
  --text: #ece9e3;
  --muted: #8f8b84;
  --pill: #f2efe9;
  --green: #4ade80;
  --html: #e34f26;
  --css: #2965f1;
  --js: #f7df1e;
  --radius: 18px;
  --max: 1240px;
  --display: 'Oswald', sans-serif;
  --body: 'Inter', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--body); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { text-decoration: none; }
::selection { background: var(--champagne); color: #111; }

.eyebrow {
  display: block; font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 14px;
}

/* ============ NAV ============ */
.header { position: sticky; top: 0; z-index: 50; background: rgba(11, 11, 16, 0.88); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav-container { max-width: var(--max); margin: 0 auto; padding: 14px 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.monogram {
  display: grid; place-items: center; width: 40px; height: 40px;
  font-family: var(--display); font-weight: 600; font-size: 1.05rem; letter-spacing: 0.05em;
  color: var(--pill); border: 1px solid var(--line); border-radius: 12px;
}
.nav-menu { display: flex; list-style: none; gap: 30px; }
.nav-menu a { color: var(--muted); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; transition: color 0.25s; }
.nav-menu a:hover { color: #fff; }
.nav-right { display: flex; align-items: center; gap: 12px; }
.talk-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--pill); color: #141414; font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 11px 20px; border-radius: 999px; transition: transform 0.25s;
}
.talk-btn:hover { transform: translateY(-2px); }
.menu-toggle { display: none; font-size: 1.3rem; color: var(--text); cursor: pointer; }

/* ============ HERO ============ */
.hero { max-width: var(--max); margin: 0 auto; padding: 64px 28px 30px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.hero-left h1 {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(3.6rem, 9vw, 7.5rem); line-height: 0.98; letter-spacing: 0.01em;
  color: var(--pill); text-transform: uppercase;
}
.hero-sub { margin-top: 18px; color: var(--muted); font-size: 1rem; max-width: 42ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.btn-light {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--pill); color: #141414; font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 14px 24px; border-radius: 6px; transition: transform 0.25s;
}
.btn-light:hover { transform: translateY(-2px); }
.btn-line {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text); font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 14px 6px; border-bottom: 1px solid var(--line); transition: 0.25s;
}
.btn-line:hover { color: var(--champagne); border-color: var(--champagne); }

.hero-right { position: relative; display: grid; gap: 14px; }
.code-window {
  background: #0e0e14; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.code-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.code-bar span { width: 11px; height: 11px; border-radius: 50%; background: #2c2c38; }
.code-bar span:first-child { background: #ff5f57; }
.code-bar span:nth-child(2) { background: #febc2e; }
.code-bar span:nth-child(3) { background: #28c840; }
.code-bar em { margin-left: auto; font-style: normal; font-size: 0.72rem; color: var(--muted); }
.code-window pre { padding: 20px; overflow-x: auto; }
.code-window code { font-family: 'Consolas', 'Fira Code', monospace; font-size: 0.86rem; line-height: 1.8; color: #c9c4bb; }
.tag { color: #7dd3fc; } .attr { color: var(--champagne); } .str { color: #a7f3d0; }

.gh-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.gh-head { font-size: 0.88rem; font-weight: 600; color: #fff; margin-bottom: 14px; }
.gh-head i { font-size: 1.2rem; margin-right: 8px; }
.lang-bar { display: flex; height: 10px; border-radius: 99px; overflow: hidden; background: #26262f; }
.lang-bar .html { background: var(--html); } .lang-bar .css { background: var(--css); } .lang-bar .js { background: var(--js); }
.lang-legend { display: flex; gap: 16px; margin: 12px 0 8px; font-size: 0.8rem; color: var(--muted); }
.lang-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; }
.lang-legend i.html { background: var(--html); } .lang-legend i.css { background: var(--css); } .lang-legend i.js { background: var(--js); }
.gh-panel small { color: var(--muted); font-size: 0.75rem; }
.avail { position: absolute; right: 0; top: -8px; text-align: right; font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.avail strong { display: block; font-family: var(--display); font-size: 1.3rem; letter-spacing: 0.06em; color: #fff; }
.avail a { color: var(--champagne); font-size: 0.7rem; }

/* ============ STATS ============ */
.stats {
  max-width: var(--max); margin: 26px auto 0; padding: 0 28px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.stats div { padding: 30px 20px; text-align: center; border-left: 1px solid var(--line); }
.stats div:first-child { border-left: none; }
.stats i { color: var(--champagne); font-size: 1.1rem; }
.stats strong { display: block; font-family: var(--display); font-size: 2.4rem; font-weight: 500; color: #fff; margin: 6px 0 2px; }
.stats span { font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }

/* ============ WORK ============ */
.work { max-width: var(--max); margin: 0 auto; padding: 70px 28px 10px; }
.section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.explore { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); transition: color 0.25s; }
.explore:hover { color: #fff; }
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.work-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform 0.3s ease, border-color 0.3s ease; }
.work-card:hover { transform: translateY(-6px); border-color: rgba(216, 195, 165, 0.4); }
.work-card img { height: 260px; width: 100%; object-fit: cover; object-position: top center; }
.work-info { padding: 20px 22px 24px; }
.work-info h3 { font-family: var(--display); font-size: 1.5rem; font-weight: 500; color: #fff; letter-spacing: 0.02em; }
.work-info small { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.work-go {
  position: absolute; right: 18px; bottom: 18px;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); display: grid; place-items: center;
  color: #fff; background: rgba(0, 0, 0, 0.4); transition: 0.25s;
}
.work-go:hover { background: var(--pill); color: #141414; }

/* ============ SOBRE ============ */
.about-strip { max-width: var(--max); margin: 0 auto; padding: 70px 28px 10px; }
.about-strip h2 { font-family: var(--display); font-weight: 500; font-size: clamp(1.8rem, 4vw, 3rem); color: #fff; text-transform: uppercase; letter-spacing: 0.02em; margin-bottom: 16px; }
.about-strip p { color: var(--muted); max-width: 70ch; }
.about-strip strong { color: var(--text); }

/* ============ CAPACIDADES ============ */
.caps { max-width: var(--max); margin: 0 auto; padding: 50px 28px 10px; display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; }
.cap-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; transition: transform 0.3s, border-color 0.3s; }
.cap:hover { transform: translateY(-4px); border-color: rgba(216, 195, 165, 0.4); }
.cap i { font-size: 1.4rem; color: var(--champagne); }
.cap h3 { font-size: 0.95rem; color: #fff; margin: 14px 0 6px; }
.cap p { font-size: 0.82rem; color: var(--muted); }
.tools, .edu { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.tools { display: flex; flex-wrap: wrap; gap: 10px; }
.tools span { display: inline-flex; align-items: center; gap: 8px; font-size: 0.8rem; font-weight: 600; color: var(--text); background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 9px 14px; }
.tools i { color: var(--champagne); }
.tools em { font-style: normal; font-size: 0.68rem; color: var(--muted); }
.edu { display: grid; gap: 16px; }
.edu > div { display: flex; gap: 14px; align-items: center; }
.edu i { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); display: grid; place-items: center; color: var(--champagne); }
.edu strong { display: block; font-size: 0.88rem; color: #fff; }
.edu small { font-size: 0.76rem; color: var(--muted); }

/* ============ PROCESSO ============ */
.process { max-width: var(--max); margin: 0 auto; padding: 60px 28px 10px; }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; }
.steps strong { font-family: var(--display); color: var(--champagne); font-size: 0.9rem; letter-spacing: 0.1em; }
.steps h4 { font-size: 0.9rem; color: #fff; margin: 8px 0 4px; text-transform: uppercase; letter-spacing: 0.06em; }
.steps p { font-size: 0.76rem; color: var(--muted); }

/* ============ TODOS ============ */
.all { max-width: var(--max); margin: 0 auto; padding: 60px 28px 10px; }
.all h2 { font-family: var(--display); font-weight: 500; font-size: clamp(1.6rem, 3vw, 2.4rem); color: #fff; text-transform: uppercase; margin-bottom: 22px; }
.all-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.all-grid a { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: transform 0.3s, border-color 0.3s; }
.all-grid a:hover { transform: translateY(-4px); border-color: rgba(216, 195, 165, 0.4); }
.all-grid img { height: 130px; width: 100%; object-fit: cover; object-position: top center; }
.all-grid span { display: block; padding: 12px 14px; font-size: 0.78rem; font-weight: 600; color: #fff; }
.all-grid em { display: block; font-style: normal; font-weight: 400; font-size: 0.68rem; color: var(--muted); }

/* ============ CTA ============ */
.cta {
  max-width: var(--max); margin: 60px auto 0; padding: 44px;
  display: grid; grid-template-columns: 1.3fr 1fr 0.9fr; gap: 32px; align-items: center;
  background: linear-gradient(120deg, #1d1d27, #14141b 60%);
  border: 1px solid var(--line); border-radius: 22px;
}
.cta-left h2 { font-family: var(--display); font-weight: 600; font-size: clamp(1.7rem, 3.4vw, 2.6rem); line-height: 1.08; color: #fff; text-transform: uppercase; }
.cta-mid p { color: var(--muted); font-size: 0.9rem; margin-bottom: 18px; }
.cta-contacts { display: grid; gap: 10px; }
.cta-contacts a { font-size: 0.82rem; color: var(--muted); transition: color 0.25s; }
.cta-contacts a:hover { color: #fff; }
.cta-contacts i { color: var(--champagne); margin-right: 8px; width: 16px; }

/* ============ FOOTER ============ */
.footer {
  max-width: var(--max); margin: 26px auto 30px; padding: 0 28px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  font-size: 0.76rem; color: var(--muted);
}
.connect { display: flex; align-items: center; gap: 14px; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.68rem; }
.connect a { color: var(--muted); font-size: 1rem; transition: color 0.25s; }
.connect a:hover { color: #fff; }

/* ============ REVEAL ============ */
.animate-on-scroll, .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.6s ease, transform 0.6s ease; }
.animate-on-scroll.animate, .reveal.in { opacity: 1; transform: none; }

/* ============ RESPONSIVO ============ */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; }
  .avail { display: none; }
  .work-grid { grid-template-columns: 1fr 1fr; }
  .caps { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .all-grid { grid-template-columns: repeat(3, 1fr); }
  .cta { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-menu { display: none; position: absolute; top: 68px; left: 0; right: 0; background: #101016; flex-direction: column; padding: 18px 28px 26px; gap: 4px; border-bottom: 1px solid var(--line); }
  .nav-menu.active { display: flex; }
  .nav-menu a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .menu-toggle { display: block; }
  .talk-btn { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats div:nth-child(3) { border-left: none; }
  .stats div { border-top: 1px solid var(--line); }
  .stats div:nth-child(-n+2) { border-top: none; }
  .work-grid { grid-template-columns: 1fr; }
  .cap-grid { grid-template-columns: 1fr; }
  .all-grid { grid-template-columns: 1fr 1fr; }
  .hero, .stats, .work, .about-strip, .caps, .process, .all { padding-left: 18px; padding-right: 18px; }
  .cta { margin-left: 18px; margin-right: 18px; padding: 32px 24px; }
}
