:root {
  --bg-color: #050505;
  --card-bg: rgba(14, 14, 14, 0.85);
  --card-hover: rgba(22, 22, 22, 0.95);
  --text-main: #f5f5f5;
  --text-muted: #8c8c8c;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.28);
  --accent: #ffffff;
  --font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-family);
  width: 100%;
  max-width: 100%;
  overflow-x: clip; /* Impede qualquer vazamento lateral */
}

html {
  scroll-behavior: smooth;
}

body {
  line-height: 1.6;
  position: relative;
}

/* LUZES AMBIENTES CINEMATOGRÁFICAS */
.ambient-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(140px);
  opacity: 0.15;
}

.glow-top {
  top: 0;
  right: 0;
  background: radial-gradient(circle, #e08b1b, transparent 70%);
}

.glow-middle {
  top: 45%;
  left: 0;
  background: radial-gradient(circle, #444, transparent 70%);
}

/* CONTAINER APENAS CONTROLA LARGURA E LATERAIS (NUNCA ZERA TOPO E BASE) */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 2rem;
  padding-right: 2rem;
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  font-weight: 600;
}

/* NAVBAR FIXA E LIMPA */
.navbar {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  padding: 1.2rem 0;
  background: rgba(5, 5, 5, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 2rem;
  padding-right: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.25em;
  font-size: 1rem;
}

.navbar nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  margin-left: 2rem;
  transition: color 0.3s ease;
}

.navbar nav a:hover {
  color: var(--accent);
}

/* SCROLL REVEAL SUAVE */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* HERO SECTION */
.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  min-height: 80vh;
  gap: 4rem;
  padding-top: 4.5rem;
  padding-bottom: 5.5rem;
}

.hero-title {
  font-size: clamp(2.6rem, 5.5vw, 5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.8rem;
}

.hero-title span {
  background: linear-gradient(180deg, #ffffff 30%, #888888 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-roles {
  list-style: none;
  margin-bottom: 1.8rem;
}

.hero-roles li {
  color: var(--text-muted);
  font-size: 0.95rem;
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.4rem;
}

.hero-roles li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--text-muted);
}

.hero-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 480px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.btn-outline {
  display: inline-block;
  padding: 0.8rem 2rem;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  border-color: var(--accent);
  background-color: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.image-wrapper {
  width: 100%;
  max-width: 360px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: radial-gradient(circle at 50% 30%, #302008, #0a0a0a);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7);
}

.image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.hero-caption {
  text-align: center;
  margin-top: 1.4rem;
  font-size: 0.75rem;
}

.hero-caption span {
  display: block;
  letter-spacing: 0.18em;
  color: var(--text-muted);
}

.hero-caption strong {
  display: block;
  margin: 0.2rem 0;
  font-weight: 600;
  font-size: 0.95rem;
}

.hero-caption small {
  color: var(--text-muted);
  letter-spacing: 0.2em;
}

/* ESPAÇAMENTOS DAS SEÇÕES */
.sobre,
.especialidades,
.projetos,
.arquivo-section {
  padding-top: 5.5rem;
  padding-bottom: 5.5rem;
  border-top: 1px solid var(--border-subtle);
}

.sobre-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.sobre-text h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 500;
  line-height: 1.35;
  margin-bottom: 1.8rem;
  letter-spacing: -0.02em;
}

.sobre-text p {
  color: var(--text-muted);
  font-size: 0.98rem;
  margin-bottom: 1.4rem;
  max-width: 760px;
}

.sobre-text strong {
  color: var(--text-main);
}

/* NÚMEROS LIMPOS */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding-top: 2rem;
}

.stat-card {
  padding: 0;
  border-top: none !important;
}

.stat-num-wrapper {
  display: flex;
  align-items: baseline;
  margin-bottom: 0.4rem;
}

.stat-num {
  font-size: clamp(3rem, 6vw, 4.2rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}

.stat-plus {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--text-muted);
  margin-left: 2px;
}

