/* === PAGE LOADER === */
.page-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background-color: var(--black-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.page-loader.hide {
    opacity: 0;
}

.loader-percent {
    font-family: 'Lato', sans-serif;
    font-size: 5rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    color: rgba(255,255,255,0.12);
    line-height: 1;
    user-select: none;
    transition: color 0.3s ease;
}

/* === CASCADE PANELS === */
.cascade-panels {
    position: fixed;
    inset: 0;
    z-index: 9998;
    display: flex;
    pointer-events: none;
}

.cascade-panel {
    flex: 1;
    background-color: var(--black-bg);
    transform: translateY(0);
    transition: transform 0.65s cubic-bezier(0.76, 0, 0.24, 1);
    will-change: transform;
}

/* Cada painel sobe com delay em cascata */
.cascade-panels.exit .cascade-panel:nth-child(1) { transition-delay: 0.00s; }
.cascade-panels.exit .cascade-panel:nth-child(2) { transition-delay: 0.05s; }
.cascade-panels.exit .cascade-panel:nth-child(3) { transition-delay: 0.10s; }
.cascade-panels.exit .cascade-panel:nth-child(4) { transition-delay: 0.15s; }
.cascade-panels.exit .cascade-panel:nth-child(5) { transition-delay: 0.20s; }
.cascade-panels.exit .cascade-panel:nth-child(6) { transition-delay: 0.25s; }
.cascade-panels.exit .cascade-panel:nth-child(7) { transition-delay: 0.30s; }
.cascade-panels.exit .cascade-panel:nth-child(8) { transition-delay: 0.35s; }

.cascade-panels.exit .cascade-panel {
    transform: translateY(-100%);
}

/* === DESIGN SYSTEM TOKENS === */
@font-face {
    font-family: 'Professor';
    src: url('fontes/Professor%20Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

:root {
    /* Colors extraídas da paleta enviada pelo Victor */
    --gold-primary: #957d5b; /* Ouro envelhecido principal */
    --gold-light: #dabaa4;
    --gold-dark: #7b654f;
    --teal-dark: #1c2520; /* Fundo base escuro */
    --black-bg: #1c2520; 
    --gray-light: #caccbb;
    
    --white: #FFFFFF;
    --white-tr-20: rgba(255, 255, 255, 0.2);
    --white-tr-70: rgba(255, 255, 255, 0.7);

    /* Typography - All LATO (Exclude Signature) */
    --font-main: 'Lato', sans-serif;
    
    /* Spacing & Utilities */
    --transition-smooth: all 0.3s ease-in-out;
}

/* === RESET & GLOBAL === */
html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none !important;
}

body {
    font-family: var(--font-main);
    background-color: var(--black-bg);
    color: var(--white);
    overflow-x: hidden;
    cursor: none !important;
    font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 900; 
    letter-spacing: -0.01em; 
    text-transform: uppercase;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

/* === COMPONENTS === */

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--gold-primary);
    color: #1c2520;
    padding: 14px 32px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    border-radius: 100px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    background-color: var(--gold-light);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 30px rgba(149, 125, 91, 0.3);
    border-color: rgba(255, 255, 255, 0.1);
}

/* === HEADER / NAVBAR === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 24px 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    transition: var(--transition-smooth);
}

/* Estado quando rola a página (Glassmorphism) */
.navbar.scrolled {
    background-color: rgba(23, 23, 23, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 16px 48px;
    border-bottom: 1px solid var(--white-tr-20);
}

.logo {
    font-size: 18px; /* Ajustado para bater visualmente com a imagem */
    font-weight: 700; /* Bold como na imagem */
    letter-spacing: 0.25em; /* Espaçamento bem distante, clean sans serif */
    font-family: 'Lato', sans-serif;
    text-transform: uppercase;
    color: var(--white);
}

/* === NAV PILL DESIGN === */
.nav-pill {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 6px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.nav-pill-link {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--white);
    text-transform: uppercase;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.nav-pill-link:hover {
    background-color: #c9ae79; /* Ouro velho emulando o botão antigo */
    color: #1c2520; /* Texto contrastante */
    transform: scale(1.05);
}

.nav-divider {
    width: 1px;
    height: 14px;
    background-color: rgba(255, 255, 255, 0.15);
    margin: 0 4px;
}

/* Botão Orçamento em destaque na Pill */
.nav-pill-link.highlight {
    background-color: #c9ae79;
    color: #1c2520;
    font-weight: 600;
}

.nav-pill-link.highlight:hover {
    background-color: var(--gold-light);
    transform: scale(1.02);
}

/* === HERO SECTION (Sticky Immersive Zoom Out) === */

.hero-fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1; /* Fica fixo atrás de tudo */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding-bottom: 6vh; /* Espaço para base */
    will-change: transform;
}

/* Gradiente na base da imagem para garantir leitura do texto "Victor Dutra" e mesclar com a section abaixo */
.hero-fixed::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(28,37,32,0.9) 0%, rgba(28,37,32,0.3) 40%, rgba(28,37,32,0) 70%);
    pointer-events: none;
    z-index: 2;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%; /* Ajuste fino para enquadrar melhor o rosto no topo/centro */
    z-index: 1;
    transform-origin: center center;
    filter: brightness(0.9); 
    will-change: transform, opacity;
}

.hero-bottom-text {
    position: relative;
    z-index: 3;
    text-align: center;
    will-change: opacity, transform;
    /* Removido o margin extra para garantir que só o padding-bottom dite a posição final */
}

.hero-name {
    font-family: 'Professor', cursive;
    font-size: 5.5rem; 
    font-weight: 400;
    line-height: 1;
    color: var(--white);
    margin-bottom: -15px; 
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4); 
    text-transform: none; 
    letter-spacing: normal; /* Essencial para fontes cursivas conectarem */
}

