/* ============================================================
   Portfolio - Lucas Shinoy
   Tema escuro, responsivo, com animaes suaves de revelacao.
   ============================================================ */

:root {
  --bg: #080b12;
  --bg-alt: #0d1220;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-strong: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --text: #e8ecf5;
  --text-muted: #9aa4bd;
  --accent: #6366f1;
  --accent-2: #22d3ee;
  --accent-3: #f97316;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.75);
  --container: 1180px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(900px 500px at 12% -10%, rgba(99, 102, 241, 0.18), transparent 60%),
    radial-gradient(700px 460px at 92% 8%, rgba(34, 211, 238, 0.12), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5rem; font-weight: 700; letter-spacing: -0.02em; }
p { margin: 0 0 1rem; color: var(--text-muted); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
  position: relative;
  z-index: 1;
}

.skip-link {
  position: absolute;
  left: -9999px;
  background: var(--accent);
  color: #fff;
  padding: .6rem 1rem;
  border-radius: 8px;
  z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ------------------------------------------------------------ header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(8, 11, 18, 0.82);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 70px;
}

.brand { display: flex; align-items: center; gap: .75rem; }
.brand-mark {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-weight: 800;
  font-size: .9rem;
  letter-spacing: .02em;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: .98rem; }
.brand-text small { color: var(--text-muted); font-size: .76rem; }

.nav { display: flex; align-items: center; gap: .35rem; }
.nav-link {
  padding: .5rem .8rem;
  border-radius: 999px;
  color: var(--text-muted);
  font-size: .92rem;
  font-weight: 500;
  transition: color .2s, background .2s;
}
.nav-link:hover, .nav-link.active { color: var(--text); background: var(--surface-strong); }
.nav-cta { margin-left: .5rem; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 18px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s, opacity .2s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ------------------------------------------------------------ buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .8rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: .93rem;
  cursor: pointer;
  transition: transform .18s, box-shadow .18s, background .18s, border-color .18s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  color: #fff;
  box-shadow: 0 12px 30px -12px rgba(99, 102, 241, .9);
}
.btn-primary:hover { box-shadow: 0 18px 38px -12px rgba(99, 102, 241, 1); }
.btn-ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { background: var(--surface-strong); }
.btn-sm { padding: .55rem 1rem; font-size: .85rem; }
.btn-block { width: 100%; }

/* --------------------------------------------------------------- hero */
.hero { padding: 5rem 0 3.5rem; position: relative; }
.hero-bg {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 520px;
  background:
    radial-gradient(600px 300px at 30% 40%, rgba(99, 102, 241, .22), transparent 70%),
    radial-gradient(500px 260px at 78% 20%, rgba(34, 211, 238, .18), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 3rem;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 1rem;
}
.eyebrow .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, .16);
}
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.7rem); margin-bottom: .75rem; }
.gradient-text {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-role { font-size: 1.12rem; color: var(--text); font-weight: 500; margin-bottom: .75rem; }
.hero-resumo { max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.hero-social { display: flex; gap: .6rem; margin-top: 1.75rem; }
.hero-social a {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: color .2s, transform .2s, border-color .2s;
}
.hero-social a:hover { color: var(--text); transform: translateY(-3px); border-color: var(--accent); }

.hero-card {
  background: rgba(13, 18, 32, .85);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-card-head {
  display: flex; align-items: center; gap: .75rem;
  padding: .8rem 1rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, .02);
}
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #3b4256; display: block; }
.dots i:nth-child(1) { background: #ff5f57; }
.dots i:nth-child(2) { background: #febc2e; }
.dots i:nth-child(3) { background: #28c840; }
.file-name { font-family: var(--mono); font-size: .8rem; color: var(--text-muted); }
.code {
  margin: 0;
  padding: 1.35rem;
  font-family: var(--mono);
  font-size: .82rem;
  line-height: 1.85;
  color: #cbd5e1;
  overflow-x: auto;
}
.c-kw { color: #c084fc; }
.c-fn { color: #60a5fa; }
.c-str { color: #86efac; }
.c-cm { color: #64748b; }
.hero-card-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding: .75rem 1rem;
  border-top: 1px solid var(--border);
  font-size: .78rem;
}
.status-pill {
  display: inline-flex; align-items: center; gap: .4rem;
  color: #86efac;
  background: rgba(34, 197, 94, .1);
  border: 1px solid rgba(34, 197, 94, .25);
  padding: .25rem .65rem;
  border-radius: 999px;
}
.status-pill i { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; }
.stack-pill { color: var(--text-muted); font-family: var(--mono); }

/* -------------------------------------------------------------- stats */
.stats { padding: 1rem 0 3rem; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.15rem 1.25rem;
}
.stat-value { display: block; font-size: 1.4rem; font-weight: 700; color: var(--text); }
.stat-label { font-size: .82rem; color: var(--text-muted); }

/* ----------------------------------------------------------- sections */
.section { padding: 4.5rem 0; }
.section-alt { background: rgba(255, 255, 255, .018); border-block: 1px solid var(--border); }
.section-head { max-width: 44rem; margin-bottom: 2.5rem; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.section-sub { font-size: 1.02rem; }

.page-head { padding: 3.5rem 0 1rem; }
.page-head h1 { font-size: clamp(2.1rem, 4.5vw, 3rem); }
.back-link {
  display: inline-flex; align-items: center; gap: .4rem;
  color: var(--text-muted); font-size: .9rem; font-weight: 500;
  margin-bottom: 1.25rem;
}
.back-link:hover { color: var(--text); }

/* ----------------------------------------------------------- projetos */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 1.5rem;
}
.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.project-card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  box-shadow: var(--shadow);
}
.project-visual {
  position: relative;
  background: linear-gradient(140deg, rgba(99, 102, 241, .25), rgba(34, 211, 238, .1));
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.project-visual img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.badge {
  position: absolute;
  top: .85rem; right: .85rem;
  font-size: .7rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  padding: .3rem .6rem;
  border-radius: 999px;
  background: rgba(8, 11, 18, .78);
  border: 1px solid var(--border);
  color: #86efac;
  backdrop-filter: blur(6px);
}
.project-body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: .55rem; }
.project-category {
  font-size: .76rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent-2); font-weight: 600; margin: 0;
}
.project-body h3 { font-size: 1.3rem; }
.project-body h3 a:hover { color: var(--accent-2); }
.project-resumo { font-size: .95rem; margin: 0; }
.project-features { display: flex; flex-direction: column; gap: .35rem; margin: .35rem 0 .25rem; }
.project-features li {
  position: relative;
  padding-left: 1.15rem;
  font-size: .88rem;
  color: var(--text-muted);
}
.project-features li::before {
  content: "";
  position: absolute; left: 0; top: .55em;
  width: 6px; height: 6px;
  border-radius: 2px;
  background: var(--accent);
}
.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .35rem; }
.tag {
  font-size: .74rem;
  font-family: var(--mono);
  padding: .25rem .6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--border);
  color: #cbd5e1;
}
.project-link {
  display: inline-flex; align-items: center; gap: .4rem;
  margin-top: auto; padding-top: .9rem;
  color: var(--accent-2); font-weight: 600; font-size: .92rem;
}
.project-link:hover { gap: .65rem; }

/* --------------------------------------------- acesso ao demo pelo projeto */
.btn-demo {
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--text);
  margin-top: .75rem;
}
.btn-demo:hover {
  background: color-mix(in srgb, var(--accent) 26%, transparent);
  border-color: var(--accent);
}

.demo-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 1.1rem 1.3rem;
  border-radius: var(--radius-sm);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}
.demo-cta-titulo { font-weight: 700; color: var(--text); margin: 0 0 .2rem; }
.demo-cta-sub { font-size: .9rem; color: var(--text-muted); margin: 0 0 .45rem; max-width: 46rem; }
.demo-cta-credenciais {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .8rem;
  color: var(--accent-2);
  font-family: var(--mono);
  margin: 0;
}

/* --------------------------------------------------------- habilidades */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}
.skill-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.4rem;
}
.skill-card h3 { font-size: 1.05rem; margin-bottom: .9rem; }

