:root {
  --color-accent: #CA371D;
  --color-text: #4F4F4F;
  --color-white: #FFFFFF;
  --color-dark: #1E1E1E;
  --mobile-pad: 1.5rem;
}

* {
  box-sizing: border-box;
}

html {
  zoom: 0.8; /* Escala global de 80% no desktop */
}

@media (max-width: 900px) {
  html {
    zoom: 1; /* Retorna a escala normal no mobile para não ficar ilegível */
  }
}

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  letter-spacing: -0.05em; /* Required -5% spacing */
  background-color: var(--color-white);
  color: var(--color-dark);
  overflow-x: hidden;
  width: 100%;
}

/* Nav & Header */
header {
  position: fixed; /* fixo no topo ao scrollar */
  top: 0;
  left: 0;
  width: 100%;
  padding: 2rem 4rem;
  z-index: 100;
  transition: color 0.4s ease, background-color 0.4s ease, backdrop-filter 0.4s ease, padding 0.4s ease;
  pointer-events: none; /* Para não bloquear cliques na página */
}

/* Glass effect via JS class */
header.scrolled {
  padding: 1.5rem 4rem;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
header.header-dark.scrolled {
  background-color: rgba(255, 255, 255, 0.65);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
header.header-light.scrolled {
  background-color: rgba(30, 30, 30, 0.65);
}

/* Inner wrapper allowing interaction just where needed */
.header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
    pointer-events: all;
}
.header-right {
    display: flex;
    align-items: center;
    justify-self: end;
}

/* This helps the header adjust text color based on the section's dark/light theme */
.header-light {
    color: var(--color-white);
}
.header-dark {
    color: var(--color-dark);
}

.logo-text {
  font-size: 1.15rem;
  font-weight: 400;
  text-transform: uppercase;
  color: var(--color-dark);
  transition: all 0.4s ease, opacity 0.3s ease;
  justify-self: start;
  text-decoration: none;
  letter-spacing: -0.05em;
  white-space: nowrap;
}

.header-light .logo-text {
    color: var(--color-white);
}

.contact-header-btn {
    background-color: var(--color-accent);
    color: var(--color-white);
    padding: 0.8rem 1.8rem;
    border-radius: 40px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 700;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.contact-header-btn:hover {
    transform: translateY(-2px);
    background-color: #a12b16;
}

header.scrolled:not(.case-header) .header-right {
  opacity: 0;
  pointer-events: none;
}

nav.centered-nav {
    display: flex;
    justify-content: center;
    flex-grow: 1; /* Força nav pra ficar perfeitamente no meio */
}

nav ul {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav a {
  text-decoration: none;
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 700;
  color: inherit;
  opacity: 0.6;
  padding: 0;
  transition: opacity 0.3s ease;
  text-transform: lowercase;
  letter-spacing: inherit;
}

nav a:hover, nav a.active {
  opacity: 1;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-right: 1.5rem;
}

.lang-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.5rem;
    border-radius: 6px;
    opacity: 0.4;
    transition: all 0.3s ease;
    color: inherit;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.lang-btn.active {
    opacity: 1;
    background-color: rgba(128, 128, 128, 0.1);
}

.lang-btn:hover {
    opacity: 0.8;
}

.flag-icon {
    width: 18px;
    height: 12px;
    object-fit: cover;
    border-radius: 1px;
    display: block;
}

/* Application Layout: Secções verticais */
#main-content {
  width: 100%;
  position: relative;
}

.section-block {
  width: 100%;
  min-height: 100vh; /* Cada secção ocupa no minimo 1 tela full */
  position: relative;
  display: flex;
}

.flex-center {
  align-items: center;
}

/* Themes */
.theme-dark {
  background-color: var(--color-dark);
  color: var(--color-white);
}

.theme-light {
  background-color: var(--color-white);
  color: var(--color-dark);
}

.theme-gray {
  background-color: var(--color-text);
  color: var(--color-white);
}

.theme-accent {
  background-color: var(--color-accent);
  color: var(--color-white);
}

/* Typography Mixes & Heros */
.hero-content {
  margin: auto; /* center in flex */
  padding: 0 4rem;
  width: 100%;
}

.huge-title {
  font-size: 14vw;
  font-weight: 900;
  line-height: 0.85;
  margin: 0;
  text-transform: uppercase;
  text-align: left;
}

.red-text {
  color: var(--color-accent);
}

.medium-title {
  font-size: 5vw;
  font-weight: 700;
  line-height: 1;
  max-width: 90%;
}

.light-weight {
  font-weight: 300;
}

.sobre-sub {
  font-size: 1.8vw;
  font-weight: 400;
  line-height: 1.5;
  margin-top: 3rem;
  max-width: 80%;
  color: #cccccc;
}

/* ======= SOBRE MIM GRID ======= */
.sobre-mim-grid {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    display: grid;
    grid-template-columns: 0.5fr 1.5fr; /* Foto menor, texto mais largo */
    gap: 4rem;
    align-items: stretch; /* Faz a foto e o texto terem exatamente a mesma altura */
}

.sobre-mim-foto-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border-radius: 20px;
    overflow: hidden;
}

.sobre-mim-foto {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: top center; /* Foca no rosto se cortar muito as laterais/embaixo */
}

.sobre-mim-text {
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centraliza o texto verticalmente se a foto dominar */
    gap: 1.2rem;
    padding-right: 4rem;
}

.sobre-mim-text .body-text {
    font-size: 24px;
    line-height: 1.6;
    opacity: 0.85;
    color: var(--color-white);
    margin: 0;
}

@media (max-width: 900px) {
    .sobre-mim-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .sobre-mim-text {
        padding-right: 0;
    }
}

.section-title {
  font-size: 8vw;
  font-weight: 900;
  line-height: 0.9;
  margin: 0;
}

.center-text {
  text-align: center;
}

.center-text .huge-title {
  text-align: center;
}

/* ======= CASES GALLERY ======= */
.cases-section {
    flex-direction: column;
    justify-content: center;
    padding: 8rem 0 4rem 0;
}

.cases-intro {
    text-align: center;
    margin-bottom: 4rem;
}

.huge-title-center {
    font-size: 5rem;
    font-weight: 900;
    line-height: 1;
    margin: 0 0 1rem 0;
}

.desc-text-center {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--color-text);
    margin: 0;
}

