/* ==========================================================================
   PORTFÓLIO & CURRÍCULO INTERATIVO: ULTRA-MINIMALIST LIQUID GLASS
   Header com 5 Elementos, Carrossel 3D Cover Flow em Loop
   Estética Unificada em Cápsulas/Badges no Padrão da Imagem 2
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,800;0,900;1,400;1,700&family=Inter:wght@400;600;700;800;900&family=JetBrains+Mono:wght@400;700&display=swap');

:root {
  --bg-black: #050608;
  --text-white: #ffffff;
  --text-dim: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.45);
  --accent-slash: rgba(255, 255, 255, 0.3);
  --accent-cyan: #06b6d4;
  
  --font-title: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 15px;
  background-color: var(--bg-black);
  color: var(--text-white);
  font-family: var(--font-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-transform: uppercase;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background-color: var(--bg-black);
  line-height: 1.45;
  letter-spacing: -0.015em;
  font-weight: 700;
}

/* Backdrop de Liquidez iOS */
.liquid-canvas-container {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

#liquidCanvas {
  width: 100%;
  height: 100%;
  display: block;
  filter: blur(80px) contrast(120%);
  opacity: 0.55;
}

.liquid-glass-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(circle at 50% 50%, rgba(5, 6, 8, 0.3) 0%, rgba(5, 6, 8, 0.9) 100%);
  backdrop-filter: blur(35px) saturate(180%);
  -webkit-backdrop-filter: blur(35px) saturate(180%);
}

/* Header Fixo Minimalista com Blur Límpido & Scroll Inteligente */
.top-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1.2rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(8, 12, 18, 0.42);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease;
  transform: translateY(0);
}

.top-header.header-hidden {
  transform: translateY(-100%);
}

.brand-text {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-white);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-slash-list {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.slash-sep {
  color: var(--accent-slash);
}

.nav-link-raw {
  background: none;
  border: none;
  color: var(--text-dim);
  font-family: inherit;
  font-size: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.nav-link-raw:hover,
.nav-link-raw.active {
  color: var(--text-white);
}

/* Feed Container com Fluxo Tipográfico Contínuo e Fluido */
.feed-container {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 100vw;
  overflow-x: clip;
}

.feed-section {
  min-height: auto;
  padding: 90px 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  text-align: center;
  background: transparent;
}

/* Espaçamentos e Proporções Editoriais Orgânicas (Sem Vácuo / Sem Caixas Artificiais) */
#card-01-estudos {
  min-height: 92vh;
  padding: 120px 4rem 60px;
}

#card-01-detail-topic {
  min-height: auto;
  padding: 100px 4rem 80px;
}

#card-02-sobre {
  min-height: auto;
  padding: 90px 4rem;
}

#card-03-curriculo {
  min-height: auto;
  padding: 90px 4rem;
}

#card-04-contato {
  min-height: auto;
  padding: 90px 4rem 130px;
}

.section-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  align-items: center;
  justify-items: center;
}

.section-content {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.section-content-full {
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* ARTE TIPOGRÁFICA PURA (SEM BOTÕES / SEM BORDAS / SEM CÁPSULAS) */
.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-dim);
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  padding: 0 !important;
  margin: 0 auto 1.2rem !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  transition: color 0.2s ease;
}

.section-tag:hover {
  color: var(--text-white);
  background: none !important;
  box-shadow: none !important;
  transform: none !important;
}

.statement-title {
  font-family: var(--font-title);
  font-size: clamp(2rem, 3.8vw, 3.4rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-white);
  margin-bottom: 1.5rem;
  text-align: center;
  letter-spacing: -0.01em;
}

.statement-body {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dim);
  line-height: 1.6;
  text-align: center;
}

