/* =========================================
   STUDIO ZAVINI
   MAIN STYLES
========================================= */

/* =========================================
   VARIABLES
========================================= */

:root {
  --deep-purple: #230b49;
  --purple: #6b21cc;
  --bright-purple: #9027ff;

  --blue: #007ae8;
  --deep-blue: #00347f;

  --white: #ffffff;

  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.65);
  --text-muted: rgba(255, 255, 255, 0.42);

  --background: #090510;
  --surface: #10091b;

  --border: rgba(255, 255, 255, 0.09);

  --max-width: 1240px;

  --transition: 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* =========================================
   RESET
========================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(
      circle at 80% 10%,
      rgba(107, 33, 204, 0.12),
      transparent 30%
    ),
    #090510;

  color: var(--text-primary);

  font-family: Arial, Helvetica, sans-serif;

  line-height: 1.6;

  overflow-x: hidden;
}

body.lightbox-open {
  overflow: hidden;
}

body.youtube-modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

/* =========================================
   NAVBAR
========================================= */

.navbar {
  position: fixed;

  top: 0;
  left: 0;

  width: 100%;
  height: 88px;

  display: flex;

  align-items: center;
  justify-content: space-between;

  padding: 0 5vw;

  background: rgba(9, 5, 16, 0.78);

  backdrop-filter: blur(18px);

  border-bottom: 1px solid var(--border);

  z-index: 1000;
}

.logo img {
  width: 145px;

  display: block;

  transition: transform var(--transition);
}

.logo:hover img {
  transform: translateY(-2px);
}

.nav-links {
  display: flex;

  align-items: center;

  gap: 42px;
}

.nav-link {
  position: relative;

  color: var(--text-secondary);

  font-size: 13px;

  letter-spacing: 0.08em;

  text-transform: uppercase;

  transition: color var(--transition);
}

.nav-link::after {
  content: "";

  position: absolute;

  left: 0;
  bottom: -8px;

  width: 0;
  height: 1px;

  background: linear-gradient(90deg, var(--bright-purple), var(--blue));

  transition: width var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.mobile-menu-button {
  display: none;
}

/* =========================================
   GENERAL SECTIONS
========================================= */

.section {
  width: 100%;

  max-width: var(--max-width);

  margin: 0 auto;

  padding: 150px 5vw;
}

/* =========================================
   HERO
========================================= */

.hero {
  min-height: 100vh;

  max-width: none;

  padding: 180px 8vw 120px;

  display: flex;

  align-items: center;

  position: relative;

  overflow: hidden;

  background: var(--background);
}

/* =========================================
   HERO BACKGROUND
========================================= */

.hero-background {
  position: absolute;

  inset: 0;

  width: 100%;
  height: 100%;

  overflow: hidden;

  z-index: 0;

  background: var(--deep-purple);
}

.hero-slide {
  position: absolute;

  inset: 0;

  width: 100%;
  height: 100%;

  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;

  opacity: 0;

  transform: scale(1.02);

  transition: opacity 1600ms cubic-bezier(0.4, 0, 0.2, 1);

  will-change: opacity;
}

.hero-slide.active {
  opacity: 1;

  transform: scale(1.02);
}

.hero-video {
  position: absolute;

  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;

  display: block;

  pointer-events: none;
}

/* =========================================
   HERO COLOR OVERLAY
========================================= */

.hero-color-overlay {
  position: absolute;

  inset: 0;

  z-index: 1;

  pointer-events: none;

  background: linear-gradient(
    110deg,
    rgba(35, 11, 73, 0.92) 0%,
    rgba(35, 11, 73, 0.68) 35%,
    rgba(0, 52, 127, 0.42) 75%,
    rgba(0, 122, 232, 0.2) 100%
  );

  mix-blend-mode: normal;
}

/* =========================================
   HERO DARK OVERLAY
========================================= */

.hero-dark-overlay {
  position: absolute;

  inset: 0;

  z-index: 2;

  pointer-events: none;

  background:
    linear-gradient(
      90deg,
      rgba(5, 3, 10, 0.88) 0%,
      rgba(5, 3, 10, 0.65) 45%,
      rgba(5, 3, 10, 0.3) 100%
    ),
    linear-gradient(180deg, rgba(5, 3, 10, 0.25), rgba(5, 3, 10, 0.55));
}

/* =========================================
   HERO CONTENT
========================================= */

.hero-content {
  max-width: 850px;

  position: relative;

  z-index: 5;
}

/* =========================================
   HERO TYPOGRAPHY
========================================= */

.hero h1 {
  max-width: 900px;

  font-size: clamp(58px, 8vw, 120px);

  line-height: 0.95;

  letter-spacing: -0.06em;

  font-weight: 700;

  text-shadow: 0 4px 35px rgba(0, 0, 0, 0.35);
}

.hero h1 span {
  display: block;

  background: linear-gradient(100deg, var(--bright-purple), var(--blue));

  -webkit-background-clip: text;

  background-clip: text;

  color: transparent;

  filter: drop-shadow(0 5px 20px rgba(0, 0, 0, 0.25));
}

.hero-description {
  max-width: 610px;

  margin-top: 35px;

  color: rgba(255, 255, 255, 0.78);

  font-size: 18px;

  line-height: 1.8;

  text-shadow: 0 3px 20px rgba(0, 0, 0, 0.5);
}

/* =========================================
   HERO BUTTONS
========================================= */

.hero-buttons {
  display: flex;

  gap: 15px;

  margin-top: 42px;
}

.button {
  display: inline-flex;

  align-items: center;

  gap: 15px;

  padding: 15px 22px;

  border: 1px solid rgba(255, 255, 255, 0.15);

  font-size: 12px;

  text-transform: uppercase;

  letter-spacing: 0.1em;

  transition:
    transform var(--transition),
    border-color var(--transition),
    background var(--transition);

  backdrop-filter: blur(8px);
}

.button:hover {
  transform: translateY(-3px);

  border-color: rgba(255, 255, 255, 0.3);
}

.button-primary {
  background: linear-gradient(110deg, var(--purple), var(--blue));

  border: none;

  box-shadow: 0 10px 40px rgba(35, 11, 73, 0.35);
}

.button-primary:hover {
  box-shadow: 0 15px 45px rgba(107, 33, 204, 0.35);
}

.button-secondary {
  background: rgba(5, 3, 10, 0.35);
}

/* =========================================
   HERO DECORATION
========================================= */

.hero-decoration {
  position: absolute;

  inset: 0;

  pointer-events: none;

  z-index: 3;
}

.hero-grid {
  position: absolute;

  width: 800px;

  height: 800px;

  right: -250px;

  top: 10%;

  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);

  background-size: 45px 45px;

  mask-image: radial-gradient(circle, black 10%, transparent 70%);

  transform: perspective(800px) rotateX(60deg) rotateZ(-25deg);
}

