/* ===== Reset & base ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #050b1d;
  --surface: #0a1430;
  --border: rgba(255,255,255,0.09);
  --text: #f2f4f8;
  --text-dim: #9fa9c9;
  --text-faint: #5d6a94;
  --accent: #6f95ff;
  --ease: cubic-bezier(.19,1,.22,1);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 300;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img, video { max-width: 100%; display: block; }

::selection { background: var(--accent); color: #050b1d; }

/* ===== Fundo animado (névoa azul) ===== */
.bg-anim {
  position: fixed; inset: 0; z-index: -1;
  background: var(--bg);
  overflow: hidden;
}
.bg-anim::before,
.bg-anim::after {
  content: '';
  position: absolute;
  width: 75vmax; height: 75vmax;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform;
}
.bg-anim::before {
  top: -20vmax; left: -15vmax;
  background: radial-gradient(circle, rgba(23,48,105,0.55) 0%, rgba(13,29,66,0.3) 45%, transparent 70%);
  animation: nebula1 30s ease-in-out infinite alternate;
}
.bg-anim::after {
  bottom: -25vmax; right: -15vmax;
  background: radial-gradient(circle, rgba(16,38,88,0.5) 0%, rgba(10,24,58,0.28) 45%, transparent 70%);
  animation: nebula2 38s ease-in-out infinite alternate;
}
@keyframes nebula1 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(14vmax, 10vmax) scale(1.18); }
}
@keyframes nebula2 {
  from { transform: translate(0, 0) scale(1.12); }
  to   { transform: translate(-12vmax, -8vmax) scale(0.94); }
}
@media (prefers-reduced-motion: reduce) {
  .bg-anim::before, .bg-anim::after { animation: none; }
}

section { padding: 140px 0; }

.section-label {
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 56px;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  padding: 0;
}

.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}

.hero-fade {
  position: absolute; left: 0; right: 0; height: 220px; z-index: 1;
  pointer-events: none;
}
.hero-fade-top { top: 0; background: linear-gradient(to bottom, var(--bg), transparent); }
.hero-fade-bottom { bottom: 0; background: linear-gradient(to top, var(--bg), transparent); }

.hero-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center;
  gap: 28px; padding-top: 48px;
}

.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 8px;
  text-indent: 8px;
}

.nav { display: flex; gap: 44px; }
.nav a {
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-dim);
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: color .3s ease, border-color .3s ease;
}
.nav a:hover { color: var(--text); border-color: var(--text); }

.menu-toggle {
  display: none;
  position: absolute; top: 50px; right: 32px;
  flex-direction: column; gap: 7px; width: 26px;
}
.menu-toggle span { display: block; height: 1px; width: 100%; background: var(--text); }

.hero-caption {
  position: absolute; bottom: 96px; left: 0; right: 0; z-index: 2;
  text-align: center;
}
.hero-caption p {
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 300;
}

.scroll-hint {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  z-index: 2;
  color: var(--text-dim); font-size: 16px;
  animation: drift 2.4s ease-in-out infinite;
}
@keyframes drift {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: .6; }
  50% { transform: translateX(-50%) translateY(6px); opacity: 1; }
}

/* ===== Mobile menu ===== */
.mobile-menu {
  position: fixed; top: 0; right: 0; height: 100vh; width: min(78vw, 320px);
  background: rgba(10,20,48,0.92); backdrop-filter: blur(16px);
  z-index: 200;
  display: flex; flex-direction: column; justify-content: center;
  padding: 48px;
  transform: translateX(100%);
  transition: transform .45s var(--ease);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu nav { display: flex; flex-direction: column; gap: 36px; }
.mobile-menu nav a {
  font-size: 14px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--text-dim);
}
.mobile-menu nav a:hover { color: var(--text); }
.mobile-close {
  position: absolute; top: 40px; right: 40px;
  font-size: 28px; color: var(--text-dim); line-height: 1;
}

/* ===== Índice de categorias ===== */
.cat-index { display: flex; flex-direction: column; }

.cat-row {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 24px;
  padding: 34px 0;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.cat-row:first-child { border-top: 1px solid var(--border); }
/* entrada mais marcante que o reveal genérico */
.cat-row.reveal { transform: translateY(52px); transition-duration: 1s; }
.cat-row.reveal.in-view { transform: translateY(0); }

.cat-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(24px, 3.6vw, 42px);
  font-weight: 400;
  color: var(--text-dim);
  transition: color .35s ease, transform .45s var(--ease);
}
.cat-row:hover .cat-name { color: var(--text); transform: translateX(14px); }

.cat-count {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-faint);
  white-space: nowrap;
}

/* ===== Página de categoria ===== */
.category-head { margin-bottom: 56px; }

.back-link {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 20px;
  transition: color .3s ease;
}
.back-link:hover { color: var(--text); }

.category-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 400;
}

/* ===== Work grid ===== */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 32px;
}

.work-card { cursor: pointer; }