/* Caixa de Mídia Alinhada */
.aligned-media-box {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  background: rgba(18, 22, 29, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(20px);
  overflow: hidden;
  position: relative;
}

.media-placeholder-box {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
}

.media-placeholder-text {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================================================
   CARROSSEL 3D COVER FLOW EM LOOP (Card 1: Estudos IA - Palco Ampliado Desktop)
   ========================================================================== */
.coverflow-container {
  position: relative;
  width: 100%;
  max-width: 1440px;
  margin: 2.5rem auto 0;
  height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1400px;
}

.coverflow-track {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
}

.coverflow-slide {
  position: absolute;
  width: 720px;
  height: 420px;
  border-radius: 16px;
  background: rgba(18, 22, 29, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 30px 65px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(25px);
  transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  cursor: pointer;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.coverflow-slide .slide-media-box {
  width: 100%;
  height: 84%;
  background: rgba(5, 6, 8, 0.6);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.coverflow-slide .slide-label {
  height: 16%;
  background: rgba(5, 6, 8, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-white);
  padding: 0 1rem;
  letter-spacing: 0.05em;
}

/* Posições 3D Cover Flow Ampliadas no Desktop */
.coverflow-slide.slide-active {
  transform: translateX(0) translateZ(140px) rotateY(0deg) scale(1.02);
  opacity: 1;
  z-index: 30;
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.95), 0 0 35px rgba(0, 240, 255, 0.12);
}

.coverflow-slide.slide-next {
  transform: translateX(450px) translateZ(-80px) rotateY(-20deg) scale(0.86);
  opacity: 0.65;
  z-index: 20;
}

.coverflow-slide.slide-prev {
  transform: translateX(-450px) translateZ(-80px) rotateY(20deg) scale(0.86);
  opacity: 0.65;
  z-index: 20;
}

.coverflow-slide.slide-hidden-right {
  transform: translateX(750px) translateZ(-200px) rotateY(-35deg) scale(0.7);
  opacity: 0;
  z-index: 10;
  pointer-events: none;
}

.coverflow-slide.slide-hidden-left {
  transform: translateX(-750px) translateZ(-200px) rotateY(35deg) scale(0.7);
  opacity: 0;
  z-index: 10;
  pointer-events: none;
}

.coverflow-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 45;
  background: none;
  border: none;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 2.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease, transform 0.2s ease;
  padding: 0.8rem 1rem;
}

.coverflow-arrow:hover {
  background: none;
  color: var(--text-white);
  transform: translateY(-50%) scale(1.15);
}

.coverflow-arrow.left { left: 0px; }
.coverflow-arrow.right { right: 0px; }

@media (min-width: 641px) and (max-width: 1200px) {
  .coverflow-container {
    height: 440px;
    max-width: 100%;
  }
  .coverflow-slide {
    width: 560px;
    height: 340px;
  }
  .coverflow-slide.slide-next {
    transform: translateX(320px) translateZ(-60px) rotateY(-20deg) scale(0.85);
  }
  .coverflow-slide.slide-prev {
    transform: translateX(-320px) translateZ(-60px) rotateY(20deg) scale(0.85);
  }
}

/* Trigger Tipográfico do Currículo (Card 3) */
.curriculum-trigger-box {
  background: none;
  border: none;
  padding: 0.8rem 0;
  margin-top: 1.2rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-block;
  width: auto;
}

.curriculum-trigger-box:hover .trigger-main-text {
  color: var(--accent-cyan);
}

.trigger-text-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  align-items: center;
  text-align: center;
}

.trigger-main-text {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

.trigger-sub-text {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
}

.eye-icon {
  display: inline-block;
  vertical-align: middle;
  transition: transform 0.2s ease;
}

/* Painel Expansível do Currículo Centralizado */
.curriculum-expandable-content {
  display: none;
  margin: 2rem auto 0;
  max-width: 860px;
  width: 100%;
  box-sizing: border-box;
  padding: 2.2rem;
  background: rgba(10, 14, 20, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  font-family: var(--font-main);
  text-transform: none;
  text-align: left;
}

.curriculum-expandable-content.active {
  display: block;
  animation: fadeInDown 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Aviso Tipográfico Minimalista de Clique para Expandir Abaixo do Carrossel */
.expand-notice-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1.4rem auto 0 auto;
}

.expand-notice-text {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.75;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.expand-notice-text:hover {
  opacity: 1;
  color: var(--text-white);
}

/* Indicador de Progresso Lateral */
.side-progress {
  position: fixed;
  right: 4rem;
  bottom: 3rem;
  z-index: 90;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
}

.side-progress span.active-num {
  color: var(--text-white);
}

/* ==========================================================================
   NOVO TÓPICO EXPANDIDO DE CASE STUDY (ESTÉTICA DE CÁPSULAS DA IMAGEM 2)
   ========================================================================== */
.topic-case-study-card {
  width: 100%;
  max-width: 1150px;
  margin: 0 auto;
  background: rgba(5, 7, 12, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 2.5rem 2.5rem 6.5rem;
  position: relative;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  backdrop-filter: blur(30px);
  animation: fadeInTopic 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInTopic {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Navegação Tipográfica em Cápsula/Badge (Estética da Imagem 2) */
.topic-nav-header,
.topic-nav-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  width: 100%;
}

.topic-nav-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 1.2rem;
}

.topic-nav-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.8rem;
  margin-top: 2rem;
  margin-bottom: 2.5rem;
}

.topic-nav-project-group,
.topic-nav-vertical-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  width: 100%;
}

.mono-nav-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0;
  text-transform: uppercase;
}

.mono-nav-btn:hover {
  color: var(--text-white);
  background: none;
}

.project-indicator-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--text-white);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0;
}

/* Header do Tópico Centralizado */
.modal-top-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.6rem;
  width: 100%;
  margin: 0.5rem 0 1rem;
}