.glow {
  position: absolute;

  border-radius: 50%;

  filter: blur(100px);

  opacity: 0.2;
}

.glow-one {
  width: 400px;

  height: 400px;

  right: 5%;

  top: 15%;

  background: var(--bright-purple);
}

.glow-two {
  width: 300px;

  height: 300px;

  right: 30%;

  bottom: 0;

  background: var(--blue);
}

/* =========================================
   SECTION HEADINGS
========================================= */

.section-heading {
  display: flex;

  align-items: flex-end;

  justify-content: space-between;

  gap: 60px;

  margin-bottom: 90px;
}

.section-heading h2 {
  font-size: clamp(50px, 7vw, 90px);

  line-height: 1;

  letter-spacing: -0.05em;
}

.section-intro {
  max-width: 400px;

  color: var(--text-secondary);

  font-size: 15px;
}

/* =========================================
   PORTFOLIO CATEGORY
========================================= */

.portfolio-category {
  margin-bottom: 120px;
}

.category-heading {
  display: flex;

  justify-content: space-between;

  align-items: flex-start;

  margin-bottom: 30px;

  padding-bottom: 20px;

  border-bottom: 1px solid var(--border);
}

.category-heading h3 {
  font-size: 26px;

  letter-spacing: -0.02em;
}

.category-heading > span {
  color: var(--blue);

  font-size: 11px;

  letter-spacing: 0.15em;
}

.category-heading p {
  margin-top: 8px;

  color: var(--text-muted);

  font-size: 13px;
}

/* =========================================
   HORIZONTAL VIDEO GALLERIES
========================================= */

.video-grid,
.short-video-grid {
  display: flex;

  flex-wrap: nowrap;

  /*
   * O JavaScript adiciona:
   *
   * .no-overflow
   * quando todos os cards cabem.
   *
   * .has-overflow
   * quando existe rolagem horizontal.
   */

  justify-content: flex-start;

  gap: 20px;

  width: 100%;

  overflow-x: auto;

  overflow-y: hidden;

  padding: 10px 0 25px;

  box-sizing: border-box;

  scrollbar-width: thin;

  scrollbar-color: var(--bright-purple) rgba(255, 255, 255, 0.06);

  -webkit-overflow-scrolling: touch;

  scroll-behavior: smooth;
}

/*
 * Quando NÃO existe overflow:
 * centraliza os cards.
 */

.video-grid.no-overflow,
.short-video-grid.no-overflow {
  justify-content: center;

  overflow-x: hidden;
}

/*
 * Quando existe overflow:
 * mantém os cards começando pelo primeiro.
 */