/* ======= CASES ACCORDION ======= */
.cases-accordion {
    display: flex;
    gap: 1.5rem;
    height: 600px;
    width: 100%;
    padding: 0 4rem;
    margin-bottom: 4rem;
}

.accordion-item {
    position: relative;
    flex: 1;
    border-radius: 30px;
    overflow: hidden;
    transition: flex 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    text-decoration: none;
    color: var(--color-white);
    background-color: var(--color-dark);
    display: flex;
    align-items: flex-end;
}

/* Estado ativo/hover: expande para flex: 3 */
.cases-accordion:not(:hover) .accordion-item:first-child,
.accordion-item:hover {
    flex: 3;
}

.accordion-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease, filter 0.6s ease;
    filter: brightness(0.4) grayscale(0.8);
}

.cases-accordion:not(:hover) .accordion-item:first-child .accordion-bg,
.accordion-item:hover .accordion-bg {
    transform: scale(1.05);
    filter: brightness(0.7) grayscale(0);
}

.accordion-content {
    position: relative;
    z-index: 2;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0) 60%);
}

.accordion-item .project-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: auto; /* Empurra o texto para baixo */
}

.accordion-info-wrapper {
    min-width: 400px; /* Mantém o texto num container fixo durante a transição do flex */
}

.accordion-info {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.cases-accordion:not(:hover) .accordion-item:first-child .accordion-info,
.accordion-item:hover .accordion-info {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.1s;
}

.accordion-info .card-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
}

.accordion-info .card-desc {
    font-size: 1.1rem;
    font-weight: 400;
    color: #e0e0e0;
    line-height: 1.6;
    margin: 0 0 2rem 0;
    max-width: 90%;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.round-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--color-accent);
    color: var(--color-white);
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.3s ease, background-color 0.3s;
}

.round-btn:hover {
    transform: scale(1.1);
    background-color: #a12b16;
}

