@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap");
:root {
  --bg: #090e1b;
  --surface: #111a2d;
  --line: #24324a;
  --text: #edf4ff;
  --muted: #9caec9;
  --blue: #60a5fa;
  --cyan: #59e1f0;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "DM Sans", Arial, sans-serif;
  line-height: 1.6;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  cursor: pointer;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3,
.logo {
  font-family: "Space Grotesk", Arial, sans-serif;
}
h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.14;
  letter-spacing: -0.055em;
}
h2 em {
  font-style: normal;
  color: var(--blue);
}
.wrap {
  max-width: 1180px;
  margin: auto;
  padding-left: 26px;
  padding-right: 26px;
}
.skip {
  position: absolute;
  top: -100px;
  left: 12px;
  background: #fff;
  color: #111;
  padding: 12px;
  z-index: 99;
}
.skip:focus {
  top: 12px;
}
.header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(9, 14, 27, 0.88);
  border-bottom: 1px solid rgba(124, 152, 199, 0.15);
  backdrop-filter: blur(16px);
}
.nav {
  height: 78px;
  display: flex;
  align-items: center;
  gap: 35px;
}
.logo {
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.07em;
  white-space: nowrap;
}
.logo span {
  color: var(--blue);
}
.logo small {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.16em;
  margin-left: 5px;
}
.navlinks {
  display: flex;
  gap: 32px;
  margin-left: auto;
}
.navlinks a {
  font-size: 14px;
  color: #c9d6ea;
}
.navlinks a:hover,
.textlink:hover {
  color: var(--cyan);
}
.navcta {
  font-size: 13px;
  border: 1px solid #3a506e;
  border-radius: 9px;
  padding: 10px 18px;
}
.navcta span {
  color: var(--blue);
}
.menu {
  display: none;
  background: none;
  border: 0;
  padding: 9px;
}
.menu span {
  display: block;
  width: 23px;
  height: 2px;
  background: #fff;
  margin: 5px;
}
.hero {
  min-height: 620px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 65px;
  padding-top: 90px;
  padding-bottom: 90px;
}
.eyebrow,
.section-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.19em;
  color: var(--cyan);
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
}
.eyebrow i {
  height: 7px;
  width: 7px;
  background: #39d3a0;
  border-radius: 50%;
  box-shadow: 0 0 12px #39d3a0;
}
.hero h1 {
  font-size: clamp(3.2rem, 6vw, 5.7rem);
  line-height: 1.07;
  letter-spacing: -0.075em;
  margin: 23px 0 12px;
}
.hero h1 em {
  font-style: normal;
  color: var(--blue);
}
.hero h1 em span {
  color: var(--cyan);
}
.role {
  font-family: "Space Grotesk";
  font-size: 20px;
  color: #c3d7f7;
}
.lead {
  max-width: 500px;
  color: var(--muted);
  font-size: 16px;
  margin: 22px 0 30px;
}
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  padding: 13px 20px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 13px;
  transition:
    transform 0.2s,
    background 0.2s;
}
.btn:hover {
  transform: translateY(-2px);
}
.primary {
  background: #317af0;
  color: white;
}
.primary:hover {
  background: #4c91ff;
}
.outline {
  border: 1px solid #40506b;
  background: rgba(255, 255, 255, 0.02);
}
.location {
  font-size: 12px;
  color: #8196b6;
  margin-top: 32px;
}
.hero-panel {
  position: relative;
  min-width: 0;
}
.window {
  position: relative;
  z-index: 2;
  background: #10192b;
  border: 1px solid #31415c;
  border-radius: 17px;
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.36);
  transform: rotate(1deg);
}
.windowbar {
  padding: 15px 17px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #263751;
  color: #879ab9;
  font-size: 11px;
}
.dots {
  display: flex;
  gap: 6px;
}
.dots b {
  height: 9px;
  width: 9px;
  border-radius: 50%;
  background: #fa6c74;
}
.dots b:nth-child(2) {
  background: #f7c35e;
}
.dots b:nth-child(3) {
  background: #55c99c;
}
.windowbar > span:last-child {
  color: #66d8ad;
}
.code {
  font-family: Consolas, monospace;
  font-size: clamp(10px, 1.15vw, 14px);
  padding: 28px 20px 36px;
  line-height: 2.15;
  white-space: nowrap;
}
.ln {
  color: #61738d;
  display: inline-block;
  width: 35px;
}
.purple {
  color: #c6a7ff;
}
.green {
  color: #88e2b1;
}
.blue {
  color: #7db8ff;
}
.cursor {
  color: var(--cyan);
}
.orbit {
  position: absolute;
  border-radius: 50%;
  filter: blur(65px);
  opacity: 0.28;
}
.orbit-one {
  width: 230px;
  height: 230px;
  background: #236de0;
  top: -80px;
  right: -45px;
}
.orbit-two {
  width: 180px;
  height: 180px;
  background: #18b4c6;
  bottom: -50px;
  left: -30px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-top: 26px;
  padding-bottom: 26px;
}
.metrics > div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 17px;
  border-right: 1px solid var(--line);
}
.metrics > div:last-child {
  border: 0;
}
.metrics strong {
  font: 700 32px "Space Grotesk";
  color: var(--blue);
}
.metrics span {
  font-size: 13px;
  color: var(--muted);
}
.section {
  padding: 105px 0;
}
.about {
  background: #0c1424;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
}
.about h2 {
  margin-top: 15px;
}
.about-text {
  color: var(--muted);
  font-size: 16px;
  padding-top: 15px;
}
.textlink {
  color: var(--blue);
  font-weight: 700;
  font-size: 14px;
}
.heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 40px;
  margin-bottom: 32px;
}
.heading h2 {
  margin: 13px 0 0;
}
.heading p {
  max-width: 340px;
  color: var(--muted);
  font-size: 14px;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}