.video-grid.has-overflow,
.short-video-grid.has-overflow {
  justify-content: flex-start;
}

/* =========================================
   VIDEO SCROLLBAR
========================================= */

.video-grid::-webkit-scrollbar,
.short-video-grid::-webkit-scrollbar {
  height: 5px;
}

.video-grid::-webkit-scrollbar-track,
.short-video-grid::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

.video-grid::-webkit-scrollbar-thumb,
.short-video-grid::-webkit-scrollbar-thumb {
  background: linear-gradient(
    90deg,
    var(--purple),
    var(--bright-purple),
    var(--blue)
  );

  border-radius: 20px;
}

/* =========================================
   EDITED VIDEO CARDS
========================================= */

.video-grid .video-project {
  flex: 0 0 360px;

  width: 360px;

  min-width: 360px;
}

/* =========================================
   SHORT VIDEO CARDS
========================================= */

.short-video-grid {
  gap: 18px;
}

.short-video-grid .video-project,
.short-video-grid .video-card {
  flex: 0 0 220px;

  width: 220px;

  min-width: 220px;

  aspect-ratio: 9 / 16;
}

/* =========================================
   SHORT VIDEO PLAYER
========================================= */

.short-video-grid .youtube-player {
  aspect-ratio: 9 / 16;
}

/* =========================================
   VIDEO PROJECT
========================================= */

.video-project {
  min-width: 0;
}

/* =========================================
   YOUTUBE THUMBNAIL PLAYER
========================================= */

.youtube-player {
  position: relative;

  width: 100%;

  aspect-ratio: 16 / 9;

  overflow: hidden;

  background: var(--deep-purple);

  cursor: pointer;

  border: 1px solid var(--border);

  transition:
    transform var(--transition),
    border-color var(--transition);
}

.youtube-player:hover {
  transform: translateY(-5px);

  border-color: rgba(144, 39, 255, 0.5);
}

.youtube-thumbnail {
  width: 100%;

  height: 100%;

  object-fit: cover;

  display: block;

  transition:
    transform 700ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 500ms ease;
}

.youtube-player:hover .youtube-thumbnail {
  transform: scale(1.035);

  filter: brightness(0.7);
}

/* =========================================
   YOUTUBE OVERLAY
========================================= */

.youtube-overlay {
  position: absolute;

  inset: 0;

  display: flex;

  align-items: center;

  justify-content: center;

  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.35));
}

.play-button {
  width: 68px;

  height: 68px;

  display: flex;

  align-items: center;

  justify-content: center;

  padding-left: 3px;

  border-radius: 50%;

  background: rgba(35, 11, 73, 0.85);

  border: 1px solid rgba(255, 255, 255, 0.25);

  color: white;

  font-size: 0;

  backdrop-filter: blur(10px);

  transition:
    transform var(--transition),
    background var(--transition);
}

.play-button::before {
  content: "";

  width: 0;
  height: 0;

  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 14px solid white;

  margin-left: 3px;
}

.youtube-player:hover .play-button {
  transform: scale(1.1);

  background: var(--bright-purple);

  box-shadow: 0 0 40px rgba(144, 39, 255, 0.4);
}

/* =========================================
   YOUTUBE INLINE IFRAME
========================================= */

.youtube-player iframe {
  position: absolute;

  inset: 0;

  width: 100%;

  height: 100%;

  border: none;
}

/* =========================================
   PROJECT INFO
========================================= */

.project-info {
  display: flex;

  align-items: flex-start;

  justify-content: space-between;

  padding-top: 18px;
}

.project-info h4 {
  font-size: 16px;

  font-weight: 600;
}

.project-info p {
  margin-top: 4px;

  color: var(--text-muted);

  font-size: 12px;
}

.project-number {
  color: var(--purple);

  font-size: 11px;

  letter-spacing: 0.1em;
}

/* =========================================
   MOTION DESIGN
========================================= */

.motion-grid {
  display: flex;

  flex-wrap: nowrap;

  justify-content: flex-start;

  gap: 20px;

  width: 100%;

  overflow-x: auto;

  overflow-y: hidden;

  padding: 10px 0 25px;

  scrollbar-width: thin;

  scrollbar-color: var(--bright-purple) rgba(255, 255, 255, 0.06);

  -webkit-overflow-scrolling: touch;

  scroll-behavior: smooth;
}

/*
 * Centralizado quando os cards cabem.
 */

.motion-grid.no-overflow {
  justify-content: center;

  overflow-x: hidden;
}

/*
 * Alinhado ao início quando há rolagem.
 */

.motion-grid.has-overflow {
  justify-content: flex-start;
}

.motion-grid::-webkit-scrollbar {
  height: 5px;
}

.motion-grid::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