@media (max-width: 900px) {
    .cases-accordion {
        flex-direction: column;
        height: 1200px;
        padding: 0 2rem;
    }
    .accordion-item {
        flex: 1;
        min-height: 150px;
        transition: min-height 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    }
    .cases-accordion:not(:hover) .accordion-item:first-child,
    .accordion-item:hover {
        flex: auto;
        min-height: 500px;
    }
    .accordion-info .card-title {
        font-size: 2.5rem;
    }
    .accordion-info-wrapper {
        min-width: 100%;
    }
}

.center-btn-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
}

.pill-btn {
    background-color: #000;
    color: var(--color-white);
    border-radius: 40px;
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease;
    font-family: inherit;
    letter-spacing: inherit;
}

.pill-btn:hover {
    transform: translateY(-3px);
}

/* ======= MARKET INTELLIGENCE CASE STUDY ======= */
.case-study-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    background-color: var(--color-white);
}

.case-hero-banner {
    width: 100%;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.case-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 4rem 8rem 4rem;
}

.case-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 4rem;
    padding: 5rem 0;
}

.row-border {
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.small-title {
    font-size: 1.5rem;
    font-weight: 900;
    margin: 0;
    text-transform: lowercase;
}

.small-title-white {
    font-size: 1.5rem;
    font-weight: 900;
    margin: 0 0 2rem 0;
    text-transform: lowercase;
    color: var(--color-white);
}

.super-title {
    font-size: 5rem;
    font-weight: 900;
    line-height: 0.85;
    margin: 0;
    text-transform: lowercase;
}

.body-text {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.6;
    margin: 0 0 1.5rem 0;
    color: var(--color-text);
}

/* Problema & Objetivos Split */
.split-case-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.objetivos-card {
    border-radius: 20px;
    padding: 3rem;
    background-color: var(--color-dark);
}

.objetivos-list {
    margin: 0;
    padding: 0 0 0 1.2rem;
    color: var(--color-white);
}

.objetivos-list li {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

/* ICP Grid */
.icp-header-col {
    grid-column: 1 / -1;
}

.icp-grid-wrap {
    grid-column: 1 / -1;
    position: relative;
    padding-top: 2rem;
}

.icp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    position: relative;
    z-index: 2;
}

.icp-card {
    display: flex;
    flex-direction: column;
    position: relative;
}

.icp-card:not(:last-child)::before {
    content: '';
    position: absolute;
    top: 13px; /* Centro da bolinha aprox */
    left: 14px;
    width: calc(100% + 4rem); /* cobre todo este card + 1 gap exato */
    border-top: 1px dashed rgba(0,0,0,0.3);
    z-index: 1;
}

.theme-dark .icp-card:not(:last-child)::before {
    border-top: 1px dashed rgba(255,255,255,0.3);
}

.icp-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--color-dark);
    margin-bottom: 2rem;
    border: 4px solid var(--color-white);
    position: relative;
    z-index: 2;
}

.icp-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}

.icp-role {
    font-size: 0.9rem;
    color: var(--color-accent);
    font-weight: 700;
    margin: 0 0 1rem 0;
    text-transform: uppercase;
}

.icp-desc {
    font-size: 1rem;
    color: var(--color-text);
    margin: 0 0 1.5rem 0;
}

.icp-quote {
    font-size: 1rem;
    color: #0b0b0b;
    font-style: italic;
    padding-left: 1rem;
    border-left: 4px solid var(--color-accent);
}

/* ======= GLASS METRICS (LAPTOP SCENE) ======= */
.laptop-scene-wrapper {
    position: relative;
    width: 100%;
    margin-top: 4rem;
    display: flex;
    justify-content: center;
}

.laptop-scene-inner {
    position: relative;
    width: 100%;
    max-width: 900px;
}

.glass-metric {
    position: absolute;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    color: var(--color-dark);
    font-size: 1.2rem;
    font-weight: 800;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    z-index: 5;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    white-space: nowrap;
}

.glass-metric:hover {
    transform: translateY(-5px);
}

.glass-metric span {
    font-weight: 400;
    font-size: 0.9rem;
    color: #333;
}

