/* ═══════════════════════════════════════════════════
   THOMAS ZOORD — PORTFOLIO
   Inspired by editorial motion design portfolios
   ═══════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:      #1a6fff;
  --blue-dim:  rgba(26, 111, 255, 0.08);
  --bg:        #090c12;
  --bg2:       #0d1120;
  --border:    rgba(255,255,255,0.06);
  --border2:   rgba(255,255,255,0.12);
  --text:      #f0f0f0;
  --muted:     #5a6070;
  --font:      'Inter', system-ui, sans-serif;
  --ease:      cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

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

a    { text-decoration: none; color: inherit; }
img  { display: block; max-width: 100%; }

::selection { background: var(--blue); color: #fff; }
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-thumb { background: #1a2030; }

/* ─── NAV ─────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 40px;
  mix-blend-mode: difference;
}

.nav__logo {
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #fff;
}

.nav__links {
  display: flex;
  gap: 32px;
}

.nav__links a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}
.nav__links a:hover { color: #fff; }

/* ─── HERO ─────────────────────────────────────────── */
.hero {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
  background: #000;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero__video-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw;
  min-height: 100vh;
  min-width: 177.77vh;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}

.hero__video-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  opacity: 0.65;
  transition: opacity 0.6s;
}

/* Otimização: esconde o iframe do fundo quando um modal está aberto */
.hero--modal-open .hero__video-wrapper {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top,    rgba(9,12,18,1)   0%,  rgba(9,12,18,0) 50%),
    linear-gradient(to bottom, rgba(9,12,18,0.4) 0%,  transparent 30%),
    linear-gradient(to right,  rgba(9,12,18,0.3) 0%,  transparent 60%);
}

/* Nome editorial — canto inferior esquerdo */
.hero__identity {
  position: absolute;
  bottom: 88px;
  left: 40px;
  z-index: 2;
  line-height: 1;
}

.hero__role {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
}

.hero__name {
  font-size: clamp(3.2rem, 8vw, 7.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.92;
  color: #fff;
}

.hero__name em {
  font-style: italic;
  color: rgba(255,255,255,0.45);
}

/* Botão de Play centralizado */
.hero__center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
}

.hero__play-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 28px;
  background: rgba(9, 12, 18, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50px;
  color: #fff;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hero__play-btn .play-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--blue);
  color: #fff;
  border-radius: 50%;
  transition: transform 0.3s var(--ease), background 0.3s, color 0.3s;
}

.hero__play-btn:hover {
  background: rgba(26, 111, 255, 0.15);
  border-color: var(--blue);
  box-shadow: 0 0 30px rgba(26, 111, 255, 0.25);
}

.hero__play-btn:hover .play-icon {
  background: #fff;
  color: var(--blue);
  transform: scale(1.08);
}


/* Botão mute — canto inferior direito */
.hero__mute {
  position: absolute;
  bottom: 40px;
  right: 40px;
  z-index: 3;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  backdrop-filter: blur(8px);
}
.hero__mute:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.3);
  color: #fff;
}
.hero__mute.unmuted {
  border-color: var(--blue);
  color: var(--blue);
}

/* Software icons — linha horizontal direita/baixo */
.hero__software {
  position: absolute;
  bottom: 42px;
  right: 96px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sw {
  height: 34px;
  padding: 0 10px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(8px);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.45);
  display: flex;
  align-items: center;
  transition: border-color 0.2s, color 0.2s;
  cursor: default;
}
.sw:hover {
  border-color: rgba(26,111,255,0.45);
  color: rgba(255,255,255,0.85);
}

/* Social links — abaixo do nome */
.hero__social {
  position: absolute;
  bottom: 44px;
  left: 40px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero__social a {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.4);
  transition: color 0.2s;
}
.hero__social a:hover { color: rgba(255,255,255,0.85); }

.hero__social-sep {
  width: 1px;
  height: 12px;
  background: rgba(255,255,255,0.15);
}

/* Seta down — centro inferior */
.hero__down {
  position: absolute;
  bottom: 42px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: rgba(255,255,255,0.3);
  transition: color 0.2s, transform 0.2s;
  animation: nudge 2.5s ease-in-out infinite;
}
.hero__down:hover { color: #fff; }

@keyframes nudge {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(5px); }
}

/* ─── WORKS ────────────────────────────────────────── */
.works {
  padding: 0 0 120px;
  border-top: 1px solid var(--border);
}

.works__header {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 28px 40px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.works__title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  margin-right: auto;
}

.works__count {
  color: var(--muted);
  font-weight: 400;
  margin-left: 6px;
}

/* Filtros */
.works__filters {
  display: flex;
  gap: 4px;
}

.wf {
  padding: 6px 14px;
  border-radius: 3px;
  border: 1px solid transparent;
  background: transparent;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.18s;
}
.wf:hover { color: var(--text); border-color: var(--border2); }
.wf.active { color: var(--text); border-color: var(--border2); background: rgba(255,255,255,0.04); }

/* Botão reel */
.works__reel-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 3px;
  border: 1px solid rgba(26,111,255,0.35);
  background: var(--blue-dim);
  color: var(--blue);
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  flex-shrink: 0;
}
.works__reel-btn:hover {
  background: rgba(26,111,255,0.18);
  border-color: var(--blue);
}

/* Grid — editorial, tamanhos variados */
.works__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2px;
  padding: 2px;
  background: rgba(255,255,255,0.04);
}

