:root {
  --background: #070707;
  --surface: #101010;
  --surface-soft: #151515;
  --text: #f5f2eb;
  --muted: #aaa69d;
  --accent: #d9962b;
  --accent-light: #f0b74f;
  --border: rgba(255,255,255,.09);
  --max-width: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 80% 10%, rgba(217,150,43,.08), transparent 28%),
    var(--background);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.container { width: min(92%, var(--max-width)); margin-inline: auto; }

.header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 50;
  background: rgba(7,7,7,.72);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(14px);
  transition: .3s ease;
}
.header.scrolled { border-color: var(--border); }
.nav { height: 76px; display: flex; align-items: center; justify-content: space-between; }
.logo { font-family: "Sora", sans-serif; font-size: 1.35rem; font-weight: 700; letter-spacing: -.04em; }
.logo span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 32px; font-size: .94rem; color: #d5d1c9; }
.nav-links a { transition: color .2s ease; }
.nav-links a:hover { color: var(--accent-light); }
.nav-contact { border: 1px solid var(--border); padding: 10px 17px; border-radius: 999px; }
.menu-button { display: none; background: transparent; border: 0; cursor: pointer; }
.menu-button span { display: block; width: 24px; height: 2px; background: white; margin: 5px; }

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-image: url("assets/banner.png");
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(3,3,3,.97) 0%, rgba(3,3,3,.88) 38%, rgba(3,3,3,.28) 70%, rgba(3,3,3,.22) 100%);
}
.hero-content { position: relative; z-index: 1; padding-top: 70px; }
.eyebrow, .section-label { color: var(--accent-light); letter-spacing: .16em; font-size: .75rem; font-weight: 700; }
.hero h1 {
  font-family: "Sora", sans-serif;
  max-width: 760px;
  font-size: clamp(3rem, 7vw, 6.4rem);
  line-height: .98;
  letter-spacing: -.065em;
  margin: 22px 0 24px;
}
.hero h1 span { color: var(--accent-light); }
.hero-text { max-width: 620px; color: #c4c0b7; font-size: clamp(1rem, 2vw, 1.2rem); }
.hero-actions, .contact-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; justify-content: center; padding: 14px 22px; border-radius: 8px; font-weight: 700; transition: .25s ease; }
.button.primary { background: var(--accent); color: #120d05; }
.button.primary:hover { background: var(--accent-light); transform: translateY(-2px); }
.button.secondary { border: 1px solid var(--border); background: rgba(10,10,10,.45); }
.button.secondary:hover { border-color: rgba(240,183,79,.55); color: var(--accent-light); transform: translateY(-2px); }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 46px; }
.hero-tags span, .tech-list span { border: 1px solid var(--border); background: rgba(10,10,10,.55); color: #bdb8ae; border-radius: 999px; padding: 7px 12px; font-size: .78rem; }

.section { padding: 110px 0; }
.about-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 90px; }
h2 { font-family: "Sora", sans-serif; font-size: clamp(2rem, 4vw, 3.7rem); line-height: 1.12; letter-spacing: -.045em; margin-top: 16px; }
.about-copy { color: var(--muted); font-size: 1.05rem; }
.about-copy p + p { margin-top: 20px; }
.text-link { display: inline-block; margin-top: 28px; color: var(--text); font-weight: 700; }
.text-link span { color: var(--accent-light); margin-left: 8px; }