.hero-cta {
    font-family: 'Lato', sans-serif; /* Trocada para Lato */
    font-size: 14px; /* Aumentado levemente pelo formato da Lato */
    font-weight: 400;
    letter-spacing: 0.15em;
    color: var(--gold-light); 
    text-transform: uppercase;
}

/* === MAIN CONTENT SCROLL OVER === */
.main-content {
    position: relative;
    z-index: 10;
    margin-top: 100vh;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    background: transparent;
}

/* Todas as seções após a about devem ter fundo sólido para nunca ficarem invisíveis */
.main-content section {
    position: relative;
}

.main-content section:not(.about) {
    background-color: rgba(28, 37, 32, 0.7); /* Translucidez para ver o background global */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* === ABOUT SECTION (GLASS FOLDER EFFECT) === */
.about {
    position: relative;
    background: rgba(22, 30, 26, 0.92); /* Aumentado de 0.55 para 0.92 — visibilidade garantida */
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 48px 48px 0 0;
    box-shadow: 0 -30px 60px rgba(0, 0, 0, 0.6);
}

.section-padding {
    padding: 120px 48px;
}

.about-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.section-subtitle {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--gold-primary);
    margin-bottom: 24px;
    font-weight: 700;
}

.micro-statement {
    display: block;
    margin-top: 40px;
    font-size: 13px;
    font-weight: 500;
    color: var(--gold-primary);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    opacity: 0.9;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 900; 
    margin-bottom: 40px;
    line-height: 1.25;
    text-transform: uppercase;
    letter-spacing: -0.01em;
}

.section-title span {
    color: var(--gold-primary);
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--white-tr-70);
    font-weight: 400;
    margin-bottom: 20px;
    text-transform: uppercase; /* Mantendo o pedido de "Tudo em maiúsculo" */
    letter-spacing: 0.05em;
    text-align: center;
}

@media (max-width: 768px) {
    .about-text {
        font-size: 0.95rem;
        line-height: 1.6;
    }
}

@media (max-width: 480px) {
    .about-text {
        font-size: 0.85rem;
        line-height: 1.5;
    }
}

/* === STATEMENT SECTION === */
.statement {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 180px 48px; /* Padding generoso mas controlado */
    text-align: center;
    background-color: var(--black-bg);
}

.statement-text {
    font-size: 4.2rem;
    font-weight: 900; 
    line-height: 0.95; /* Super condensado */
    max-width: 950px;
    margin: 0 auto;
    letter-spacing: -0.03em;
    text-transform: uppercase;
}

.statement-text span {
    color: var(--gold-primary);
    font-weight: 900;
}

/* === CANVAS BACKGROUND (Photoshop/Illustrator Immersion) === */
.canvas-bg {
    background-color: var(--black-bg);
    background-image: 
        linear-gradient(to bottom, transparent 80%, var(--black-bg) 100%),
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 100% 100%, 50px 50px, 50px 50px;
    background-position: center center;
    position: relative;
    border-top: 1px solid rgba(255,255,255,0.05); /* Régua superior simulada */
    padding-left: 60px !important; /* Espaço para toolbar */
    padding-top: 48px !important; /* Espaço para régua */
}

/* Régua horizontal no topo */
.canvas-bg::before {
    content: '0    100    200    300    400    500    600    700    800    900    1000';
    position: absolute;
    top: 0;
    left: 60px;
    right: 0;
    height: 24px;
    background: #151d19;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-size: 7px;
    letter-spacing: 2.8em;
    color: rgba(255,255,255,0.15);
    line-height: 24px;
    padding-left: 4px;
    overflow: hidden;
    z-index: 2;
    font-family: monospace;
}

/* Régua vertical na esquerda */
.canvas-bg::after {
    content: '';
    position: absolute;
    top: 24px;
    left: 0;
    bottom: 0;
    width: 24px;
    background: #151d19;
    border-right: 1px solid rgba(255,255,255,0.08);
    background-image: repeating-linear-gradient(
        180deg,
        rgba(255,255,255,0.08) 0px,
        rgba(255,255,255,0.08) 1px,
        transparent 1px,
        transparent 50px
    );
    z-index: 2;
}

/* Toolbar lateral */
.canvas-toolbar {
    position: absolute;
    top: 24px;
    left: 24px;
    width: 36px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    z-index: 3;
    background: #151d19;
    border-radius: 4px;
    padding: 4px;
    border: 1px solid rgba(255,255,255,0.06);
}

.toolbar-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
    font-family: monospace;
    color: rgba(255,255,255,0.25);
    border-radius: 3px;
    transition: all 0.2s ease;
}

.toolbar-icon:hover {
    color: rgba(255,255,255,0.6);
    background: rgba(255,255,255,0.05);
}

.toolbar-icon.active {
    color: var(--white);
    background: rgba(149,125,91,0.3);
}

/* Guias de alinhamento animadas (linhas rosas do Illustrator) */
.guide-h, .guide-v {
    position: absolute;
    z-index: 1;
    pointer-events: none;
}

.guide-h {
    left: 60px;
    right: 0;
    height: 1px;
    background: rgba(0, 210, 255, 0.15);
}

.guide-v {
    top: 24px;
    bottom: 0;
    width: 1px;
    background: rgba(0, 210, 255, 0.15);
}

.guide-h1 { top: 35%; animation: guideFloat 8s ease-in-out infinite; }
.guide-h2 { top: 72%; animation: guideFloat 10s ease-in-out infinite reverse; }
.guide-v1 { left: 50%; animation: guideFloatV 12s ease-in-out infinite; }

