/* ============================================================
   Adriel Mendes — portfolio
   estética shadcn: zinc-950, hairlines, badges, bento
   verde apenas como semântica de status "no ar"
   Geist (corpo) · Geist Mono (meta)
   ============================================================ */

@font-face {
  font-family: "Geist";
  src: url("assets/fonts/geist-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("assets/fonts/geist-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("assets/fonts/geist-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("assets/fonts/geistmono-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("assets/fonts/instrumentserif-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --background: #09090b;          /* zinc-950 */
  --foreground: #fafafa;          /* zinc-50 */
  --muted-fg: #a1a1aa;            /* zinc-400 */
  --subtle-fg: #71717a;           /* zinc-500 */
  --card: #101012;
  --card-hover: #141416;
  --border: rgba(255, 255, 255, .09);
  --border-strong: rgba(255, 255, 255, .16);
  --secondary: rgba(255, 255, 255, .04);
  --live: #22c55e;                /* green-500, só para status */
  --radius: 12px;
  --max: 1064px;
  --body: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--body);
  font-size: 15.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

::selection { background: rgba(250, 250, 250, .92); color: #09090b; }

:focus-visible {
  outline: 2px solid rgba(250, 250, 250, .5);
  outline-offset: 2px;
  border-radius: 4px;
}

.container {
  width: min(var(--max), calc(100% - 44px));
  margin-inline: auto;
}

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(9, 9, 11, .72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 13px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 14.5px;
  letter-spacing: -.01em;
}

.brand-logo {
  width: 34px;
  height: 21px;
  color: var(--foreground);
  display: block;
}

.nav-links { display: flex; gap: 4px; font-size: 13.5px; color: var(--muted-fg); }

.nav-links a {
  padding: 6px 12px;
  border-radius: 8px;
  transition: color .15s, background .15s;
}

.nav-links a:hover { color: var(--foreground); background: var(--secondary); }

.lang-toggle {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .04em;
  color: var(--muted-fg);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 12px;
  cursor: pointer;
  transition: color .15s, border-color .15s, background .15s;
}

.lang-toggle:hover { color: var(--foreground); border-color: var(--border-strong); background: var(--secondary); }

/* ---------- badges (shadcn) ---------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  color: var(--muted-fg);
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 10px;
  white-space: nowrap;
}

.badges { display: flex; flex-wrap: wrap; gap: 6px; }

.badge-status {
  color: var(--foreground);
  font-size: 12.5px;
  padding: 6px 14px 6px 10px;
  margin: 0;
}

.badge-live {
  color: var(--live);
  border-color: rgba(34, 197, 94, .28);
  background: rgba(34, 197, 94, .08);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.badge-live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--live);
}

.badge-role {
  font-weight: 400;
  font-family: var(--mono);
  font-size: 11px;
  vertical-align: 2px;
  margin-left: 6px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--live);
  animation: pulse 2.6s ease-in-out infinite;
}

.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--live);
  display: inline-block;
  margin-right: 10px;
  margin-bottom: 3px;
  animation: pulse 2.6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .45); }
  55% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

/* ---------- botões (shadcn) ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 500;
  height: 40px;
  padding: 0 18px;
  border-radius: 10px;
  transition: background .15s, border-color .15s, color .15s;
}

.btn-primary {
  background: var(--foreground);
  color: #18181b;
}

.btn-primary:hover { background: #e4e4e7; }

.btn-outline {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--foreground);
}

.btn-outline:hover { background: var(--secondary); border-color: var(--border-strong); }

.btn-ghost { color: var(--muted-fg); font-family: var(--mono); font-size: 12.5px; }

.btn-ghost:hover { color: var(--foreground); background: var(--secondary); }

/* ---------- hero ---------- */

.hero { padding: 112px 0 72px; position: relative; }

.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 480px;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .10) 1px, transparent 1.4px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(58% 100% at 50% 0%, rgba(0, 0, 0, .8), transparent 78%);
  mask-image: radial-gradient(58% 100% at 50% 0%, rgba(0, 0, 0, .8), transparent 78%);
}

.hero > .container { position: relative; }

.hero .badge-status { margin-bottom: 30px; }

.hero-title {
  font-size: clamp(42px, 6.8vw, 78px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -.04em;
  margin: 0 0 22px;
}

.hero-title em {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.06em;
  letter-spacing: -.01em;
  color: var(--foreground);
}

.hero-thesis {
  color: var(--muted-fg);
  font-size: clamp(15px, 1.8vw, 17px);
  max-width: 560px;
  margin: 0 0 32px;
}

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 64px; }

/* ---------- bento ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.bento-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  transition: border-color .2s, background .2s;
}

.bento-card:hover { border-color: var(--border-strong); background: var(--card-hover); }

.bento-3 { grid-column: span 3; }
.bento-2 { grid-column: span 2; }

.bento-big {
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1;
  margin: 0 0 10px;
}

.bento-label { color: var(--muted-fg); font-size: 13.5px; margin: 0; }

.bento-kicker {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--subtle-fg);
  margin: 0 0 8px;
}

.bento-text { font-size: 14px; font-weight: 500; margin: 0; color: var(--foreground); }

/* ---------- sections ---------- */

.section { padding: 72px 0; border-top: 1px solid var(--border); }

.section-head { margin-bottom: 36px; }

.section-title {
  font-size: clamp(24px, 3.4vw, 32px);
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.15;
  margin: 0;
}

.section-kicker { color: var(--muted-fg); font-size: 14.5px; max-width: 520px; margin: 10px 0 0; }

/* ---------- projetos ---------- */

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.project {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color .2s, background .2s, transform .2s, box-shadow .2s;
}

.project:hover {
  border-color: var(--border-strong);
  background: var(--card-hover);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .35);
}

.browser { display: block; border-bottom: 1px solid var(--border); }

.browser-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--subtle-fg);
  background: rgba(255, 255, 255, .02);
}