.modal-category-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-dim);
  background: none;
  border: none;
  padding: 0;
  margin: 0 auto;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.modal-category-tag:hover {
  color: var(--text-white);
}

.modal-project-title-large {
  font-family: var(--font-title);
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.18;
  text-align: center;
  max-width: 950px;
  margin: 0 auto;
  letter-spacing: -0.01em;
}

/* ==========================================================================
   LAYOUTS DINÂMICOS DE CASE STUDY: 16:9 (CINEMA) E 9:16 (VERTICAL / REELS)
   ========================================================================== */

/* Layout 16:9 (Horizontal / Cinema - Padrão) */
.topic-case-study-card.layout-16-9 .case-main-body,
.topic-case-study-card:not(.layout-9-16) .case-main-body {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
}

.topic-case-study-card.layout-16-9 .modal-large-video-box,
.topic-case-study-card:not(.layout-9-16) .modal-large-video-box {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 520px;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.topic-case-study-card.layout-16-9 .case-study-grid,
.topic-case-study-card:not(.layout-9-16) .case-study-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 2.5rem;
  margin-top: 0.5rem;
  align-items: start;
}

.topic-case-study-card.layout-16-9 .case-left-frames-col,
.topic-case-study-card:not(.layout-9-16) .case-left-frames-col {
  display: none !important;
}

/* Layout 9:16 (Vertical / Reels / TikTok / Mobile Video) */
.topic-case-study-card.layout-9-16 .case-main-body {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: start;
  width: 100%;
  margin-top: 1.2rem;
}

.topic-case-study-card.layout-9-16 .modal-large-video-box {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  max-width: 400px;
  aspect-ratio: 9 / 16;
  max-height: 680px;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.topic-case-study-card.layout-9-16 .case-study-grid {
  display: contents;
}

.topic-case-study-card.layout-9-16 .case-left-text-col {
  grid-column: 1;
  grid-row: 1 / span 2;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.topic-case-study-card.layout-9-16 .case-left-frames-col {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  margin-top: 0.8rem;
  width: 100%;
}

.topic-case-study-card.layout-9-16 .case-right-frames-col {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  margin-top: 1.5rem;
  width: 100%;
  max-width: 400px;
  margin: 1.5rem auto 0;
}

.topic-case-study-card.layout-9-16 .case-bottom-frames-grid {
  display: none !important;
}

.modal-large-video-box video,
.modal-large-video-box img,
.modal-large-video-box iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
  border-radius: inherit;
  display: block;
}

@media (max-width: 850px) {
  .topic-case-study-card.layout-16-9 .case-study-grid,
  .topic-case-study-card:not(.layout-9-16) .case-study-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .topic-case-study-card.layout-9-16 .case-main-body {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }

  .topic-case-study-card.layout-9-16 .modal-large-video-box {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }

  .topic-case-study-card.layout-9-16 .case-study-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .topic-case-study-card.layout-9-16 .case-right-frames-col {
    max-width: 100%;
    margin: 0;
  }
}

/* Coluna Esquerda: Texto Explicativo e Tópicos */
.case-left-text-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.case-section-block {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.case-section-tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-cyan);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.case-section-heading {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-white);
  font-family: var(--font-title);
  line-height: 1.3;
}