@keyframes guideFloat {
    0%, 100% { opacity: 0.1; }
    50% { opacity: 0.35; }
}

@keyframes guideFloatV {
    0%, 100% { opacity: 0.05; }
    50% { opacity: 0.25; }
}

/* === IMMERSIVE PREMIUM WEB MOCKUP === */
.inner-web-mockup {
    margin: 80px auto 60px; /* Margem inferior para o canvas engoli-la confortavelmente */
    max-width: 1080px; 
    background: rgba(15, 20, 18, 0.45);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.15); /* light shines from top */
    overflow: hidden;
    position: relative;
    box-shadow: 
        0 40px 100px -20px rgba(0, 0, 0, 0.9), 
        0 0 0 1px rgba(149, 125, 91, 0.05) inset;
    transform: perspective(2000px) rotateX(1.5deg) translateY(0);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.inner-web-mockup:hover {
    transform: perspective(2000px) rotateX(0deg) translateY(-10px) scale(1.02);
    box-shadow: 
        0 60px 120px -20px rgba(0, 0, 0, 1), 
        0 0 100px -20px rgba(149, 125, 91, 0.15);
    border-color: rgba(149, 125, 91, 0.2);
}

.inner-web-mockup .browser-header {
    background: rgba(10, 14, 12, 0.85);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.inner-web-mockup .browser-header .dots {
    display: flex;
    gap: 6px;
}

.inner-web-mockup .browser-header .dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.inner-web-mockup:hover .browser-header .dots span:nth-child(1) { background: #ff5f56; box-shadow: 0 0 5px #ff5f56; }
.inner-web-mockup:hover .browser-header .dots span:nth-child(2) { background: #ffbd2e; box-shadow: 0 0 5px #ffbd2e; }
.inner-web-mockup:hover .browser-header .dots span:nth-child(3) { background: #27c93f; box-shadow: 0 0 5px #27c93f; }

.inner-web-mockup .url-bar {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 6px 20px;
    border-radius: 6px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.1em;
    font-family: monospace;
    flex: 1;
    margin-left: 20px;
    text-align: center;
}

.web-body {
    position: relative;
    padding: 100px 60px;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Fundo Animado (Orb) */
.web-glow-orb {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(149, 125, 91, 0.15) 0%, transparent 70%);
    top: var(--orb-y, 50px);
    left: var(--orb-x, 50%);
    transform: translate(-50%, -50%); /* Centraliza no ponto do mouse */
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
    transition: top 0.3s ease-out, left 0.3s ease-out; /* Suavidade no rastro */
}


/* Marca d'água monumental */
.web-watermark {
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translate(calc(-50% + var(--move-x, 0px)), var(--move-y, 0px));
    font-size: 11vw;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.03);
    white-space: nowrap;
    z-index: 0;
    pointer-events: none;
    letter-spacing: 0.05em;
    transition: transform 0.4s ease-out;
}

.web-hero-content {
    position: relative;
    z-index: 2;
    margin-top: 40px;
    margin-bottom: 70px;

}

.web-headline {
    font-size: 4rem;
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    color: var(--white);
    text-transform: uppercase;
}

.web-headline span {
    background: linear-gradient(90deg, var(--gold-light), var(--gold-primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.web-subtext {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.6);
    max-width: 700px;
    margin: 0 auto;
    font-weight: 300;
    letter-spacing: 0.02em;
}

.services-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 24px;
    width: 100%;
}

.inner-card {
    position: relative;
    flex: 1;
    background: rgba(20, 25, 22, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 40px 32px;
    text-align: left;
    overflow: hidden;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.5s ease;
}

.inner-card:hover {
    transform: translateY(-10px);
    border-color: rgba(149, 125, 91, 0.5);
    background: rgba(30, 35, 32, 0.6);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.card-number {
    display: block;
    font-family: monospace;
    font-size: 10px;
    color: var(--gold-primary);
    margin-bottom: 24px;
    opacity: 0.8;
}

.inner-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--white);
    letter-spacing: 0;
    text-transform: uppercase;
}

.inner-card p {
    font-size: 0.85rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.5);
    text-transform: none;
    letter-spacing: 0;
}

.card-glow {
    position: absolute;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(149, 125, 91, 0.15) 0%, transparent 70%);
    top: -50px;
    right: -50px;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.inner-card:hover .card-glow {
    opacity: 1;
}

@media (max-width: 1024px) {
    .web-headline { font-size: 3rem; }
    .services-wrapper { flex-wrap: wrap; }
    .inner-card { min-width: 45%; }
}

@media (max-width: 768px) {
    .web-headline { font-size: 2rem; }
    .web-subtext { font-size: 0.9rem; }
    .inner-web-mockup { margin: 40px 16px; border-radius: 8px; }
    .web-body { padding: 40px 20px; }
    .services-wrapper { flex-direction: column; }
    .inner-card { min-width: 100%; }
    .web-watermark { display: none; }
}

/* Canvas content wrapper */
.canvas-content {
    position: relative;
    z-index: 3;
}

/* === PORTFOLIO SECTION === */
.portfolio {
    background-color: var(--black-bg);
    position: relative;
    z-index: 10;
}

.portfolio-header {
    text-align: center;
    margin-bottom: 60px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Estilo Card - Efeito de Referência (Luxo) */
.portfolio-card {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    background-color: var(--teal-dark);
}

.card-image-wrapper {
    width: 100%;
    height: 420px;
    overflow: hidden;
    position: relative;
}

.card-image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(28,37,32,0.95) 0%, rgba(28,37,32,0.4) 40%, rgba(28,37,32,0) 100%);
    transition: var(--transition-smooth);
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Hover effects */
.portfolio-card:hover .card-image-wrapper img {
    transform: scale(1.08); /* Zoom sutil e premium */
}

.portfolio-card:hover .card-image-wrapper::after {
    /* Escurece levemente no hover garantindo leitura e clima sombrio/luxuoso */
    background: linear-gradient(to top, rgba(28,37,32,1) 0%, rgba(28,37,32,0.6) 50%, rgba(28,37,32,0.2) 100%);
}

.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    z-index: 2;
    transform: translateY(20px);
    transition: transform 0.4s ease-out;
}

.portfolio-card:hover .card-content {
    transform: translateY(0);
}

.card-content h3 {
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 8px;
    letter-spacing: 0.05em;
}

.card-content p {
    font-size: 0.85rem;
    color: var(--white-tr-70);
    margin-bottom: 20px;
    font-weight: 300;
    letter-spacing: 0.05em;
    opacity: 0;
    transition: opacity 0.4s ease-out;
}

.portfolio-card:hover .card-content p {
    opacity: 1;
}

.card-btn {
    display: inline-block;
    padding: 10px 24px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #1c2520; /* Texto escuro exigido pela imagem */
    background-color: var(--gold-primary); /* Fundo sólido preenchido */
    border-radius: 50px; /* Estilo Pill uniforme */
    text-decoration: none;
    transition: var(--transition-smooth);
    opacity: 0;
    transform: translateY(10px);
}

.portfolio-card:hover .card-btn {
    opacity: 1;
    transform: translateY(0);
}

.card-btn:hover {
    background-color: var(--gold-light); /* Pequeno acréscimo de feedback ao passar no próprio botão */
    transform: translateY(-2px) !important;
}

/* === SERVICES & PROCESS & MOCKUP GRIDS === */
.services-grid, .mockup-grid {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 24px;
    margin-top: 60px;
    flex-wrap: nowrap;
    padding: 10px 0;
}

.service-card {
    padding: 30px 28px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    text-align: center;
    flex: 1;
    max-width: 280px;
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(149, 125, 91, 0.4);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(149, 125, 91, 0.1);
}

/* --- CARD BASE STYLES (Restaurados) --- */
.preview-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    background: #1c2520; /* Fundo sólido para não ver o de trás */
}

.browser-header {
    background: rgba(255, 255, 255, 0.07);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.browser-header .dots {
    display: flex;
    gap: 5px;
}

.browser-header .dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.preview-card:hover .browser-header .dots span:nth-child(1) { background: #ff5f56; }
.preview-card:hover .browser-header .dots span:nth-child(2) { background: #ffbd2e; }
.preview-card:hover .browser-header .dots span:nth-child(3) { background: #27c93f; }

.url-bar {
    flex: 1;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    padding: 3px 10px;
    font-size: 9px;
    color: var(--white-tr-70);
    font-family: monospace;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- SHOWCASE STACK (Versão Estável e Ampliada) --- */
/* === SEÇÃO SHOWCASE (STABLE & CLEAN) === */
.showcase-stack-container {
    padding: 60px 10%; /* Padding vertical reduzido para centralizar melhor no rosto */
    margin-top: 10px;
    display: flex;
    justify-content: center;
    perspective: 2500px;
    min-height: 600px;
    overflow: visible;
}

.showcase-stack {
    position: relative;
    width: 290px; /* Reduzido p/ visualização mais elegante */
    height: 480px; 
    transform-style: preserve-3d;
}

.preview-card {
    position: absolute;
    inset: 0;
    background: #1c2520;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 40px 80px rgba(0,0,0,0.5);
    opacity: 1 !important;
}

/* Redução proporcional do header e info para o novo tamanho */
.browser-header { padding: 8px 14px; }
.url-bar { font-size: 9px; padding: 3px 10px; }
.preview-info { padding: 15px 20px; }
.preview-info h4 { font-size: 0.95rem; margin-bottom: 4px; }
.preview-info p { font-size: 0.75rem; }

/* Posicionamento Inicial (Ajustado) */
.showcase-stack .preview-card:nth-child(1) { transform: rotateY(20deg) translateX(-70px) translateZ(-100px); z-index: 1; }
.showcase-stack .preview-card:nth-child(2) { transform: translateZ(50px); z-index: 3; }
.showcase-stack .preview-card:nth-child(3) { transform: rotateY(-20deg) translateX(70px) translateZ(-100px); z-index: 1; }

/* --- LOGICA DE PROFUNDIDADE INTELIGENTE (Depth Swap) --- */

/* Spread Inicial */
.showcase-stack:hover .preview-card {
    opacity: 1 !important;
    filter: none;
}
.showcase-stack:hover .preview-card:nth-child(1) { transform: rotateY(15deg) translateX(-450px) translateZ(0); }
.showcase-stack:hover .preview-card:nth-child(2) { transform: translateY(0) translateZ(40px) scale(0.9); }
.showcase-stack:hover .preview-card:nth-child(3) { transform: rotateY(-15deg) translateX(450px) translateZ(0); }

/* Troca de Foco */
.showcase-stack .preview-card:nth-child(1):hover {
    z-index: 100 !important;
    transform: scale(1.1) translateX(-350px) translateY(-30px) translateZ(250px) !important;
}
.showcase-stack:has(.preview-card:nth-child(1):hover) .preview-card:nth-child(2) {
    transform: translateY(-80px) translateZ(-150px) scale(0.85);
}

.showcase-stack .preview-card:nth-child(3):hover {
    z-index: 100 !important;
    transform: scale(1.1) translateX(350px) translateY(-30px) translateZ(250px) !important;
}
.showcase-stack:has(.preview-card:nth-child(3):hover) .preview-card:nth-child(2) {
    transform: translateY(-80px) translateZ(-150px) scale(0.85);
}

.showcase-stack .preview-card:nth-child(2):hover {
    z-index: 100 !important;
    transform: scale(1.12) translateY(-40px) translateZ(320px) !important;
}
@media (max-width: 768px) {
    .showcase-stack-container {
        padding: 40px 0;
        min-height: auto;
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
    }
    .showcase-stack {
        display: flex;
        width: max-content;
        gap: 25px;
        padding: 0 50px 50px 50px;
        transform: none !important;
    }
    .showcase-stack .preview-card {
        position: relative;
        flex: 0 0 280px;
        height: 480px;
        transform: none !important;
        scroll-snap-align: center;
        opacity: 1 !important;
        filter: none !important;
    }
}

/* --- TYPING ANIMATION --- */
.typing-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    line-height: 1.4;
}

.typing-text {
    color: var(--gold-primary);
    font-weight: 700;
    min-height: 1.2em;
    display: block;
}

.cursor {
    color: var(--gold-primary);
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* --- CURSOR LUXURY (MINIMALISTA) --- */
.cursor-dot {
    width: 6px;
    height: 6px;
    background-color: var(--gold-primary);
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    z-index: 10001;
    pointer-events: none;
}

.cursor-outline {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(212, 175, 55, 0.4);
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    z-index: 10000;
    pointer-events: none;
    transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease, border 0.3s ease;
}

/* Efeito de Hover imersivo */
.cursor-hover .cursor-outline {
    width: 55px;
    height: 55px;
    background-color: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--gold-primary);
}

.cursor-hover .cursor-dot {
    transform: scale(0.6);
}

* {
    cursor: none !important;
}

body {
    cursor: none !important;
}

.preview-info h4 { font-size: 1rem; margin-bottom: 4px; }
.preview-info p { font-size: 0.8rem; }

.preview-overlay {
    position: absolute;
    inset: 0;
    background: rgba(28, 37, 32, 0);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.3s;
}

.preview-card:hover .preview-overlay {
    background: rgba(28, 37, 32, 0.5);
}

.view-btn {
    background: var(--gold-primary);
    color: #1c2520;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    opacity: 0;
    transform: scale(0.8);
    transition: 0.3s;
}

.preview-card:hover .view-btn {
    opacity: 1;
    transform: scale(1);
}

/* --- INTERNAL PREVIEW STYLES (Restaurados) --- */
.preview-body {
    position: relative;
    flex: 1;
    overflow: hidden;
    background: #111;
}

.iframe-wrapper {
    width: 333.33%; 
    height: 4000px;
    transform: scale(0.3); 
    transform-origin: top left;
    left: 0;
    top: 0;
    animation: autoScrollIframe 25s ease-in-out infinite;
    pointer-events: none;
    position: absolute;
}

@keyframes autoScrollIframe {
    0%, 10% { transform: scale(0.3) translateY(0); }
    45%, 55% { transform: scale(0.3) translateY(-25%); }
    90%, 100% { transform: scale(0.3) translateY(0); }
}

.preview-card:hover .iframe-wrapper {
    animation-play-state: paused;
}

.iframe-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: white; 
}

.preview-overlay {
    position: absolute;
    inset: 0;
    background: rgba(28, 37, 32, 0.0);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.3s ease;
}

.preview-card:hover .preview-overlay {
    background: rgba(28, 37, 32, 0.4);
}

.view-btn {
    background: var(--gold-primary);
    color: #1c2520;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.preview-card:hover .view-btn {
    opacity: 1;
    transform: scale(1);
}

/* Info do Card */
.preview-info {
    padding: 24px;
    text-align: left;
}

.preview-info h4 {
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 6px;
    color: var(--white);
}

.preview-info p {
    font-size: 0.85rem;
    color: var(--gold-light);
    font-weight: 300;
}

.service-card h3 {
    font-size: 0.9rem;
    margin-bottom: 8px;
    font-weight: 400;
    letter-spacing: 0.1em;
    font-size: 0.75rem;
    line-height: 1.4;
}

/* === PROCESS EVOLUTION SCROLL === */
.process {
    height: 350vh; /* Aumentado para dar mais 'espaço temporal' a cada passo e evitar pulos */
    background: var(--black-bg);
    position: relative;
    padding: 0 !important; /* Sticky ocupará tudo */
}

.process-sticky {
    position: sticky;
    top: 0;
    height: 100dvh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.process-evolution-wire {
    position: absolute;
    top: 55%;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.03);
    z-index: 1;
}

.process-evolution-progress {
    position: absolute;
    top: 55%;
    left: 0;
    width: var(--process-p, 0%);
    height: 2px;
    background: var(--gold-primary);
    box-shadow: 0 0 20px var(--gold-primary);
    z-index: 2;
    transition: width 0.1s ease-out;
}

.process-flow {
    display: flex;
    justify-content: space-around;
    width: 160%; 
    padding: 0 10%;
    transform: translateX(var(--process-move, 0%)) translateY(-40px);
    z-index: 3;
    transition: transform 0.1s ease-out;
}

@media (max-width: 768px) {
    .process-flow {
        width: 350%; /* Aumentado para mobile p/ comportar passos menores */
        transform: translateX(var(--process-move, 0%)) translateY(-20px);
    }
}

.process-step {
    flex: 0 0 300px;
    text-align: center;
    position: relative;
    transition: all 0.5s ease;
    opacity: 0.2;
    transform: scale(0.8);
    filter: blur(2px);
}

@media (max-width: 768px) {
    .process-step {
        flex: 0 0 220px; /* Passos menores no mobile */
    }
}

.process-step.active-step {
    opacity: 1;
    transform: scale(1.2);
    filter: blur(0);
}

.process-step.active-step .step-number {
    color: var(--white);
    text-shadow: 0 0 10px var(--gold-primary);
}

.process-step.active-step .step-name {
    color: var(--gold-primary);
    letter-spacing: 0.3em;
}

.step-number {
    font-size: 14px;
    font-weight: 700;
    color: var(--gold-primary);
    margin-bottom: 12px; /* Reduzido para aproximar as escritas */
    display: block;
    transition: all 0.3s ease;
}

.step-name {
    font-size: 1.5rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.5s ease;
}

/* === FINAL CTA SECTION (PREMIUM REVAMP) === */
.final-cta {
    position: relative;
    padding: 120px 48px;
    background-color: var(--black-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.cta-glass-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 40px;
    padding: 100px 60px;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.4);
}

.cta-glow-spot {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(149, 125, 91, 0.12) 0%, transparent 70%);
    top: -200px;
    right: -100px;
    pointer-events: none;
    z-index: 0;
}

.cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.cta-large-text {
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 40px;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.cta-large-text span {
    color: var(--gold-primary);
    position: relative;
    display: inline-block;
}

.cta-large-text span::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gold-primary);
    opacity: 0.3;
}

.cta-subtext {
    font-size: 1.1rem;
    color: var(--white-tr-70);
    max-width: 600px;
    margin: 0 auto 60px;
    line-height: 1.6;
}

/* Premium CTA Button */
.magnetic-wrap {
    display: inline-block;
    position: relative;
    margin-bottom: 40px;
    z-index: 3;
}

.btn-premium-cta {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 48px;
    background: var(--gold-primary);
    color: #1c2520;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(149, 125, 91, 0.3);
}

.btn-premium-cta i {
    font-size: 18px;
    transition: transform 0.4s ease;
}

.btn-premium-cta:hover {
    transform: scale(1.05);
    background: var(--gold-light);
    box-shadow: 0 20px 40px rgba(149, 125, 91, 0.4);
}

.btn-premium-cta:hover i {
    transform: translateX(5px);
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transition: all 0.6s ease;
}

.btn-premium-cta:hover .btn-shine {
    left: 140%;
}

.cta-availability {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 12px;
    color: var(--white-tr-20);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.dot-online {
    width: 8px;
    height: 8px;
    background-color: #27c93f;
    border-radius: 50%;
    box-shadow: 0 0 10px #27c93f;
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(39, 201, 63, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(39, 201, 63, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(39, 201, 63, 0); }
}

@media (max-width: 768px) {
    .final-cta { padding: 60px 20px; }
    .cta-glass-container { padding: 60px 30px; border-radius: 30px; }
    .cta-large-text { font-size: 2.2rem; }
    .cta-subtext { font-size: 0.95rem; }
    .btn-premium-cta { padding: 18px 32px; font-size: 12px; }
}

/* === SOCIAL MEDIA FOLDER ZOOM ANIMATION === */
.social-zoom-section {
    height: 450vh; /* Reduzido para aproximar as seções e tornar o scroll mais ágil */
    background: var(--black-bg);
    position: relative;
}

.sticky-viewport {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.folder-container {
    --zoom-progress: 0;
    width: calc(340px + (100vw - 340px) * var(--zoom-progress));
    height: calc(240px + (100vh - 240px) * var(--zoom-progress));
    will-change: width, height;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* Para alinhar a aba no canto superior, ou center */
}

/* Tab Shape do Folder */
.folder-tab {
    height: calc(40px * (1 - var(--zoom-progress)));
    width: 200px; /* Largura fixa ou calc proporcional */
    background: var(--gold-primary);
    border-radius: 12px 12px 0 0;
    display: flex;
    align-items: center;
    padding: 0 16px;
    align-self: flex-start; /* Joga pra esquerda */
    position: relative;
    overflow: hidden;
    opacity: calc(1 - var(--zoom-progress) * 2);
}

.folder-tab-text {
    font-size: 10px;
    font-weight: bold;
    color: var(--black-bg);
    text-transform: uppercase;
    white-space: nowrap;
}

.folder-tab-shape {
    position: absolute;
    right: -20px;
    bottom: 0;
    border-bottom: 40px solid var(--gold-primary);
    border-right: 20px solid transparent;
}

/* Corpo do Folder */
.folder-body {
    width: 100%;
    height: calc(100% - (40px * (1 - var(--zoom-progress))));
    background-color: var(--black-bg);
    border-radius: 0 calc(12px * (1 - var(--zoom-progress))) calc(12px * (1 - var(--zoom-progress))) calc(12px * (1 - var(--zoom-progress)));
    position: relative;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.4s ease, transform 0.1s;
}

/* Textura de Papel tipo Caderno de Rascunho / Ruled Paper */
.folder-body.light-mode-active {
    background-color: #fcfcfc;
    background-image: 
        repeating-linear-gradient(
            transparent,
            transparent 31px,
            rgba(0, 0, 0, 0.07) 31px,
            rgba(0, 0, 0, 0.07) 32px
        );
    background-size: 100% 32px;
}

.folder-body.light-mode-active::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('https://www.transparenttextures.com/patterns/natural-paper.png'); /* Textura de fibra de papel */
    opacity: 0.6;
    pointer-events: none;
    z-index: 1;
}

/* Efeito Interativo de "Lanterna" / Spotlight sutil */
.folder-body.light-mode-active::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255,255,255,0.4), transparent 40%);
    pointer-events: none;
    z-index: 2;
}

/* The actual content inside fades in when zoom is > 0.95 */
.folder-content {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, transform 0.4s ease;
    transform: scale(0.95);
    width: 100vw;
    height: 100vh;
    padding: 100px 48px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: absolute;
}

.folder-body.light-mode-active {
    background-color: #F4F4EB !important; /* Força cor final branca */
}

.folder-body.light-mode-active .folder-content {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

/* Light Theme Typography inside folder */
.light-theme-text .section-title {
    color: #111413 !important; /* Contraste preto no branco */
}
.light-theme-text .section-subtitle {
    color: var(--gold-primary);
    font-weight: 700;
}
.light-theme-text .about-text {
    color: #3e4441;
    font-weight: 500;
}

/* TIMELINE LAYERS (SCROLL ANIMATIONS) */
.timeline-layer {
    position: absolute;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    will-change: transform, opacity;
    pointer-events: none; /* Só permite clique se opacity > 0 via JS */
}

/* --- PS TEXT ANIMATION --- */
.ps-canvas {
    position: relative;
    padding: 60px 40px;
    display: inline-block;
}

.ps-anchor {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #fff;
    border: 1px solid #000;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}
.ps-anchor.top-left { top: 0; left: 0; }
.ps-anchor.top-right { top: 0; right: 0; }
.ps-anchor.bottom-left { bottom: 0; left: 0; }
.ps-anchor.bottom-right { bottom: 0; right: 0; }

.ps-border {
    position: absolute;
    top: 4px; left: 4px; right: 4px; bottom: 4px;
    border: 1px dashed rgba(0,0,0,0.4);
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

/* Quando entra na tela via Scroll */
.ps-active .ps-anchor,
.ps-active .ps-border {
    opacity: 1;
}

/* --- 3D SOCIAL ART CAROUSEL --- */
.stack-layer {
    opacity: 0;
    transform: translateY(100vh); /* Ficarão guardados em baixo */
}

.stack-title {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 60px;
    color: #000;
    font-weight: 700;
    opacity: 0.6;
}

.social-art-card {
    background: transparent !important;
    border: none !important;
    border-radius: 20px;
    box-shadow: 0 40px 80px rgba(0,0,0,0.15) !important;
    overflow: hidden;
    padding: 0 !important;
}

.art-wrapper {
    width: 100%;
    height: 100%;
    background: #000;
}

.art-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

/* O comportamento de hover é substituído pelo scroll-driven via JS nesta seção */

.showcase-stack.scroll-driven .preview-card {
    transition: all 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.showcase-stack.scroll-driven .preview-card.card-left {
    transform: rotateY(15deg) translateX(-250px) translateY(-10px) translateZ(-50px) scale(0.9) !important;
    z-index: 10 !important;
    opacity: 0.4 !important;
}

.showcase-stack.scroll-driven .preview-card.card-right {
    transform: rotateY(-15deg) translateX(250px) translateY(-10px) translateZ(-50px) scale(0.9) !important;
    z-index: 10 !important;
    opacity: 0.4 !important;
}

.showcase-stack.scroll-driven .preview-card.card-focus {
    transform: scale(1.08) translateZ(100px) !important;
    z-index: 100 !important;
    opacity: 1 !important;
    filter: none !important;
}

/* Redução dos eixos X para Mobile para evitar vazamento da tela */
@media (max-width: 768px) {
    .showcase-stack.scroll-driven .preview-card.card-left {
        transform: rotateY(10deg) translateX(-120px) translateY(-5px) translateZ(-50px) scale(0.85) !important;
    }
    .showcase-stack.scroll-driven .preview-card.card-right {
        transform: rotateY(-10deg) translateX(120px) translateY(-5px) translateZ(-50px) scale(0.85) !important;
    }
    .showcase-stack.scroll-driven .preview-card.card-focus {
        transform: scale(1) translateZ(80px) !important;
    }
    .ps-canvas { padding: 30px 15px; }
}

/* --- GLOBAL WEB WORLD BACKGROUND SYSTEM --- */
.web-world-bg {
    position: fixed;
    inset: 0;
    z-index: 2; /* Acima do hero, abaixo do conteúdo principal */
    pointer-events: none;
    perspective: 1500px;
    overflow: hidden;
}

/* Infinity Perspective Grid */
.digital-grid {
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background-image: 
        linear-gradient(rgba(149, 125, 91, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(149, 125, 91, 0.05) 1px, transparent 1px);
    background-size: 100px 100px;
    transform: rotateX(60deg) translateY(var(--scroll-y, 0px));
    transform-origin: center center;
    mask-image: radial-gradient(circle, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 80%);
    -webkit-mask-image: radial-gradient(circle, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 80%);
}

.digital-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 30%, rgba(28, 37, 32, 0.6) 90%);
    z-index: 2;
}

/* Floating Code Snippets */
.floating-elements-container {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.web-code-fragment {
    position: absolute;
    font-family: 'monospace';
    font-size: 10px;
    color: rgba(149, 125, 91, 0.3);
    white-space: nowrap;
    user-select: none;
    pointer-events: none;
    will-change: transform, opacity;
    padding: 3px 6px;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(149, 125, 91, 0.08);
    border-radius: 4px;
}

.web-code-fragment::before {
    content: '</>';
    display: inline-block;
    margin-right: 6px;
    color: var(--gold-primary);
    opacity: 0.4;
}



/* Reveal style: Zoom Out - Para entrada mágica da seção de Portfolio/About */
.reveal-zoom-out {
    opacity: 0;
    transform: scale(1.1) translateY(60px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-zoom-out.active {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* === ANIMATIONS === */
/* Reveal on Scroll */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.25, 1, 0.5, 1), transform 1s cubic-bezier(0.25, 1, 0.5, 1);
}

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

/* Keyframes Globais */
@keyframes fadeRevealHero {
    0% {
        opacity: 0;
        clip-path: inset(10% 10% 10% 10%); /* Efeito Reveal Conceitual */
    }
    100% {
        opacity: 1;
        clip-path: inset(0 0 0 0);
    }
}

@keyframes slowZoomIn {
    0% { transform: scale(1.05); }
    100% { transform: scale(1.0); }
}

@keyframes scrollLine {
    0% { transform: translateY(-100%); }
    50% { transform: translateY(0%); }
    100% { transform: translateY(100%); }
}

@keyframes fadeInContent {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* =============================================
   RESPONSIVE - COMPLETO
   ============================================= */

/* --- TABLET LANDSCAPE (max 1024px) --- */
@media (max-width: 1024px) {
    .statement-text { font-size: 3rem; }
    .section-title { font-size: 2.2rem; }
    .cta-large-text { font-size: 2.2rem; }
    .about-container { max-width: 90%; }
    .services-grid, .mockup-grid { flex-wrap: wrap; justify-content: center; }
    .service-card { max-width: 45%; }
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
    .main-content { width: 92%; }
}

/* --- TABLET PORTRAIT (max 768px) --- */
@media (max-width: 768px) {
    /* Navbar Pill */
    .navbar { padding: 16px 20px; }
    .navbar.scrolled { padding: 12px 20px; }
    .nav-pill { padding: 4px; }
    .nav-pill-link { font-size: 9px; padding: 8px 12px; letter-spacing: 0.08em; }
    .nav-divider { margin: 0 2px; height: 10px; }
    
    /* Hero */
    .hero-name { font-size: 3.5rem; }
    .hero-cta { font-size: 11px; letter-spacing: 0.1em; }
    .hero-fixed { padding-bottom: 8vh; }
    
    /* Main Content */
    .main-content { width: 100%; margin: 80vh auto 0 auto; }
    .about { border-radius: 0; }
    
    /* Sections */
    .section-padding { padding: 80px 24px; }
    .section-title { font-size: 2rem; line-height: 1.2; margin-bottom: 20px; }
    .section-subtitle { font-size: 11px; margin-bottom: 12px; }
    .about-text { font-size: 1rem; line-height: 1.7; max-width: 90%; margin: 0 auto; }
    
    /* Statement */
    .statement-text { font-size: 2rem; }
    
    /* Services */
    .services-grid, .mockup-grid {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
    .service-card { max-width: 100%; width: 100%; }
    
    /* Portfolio Grid */
    .portfolio-grid { grid-template-columns: 1fr; gap: 20px; }
    .card-image-wrapper { height: 300px; }
    
    /* Showcase Stack */
    .showcase-stack-container {
        padding: 30px 0;
        min-height: auto;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }
    .showcase-stack {
        display: flex;
        width: max-content;
        gap: 20px;
        padding: 0 20px 30px;
        transform: none !important;
    }
    .showcase-stack .preview-card {
        position: relative;
        flex: 0 0 260px;
        height: 400px;
        transform: none !important;
        scroll-snap-align: center;
        opacity: 1 !important;
        filter: none !important;
    }
    
    /* Process */
    .process-flow { gap: 40px; }
    .process-step { flex: 0 0 220px; }
    
    /* CTA */
    .final-cta { padding: 100px 24px; }
    .cta-large-text { font-size: 1.8rem; }
    
    /* Buttons */
    .btn-primary { padding: 12px 24px; font-size: 10px; }
    
    /* Mockup Grid */
    .mockup-grid .service-card { height: 250px !important; }
    
    /* Overflow & scrollbar */
    body, .main-content { overflow-x: hidden; }
    .showcase-stack-container::-webkit-scrollbar { display: none; }
    .showcase-stack-container { -ms-overflow-style: none; scrollbar-width: none; }
    
    /* Canvas - simplificar para mobile */
    .canvas-toolbar { display: none; }
    .guide-h, .guide-v { display: none; }
    .canvas-bg { padding-left: 24px !important; padding-top: 24px !important; }
    .canvas-bg::before { left: 0; font-size: 6px; letter-spacing: 1.5em; }
    .canvas-bg::after { display: none; }
    
    /* Quebras de linha - mantendo para design intencional */
    br { display: block; }
}

/* --- MOBILE (max 480px) --- */
@media (max-width: 480px) {
    /* Navbar Pill */
    .nav-pill-link { font-size: 8px; padding: 7px 10px; }
    .nav-divider { margin: 0 1px; }
    
    /* Hero */
    .hero-name { font-size: 2.8rem; }
    .hero-cta { font-size: 10px; }
    .hero-fixed { padding-bottom: 10vh; }
    
    /* Main Content */
    .main-content { width: 100%; }
    .about { border-radius: 0; }
    
    /* Sections */
    .section-padding { padding: 60px 16px; }
    .section-title { font-size: 1.6rem; line-height: 1.2; }
    .section-subtitle { font-size: 10px; letter-spacing: 0.1em; }
    .about-text { font-size: 0.9rem; line-height: 1.6; }
    
    /* Statement */
    .statement-text { font-size: 1.5rem; }
    
    /* Services */
    .service-card { padding: 20px 16px; }
    .service-card h3 { font-size: 0.8rem; }
    .service-card p { font-size: 0.7rem; }
    
    /* Portfolio */
    .card-image-wrapper { height: 240px; }
    
    /* Showcase */
    .showcase-stack .preview-card { flex: 0 0 220px; height: 350px; }
    
    /* Process */
    .process-flow { gap: 20px; }
    .process-step { flex: 0 0 200px; }
    .step-name { font-size: 1rem; }
    
    /* CTA */
    .final-cta { padding: 80px 16px; }
    .cta-large-text { font-size: 1.4rem; }
    .btn-primary { padding: 10px 20px; font-size: 9px; }
    
    /* Loader */
    .loader-percent { font-size: 3rem; }
}

/* --- Acessibilidade: movimentos reduzidos --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