.motion-grid::-webkit-scrollbar-thumb {
  background: linear-gradient(
    90deg,
    var(--purple),
    var(--bright-purple),
    var(--blue)
  );

  border-radius: 20px;
}

.motion-grid .video-project,
.motion-grid .video-card {
  flex: 0 0 360px;

  width: 360px;

  min-width: 360px;
}

/* =========================================
   THUMBNAIL GALLERY
========================================= */

.thumbnail-gallery {
  display: flex;

  justify-content: flex-start;

  gap: 18px;

  overflow-x: auto;

  padding: 10px 0 20px;

  scroll-snap-type: x mandatory;

  scrollbar-width: thin;

  scrollbar-color: var(--purple) transparent;

  -webkit-overflow-scrolling: touch;
}

/*
 * Centraliza quando todos os thumbnails cabem.
 */

.thumbnail-gallery.no-overflow {
  justify-content: center;

  overflow-x: hidden;
}

/*
 * Mantém o primeiro thumbnail acessível
 * quando existe rolagem.
 */

.thumbnail-gallery.has-overflow {
  justify-content: flex-start;
}

.thumbnail-gallery::-webkit-scrollbar {
  height: 4px;
}

.thumbnail-gallery::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
}

.thumbnail-gallery::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, var(--purple), var(--blue));
}

/* =========================================
   THUMBNAIL ITEM
========================================= */

.thumbnail-item {
  flex: 0 0 330px;

  width: 330px;

  aspect-ratio: 16 / 9;

  border: 1px solid var(--border);

  padding: 0;

  background: var(--deep-purple);

  overflow: hidden;

  cursor: pointer;

  scroll-snap-align: start;

  transition:
    transform var(--transition),
    border-color var(--transition);
}

.thumbnail-item:hover {
  transform: translateY(-5px);

  border-color: var(--bright-purple);
}

.thumbnail-item img {
  width: 100%;

  height: 100%;

  object-fit: cover;

  display: block;

  transition:
    transform 600ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 500ms ease;
}

.thumbnail-item:hover img {
  transform: scale(1.05);

  filter: brightness(0.75);
}

/* =========================================
   LIGHTBOX
========================================= */

.lightbox {
  position: fixed;

  inset: 0;

  z-index: 2000;

  display: flex;

  align-items: center;

  justify-content: center;

  padding: 50px;

  background: rgba(5, 2, 10, 0.82);

  backdrop-filter: blur(15px);

  opacity: 0;

  visibility: hidden;

  transition:
    opacity 300ms ease,
    visibility 300ms ease;
}

.lightbox.active {
  opacity: 1;

  visibility: visible;
}

.lightbox-content {
  max-width: 1100px;

  max-height: 90vh;

  display: flex;

  flex-direction: column;

  align-items: center;

  transform: scale(0.94) translateY(20px);

  transition: transform 400ms cubic-bezier(0.22, 1, 0.36, 1);
}

.lightbox.active .lightbox-content {
  transform: scale(1) translateY(0);
}

.lightbox-content img {
  max-width: 100%;

  max-height: 80vh;

  object-fit: contain;

  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.6);
}

.lightbox-content p {
  margin-top: 18px;

  color: var(--text-secondary);

  font-size: 13px;
}

.lightbox-close {
  position: absolute;

  top: 30px;

  right: 40px;

  width: 45px;

  height: 45px;

  border: 1px solid rgba(255, 255, 255, 0.15);

  background: rgba(35, 11, 73, 0.7);

  color: white;

  font-size: 28px;

  line-height: 1;

  cursor: pointer;

  transition:
    background var(--transition),
    transform var(--transition);
}

.lightbox-close:hover {
  background: var(--bright-purple);

  transform: rotate(90deg);
}

/* =========================================
   ABOUT SECTION
========================================= */

.about-section {
  max-width: none;

  background: linear-gradient(
    110deg,
    rgba(35, 11, 73, 0.6),
    rgba(0, 52, 127, 0.2)
  );

  border-top: 1px solid var(--border);

  border-bottom: 1px solid var(--border);
}

.about-layout {
  max-width: var(--max-width);

  margin: auto;

  display: grid;

  grid-template-columns: 0.8fr 1.2fr;

  gap: 100px;

  align-items: center;
}

/* =========================================
   ABOUT PHOTO
========================================= */

.about-photo-wrapper {
  position: relative;

  width: 100%;

  max-width: 460px;

  margin: auto;
}