.stat-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ESPECIALIDADES */
.section-title {
  font-size: clamp(2rem, 4.5vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 3rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.skill-card {
  padding: 2.2rem 1.8rem;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  background-color: var(--card-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.skill-card:hover {
  border-color: var(--border-hover);
  background-color: var(--card-hover);
  transform: translateY(-4px);
}

.skill-icon {
  width: 28px;
  height: 28px;
  margin-bottom: 1.4rem;
  color: #f5f5f5;
  display: flex;
  align-items: center;
}

.skill-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
}

.skill-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.skill-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* PROJETOS (DESTAQUES) */
.project-item {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 3.5rem;
  align-items: center;
  margin-bottom: 5.5rem;
}

.project-item:last-child {
  margin-bottom: 0;
}

.project-item.reverse {
  grid-template-columns: 1fr 1.35fr;
}

.project-item.reverse .video-container {
  order: 2;
}

.project-item.reverse .project-info {
  order: 1;
}

.video-container {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background-color: #0d0d0d;
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.video-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  transition: background 0.3s ease;
}

.video-container:hover .play-overlay {
  background: rgba(0, 0, 0, 0.15);
}

.play-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  color: white;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 3px;
}

.video-container:hover .play-btn {
  transform: scale(1.12);
  background-color: #ffffff;
  color: #000;
  border-color: #fff;
}

.project-counter {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.project-info h3 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}

.project-client {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-weight: 600;
}

.project-funcao {
  font-size: 0.88rem;
  color: #bbb;
  margin-bottom: 0.8rem;
}

.project-funcao strong {
  color: #fff;
}

.project-info p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 1.6rem;
}

.btn-watch {
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--text-main);
  text-decoration: none;
  border-bottom: 1px solid var(--border-hover);
  padding-bottom: 4px;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-watch:hover {
  border-color: var(--accent);
  color: #fff;
}

/* ARQUIVO DE PROJETOS */
.archive-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: -2rem;
  margin-bottom: 3.5rem;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.archive-card {
  background-color: var(--card-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 200px;
  transition: all 0.3s ease;
}

.archive-card:hover {
  background-color: var(--card-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.card-num {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.card-category {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.archive-card h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  line-height: 1.35;
}

.card-funcao {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.4rem;
}

.card-link {
  align-self: flex-start;
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 2px;
  transition: all 0.3s;
}

.archive-card:hover .card-link {
  border-color: var(--accent);
}

/* SEÇÃO CONTATO */
.contato {
  padding-top: 5rem;
  padding-bottom: 6rem;
}

.contato-box {
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 5rem 2rem;
  text-align: center;
  background: radial-gradient(circle at center, #161616 0%, #060606 100%);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  width: 100%;
  overflow: hidden;
}

.contato-box h2 {
  font-size: clamp(1.7rem, 5vw, 2.9rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.25;
  margin-bottom: 1.2rem;
  overflow-wrap: break-word;
  word-break: break-word;
}

.contato-box p {
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 2.5rem;
  font-size: 0.95rem;
}

.contato-actions {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.btn-pill {
  padding: 0.85rem 2rem;
  border-radius: 999px;
  font-size: 0.85rem;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-block;
}

.email-btn {
  background-color: var(--accent);
  color: #000;
}

.email-btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.whatsapp-btn {
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
}

.whatsapp-btn:hover {
  border-color: var(--border-hover);
  background-color: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

/* FOOTER */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 3.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer-left strong {
  color: var(--text-main);
  display: block;
}

.footer-center a {
  color: var(--text-muted);
  text-decoration: none;
  margin: 0 0.8rem;
  transition: color 0.3s;
}

.footer-center a:hover {
  color: var(--accent);
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 0.35rem;
}

.footer-right .design-credit {
  color: #777;
  font-size: 0.75rem;
}

.footer-right .design-credit a {
  color: var(--text-main);
  text-decoration: none;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1px;
}

.footer-right .design-credit a:hover {
  color: #fff;
  border-color: var(--accent);
}

/* MODAL DE VÍDEO */
.video-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.video-modal.active {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.modal-content {
  position: relative;
  width: 92%;
  max-width: 980px;
  z-index: 2;
}

.close-modal {
  position: absolute;
  top: -45px;
  right: 0;
  background: transparent;
  border: none;
  color: white;
  font-size: 2.2rem;
  cursor: pointer;
  line-height: 1;
}

.video-player-box {
  position: relative;
  aspect-ratio: 16 / 9;
  background-color: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.9);
}

.video-player-box video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

/* ========================================================
   RESPONSIVIDADE AJUSTADA (MOBILE & TABLET)
======================================================== */
@media (max-width: 992px) {
  .ambient-glow {
    display: none !important;
  }

  /* RESPIRO LATERAL DO CONTAINER */
  .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  /* RESPIRO VERTICAL DAS SEÇÕES NO MOBILE */
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.2rem;
    padding-top: 2.5rem;
    padding-bottom: 4.5rem;
  }

  .sobre,
  .especialidades,
  .projetos,
  .arquivo-section {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
  }

  .contato {
    padding-top: 4rem;
    padding-bottom: 4.5rem;
  }

  .hero-visual {
    order: 1;
  }

  .hero-content {
    order: 2;
  }

  .image-wrapper {
    max-width: 280px;
  }

  .hero-roles li {
    padding-left: 0;
  }

  .hero-roles li::before {
    display: none;
  }

  .hero-desc {
    margin: 0 auto 2rem;
  }

  .sobre-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    text-align: center;
  }

  .project-item,
  .project-item.reverse {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 4.5rem;
  }

  .project-item .video-container,
  .project-item.reverse .video-container {
    order: 1 !important;
  }

  .project-item .project-info,
  .project-item.reverse .project-info {
    order: 2 !important;
  }

  .skills-grid,
  .archive-grid {
    grid-template-columns: 1fr;
  }

  .stats-row {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
    padding-top: 1.5rem;
  }

  .stat-num-wrapper {
    justify-content: center;
  }

  .contato-box {
    padding: 3.5rem 1.2rem;
  }

  .contato-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn-pill {
    width: 100%;
    text-align: center;
    padding: 0.85rem 1rem;
  }

  .footer {
    flex-direction: column;
    gap: 1.6rem;
    text-align: center;
    padding: 3rem 1.25rem;
  }

  .footer-center {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
  }

  .footer-center a {
    margin: 0;
  }

  .footer-right {
    align-items: center;
    text-align: center;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .navbar {
    padding: 0.8rem 0;
  }

  .nav-container {
    padding-left: 1rem;
    padding-right: 1rem;
    flex-direction: column;
    gap: 0.6rem;
  }

  .navbar nav {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .navbar nav a {
    margin-left: 0;
    font-size: 0.78rem;
  }
}