.case-paragraph {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--text-dim);
  text-transform: none;
  font-weight: 400;
}

.case-credits-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 1.2rem;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text-dim);
}

.case-credits-box strong {
  color: var(--text-white);
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-cyan);
  margin-bottom: 0.3rem;
}

/* Coluna Direita: Empilhamento Vertical de Frames e Desenhos */
.case-right-frames-col {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

/* Grade Inferior Reorganizada: Preenche em 2 Colunas Sem Espaço Vazio Abaixo do Texto */
.case-bottom-frames-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
  width: 100%;
  margin-top: 1.5rem;
  align-items: start;
}

/* Salvaguarda: Se houver 1 frame ímpar isolado no final, ocupa 100% da largura em formato editorial */
.case-bottom-frames-grid .case-frame-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.case-frame-card {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: #080a0f;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: zoom-in;
  position: relative;
}

.case-frame-card:hover {
  border-color: rgba(0, 240, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6), 0 0 15px rgba(0, 240, 255, 0.08);
}

/* Estado Expandido: Preenche a largura, empurra os elementos e preserva proporção original */
.case-frame-card.is-expanded {
  grid-column: 1 / -1 !important;
  width: 100%;
  border-color: rgba(0, 240, 255, 0.65);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85), 0 0 30px rgba(0, 240, 255, 0.15);
  cursor: zoom-out;
  margin: 0.8rem 0;
  z-index: 10;
}

.case-frame-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.case-frame-card.is-expanded .case-frame-media {
  aspect-ratio: auto !important;
  max-height: 85vh;
  width: 100%;
  background: #020306;
}

.case-frame-media img,
.case-frame-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.case-frame-card.is-expanded .case-frame-media img,
.case-frame-card.is-expanded .case-frame-media video {
  width: 100%;
  height: auto;
  max-height: 85vh;
  object-fit: contain;
}

.frame-expand-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(4, 7, 12, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-white);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-3px);
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.25s ease, color 0.25s ease;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  z-index: 5;
}

.case-frame-card:hover .frame-expand-badge {
  opacity: 1;
  transform: translateY(0);
}

.case-frame-card.is-expanded .frame-expand-badge {
  opacity: 1;
  transform: translateY(0);
  background: rgba(0, 240, 255, 0.2);
  border-color: rgba(0, 240, 255, 0.6);
  color: var(--accent-cyan);
}

.case-frame-label {
  padding: 0.65rem 0.9rem;
  background: #030508;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ==========================================================================
   DOCK FLUTUANTE DE NAVEGAÇÃO DURANTE TODO O SCROLL DO POPUP
   ========================================================================== */
.topic-floating-nav-bar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(6, 8, 14, 0.88);
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50px;
  padding: 0.45rem 0.85rem;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.8), 0 0 25px rgba(0, 240, 255, 0.08);
  animation: floatNavBarIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes floatNavBarIn {
  from {
    opacity: 0;
    transform: translate(-50%, 20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
}

.floating-nav-btn {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 30px;
  color: var(--text-white);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.45rem 0.85rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.floating-nav-btn:hover {
  background: var(--text-white);
  color: #000;
  border-color: var(--text-white);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.25);
}

.floating-nav-btn.close-btn {
  background: rgba(255, 68, 68, 0.12);
  border-color: rgba(255, 68, 68, 0.3);
  color: #ff6b6b;
}

.floating-nav-btn.close-btn:hover {
  background: #ff4444;
  color: #fff;
  border-color: #ff4444;
}

.floating-nav-indicator {
  display: flex;
  align-items: center;
  padding: 0 0.3rem;
}

.indicator-pill {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent-cyan);
  letter-spacing: 0.06em;
}

.floating-nav-sep {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.15);
  margin: 0 0.15rem;
}