/* Seta apontando = linha + bolinha colorida */
.glass-metric::after {
    content: '';
    position: absolute;
    background-color: var(--color-accent);
}

.metric-left::after {
    height: 1px;
    width: 30px;
    top: 50%;
    right: -30px;
}
.metric-left::before {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--color-accent);
    top: calc(50% - 3px);
    right: -34px;
}

.metric-right::after {
    height: 1px;
    width: 30px;
    top: 50%;
    left: -30px;
}
.metric-right::before {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--color-accent);
    top: calc(50% - 3px);
    left: -34px;
}

/* Posições que saem um pouco da imagem simulando HUD futurista */
.metric-1 { top: 12%; left: -8%; }
.metric-2 { top: 40%; left: -14%; }
.metric-3 { bottom: 15%; left: -2%; }

.metric-4 { top: 18%; right: -2%; }
.metric-5 { top: 45%; right: -12%; }
.metric-6 { bottom: 20%; right: 4%; }

@media (max-width: 1000px) {
    .laptop-scene-inner { display: flex; flex-direction: column; gap: 1rem; }
    .glass-metric {
        position: relative;
        top: auto !important; left: auto !important; right: auto !important; bottom: auto !important;
        width: 100%; text-align: left; white-space: normal;
    }
    .metric-left::after, .metric-left::before, .metric-right::after, .metric-right::before { display: none; }
}

}

/* Resultados Dashboard Panel */
.resultados-panel {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 1.5rem;
    margin-top: 4rem;
}

.chart-card {
    background-color: #f7f7f7;
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.chart-placeholder {
    width: 100%;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed rgba(0,0,0,0.1);
    border-radius: 8px;
    position: relative;
    background-color: #ffffff;
}

.chart-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--color-text);
}

.chart-title span {
    font-weight: 400;
    opacity: 0.7;
}

.stats-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stat-card {
    background-color: #f7f7f7;
    border-radius: 12px;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    font-size: 1.15rem;
    color: var(--color-text);
}

.stat-card strong {
    font-size: 3rem;
    font-weight: 900;
    color: var(--color-dark);
    margin-right: 1.5rem;
    line-height: 1;
}

.stat-card-text {
    flex-grow: 1;
    font-weight: 400;
}

.stat-card-text strong {
    font-size: inherit;
    font-weight: 700;
    margin: 0;
    color: var(--color-dark);
}

.stat-note {
    font-size: 0.85rem;
    color: #888;
    margin-top: 0.5rem;
    padding-left: 0.5rem;
}

@media (max-width: 900px) {
    .resultados-panel {
        grid-template-columns: 1fr;
    }
}

/* Timeline */
.timeline-visual {
    display: flex;
    margin-top: 3rem;
    border-radius: 10px;
    overflow: hidden;
}

.tl-block {
    flex: 1;
    padding: 1.5rem 1rem;
    color: var(--color-white);
    min-height: 120px;
}