/* --------------------------------------------------------- experiencia */
.timeline { position: relative; padding-left: 1.75rem; }
.timeline::before {
  content: "";
  position: absolute; left: 6px; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(var(--accent), rgba(99, 102, 241, 0));
}
.timeline-item { position: relative; padding-bottom: 2rem; }
.timeline-marker {
  position: absolute; left: -1.75rem; top: .45rem;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--accent);
}
.timeline-periodo {
  font-family: var(--mono);
  font-size: .76rem;
  color: var(--accent-2);
  letter-spacing: .06em;
}
.timeline-content h3 { font-size: 1.1rem; margin: .2rem 0 .15rem; }
.timeline-status {
  display: inline-block;
  margin-left: .5rem;
  vertical-align: middle;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .2rem .55rem;
  border-radius: 999px;
  color: #86efac;
  background: rgba(34, 197, 94, .12);
  border: 1px solid rgba(34, 197, 94, .28);
}
.timeline-empresa { color: var(--text); font-size: .92rem; font-weight: 500; margin-bottom: .4rem; }
.timeline-content p:last-child { margin: 0; font-size: .94rem; }

/* --------------------------------------------------------- projeto full */
.project-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, .75fr);
  gap: 2.5rem;
  align-items: start;
}
.project-main h2 { font-size: 1.5rem; margin: 2.5rem 0 1rem; }
.project-main h2:first-of-type { margin-top: 2rem; }
.project-hero-image {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(140deg, rgba(99, 102, 241, .2), rgba(34, 211, 238, .08));
  margin-bottom: 2rem;
}
.project-hero-image img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.project-head { border-bottom: 1px solid var(--border); }