.browser-dots { display: inline-flex; gap: 5px; }

.browser-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
}

.browser-url {
  flex: 1;
  text-align: center;
  letter-spacing: .01em;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.browser img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
  width: 100%;
  height: auto;
  transition: opacity .2s;
}

.browser:hover img { opacity: .92; }

.project-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }

.project-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.project-name { font-size: 18px; font-weight: 600; letter-spacing: -.015em; margin: 0; }

.project-open {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted-fg);
  white-space: nowrap;
  transition: color .15s;
}

.project-open:hover { color: var(--foreground); }

.project-desc { color: var(--muted-fg); font-size: 14px; margin: 14px 0 18px; flex: 1; }

.project-stack {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--subtle-fg);
  border-top: 1px solid var(--border);
  padding-top: 14px;
  margin: 0;
}

/* ---------- experiência ---------- */

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
  overflow: hidden;
}

.job {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 24px;
  padding: 24px 26px;
  border-top: 1px solid var(--border);
  transition: background .2s;
}

.job:first-child { border-top: 0; }

.job:hover { background: var(--card-hover); }

.job-period {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--subtle-fg);
  margin: 0;
  padding-top: 4px;
}

.job-title { font-size: 15.5px; font-weight: 600; letter-spacing: -.01em; margin: 0 0 8px; }

.job-desc { color: var(--muted-fg); font-size: 14px; margin: 0; max-width: 600px; }

/* ---------- stack ---------- */

.stack-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.stack-group {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 24px;
  transition: border-color .2s, background .2s;
}

.stack-group:hover { border-color: var(--border-strong); background: var(--card-hover); }

.stack-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--subtle-fg);
  font-weight: 400;
  margin: 0 0 14px;
}

/* ---------- contato ---------- */

.contact-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 56px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.contact-title {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 600;
  letter-spacing: -.03em;
  margin: 0 0 12px;
}

.contact-sub { color: var(--muted-fg); font-size: 15px; margin: 0 0 28px; max-width: 460px; }

.contact-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* ---------- footer ---------- */

.footer { border-top: 1px solid var(--border); padding: 24px 0; }

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--subtle-fg);
}

/* ---------- reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .55s cubic-bezier(.2, .6, .2, 1), transform .55s cubic-bezier(.2, .6, .2, 1);
}

.reveal.in { opacity: 1; transform: none; }

/* ---------- responsivo ---------- */

@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento-3, .bento-2 { grid-column: span 1; }
  .bento-3 { grid-column: span 2; }
}

@media (max-width: 860px) {
  .nav-links { display: none; }

  .hero { padding: 72px 0 56px; }

  .section { padding: 56px 0; }

  .project-grid { grid-template-columns: 1fr; }

  .job { grid-template-columns: 1fr; gap: 6px; padding: 20px; }

  .stack-grid { grid-template-columns: 1fr; gap: 14px; }

  .contact-card { padding: 40px 24px; }
}

@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .bento-3, .bento-2 { grid-column: span 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .status-dot, .live-dot { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .project, .browser img, .bento-card, .stack-group, .job { transition: none; }
  .project:hover { transform: none; }
}