.projects-section { background: #0b0b0b; border-block: 1px solid var(--border); }
.section-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 50px; }
.section-heading h2 { max-width: 760px; }
.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.project-card {
  min-height: 360px;
  border: 1px solid var(--border);
  background: linear-gradient(145deg, #121212, #0c0c0c);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: .3s ease;
  position: relative;
  overflow: hidden;
}
.project-card::after { content: ""; position: absolute; width: 220px; height: 220px; right: -100px; bottom: -100px; background: radial-gradient(circle, rgba(217,150,43,.16), transparent 68%); transition: .3s ease; }
.project-card:hover { transform: translateY(-7px); border-color: rgba(217,150,43,.5); }
.project-card:hover::after { transform: scale(1.25); }
.project-card.featured { grid-column: span 2; min-height: 430px; }
.project-number { color: #5e5b55; font-family: "Sora", sans-serif; }
.project-type { color: var(--accent-light); font-size: .76rem; text-transform: uppercase; letter-spacing: .14em; }
.project-content h3 { font-family: "Sora", sans-serif; font-size: 2rem; margin: 8px 0 12px; }
.project-content p { color: var(--muted); max-width: 600px; }
.tech-list { display: flex; gap: 8px; flex-wrap: wrap; margin: 22px 0; }
.project-content > a { font-weight: 700; }
.project-content > a span { color: var(--accent-light); margin-left: 6px; }

.services-title { max-width: 850px; }
.services-grid { margin-top: 50px; border-top: 1px solid var(--border); }
.services-grid article { display: grid; grid-template-columns: 70px 1fr 1.3fr; gap: 30px; align-items: start; padding: 30px 0; border-bottom: 1px solid var(--border); }
.services-grid article > span { color: var(--accent-light); }
.services-grid h3 { font-family: "Sora", sans-serif; font-size: 1.3rem; }
.services-grid p { color: var(--muted); }

.contact-section { padding: 120px 0; background: linear-gradient(120deg, #111 0%, #090909 64%, rgba(217,150,43,.14) 100%); border-top: 1px solid var(--border); }
.contact-content { max-width: 900px; text-align: center; }
.contact-content .section-label { display: block; }
.contact-content p:not(.section-label) { color: var(--muted); margin: 22px auto 0; max-width: 670px; }
.contact-actions { justify-content: center; }

.footer { padding: 30px 0; border-top: 1px solid var(--border); color: var(--muted); }
.footer-content { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.footer-content > div { display: flex; gap: 18px; }
.footer a:hover { color: var(--accent-light); }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 780px) {
  .nav-links { position: absolute; top: 76px; left: 0; width: 100%; background: #0a0a0a; border-bottom: 1px solid var(--border); padding: 24px 4%; display: none; flex-direction: column; align-items: flex-start; }
  .nav-links.open { display: flex; }
  .menu-button { display: block; }
  .hero { background-position: 64% center; }
  .hero-overlay { background: linear-gradient(90deg, rgba(3,3,3,.98), rgba(3,3,3,.83)); }
  .hero h1 { max-width: 580px; }
  .about-grid { grid-template-columns: 1fr; gap: 34px; }
  .projects-grid { grid-template-columns: 1fr; }
  .project-card.featured { grid-column: span 1; }
  .services-grid article { grid-template-columns: 40px 1fr; }
  .services-grid article p { grid-column: 2; }
  .footer-content { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .section { padding: 82px 0; }
  .hero-actions .button { width: 100%; }
  .hero-tags { margin-top: 32px; }
  .project-card { min-height: 330px; padding: 22px; }
  .footer-content > div { flex-wrap: wrap; justify-content: center; }
}

/* Projetos com imagens */
.project-card {
  padding: 0;
  min-height: 0;
  justify-content: flex-start;
}
.project-card::after { pointer-events: none; }
.project-card.featured { min-height: 0; }
.project-image {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: #090909;
  cursor: pointer;
}
.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: transform .55s ease, filter .35s ease;
}
.project-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.38), transparent 48%);
  opacity: .65;
  transition: opacity .3s ease;
}
.project-card:hover .project-image img { transform: scale(1.035); filter: brightness(.9); }
.project-card:hover .project-image::after { opacity: 1; }
.project-image.portrait { aspect-ratio: 16 / 9; }
.project-image.portrait img { object-position: center 20%; }
.image-badge {
  position: absolute;
  z-index: 2;
  right: 18px;
  bottom: 16px;
  padding: 7px 11px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  color: #fff;
  background: rgba(8,8,8,.72);
  backdrop-filter: blur(8px);
  font-size: .72rem;
  font-weight: 700;
}
.project-info {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  padding: 26px 28px 30px;
  min-height: 290px;
}
.project-card.featured .project-info { min-height: 260px; }
.project-number { padding-top: 4px; }
.project-link {
  color: var(--text);
  background: transparent;
  border: 0;
  padding: 0;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.project-link span { color: var(--accent-light); margin-left: 6px; }
.project-link:hover { color: var(--accent-light); }

/* Galeria */
.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 70px 80px;
  background: rgba(0,0,0,.92);
  backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.gallery-modal.open { opacity: 1; visibility: visible; }
.gallery-content {
  width: min(1180px, 88vw);
  max-height: 82vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.gallery-content img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border: 1px solid rgba(255,255,255,.13);
  box-shadow: 0 30px 80px rgba(0,0,0,.55);
  background: #0b0b0b;
}
.gallery-content figcaption { color: #c9c4ba; font-size: .9rem; text-align: center; }
.gallery-close,
.gallery-nav {
  position: absolute;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(16,16,16,.75);
  color: white;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: .2s ease;
}
.gallery-close:hover,
.gallery-nav:hover { border-color: var(--accent); color: var(--accent-light); }
.gallery-close {
  top: 22px;
  right: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 2rem;
  line-height: 1;
}
.gallery-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 66px;
  border-radius: 10px;
  font-size: 2.4rem;
  line-height: 1;
}
.gallery-prev { left: 20px; }
.gallery-next { right: 20px; }
body.modal-open { overflow: hidden; }

@media (max-width: 780px) {
  .project-info { grid-template-columns: 1fr; min-height: 0; padding: 22px; }
  .project-number { display: none; }
  .gallery-modal { padding: 64px 14px 30px; }
  .gallery-content { width: 100%; }
  .gallery-nav { width: 42px; height: 56px; background: rgba(0,0,0,.65); }
  .gallery-prev { left: 8px; }
  .gallery-next { right: 8px; }
  .gallery-close { top: 12px; right: 12px; }
}