.tl-block.theme-darkest { background-color: #111; }
.tl-block.theme-darker { background-color: #222; }
.tl-block.theme-gray-light { background-color: #555; }

.tl-num {
    font-size: 1rem;
    opacity: 0.5;
    display: block;
    margin-bottom: 0.5rem;
}

.tl-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    text-transform: uppercase;
}

/* Venn Diagram Pure CSS */
.venn-diagram-wrapper {
    position: relative;
    width: 100%;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 4rem;
}

.venn-circle {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.circle-left {
    background-color: var(--color-dark);
    margin-right: 150px;
}

.circle-left span {
    margin-right: auto;
    padding-left: 4rem;
}

.circle-right {
    background-color: #f0f0f0;
    margin-left: 150px;
    color: var(--color-dark);
    mix-blend-mode: multiply; /* Faz as sombras/escuros do outro passarem dando a intersecção estilo vidro */
}

.circle-right span {
    margin-left: auto;
    padding-right: 3rem;
}

.venn-center-text {
    position: absolute;
    z-index: 10;
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--color-white);
    /* Forcing the center to render properly over multiply */
}

/* Grid Layout (Serviços) */
.grid-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  width: 100%;
  padding: 10rem 4rem 4rem 4rem;
  align-items: start;
}

.grid-title {
  font-size: 2rem;
  font-weight: 700;
  opacity: 0.5;
  padding-top: 1rem;
}

.services-list {
  display: flex;
  flex-direction: column;
}

.service-item {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  border-bottom: 2px solid rgba(30, 30, 30, 0.1);
  padding: 1.25rem 0; /* Reduzido em 50% */
  cursor: pointer;
  transition: padding-left 0.3s ease;
}

.service-item:hover {
  padding-left: 2rem;
}

.service-title {
  font-size: 4vw;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.service-item:hover .service-title {
  color: var(--color-accent);
}

.service-desc {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--color-text);
  margin: 0;
  opacity: 0.8;
  max-width: 100%; /* Permite ocupar toda a linha */
  white-space: nowrap; /* Força ficar em uma linha */
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .service-title {
    font-size: 2.5rem;
  }
  .service-desc {
    white-space: normal; /* Permite quebrar linha no mobile */
  }
}

/* ================== FOOTER ================== */
.main-footer {
    padding: 8rem 4rem 3rem 4rem;
    display: flex;
    flex-direction: column;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.footer-title {
    font-size: 8vw;
    font-weight: 900;
    line-height: 0.9;
    margin: 0;
    text-transform: uppercase;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links a {
    color: var(--color-white);
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 400;
    opacity: 0.7;
    transition: opacity 0.3s ease, color 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--color-accent);
}

.footer-bottom {
    font-size: 0.9rem;
    opacity: 0.5;
    font-weight: 300;
    text-align: left;
}

/* ================== RESPONSIVIDADE ================== */

/* Tablets e Telas Médias (Até 1024px) */
@media (max-width: 1024px) {
    header, header.scrolled {
        padding: 1.5rem 2rem;
    }

    .hero-content {
        padding: 0 2rem;
    }

    .medium-title {
        font-size: 7vw;
    }

    .sobre-sub {
        font-size: 2.5vw;
        max-width: 100%;
    }

    .sobre-mim-placeholder {
        max-width: 100%;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }

    .case-container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* Mobile (Até 768px) */
@media (max-width: 768px) {
    header, header.scrolled {
        padding: 1rem 1.5rem;
    }

    .header-inner {
        grid-template-columns: 1fr auto;
    }

    nav.centered-nav {
        display: none;
    }

    .contact-header-btn {
        font-size: 0.8rem;
        padding: 0.6rem 1.2rem;
    }

    .hero-content {
        padding: 0 var(--mobile-pad);
    }

    .case-container {
        padding-left: var(--mobile-pad);
        padding-right: var(--mobile-pad);
    }

    .cases-intro {
        padding: 0 var(--mobile-pad);
    }

    .project-grid {
        padding: 0 var(--mobile-pad);
    }

    .grid-layout {
        padding-left: var(--mobile-pad);
        padding-right: var(--mobile-pad);
    }

    .main-footer {
        padding-left: var(--mobile-pad);
        padding-right: var(--mobile-pad);
    }

    .huge-title {
        font-size: 16vw;
        letter-spacing: -0.06em;
    }

    .huge-title-center {
        font-size: 12vw;
    }

    .medium-title {
        font-size: 9vw;
    }

    .sobre-sub {
        font-size: 1.2rem;
        margin-top: 2rem;
    }

    .project-grid {
        display: flex !important;
        flex-direction: column !important;
        padding: 0 1.5rem;
        gap: 0;
    }

    .project-card.dark-card {
        order: 1; /* Título sempre em cima */
        min-height: auto;
        padding: 3rem 2rem;
        border-radius: 20px 20px 0 0;
    }

    .project-media {
        order: 2; /* Imagem embaixo */
        height: 350px;
        border-radius: 0 0 20px 20px;
    }

    .project-card {
        padding: 3rem 1.5rem;
    }

    .case-row {
        display: flex;
        flex-direction: column;
        padding: 4rem 0;
    }

    .case-title-col {
        width: 100%;
        margin-bottom: 2rem;
        border-bottom: 1px solid rgba(0,0,0,0.1);
        padding-bottom: 1rem;
    }

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

    .body-text {
        max-width: 100% !important;
        font-size: 1.15rem;
    }

    /* ICP Grid Stacking */
    .icp-grid {
        grid-template-columns: 1fr !important;
        gap: 3rem;
    }

    .icp-card:not(:last-child)::before {
        display: none;
    }

    /* Timeline Stacking */
    .timeline-visual {
        flex-direction: column;
        border-radius: 12px;
    }

    .tl-block {
        min-height: auto;
        padding: 2rem;
    }

    /* Meta Grid & Metrics Grid */
    .case-meta-grid, .case-metrics-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    /* Split Content */
    .split-case-content {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }

    /* Serviços */
    .grid-layout {
        grid-template-columns: 1fr !important;
        padding: 6rem 1.5rem 3rem 1.5rem;
    }

    .services-list {
        font-size: 2.5rem;
        margin-top: 2rem;
    }

    /* Footer */
    .main-footer {
        padding: 4rem 1.5rem 2rem 1.5rem;
    }

    .footer-title {
        font-size: 15vw;
    }

    .footer-links {
        gap: 1.5rem;
    }
}

/* Mobile Small */
@media (max-width: 480px) {
    .huge-title {
        font-size: 15vw !important; /* Prevents "CREATIVE" and "INTELLIGENCE" from cutting off */
        word-break: break-word;
    }
    
    .super-title {
        font-size: 12vw;
    }

    .hero-content {
        padding: 0 var(--mobile-pad);
    }

    .header-inner {
        grid-template-columns: auto 1fr;
        gap: 1rem;
    }

    .logo-text {
        font-size: 1rem;
    }
}

/* Very Small Screens */
@media (max-width: 360px) {
    .huge-title {
        font-size: 14vw !important;
    }
    
    .contact-header-btn {
        font-size: 0.75rem;
        padding: 0.5rem 1rem;
    }
}

/* ======= COOKIE BANNER ======= */
.cookie-banner {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    max-width: 600px;
    background: rgba(30, 30, 30, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    z-index: 9999;
    color: var(--color-white);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    pointer-events: none;
}

.cookie-banner.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.cookie-text {
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 0.9;
    margin: 0;
}

.cookie-text a {
    color: var(--color-white);
    text-decoration: underline;
    font-weight: 700;
}

.cookie-btns {
    display: flex;
    gap: 1rem;
}

.cookie-accept-btn {
    background-color: var(--color-accent);
    color: var(--color-white);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s;
}

.cookie-accept-btn:hover {
    transform: scale(1.05);
    background-color: #a12b16;
}

/* ======= PRIVACY POLICY PAGE ======= */
.policy-hero {
    min-height: 40vh !important;
    padding-top: 10rem;
}

.policy-hero .huge-title {
    font-size: 8vw; /* Reduced from 14vw for better fit */
}

.policy-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem var(--mobile-pad) 10rem var(--mobile-pad);
}

.policy-content h2 {
    font-size: 2rem;
    font-weight: 900;
    margin: 3rem 0 1.5rem 0;
    text-transform: lowercase;
}

.policy-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--color-text);
    margin-bottom: 1.5rem;
}

.policy-content ul {
    margin-bottom: 2rem;
    padding-left: 1.5rem;
}

.policy-content li {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--color-text);
    margin-bottom: 0.8rem;
}

@media (max-width: 768px) {
    .cookie-banner {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
        padding: 1.2rem;
    }
    
/* ======= SCROLL REVEAL ANIMATIONS ======= */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s cubic-bezier(0.2, 0.8, 0.2, 1), 
                transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: opacity, transform;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Desktop-only stagger for grids */
@media (min-width: 1024px) {
    .reveal-stagger {
        display: contents;
    }
    
    .reveal-stagger > * {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 1s cubic-bezier(0.2, 0.8, 0.2, 1), 
                    transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    }
    
    .reveal-stagger.active > *:nth-child(1) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
    .reveal-stagger.active > *:nth-child(2) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
    .reveal-stagger.active > *:nth-child(3) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
    .reveal-stagger.active > *:nth-child(4) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }
    .reveal-stagger.active > *:nth-child(5) { transition-delay: 0.5s; opacity: 1; transform: translateY(0); }
}