/* Placeholder de "Em breve" */
.works__coming-soon {
  grid-column: span 12;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px;
  background: var(--bg);
  border: 1px dashed rgba(255, 255, 255, 0.06);
  border-radius: 4px;
}

.works__coming-soon p {
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 8px;
}

.works__coming-soon span {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Tamanhos dos cards */
.project-card                 { grid-column: span 6; }
.project-card--wide           { grid-column: span 8; }
.project-card--narrow         { grid-column: span 4; }
.project-card--full           { grid-column: span 12; }
.project-card--third          { grid-column: span 4; }

/* Card */
.project-card {
  position: relative;
  background: var(--bg2);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 16/10;
}

.project-card--wide   { aspect-ratio: 16/9; }
.project-card--narrow { aspect-ratio: 4/5;  }
.project-card--full   { aspect-ratio: 21/9; }
.project-card--third  { aspect-ratio: 4/5;  }

.project-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease), filter 0.4s;
  filter: brightness(0.75) saturate(0.75);
}

.project-card:hover .project-card__img {
  transform: scale(1.05);
  filter: brightness(0.5) saturate(0.5);
}

.project-card__info {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px 28px;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 50%);
}

.project-card__cat {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 5px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.25s, transform 0.25s;
}
.project-card:hover .project-card__cat { opacity: 1; transform: translateY(0); }

.project-card__title {
  font-size: clamp(0.85rem, 1.5vw, 1.15rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

.project-card__sub {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  margin-top: 4px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s var(--ease);
}
.project-card:hover .project-card__sub { max-height: 40px; }

/* ─── ABOUT ────────────────────────────────────────── */
.about {
  padding: 100px 40px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 80px;
}

.about__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  flex-shrink: 0;
  padding-top: 6px;
  width: 120px;
}

.about__text {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 300;
  line-height: 1.55;
  letter-spacing: -0.01em;
  color: rgba(255,255,255,0.75);
  max-width: 680px;
}

/* ─── CONTACT ──────────────────────────────────────── */
.contact {
  padding: 80px 40px 60px;
  border-top: 1px solid var(--border);
}

.contact__email {
  display: block;
  font-size: clamp(1.4rem, 4vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 40px;
  transition: color 0.2s;
}
.contact__email:hover { color: var(--blue); }

.contact__links {
  display: flex;
  gap: 28px;
  margin-bottom: 60px;
}

.contact__links a {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.contact__links a:hover {
  color: var(--text);
  border-color: var(--border2);
}

.contact__copy {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* ─── MODAL ────────────────────────────────────────── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.modal.open {
  opacity: 1;
  pointer-events: all;
}

.modal__bg {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 10, 0.96);
}

.modal__panel {
  position: relative;
  z-index: 1;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 6px;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px);
  transition: transform 0.35s var(--ease);
}
.modal.open .modal__panel { transform: translateY(0); }

.modal__panel--wide { max-width: 1040px; }

.modal__close {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 2;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid var(--border2);
  background: rgba(255,255,255,0.04);
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, border-color 0.2s;
}
.modal__close:hover { color: var(--text); border-color: rgba(255,255,255,0.25); }

/* modal projeto */
.modal__thumb {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 5px 5px 0 0;
  display: block;
}

.modal__video-wrap {
  position: relative;
  padding-top: 56.25%;
  background: #000;
  border-radius: 5px 5px 0 0;
  overflow: hidden;
}
.modal__video-wrap iframe,
.modal__video-wrap video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.modal__body {
  padding: 24px 28px 28px;
}

.modal__cat {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 8px;
}

.modal__title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}

.modal__desc {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
}

.modal__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  border: 1px solid rgba(26,111,255,0.3);
  padding: 9px 18px;
  border-radius: 3px;
  transition: background 0.2s, border-color 0.2s;
}
.modal__link:hover { background: var(--blue-dim); border-color: var(--blue); }

/* modal reel */
.modal__reel-inner { padding: 16px; }

.modal__reel-inner .modal__video-wrap {
  border-radius: 4px;
  overflow: hidden;
  padding-top: 56.25%;
  background: #000;
}

.modal__reel-label {
  margin-top: 14px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* ─── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 1024px) {
  .project-card,
  .project-card--wide    { grid-column: span 12; aspect-ratio: 16/9; }
  .project-card--narrow  { grid-column: span 6;  aspect-ratio: 16/9; }
  .project-card--full    { grid-column: span 12; aspect-ratio: 16/9; }
  .project-card--third   { grid-column: span 6;  aspect-ratio: 16/9; }
}

@media (max-width: 768px) {
  .nav { padding: 18px 20px; }
  .nav__links { gap: 20px; }

  .hero__identity { left: 20px; bottom: 100px; }
  .hero__social   { left: 20px; bottom: 56px; gap: 10px; }
  .hero__software { display: none; }
  .hero__mute     { right: 20px; bottom: 56px; }
  .hero__down     { display: none; }

  .works__header { padding: 20px; gap: 12px; }
  .works__reel-btn { display: none; }

  .project-card,
  .project-card--wide,
  .project-card--narrow,
  .project-card--full,
  .project-card--third   { grid-column: span 12; aspect-ratio: 16/9; }

  .about  { padding: 60px 20px; flex-direction: column; gap: 20px; }
  .contact { padding: 60px 20px 40px; }
  .contact__email { font-size: 1.5rem; }
}