.feature-list { display: flex; flex-direction: column; gap: 1.1rem; }
.feature-item {
  display: flex; gap: .9rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.2rem;
}
.feature-icon {
  flex: none;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: rgba(99, 102, 241, .16);
  border: 1px solid rgba(99, 102, 241, .3);
  color: var(--accent-2);
}
.feature-item h3 { font-size: 1rem; margin-bottom: .25rem; }
.feature-item p { margin: 0; font-size: .93rem; }

.check-list { display: flex; flex-direction: column; gap: .6rem; }
.check-list li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--text-muted);
  font-size: .95rem;
}
.check-list li::before {
  content: "";
  position: absolute; left: 0; top: .45em;
  width: 8px; height: 8px;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.project-side { display: flex; flex-direction: column; gap: 1rem; position: sticky; top: 90px; }
.side-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.35rem;
}
.side-card h3 { font-size: .95rem; margin-bottom: .85rem; }
.side-card dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .4rem .9rem; }
.side-card dt { color: var(--text-muted); font-size: .84rem; }
.side-card dd { margin: 0; font-size: .86rem; text-align: right; color: var(--text); }
.side-text { font-size: .9rem; margin: 0; }
.side-projects { display: flex; flex-direction: column; gap: .6rem; }
.side-projects a {
  display: block;
  padding: .6rem .75rem;
  border-radius: 9px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--border);
}
.side-projects a:hover { border-color: var(--accent); }
.side-projects strong { display: block; font-size: .9rem; }
.side-projects span { font-size: .78rem; color: var(--text-muted); }
.side-cta { background: linear-gradient(150deg, rgba(99, 102, 241, .16), rgba(34, 211, 238, .07)); }
.side-cta p { font-size: .88rem; }

/* ------------------------------------------------------------- contato */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, .8fr);
  gap: 2.5rem;
  align-items: start;
}
.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.field { margin-bottom: 1.1rem; }
.field label {
  display: block;
  font-size: .84rem;
  font-weight: 600;
  margin-bottom: .4rem;
  color: var(--text);
}
.field input, .field textarea {
  width: 100%;
  padding: .75rem .9rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(8, 11, 18, .6);
  color: var(--text);
  font-family: inherit;
  font-size: .94rem;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, .18);
}
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: .8rem; margin: .9rem 0 0; }
.contact-side { display: flex; flex-direction: column; gap: 1rem; }
.contact-list { display: flex; flex-direction: column; gap: .75rem; }
.contact-list li { display: flex; align-items: center; gap: .7rem; }
.contact-icon {
  width: 34px; height: 34px;
  flex: none;
  display: grid; place-items: center;
  border-radius: 9px;
  background: rgba(99, 102, 241, .14);
  border: 1px solid var(--border);
  color: var(--accent-2);
}
.contact-list a { font-size: .9rem; word-break: break-all; }
.contact-list a:hover { color: var(--accent-2); }

/* ------------------------------------------------------------------ cta */
.cta { padding: 4rem 0 5rem; }
.cta-inner {
  background:
    radial-gradient(700px 260px at 20% 0%, rgba(99, 102, 241, .22), transparent 70%),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  text-align: center;
}
.cta-inner h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); }
.cta-inner p { max-width: 40rem; margin: 0 auto 1.5rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }

/* --------------------------------------------------------------- footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(8, 11, 18, .8);
  padding: 2.5rem 0;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.footer-brand { font-weight: 700; margin: 0; color: var(--text); }
.footer-note { font-size: .84rem; margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1rem; }
.footer-links a { font-size: .88rem; color: var(--text-muted); }
.footer-links a:hover { color: var(--accent-2); }
.footer-copy { width: 100%; font-size: .8rem; color: var(--text-muted); margin: 0; }
.footer-cta {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-left: .35rem;
  padding: .25rem .7rem;
  border-radius: 999px;
  color: #86efac;
  background: rgba(34, 197, 94, .1);
  border: 1px solid rgba(34, 197, 94, .25);
  transition: background .2s, border-color .2s;
}
.footer-cta:hover { background: rgba(34, 197, 94, .2); border-color: rgba(34, 197, 94, .5); }

/* ------------------------------------------------------------ animacoes */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.22, 1, .36, 1);
}
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------------------------------------------------------- responsivo */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .project-layout, .contact-layout { grid-template-columns: 1fr; }
  .project-side { position: static; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute;
    top: 70px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: .25rem;
    padding: 1rem 1.25rem 1.5rem;
    background: rgba(8, 11, 18, .97);
    border-bottom: 1px solid var(--border);
    display: none;
  }
  .nav.open { display: flex; }
  .nav-link { padding: .7rem .5rem; }
  .nav-cta { margin: .5rem 0 0; justify-content: center; }
  .hero { padding: 3rem 0 2rem; }
  .section { padding: 3.25rem 0; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