/* Setas Flutuantes nas Bordas da Tela (Desktop) */
.floating-lateral-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 998;
  background: rgba(8, 11, 18, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--text-white);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.floating-lateral-arrow.left {
  left: 22px;
}

.floating-lateral-arrow.right {
  right: 22px;
}

.floating-lateral-arrow:hover {
  background: var(--text-white);
  color: #000;
  border-color: var(--text-white);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 12px 35px rgba(255, 255, 255, 0.25);
}

@media (max-width: 1024px) {
  .floating-lateral-arrow {
    display: none;
  }
}

/* Responsividade Mobile Fluida em Coluna Única */
@media (max-width: 850px) {
  .topic-case-study-card.layout-16-9 .case-study-grid,
  .topic-case-study-card:not(.layout-9-16) .case-study-grid,
  .topic-case-study-card.layout-9-16 .case-study-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
  }

  .case-left-text-col {
    width: 100%;
  }

  .case-right-frames-col {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
  }

  .case-bottom-frames-grid {
    display: flex !important;
    flex-direction: column;
    width: 100%;
    gap: 1.2rem;
    margin-top: 0;
  }

  .topic-floating-nav-bar {
    bottom: 14px;
    padding: 0.35rem 0.6rem;
    gap: 0.35rem;
    width: calc(100% - 24px);
    max-width: 380px;
    justify-content: space-between;
  }

  .floating-nav-btn {
    font-size: 0.65rem;
    padding: 0.35rem 0.55rem;
  }
}

/* Responsividade Geral */
@media (max-width: 1024px) {
  .top-header {
    padding: 1.1rem 2rem;
  }
  
  .feed-section {
    padding: 90px 2rem 40px;
    width: 100%;
    box-sizing: border-box;
  }

  .section-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    width: 100%;
  }
  
  .aligned-media-box {
    aspect-ratio: 16 / 9;
    max-height: 320px;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
  }

  .coverflow-slide {
    width: 320px;
    height: 210px;
  }

  .coverflow-slide.slide-prev { transform: translateX(-170px) scale(0.8); }
  .coverflow-slide.slide-next { transform: translateX(170px) scale(0.8); }

  .side-progress {
    right: 2rem;
    bottom: 2rem;
  }
}

@media (max-width: 640px) {
  .top-header {
    padding: 0.9rem 1.2rem;
    flex-direction: column;
    gap: 0.6rem;
    align-items: center;
  }

  .brand-text {
    font-size: 0.8rem;
  }

  .nav-slash-list {
    font-size: 0.72rem;
    gap: 0.4rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .feed-section {
    padding: 70px 1.2rem;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    width: 100%;
    box-sizing: border-box;
  }

  #card-01-estudos {
    min-height: 85vh;
    padding: 90px 1.2rem 40px;
  }

  .section-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    width: 100%;
  }

  .section-content,
  .section-content-full {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
    align-items: center;
  }

  .statement-title {
    font-size: 1.65rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    width: 100%;
    text-align: center;
  }

  .statement-body {
    font-size: 0.88rem;
    line-height: 1.6;
    width: 100%;
    text-align: center;
  }

  .coverflow-container {
    height: 270px;
    width: 100%;
    max-width: 100%;
    overflow: visible;
  }

  .coverflow-slide {
    width: 250px;
    height: 170px;
  }

  .coverflow-slide.slide-prev { transform: translateX(-100px) translateZ(-40px) rotateY(18deg) scale(0.75); }
  .coverflow-slide.slide-next { transform: translateX(100px) translateZ(-40px) rotateY(-18deg) scale(0.75); }

  .coverflow-arrow {
    font-size: 2.2rem;
    padding: 0.6rem 0.8rem;
    color: var(--text-white);
    opacity: 0.9;
    z-index: 60;
  }

  .coverflow-arrow.left { left: -5px; }
  .coverflow-arrow.right { right: -5px; }

  .side-progress {
    right: 1rem;
    bottom: 1rem;
    font-size: 0.72rem;
  }

  .topic-case-study-card {
    padding: 1.2rem;
    width: 100%;
    box-sizing: border-box;
  }
}