.about-photo-frame {
  position: relative;

  aspect-ratio: 4 / 5;

  overflow: hidden;

  background: linear-gradient(145deg, var(--deep-purple), var(--deep-blue));

  border: 1px solid rgba(255, 255, 255, 0.12);

  z-index: 2;

  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.about-photo {
  width: 100%;

  height: 100%;

  display: block;

  object-fit: cover;

  object-position: center;

  filter: saturate(0.9) contrast(1.05);

  transition:
    transform 800ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 600ms ease;
}

.about-photo-frame:hover .about-photo {
  transform: scale(1.035);

  filter: saturate(1) contrast(1.05);
}

.about-photo-gradient {
  position: absolute;

  inset: 0;

  background: linear-gradient(
    180deg,
    transparent 45%,
    rgba(35, 11, 73, 0.75) 100%
  );

  pointer-events: none;
}

.about-photo-label {
  position: absolute;

  left: 25px;

  right: 25px;

  bottom: 22px;

  display: flex;

  justify-content: space-between;

  align-items: center;

  padding-top: 15px;

  border-top: 1px solid rgba(255, 255, 255, 0.25);

  color: white;

  font-size: 9px;

  font-weight: 600;

  letter-spacing: 0.16em;

  z-index: 3;
}

.about-photo-decoration {
  position: absolute;

  width: 100%;

  height: 100%;

  left: 22px;

  top: 22px;

  border: 1px solid rgba(144, 39, 255, 0.5);

  background: linear-gradient(
    135deg,
    rgba(107, 33, 204, 0.16),
    rgba(0, 122, 232, 0.08)
  );

  z-index: 1;

  pointer-events: none;
}

.about-photo-wrapper::before {
  content: "";

  position: absolute;

  width: 80px;

  height: 80px;

  top: -25px;

  left: -25px;

  border-top: 2px solid var(--bright-purple);

  border-left: 2px solid var(--bright-purple);

  z-index: 3;

  pointer-events: none;
}

.about-photo-wrapper::after {
  content: "";

  position: absolute;

  width: 80px;

  height: 80px;

  bottom: -25px;

  right: -25px;

  border-right: 2px solid var(--blue);

  border-bottom: 2px solid var(--blue);

  z-index: 3;

  pointer-events: none;
}

/* =========================================
   ABOUT CONTENT
========================================= */

.about-content {
  max-width: 650px;

  color: var(--text-secondary);

  font-size: 15px;
}

.about-content p {
  margin-bottom: 22px;
}

.about-content .about-lead {
  color: white;

  font-size: 22px;

  line-height: 1.5;
}

.about-heading {
  margin-bottom: 40px;
}

.about-heading h2 {
  font-size: clamp(35px, 4vw, 60px);

  line-height: 1;

  letter-spacing: -0.05em;
}

.about-heading h2 span {
  display: block;

  background: linear-gradient(100deg, var(--bright-purple), var(--blue));

  -webkit-background-clip: text;

  background-clip: text;

  color: transparent;

  filter: drop-shadow(0 5px 20px rgba(0, 0, 0, 0.25));
}

/* =========================================
   ABOUT STATS
========================================= */

.about-stats {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 20px;

  margin-top: 60px;

  padding-top: 30px;

  border-top: 1px solid var(--border);
}

.stat {
  position: relative;

  min-height: 180px;

  padding: 24px 20px 22px;

  display: flex;

  flex-direction: column;

  justify-content: flex-end;

  overflow: hidden;

  background: linear-gradient(
    145deg,
    rgba(107, 33, 204, 0.1),
    rgba(0, 52, 127, 0.05)
  );

  border: 1px solid rgba(255, 255, 255, 0.07);

  transition:
    transform var(--transition),
    border-color var(--transition),
    background var(--transition);
}

.stat:hover {
  transform: translateY(-5px);

  border-color: rgba(144, 39, 255, 0.35);

  background: linear-gradient(
    145deg,
    rgba(107, 33, 204, 0.18),
    rgba(0, 122, 232, 0.08)
  );
}

.stat-icon {
  position: absolute;

  top: 20px;

  right: 20px;

  width: 34px;

  height: 34px;

  display: flex;

  align-items: center;

  justify-content: center;

  transition: transform var(--transition);
}

.stat-icon img {
  width: 100%;

  height: 100%;

  display: block;

  object-fit: contain;
}

.stat:hover .stat-icon {
  transform: translateY(-2px) scale(1.08);
}

.stat-number {
  margin-bottom: 6px;

  font-size: clamp(28px, 3vw, 42px);

  line-height: 1;

  font-weight: 700;

  letter-spacing: -0.06em;

  color: var(--white);
}

.stat span {
  display: block;

  color: var(--text-muted);

  font-size: 10px;

  line-height: 1.5;

  text-transform: uppercase;

  letter-spacing: 0.09em;
}

.stat::after {
  content: "";

  position: absolute;

  left: 0;

  bottom: 0;

  width: 35%;

  height: 2px;

  background: linear-gradient(90deg, var(--bright-purple), var(--blue));

  opacity: 0.7;

  transition: width var(--transition);
}

.stat:hover::after {
  width: 100%;
}

/* =========================================
   CONTACT
========================================= */

.contact-section {
  max-width: none;

  text-align: center;

  background: radial-gradient(
    circle at center,
    rgba(107, 33, 204, 0.16),
    transparent 45%
  );
}

.contact-content {
  max-width: 850px;

  margin: auto;
}

.contact-content h2 {
  font-size: clamp(50px, 7vw, 90px);

  line-height: 0.95;

  letter-spacing: -0.06em;
}

.contact-content > p:not(.eyebrow) {
  max-width: 600px;

  margin: 35px auto 45px;

  color: var(--text-secondary);

  font-size: 16px;
}

.contact-links {
  display: grid;

  grid-template-columns: repeat(2, 1fr);

  border-top: 1px solid var(--border);

  border-left: 1px solid var(--border);

  margin-top: 50px;
}

.contact-button {
  position: relative;

  min-height: 105px;

  display: flex;

  align-items: center;

  gap: 18px;

  padding: 22px 25px;

  border-right: 1px solid var(--border);

  border-bottom: 1px solid var(--border);

  background: rgba(255, 255, 255, 0.015);

  color: var(--text-secondary);

  text-align: left;

  transition:
    background var(--transition),
    color var(--transition),
    transform var(--transition);
}

.contact-button:hover {
  background: linear-gradient(
    120deg,
    rgba(107, 33, 204, 0.18),
    rgba(0, 122, 232, 0.08)
  );

  color: var(--white);
}

.contact-icon {
  flex: 0 0 42px;

  width: 42px;

  height: 42px;

  display: flex;

  align-items: center;

  justify-content: center;

  transition:
    border-color var(--transition),
    background var(--transition),
    transform var(--transition);
}

.contact-icon img {
  width: 32px;

  height: 32px;

  display: block;

  object-fit: contain;
}

.contact-button:hover .contact-icon {
  transform: translateY(-2px);
}

.contact-info {
  display: flex;

  flex-direction: column;

  gap: 3px;

  min-width: 0;
}

.contact-name {
  color: var(--white);

  font-size: 13px;

  font-weight: 600;

  text-transform: uppercase;

  letter-spacing: 0.08em;
}

.contact-description {
  color: var(--text-muted);

  font-size: 11px;

  letter-spacing: 0.02em;
}

.contact-arrow {
  margin-left: auto;

  width: 18px;
  height: 18px;

  font-size: 0;

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.5'%3E%3Cpath d='M5 19L19 5M9 5h10v10'/%3E%3C/svg%3E");

  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;

  opacity: 0.55;

  transition:
    transform var(--transition),
    opacity var(--transition);
}

.contact-button:hover .contact-arrow {
  transform: translate(3px, -3px);

  opacity: 1;
}

.contact-button:hover .contact-arrow {
  transform: translate(3px, -3px);

  opacity: 1;
}

.contact-button:hover .contact-arrow {
  color: var(--bright-purple);

  transform: translate(3px, -3px);
}

.contact-button::before {
  content: "";

  position: absolute;

  left: 0;

  top: 0;

  width: 2px;

  height: 0;

  background: linear-gradient(180deg, var(--bright-purple), var(--blue));

  transition: height var(--transition);
}

.contact-button:hover::before {
  height: 100%;
}

/* =========================================
   YOUTUBE MODAL
========================================= */

.youtube-modal {
  position: fixed;

  inset: 0;

  z-index: 9999;

  display: flex;

  align-items: center;

  justify-content: center;

  padding: 30px;

  opacity: 0;

  visibility: hidden;

  pointer-events: none;

  transition:
    opacity 350ms ease,
    visibility 350ms ease;
}

.youtube-modal.active {
  opacity: 1;

  visibility: visible;

  pointer-events: auto;
}

.youtube-modal-backdrop {
  position: absolute;

  inset: 0;

  background: rgba(3, 2, 7, 0.88);

  backdrop-filter: blur(15px);
}

.youtube-modal-content {
  position: relative;

  width: min(1100px, 100%);

  z-index: 2;

  transform: translateY(20px) scale(0.97);

  transition: transform 400ms cubic-bezier(0.22, 1, 0.36, 1);
}

.youtube-modal.active .youtube-modal-content {
  transform: translateY(0) scale(1);
}

.youtube-modal-content .youtube-player {
  position: relative;

  width: 100%;

  aspect-ratio: 16 / 9;

  overflow: hidden;

  background: black;

  border: 1px solid rgba(255, 255, 255, 0.12);

  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55);

  cursor: default;

  transform: none;
}