.work-thumb {
  position: relative;
  aspect-ratio: 16/10;
  background: linear-gradient(160deg, var(--c1, #0a0f1e), var(--c2, #141c33));
  overflow: hidden;
}
.work-thumb::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(10,20,48,0.25);
  transition: background .4s ease;
}
.work-card:hover .work-thumb::after { background: rgba(10,20,48,0); }

.work-thumb img,
.work-thumb .thumb-media {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform .6s var(--ease);
}
.work-card:hover .thumb-media { transform: scale(1.04); }

.play-icon {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  width: 48px; height: 48px;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 12px;
  padding-left: 3px;
  opacity: 0;
  transition: opacity .35s ease;
}
.work-card:hover .play-icon { opacity: 1; }

.work-meta { padding-top: 16px; }
.work-meta h3 {
  font-size: 14px; font-weight: 400;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.work-meta p {
  margin-top: 4px;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ===== Load more ===== */
.load-more-wrap {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  margin-top: 80px;
}
.load-more {
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-dim);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--text-faint);
  transition: color .3s ease, border-color .3s ease;
}
.load-more:hover { color: var(--text); border-color: var(--text); }
.load-more.is-hidden { display: none; }
.load-more-count { font-size: 11px; color: var(--text-faint); letter-spacing: 1px; }

/* ===== About ===== */
.about { background: rgba(10,20,48,0.4); }
.about-inner { max-width: 720px; }
.about h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 400;
  margin-bottom: 28px;
}
.about-p { color: var(--text-dim); font-size: 16px; margin-bottom: 32px; }
.about-skills {
  font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--text-faint);
}

/* ===== Services ===== */
.services-list { list-style: none; max-width: 720px; }
.services-list li {
  display: flex; gap: 40px; align-items: baseline;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}
.services-list li:first-child { border-top: 1px solid var(--border); }
.service-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px; color: var(--text-faint); letter-spacing: 1px;
}
.services-list h3 { font-size: 16px; font-weight: 400; margin-bottom: 4px; }
.services-list p { font-size: 14px; color: var(--text-faint); }

/* ===== Contact ===== */
.contact { background: rgba(10,20,48,0.4); }
.contact-inner { max-width: 640px; }
.contact h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 400;
  margin-bottom: 48px;
}

.contact-form { margin-bottom: 64px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.field { margin-bottom: 32px; }
.field input, .field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  font-weight: 300;
  transition: border-color .3s ease;
  resize: vertical;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--text-dim);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }

.submit-btn {
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--text);
  transition: color .3s ease, border-color .3s ease;
}
.submit-btn:hover { color: var(--accent); border-color: var(--accent); }
.form-note { margin-top: 20px; font-size: 13px; color: var(--accent); min-height: 18px; }

.whatsapp-cta {
  display: inline-block;
  margin-bottom: 64px;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--accent);
  transition: color .3s ease, border-color .3s ease;
}
.whatsapp-cta:hover { color: var(--accent); }

.contact-links {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 20px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.contact-links > a { font-size: 14px; color: var(--text-dim); }
.contact-links > a:hover { color: var(--text); }
.socials { display: flex; gap: 28px; }
.socials a {
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--text-faint);
}
.socials a:hover { color: var(--text); }

/* ===== WhatsApp flutuante ===== */
.whatsapp-float {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 250;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.45);
  transition: transform .3s var(--ease), box-shadow .3s ease;
}
.whatsapp-float svg { width: 26px; height: 26px; }
.whatsapp-float:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 14px 32px rgba(37,211,102,0.35);
}

@media (max-width: 640px) {
  .whatsapp-float { bottom: 20px; right: 20px; width: 50px; height: 50px; }
}

/* ===== Footer ===== */
.site-footer { padding: 32px 0; }
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
}
.footer-inner span { font-size: 11px; letter-spacing: 2px; color: var(--text-faint); }
.back-top { color: var(--text-faint); font-size: 14px; }
.back-top:hover { color: var(--text); }

/* ===== Video Modal ===== */
.video-modal {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(6,12,30,0.94);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
  padding: 24px;
}
.video-modal.active { opacity: 1; visibility: visible; }
.video-modal-inner {
  width: 100%; max-width: 1000px; position: relative;
  transform: scale(0.97);
  transition: transform .35s var(--ease);
}
.video-modal.active .video-modal-inner { transform: scale(1); }
.video-wrap {
  position: relative; width: 100%; aspect-ratio: 16/9;
  overflow: hidden; background: #000;
}
.video-wrap iframe, .video-wrap video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; background: #000;
}

.video-modal-inner.ig { max-width: 400px; }
.video-modal-inner.ig .video-wrap {
  aspect-ratio: auto; width: min(400px, 90vw); height: min(700px, 82vh);
  margin: 0 auto; overflow-y: auto;
}

.video-close {
  position: absolute; top: -48px; right: 0;
  font-size: 26px; color: var(--text-dim); line-height: 1;
  transition: color .2s ease;
}
.video-close:hover { color: var(--text); }

/* ===== Reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: .12s; }
.reveal.d2 { transition-delay: .24s; }
.reveal.d3 { transition-delay: .36s; }

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

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .work-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
  section { padding: 100px 0; }
  .container { padding: 0 28px; }
}

@media (max-width: 640px) {
  .nav { display: none; }
  .menu-toggle { display: flex; }
  .hero-header { padding-top: 44px; }
  .logo { font-size: 18px; letter-spacing: 6px; text-indent: 6px; }

  .work-grid { grid-template-columns: 1fr; gap: 44px; }
  .filters { gap: 20px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  section { padding: 88px 0; }
  .section-label { margin-bottom: 40px; }
}