.filter {
  background: #101a2c;
  border: 1px solid #293b56;
  border-radius: 10px;
  color: #b9c9e0;
  padding: 10px 16px;
  font-size: 13px;
}
.filter span {
  font-size: 11px;
  color: #8398b7;
  margin-left: 5px;
}
.filter.active {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}
.filter.active span {
  color: #e4eeff;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.project-card {
  border: 1px solid #26354e;
  border-radius: 15px;
  overflow: hidden;
  background: #111a2b;
  min-width: 0;
  transition:
    transform 0.2s,
    border-color 0.2s;
}
.project-card:hover {
  transform: translateY(-3px);
  border-color: #4b6387;
}
.project-cover {
  height: 190px;
  position: relative;
  overflow: hidden;
  padding: 20px;
  background:
    radial-gradient(
      circle at 85% 20%,
      color-mix(in srgb, var(--accent), transparent 65%),
      transparent 52%
    ),
    linear-gradient(135deg, #17243c, #0d1423);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.project-cover:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    transparent 48%,
    rgba(255, 255, 255, 0.04) 49%,
    transparent 50%
  );
  background-size: 28px 28px;
  pointer-events: none;
}
.cover-type {
  position: relative;
  z-index: 1;
  align-self: start;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #c3d2ea;
  background: rgba(8, 14, 28, 0.55);
  border: 1px solid #344761;
  border-radius: 20px;
  padding: 5px 10px;
}
.cover-name {
  position: relative;
  z-index: 1;
  font: 700 24px "Space Grotesk";
  max-width: 70%;
  line-height: 1.13;
  letter-spacing: -0.04em;
}
.cover-symbol {
  position: absolute;
  right: 16px;
  bottom: -43px;
  font: 700 180px "Space Grotesk";
  color: var(--accent);
  opacity: 0.22;
  line-height: 1;
}
.project-info {
  padding: 22px;
}
.project-top {
  display: flex;
  justify-content: space-between;
  color: var(--blue);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
}
.project-info h3 {
  font-size: 21px;
  letter-spacing: -0.04em;
  margin: 12px 0 8px;
}
.project-info > p {
  font-size: 13px;
  color: var(--muted);
  min-height: 64px;
}
.tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 16px 0;
}
.tags span {
  font-size: 10px;
  border: 1px solid #32445f;
  border-radius: 5px;
  padding: 4px 7px;
  color: #aabbd3;
}
.details-toggle {
  display: flex;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: 0;
  border-top: 1px solid #2a3a52;
  color: #d8e7ff;
  text-align: left;
  padding: 15px 0 0;
  font-weight: 700;
  font-size: 12px;
}
.details-toggle span {
  font-size: 20px;
  line-height: 1;
}
.details {
  padding-top: 13px;
}
.details p,
.details small {
  font-size: 12px;
  color: var(--muted);
}
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0;
}
.project-link {
  font-size: 12px;
  color: var(--cyan);
  font-weight: 700;
}
.project-link.subtle {
  color: #b5c5df;
}
.projects-note {
  font-size: 12px;
  color: #7f93b2;
  margin-top: 24px;
}
.tech {
  background: #0c1424;
}
.tech h2 {
  margin: 14px 0 30px;
}
.techgrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}
.techgrid > div {
  background: #111d31;
  border: 1px solid #263852;
  border-radius: 13px;
  padding: 25px 20px;
}
.techgrid span {
  font-size: 29px;
  color: var(--blue);
}
.techgrid h3 {
  margin: 13px 0 8px;
}
.techgrid p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}
.contactbox {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  border: 1px solid #2b466b;
  border-radius: 20px;
  background:
    radial-gradient(circle at 85% 10%, #173c6b 0, transparent 42%), #111c30;
  padding-top: 55px;
  padding-bottom: 55px;
}
.contactbox h2 {
  margin: 13px 0 18px;
}
.contactbox p {
  color: var(--muted);
  max-width: 540px;
}
.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 210px;
}
.contact-actions span {
  color: var(--muted);
  font-size: 11px;
}
.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 120px;
}
.foot p,
.foot > a:last-child {
  color: var(--muted);
  font-size: 12px;
}
.foot > a:last-child:hover {
  color: #fff;
}
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 50px;
    padding-top: 65px;
  }
  .hero-panel {
    max-width: 580px;
    width: 100%;
    margin: auto;
  }
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .techgrid {
    grid-template-columns: repeat(2, 1fr);
  }
  .navlinks {
    gap: 15px;
  }
  .about-grid {
    gap: 30px;
  }
}
@media (max-width: 650px) {
  .wrap {
    padding-left: 19px;
    padding-right: 19px;
  }
  .nav {
    height: 67px;
  }
  .navcta {
    margin-left: auto;
    padding: 8px 12px;
  }
  .menu {
    display: block;
  }
  .navlinks {
    display: none;
    position: absolute;
    top: 67px;
    left: 0;
    right: 0;
    background: #10192b;
    border-bottom: 1px solid #334562;
    padding: 20px;
    flex-direction: column;
    gap: 18px;
  }
  .navlinks.open {
    display: flex;
  }
  .hero {
    min-height: 0;
    padding-top: 65px;
    padding-bottom: 60px;
  }
  .hero h1 {
    font-size: clamp(2.7rem, 11vw, 4.1rem);
  }
  .hero-panel {
    max-width: 100%;
  }
  .window {
    transform: none;
  }
  .code {
    font-size: 11px;
    padding: 22px 10px;
  }
  .ln {
    width: 24px;
  }
  .metrics {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .metrics > div {
    justify-content: start;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 0 0 15px;
  }
  .metrics > div:last-child {
    border: 0;
    padding-bottom: 0;
  }
  .section {
    padding: 72px 0;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .heading {
    display: block;
  }
  .heading p {
    margin-top: 20px;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .project-info > p {
    min-height: 0;
  }
  .techgrid {
    grid-template-columns: 1fr 1fr;
  }
  .contactbox {
    display: block;
    padding-top: 35px;
    padding-bottom: 35px;
  }
  .contact-actions {
    margin-top: 25px;
  }
  .foot {
    padding-top: 25px;
    padding-bottom: 25px;
    flex-wrap: wrap;
  }
  .foot p {
    order: 3;
    width: 100%;
  }
}
@media (max-width: 390px) {
  .techgrid {
    grid-template-columns: 1fr;
  }
  .navcta {
    font-size: 11px;
  }
  .logo {
    font-size: 21px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    transition: none !important;
  }
}

/* Capas reais dos projetos */
.project-cover {
  padding: 0;
  background: #17243c;
}
.project-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.35s ease;
}
.project-card:hover .project-cover img {
  transform: scale(1.035);
}
.project-cover:after {
  background: linear-gradient(
    to bottom,
    rgba(5, 12, 24, 0.42),
    transparent 45%
  );
}
.cover-type {
  position: absolute;
  top: 13px;
  left: 13px;
  z-index: 2;
  background: rgba(8, 14, 28, 0.83);
  color: #f0f6ff;
}
@media (prefers-reduced-motion: reduce) {
  .project-card:hover .project-cover img {
    transform: none;
  }
}

/* Acesso direto ao projeto sem interferir no botão de detalhes */
.project-cover-link {
  display: block;
  text-decoration: none;
  cursor: pointer;
}
.project-cover-link img {
  transition: transform 0.3s ease;
}
.project-cover-link:hover img {
  transform: scale(1.035);
}
.project-title-link {
  color: inherit;
  text-decoration: none;
}
.project-title-link:hover {
  color: var(--accent);
}
.project-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}
.project-actions .project-link,
.project-actions .details-toggle {
  margin: 0;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 10px;
}
.project-actions .project-link.primary {
  background: #2563eb;
  color: white;
  font-weight: 700;
  text-decoration: none;
}
.project-actions .project-link.primary:hover {
  background: #1d4ed8;
}
.project-actions .details-toggle {
  cursor: pointer;
}
.project-cover-link:focus-visible,
.project-title-link:focus-visible,
.project-actions a:focus-visible,
.project-actions button:focus-visible {
  outline: 3px solid #93c5fd;
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  .project-cover-link img {
    transition: none;
  }
}

/* Conteúdo técnico expansível dos projetos */
.project-detail-section {
  margin: 0 0 14px;
}
.project-detail-section strong {
  display: block;
  margin-bottom: 5px;
  font-size: 0.9rem;
}
.project-detail-section p {
  margin: 0;
  line-height: 1.55;
}

/* Evita deslocamento horizontal em telas estreitas. */
html, body { max-width: 100%; overflow-x: clip; }
img { max-width: 100%; }

.metrics > div { min-width:0; padding:0 12px; }
.metrics > div:first-child {padding-left:0;}
@media (min-width:701px) and (max-width:900px) {.metrics {grid-template-columns:repeat(2,minmax(0,1fr));row-gap:20px;} .metrics > div:nth-child(2){border-right:0;}}
@media (max-width:700px){.metrics > div{padding:0 0 15px;}}