.youtube-modal-content .youtube-player:hover {
  transform: none;

  border-color: rgba(255, 255, 255, 0.12);
}

.youtube-modal-content .youtube-player iframe {
  position: absolute;

  inset: 0;

  width: 100%;

  height: 100%;

  border: none;
}

.youtube-modal-close {
  position: absolute;

  right: -15px;

  top: -15px;

  z-index: 5;

  width: 38px;

  height: 38px;

  display: flex;

  align-items: center;

  justify-content: center;

  border: 1px solid rgba(255, 255, 255, 0.15);

  border-radius: 50%;

  background: var(--deep-purple);

  color: white;

  font-size: 0px;

  line-height: 1;

  cursor: pointer;

  transition:
    transform var(--transition),
    background var(--transition);
}

.youtube-modal-close::before,
.youtube-modal-close::after {
  content: "";

  position: absolute;

  width: 18px;
  height: 1px;

  background: white;
}

.youtube-modal-close::before {
  transform: rotate(45deg);
}

.youtube-modal-close::after {
  transform: rotate(-45deg);
}

.youtube-modal-close:hover {
  transform: rotate(90deg);

  background: var(--bright-purple);
}

/* =========================================
   SCROLL REVEAL
========================================= */

.reveal-element {
  opacity: 0;

  transform: translateY(25px);

  transition:
    opacity 800ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 800ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-element.revealed {
  opacity: 1;

  transform: translateY(0);
}

/* =========================================
   FOOTER
========================================= */

.footer {
  display: flex;

  justify-content: space-between;

  gap: 30px;

  padding: 25px 5vw;

  border-top: 1px solid var(--border);

  color: var(--text-muted);

  font-size: 10px;

  letter-spacing: 0.08em;

  text-transform: uppercase;
}

/* =========================================
   RESPONSIVE — TABLET
========================================= */

@media (max-width: 900px) {
  .nav-links {
    gap: 20px;
  }

  .hero {
    padding: 150px 7vw 100px;
  }

  .section {
    padding: 110px 6vw;
  }

  .section-heading {
    flex-direction: column;

    align-items: flex-start;

    margin-bottom: 60px;
  }

  .about-layout {
    grid-template-columns: 1fr;

    gap: 70px;
  }

  .about-photo-wrapper {
    max-width: 500px;

    margin: 0 auto;
  }

  .contact-links {
    grid-template-columns: 1fr;
  }

  .contact-button {
    min-height: 90px;

    padding: 18px;
  }
}

/* =========================================
   RESPONSIVE — MOBILE
========================================= */

@media (max-width: 650px) {
  /* NAVBAR */

  .navbar {
    height: 75px;

    padding: 0 6vw;
  }

  .logo img {
    width: 120px;
  }

  .nav-links {
    position: fixed;

    top: 0;

    left: 0;

    width: 100%;

    padding: 30px;

    flex-direction: column;

    align-items: flex-start;

    gap: 25px;

    background: rgba(9, 5, 16, 0.97);

    border-bottom: 1px solid var(--border);

    transform: translateY(-120%);

    transition: transform 400ms ease;
  }

  .nav-links.open {
    transform: translateY(0);

    position: fixed;

    top: 75px;
  }

  .mobile-menu-button {
    display: flex;

    flex-direction: column;

    gap: 5px;

    border: none;

    background: none;

    cursor: pointer;
  }

  .mobile-menu-button span {
    width: 25px;

    height: 1px;

    background: white;
  }

  /* HERO */

  .hero {
    min-height: 90vh;

    padding: 130px 6vw 80px;
  }

  .hero h1 {
    font-size: clamp(50px, 15vw, 80px);
  }

  .hero-description {
    font-size: 15px;
  }

  .hero-buttons {
    flex-direction: column;

    align-items: flex-start;
  }

  /* VIDEO GALLERIES */

  .video-grid,
  .short-video-grid,
  .motion-grid {
    justify-content: flex-start;

    padding-left: 6vw;
    padding-right: 6vw;
  }

  /*
   * No mobile, se houver espaço suficiente,
   * o JavaScript ainda pode centralizar.
   */

  .video-grid.no-overflow,
  .short-video-grid.no-overflow,
  .motion-grid.no-overflow {
    justify-content: center;

    overflow-x: hidden;
  }

  .video-grid.has-overflow,
  .short-video-grid.has-overflow,
  .motion-grid.has-overflow {
    justify-content: flex-start;
  }

  .video-grid .video-project {
    flex-basis: 88vw;

    width: 88vw;

    min-width: 88vw;
  }

  .short-video-grid .video-project,
  .short-video-grid .video-card {
    flex-basis: 190px;

    width: 190px;

    min-width: 190px;

    aspect-ratio: 9 / 16;
  }

  .motion-grid .video-project,
  .motion-grid .video-card {
    flex-basis: 88vw;

    width: 88vw;

    min-width: 88vw;
  }

  .short-video-grid .youtube-player {
    aspect-ratio: 9 / 16;
  }

  /* THUMBNAILS */

  .thumbnail-gallery {
    justify-content: flex-start;

    padding-left: 6vw;
    padding-right: 6vw;
  }

  .thumbnail-gallery.no-overflow {
    justify-content: center;

    overflow-x: hidden;
  }

  .thumbnail-gallery.has-overflow {
    justify-content: flex-start;
  }

  .thumbnail-item {
    flex-basis: 82vw;

    width: 82vw;
  }

  /* ABOUT */

  .about-layout {
    grid-template-columns: 1fr;

    gap: 60px;
  }

  .about-photo-wrapper {
    width: calc(100% - 20px);

    margin-left: 0;
  }

  .about-photo-decoration {
    left: 12px;

    top: 12px;
  }

  .about-photo-wrapper::before {
    width: 55px;

    height: 55px;

    top: -15px;

    left: -15px;
  }

  .about-photo-wrapper::after {
    width: 55px;

    height: 55px;

    bottom: -15px;

    right: -15px;
  }

  .about-stats {
    grid-template-columns: 1fr;

    gap: 25px;
  }

  /* CONTACT */

  .contact-links {
    grid-template-columns: 1fr;
  }

  .contact-button {
    border-right: none;

    border-bottom: 1px solid var(--border);
  }

  .contact-button:last-child {
    border-bottom: none;
  }

  /* LIGHTBOX */

  .lightbox {
    padding: 20px;
  }

  .lightbox-close {
    top: 20px;
    right: 20px;
    font-size: 0;
  }

  .lightbox-close::before,
  .lightbox-close::after {
    content: "";

    position: absolute;

    width: 20px;
    height: 1px;

    background: white;
  }

  .lightbox-close::before {
    transform: rotate(45deg);
  }

  .lightbox-close::after {
    transform: rotate(-45deg);
  }

  /* YOUTUBE MODAL */

  .youtube-modal {
    padding: 15px;
  }

  .youtube-modal-content {
    width: 100%;
  }

  .youtube-modal-close {
    right: -5px;

    top: -48px;
  }

  /* FOOTER */

  .footer {
    flex-direction: column;

    gap: 10px;
  }
}

/* =========================================
   RESPONSIVE — SMALL MOBILE
========================================= */

@media (max-width: 480px) {
  .video-grid .video-project {
    flex-basis: 280px;

    width: 280px;

    min-width: 280px;
  }

  .short-video-grid .video-project,
  .short-video-grid .video-card {
    flex-basis: 175px;

    width: 175px;

    min-width: 175px;

    aspect-ratio: 9 / 16;
  }

  .motion-grid .video-project,
  .motion-grid .video-card {
    flex-basis: 280px;

    width: 280px;

    min-width: 280px;
  }

  .short-video-grid .youtube-player {
    aspect-ratio: 9 / 16;
  }
}

/* =========================================
   PRIVATE PORTFOLIO NOTICE
========================================= */

.contact-section {
  max-width: none;

  padding: 110px 5vw 100px;

  text-align: center;

  background: radial-gradient(
    circle at center,
    rgba(107, 33, 204, 0.12),
    transparent 50%
  );

  border-bottom: 1px solid var(--border);
}

.contact-content {
  max-width: 700px;

  margin: auto;
}

.contact-content .eyebrow {
  margin-bottom: 18px;

  color: var(--blue);

  font-size: 10px;

  font-weight: 600;

  letter-spacing: 0.18em;

  text-transform: uppercase;
}

.contact-content h2 {
  font-size: clamp(38px, 5vw, 58px);

  line-height: 1;

  letter-spacing: -0.05em;
}

.contact-content h2 span {
  display: block;

  background: linear-gradient(100deg, var(--bright-purple), var(--blue));

  -webkit-background-clip: text;

  background-clip: text;

  color: transparent;
}

.contact-content > p:not(.eyebrow) {
  max-width: 620px;

  margin: 25px auto 0;

  color: var(--text-secondary);

  font-size: 14px;

  line-height: 1.8;
}

.contact-content > p + p {
  margin-top: 12px;
}

.contact-content .hero-buttons {
  justify-content: center;

  margin-top: 35px;
}

.contact-content .button {
  justify-content: center;
}

/* =========================================
   RESPONSIVE — PRIVATE PORTFOLIO
========================================= */

@media (max-width: 650px) {
  .contact-section {
    padding: 90px 6vw 80px;
  }

  .contact-content {
    max-width: 100%;
  }

  .contact-content h2 {
    font-size: clamp(34px, 10vw, 48px);
  }

  .contact-content > p:not(.eyebrow) {
    font-size: 14px;

    line-height: 1.7;
  }

  .contact-content .hero-buttons {
    margin-top: 30px;
  }

  .contact-content .button {
    width: 100%;

    max-width: 280px;
  }
}
