/* =====================================================================
   PORTFOLIO PAGE STYLES (Split-Screen Scroll)
   ===================================================================== */

:root {
    --bg-color: #0D0D0D;
    --text-color: #F2F2F2;
    --accent-color: #FA4616;
    --support-color: #1A1A1A;
    --font-family: 'DM Sans', sans-serif;
    
    --bg: var(--bg-color);
    --text: var(--text-color);
    --accent: var(--accent-color);
    --offwhite: var(--text-color);
}

body.portfolio-body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-family);
    overflow-x: hidden;
}

@media (min-width: 769px) {
    body.portfolio-body .fixed-header .logo {
        display: none !important;
    }
    
    body.portfolio-body .fixed-header {
        justify-content: flex-start !important;
        padding: 32px !important;
        background: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border: none !important;
        box-shadow: none !important;
        pointer-events: none !important;
    }

    .cta-desktop-portfolio {
        display: flex !important;
        position: relative;
        align-items: center;
        padding: 10px;
        text-decoration: none;
        color: var(--text-color);
        font-size: 16px;
        font-weight: 500;
        z-index: 100;
        border-radius: 50px;
        pointer-events: auto !important;
        transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
        background: transparent !important;
    }

    .cta-desktop-portfolio:hover {
        padding: 10px 24px 10px 10px !important;
    }

    .cta-desktop-portfolio .cta-icon {
        display: block !important;
        position: absolute;
        left: 10px;
        top: 50%;
        transform: translateY(-50%);
        width: 24px;
        height: 24px;
        border-radius: 50%;
        background: #FA4616;
        z-index: 1;
        transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    }

    .cta-desktop-portfolio:hover .cta-icon {
        left: 0;
        width: 100%;
        height: 100%;
        border-radius: 50px;
    }

    .cta-desktop-portfolio .cta-arrow {
        position: absolute;
        left: 14px;
        top: 50%;
        transform: translateY(-50%) rotate(180deg) !important;
        opacity: 0;
        z-index: 2;
        color: #0D0D0D;
        transition: opacity 0.2s ease;
    }

    .cta-desktop-portfolio:hover .cta-arrow {
        opacity: 1;
        transition-delay: 0.2s;
    }

    .cta-desktop-portfolio span {
        position: relative;
        z-index: 2;
        margin-left: 24px;
        max-width: 0;
        opacity: 0;
        overflow: hidden;
        white-space: nowrap;
        color: #0D0D0D;
        transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    }

    .cta-desktop-portfolio:hover span {
        color: #0D0D0D !important;
        margin-left: 36px;
        max-width: 200px;
        opacity: 1;
    }

    .cta-mobile-portfolio {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .cta-desktop-portfolio {
        display: none !important;
    }
    .cta-mobile-portfolio {
        display: inline-flex !important;
    }
}

/* Scrollbar Customizada (Opcional, para visual mais limpo) */
body.portfolio-body::-webkit-scrollbar {
    width: 8px;
}
body.portfolio-body::-webkit-scrollbar-track {
    background: var(--bg-color);
}
body.portfolio-body::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

/* ---------------------------------------------------------------------
   FUNDO PARALLAX (Bolas Flutuantes)
   --------------------------------------------------------------------- */
.parallax-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 0; /* Fica atrás de todo o conteúdo no portfólio */
    pointer-events: none;
    mix-blend-mode: screen; 
}

.circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at center, #191915 0%, transparent 65%);
    opacity: 0.8;
}

.circle-1 { width: 60vw; height: 60vw; top: -15vh; left: -20vw; }
.circle-2 { width: 70vw; height: 70vw; top: 40vh; right: -25vw; }
.circle-3 { width: 50vw; height: 50vw; top: 70vh; left: 10vw; }
.circle-4 { width: 45vw; height: 45vw; top: 110vh; right: 15vw; }
.circle-5 { width: 80vw; height: 80vw; top: 150vh; left: -30vw; }
.circle-6 { width: 55vw; height: 55vw; top: 190vh; right: -10vw; }

/* ---------------------------------------------------------------------
   COMPONENTS
   --------------------------------------------------------------------- */

/* Secão Base do Projeto (100% largura) */
.project-showcase {
    display: flex;
    width: 100%;
    min-height: 100vh;
    position: relative;
}

/* ---------------------------------------------------------------------
   LADO ESQUERDO (Sticky Info)
   --------------------------------------------------------------------- */
.project-left {
    width: 35%;
    position: relative;
}

/* Container Fixo (Fica preso no topo da tela enquanto o container pai durar) */
.project-sticky-content {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Mudado de center para flex-start */
    padding: 80px 64px; /* Define o topo exato em 80px */
    box-sizing: border-box;
}

.project-logo-box {
    height: 64px; /* Define apenas a altura para manter a proporção */
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    margin-bottom: 32px;
}

.project-logo-box img {
    max-height: 100%;
    object-fit: contain;
    object-position: left; /* Garante alinhamento exato com os textos abaixo */
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px; /* Espaçamento entre as tags e o título */
}

.project-tag {
    font-size: 14px;
    font-weight: 500;
    color: #FA4616; /* Laranja oficial da marca */
}

.project-title {
    font-size: 80px;
    font-weight: 700;
    margin: 0;
    line-height: 1;
    letter-spacing: -0.02em;
    text-transform: lowercase; /* Baseado no wireframe "titulo" */
    color: #F2F2F2; /* Garantindo o Off-White da diretriz explicitamente */
}

.dot {
    color: #FA4616; /* Laranja oficial da marca */
}

.project-subtitle {
    font-size: 24px;
    font-weight: 300; /* Diretrizes: Títulos usam 300, 600 ou 700 */
    color: #888;
    margin: 8px 0 32px 0;
    text-transform: lowercase;
}

.project-description {
    font-size: 16px;
    line-height: 1.6;
    color: #CCC;
    max-width: 90%;
    font-weight: 400;
}

/* Indicador de Scroll Visual */
.scroll-indicator {
    margin-top: 64px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #555;
    display: flex;
    align-items: center;
    gap: 16px;
}

.indicator-line {
    width: 40px;
    height: 1px;
    background: #555;
}

/* ---------------------------------------------------------------------
   LADO DIREITO (Card Scrolling Interno)
   --------------------------------------------------------------------- */
.project-right {
    width: 65%;
    padding: 32px;
    box-sizing: border-box;
}

.project-card {
    background-color: var(--support-color);
    border-radius: 24px; /* Card com canto arredondado grande (como no wireframe) */
    width: 100%;
    /* Altura maior que 100vh cria o scroll. 
       Ao dar scroll na body, esse bloco grande será rolado para cima. */
    min-height: 150vh; 
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(242, 242, 242, 0.05);
}

.project-card.orange-theme {
    background-color: var(--accent);
    border: none;
    color: #111; /* Texto escuro se o fundo for claro */
}

.project-card.orange-theme .content-block p {
    color: rgba(0, 0, 0, 0.8);
}

.project-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 48px 32px 24px 32px; /* Topo 48px + 32px do container = 80px do topo da tela */
    border-bottom: 1px solid rgba(242, 242, 242, 0.1);
}

.project-card.orange-theme .project-card-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.card-mini-logo {
    height: 36px; /* Altura exata da bounding box (linha azul) */
    object-fit: contain;
}

.co-logo {
    height: 27px; /* Aumentado em 50% (de 18px para 27px) */
    object-fit: contain;
    opacity: 0.8;
}


.header-right-actions {
    display: flex;
    align-items: center;
    gap: 32px;
}

.header-cta-btn {
    text-decoration: none;
    color: var(--text-color);
    font-size: 13px; /* Fonte levemente menor para caber no botão mais sleek */
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    height: 36px; /* Altura cravada baseada na linha azul */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    box-sizing: border-box;
    border: 1px solid rgba(242, 242, 242, 0.2);
    border-radius: 50px;
    transition: all 0.3s ease;
}

.header-cta-btn:hover {
    background: var(--text-color);
    color: var(--bg-color);
}

.project-card.orange-theme .header-cta-btn {
    color: #111;
    border-color: rgba(0, 0, 0, 0.2);
}

.project-card.orange-theme .header-cta-btn:hover {
    background: #111;
    color: var(--accent);
}

.project-card-body {
    padding: 32px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start; /* Alinha o conteúdo (img e texto) ao topo */
}

.mockup-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.ratio-1-1 { aspect-ratio: 1 / 1; }
.ratio-16-9 { aspect-ratio: 16 / 9; }
.ratio-9-16 { aspect-ratio: 9 / 16; }
.ratio-32-9 { aspect-ratio: 32 / 9; }
.span-2 { grid-column: 1 / -1; }

/* Placeholders para dar altura até termos as imagens reais */
.placeholder-dark { background-color: #111; height: 80vh; }
.placeholder-grey { background-color: #222; height: 60vh; }

.content-block {
    padding: 32px 0;
}

.content-block h3 {
    font-size: 24px;
    margin-bottom: 16px;
    font-weight: 600;
}

/* Cores dos títulos Conceito / Resultado baseadas no scroller de palavras de cada projeto */
#projeto-cristiano .content-block h3 { color: #f15303 !important; }
#projeto-classy .content-block h3 { color: #f2f2f2 !important; }
#projeto-moira .content-block h3 { color: #b2e400 !important; }
#projeto-head7 .content-block h3 { color: #0f3d2e !important; }
#projeto-reviva .content-block h3 { color: #e6fcf5 !important; }

.content-block p {
    font-size: 16px; /* Diretrizes: Corpo de texto em 16px */
    line-height: 1.6; /* Diretrizes: Line-height 1.6 */
    color: rgba(242, 242, 242, 0.8); /* Usando Off-White (#F2F2F2) invés de branco puro */
    max-width: 80%;
}

/* ---------------------------------------------------------------------
   RESPONSIVO
   --------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .project-showcase {
        flex-direction: column;
        border-bottom: none;
    }
    
    .project-left {
        width: 100%;
    }
    
    .project-sticky-content {
        position: relative; /* Remove o sticky no mobile */
        height: auto;
        padding: 48px 24px;
    }
    
    .project-showcase:first-of-type .project-sticky-content {
        padding-top: 100px;
    }
    
    .project-title {
        font-size: 48px;
    }
    
    .scroll-indicator {
        display: none; /* Desnecessário no mobile */
    }
    
    .project-right {
        width: 100%;
        padding: 16px;
    }
    
    .project-card {
        border-radius: 16px;
        min-height: auto; /* Deixa o card crescer pelo conteúdo no mobile */
    }

    body.portfolio-body {
        background-color: #191915;
    }
    
    .project-card-body {
        grid-template-columns: 1fr; /* Volta para 1 coluna no celular */
    }
    
    .mockup-img {
        /* aspect-ratio gerencia a altura automaticamente */
    }
    .placeholder-dark, .placeholder-grey {
        /* aspect-ratio gerencia a altura automaticamente */
    }
    .content-block p {
        max-width: 100%;
    }
}
.footer-section {
    background-color: var(--bg);
    color: var(--text);
    padding: 10vh 2rem 5vh 2rem;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 10;
}

.footer-container {
    width: 100%;
    max-width: 1200px;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4rem;
}

.footer-left {
    display: flex;
    flex-direction: column;
}

.footer-columns {
    display: flex;
    gap: 4rem;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-title {
    font-size: var(--font-body); /* Tamanho padrão de texto conforme hierarquia */
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--offwhite); /* Offwhite (reduz o contraste excessivo do branco puro) */
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.footer-links a {
    text-decoration: none;
    color: rgba(242, 242, 242, 0.45); /* Apagado (hierarquia similar ao FAQ) */
    font-size: var(--font-body);
    font-weight: 400;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--offwhite); /* Hover offwhite */
}

.nav-col {
    border-left: 1px solid rgba(242, 242, 242, 0.1); /* Linha divisória da imagem */
    padding-left: 4rem;
}

.footer-logo {
    margin-top: 3.5rem;
    height: 55px;
    max-width: 220px;
    width: auto;
    object-fit: contain;
    object-position: left;
    opacity: 0.9;
}

/* Ícones Sociais */
.footer-social {
    flex-direction: row;
    gap: 1rem;
    align-items: flex-start;
    margin-left: auto; /* Empurra para o extremo direito */
}

.social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--offwhite);
    color: var(--bg); /* Ícone escuro */
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon svg {
    width: 20px;
    height: 20px;
}

.social-icon:hover {
    background-color: var(--accent);
    color: var(--offwhite); /* Ícone claro sobre fundo laranja */
}

/* Mobile Responsiveness do Footer */
@media (max-width: 768px) {
    .footer-grid {
        flex-direction: column;
        gap: 3rem;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .footer-columns {
        flex-direction: column; /* Empilha Serviços e Explorar verticalmente */
        gap: 2rem;
    }
    
    .nav-col {
        border-left: none;
        border-top: 1px solid rgba(242, 242, 242, 0.1);
        padding-left: 0;
        padding-top: 2rem; /* Distância menor */
    }

    .footer-logo {
        height: auto !important;
        max-height: 40px !important;
        max-width: 150px !important;
        margin-top: 2rem !important;
        object-fit: contain;
        object-position: left;
    }
}

/* --- ELO SECTION (Casal / Duas Visões) --- */
.elo-section {
    position: relative;
    z-index: auto; /* Não cria contexto de empilhamento para permitir propagação de gradients */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10vh 4rem; /* Margem sutil baseada na escala de 8px */
    background-color: transparent; /* A cor é dada pelo ::before para empilhar */
}

/* Cobre a Hero fixa por baixo */
.elo-section::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: var(--bg); /* Fundo preto elegante */
    z-index: 1; /* Cobre o Hero fixo no z-index 1 global */
}

/* Gradiente que suaviza o overlap com a Hero */
.elo-section::after {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 0;
    width: 100%;
    height: 15vh;
    background: linear-gradient(to bottom, transparent, var(--bg));
    z-index: 1;
    pointer-events: none;
}

.elo-crown-wrapper {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 3.5rem;
    position: relative;
    z-index: 3;
}

.elo-crown-logo {
    height: 46px;
    width: auto;
    display: block;
    opacity: 0.9;
}

.elo-container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 3;
}

.elo-left-col {
    flex: 1;
    max-width: 550px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.elo-description {
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--offwhite);
    font-weight: 400;
    text-align: left;
}

.elo-highlight {
    color: var(--accent); /* Cor de Destaque oficial (Laranja vibrante) */
    font-weight: 700; /* Peso Bold */
}

.elo-right-col {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

/* Alinhamento do Título ao lado da Versão Laranja do iconemov1 */
.elo-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Alinha o grupo à direita no desktop */
    gap: 30px; /* Distância entre o título e o ícone */
    width: 100%;
}

.elo-title {
    font-size: clamp(32px, 3.5vw, 52px);
    font-weight: 900;
    line-height: 1.1;
    color: var(--offwhite);
    letter-spacing: -0.03em;
    text-transform: uppercase;
    text-align: right;
    margin-bottom: 0; /* Remove margem padrão */
}

.elo-title span {
    color: var(--accent); /* Laranja vibrante no ELO */
}

.iconemov1-orange {
    width: 75px;
    flex-shrink: 0;
}
.iconemov1-orange .shape-track,
.iconemov1-orange .shape-svg {
    height: 100px;
}

/* Responsividade para Telas Menores */
@media (max-width: 1024px) {
    .elo-section {
        padding: 8vh 2rem;
    }
    .elo-crown-wrapper {
        margin-bottom: 32px;
    }
    .elo-crown-logo {
        height: 80px; /* Redimensiona proporcionalmente em telas menores */
    }
    .elo-container {
        flex-direction: column-reverse; /* Título no topo, texto embaixo */
        align-items: flex-start;
        gap: 30px;
    }
    .elo-left-col {
        max-width: 100%;
    }
    .elo-right-col {
        width: 100%;
        justify-content: flex-start;
    }
    .elo-title-wrapper {
        justify-content: flex-start; /* Alinha à esquerda no mobile */
        gap: 20px;
    }
    .elo-title {
        font-size: 32px;
        text-align: left;
    }
    .iconemov1-orange {
        width: 55px; /* Compacto no mobile */
    }
    .iconemov1-orange .shape-track,
    .iconemov1-orange .shape-svg {
        height: 75px;
    }
}

.geometric-animated-box {
    width: 140px;
    height: 140px;
    background-color: transparent; /* Sem fundo */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Máscara de recorte perfeita */
    position: relative;
}

.shape-track {
    width: 100%;
    height: 48px; /* Altura ideal dos ícones internos */
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
}

.track-wrapper {
    display: flex;
    width: max-content;
    align-items: center;
}

.track-group {
    display: flex;
    align-items: center;
    gap: 0; /* Sem espaço entre as formas! Loop infinito sem respiro */
    padding-right: 0;
}

.shape-svg {
    height: 48px;
    width: auto;
    display: block;
    flex-shrink: 0;
}

.track-group.text-white {
    color: var(--offwhite);
}

.track-group.text-orange {
    color: var(--accent);
}

.track-group.text-black {
    color: var(--bg); /* Preto elegante */
}

/* Animações contínuas sem respiro - Sincronizadas na mesma velocidade */
.scroll-semicircles {
    animation: shapes-scroll-left 2s linear infinite; /* Rápido */
}

.scroll-circles {
    animation: shapes-scroll-left 2s linear infinite; /* Sincronizado com o primeiro */
}

.scroll-dots {
    animation: shapes-scroll-left 2s linear infinite; /* Sincronizado com o primeiro */
}

@keyframes shapes-scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Tamanho do recorte ajustado para exibir exatamente 1.5 formas */
.widget-semicircles {
    width: 90px;
}
.widget-semicircles .shape-track,
.widget-semicircles .shape-svg {
    height: 120px;
}

.widget-circles {
    width: 180px; /* Diâmetro 120px * 1.5 = 180px (Igualado em altura com o primeiro) */
}
.widget-circles .shape-track,
.widget-circles .shape-svg {
    height: 120px;
}
/* ---------------------------------------------------------------------
   VERTICAL TEXT SCROLLER (1:1)
   --------------------------------------------------------------------- */
.scroller-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: var(--support-color, #1A1A1A);
    border-radius: 12px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.1) 15%, black 25%, black 75%, rgba(0,0,0,0.1) 85%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.1) 15%, black 25%, black 75%, rgba(0,0,0,0.1) 85%, transparent 100%);
}

.scroller-content {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding-left: 3rem; /* Movido para o content para respeitar o box-sizing absoluto */
    animation: scrollVertical 18s ease-in-out infinite;
}

.scroller-item {
    padding: 16px 0; /* Aumentado para dar respiro aos textos maiores */
    font-size: clamp(42px, 6vw, 72px); /* Aumentado drasticamente para preencher o 1:1 */
    font-weight: 700;
    color: rgba(242, 242, 242, 0.2); /* Texto apagado por padrão */
    white-space: nowrap;
    line-height: 1;
    transform-origin: left center;
}

@keyframes shiftRight {
    0%, 10% { 
        transform: translateX(40px); 
        color: rgba(242, 242, 242, 1); /* Fica brilhante só quando vai pro centro */
    }
    14.28%, 95.71% { 
        transform: translateX(0); 
        color: rgba(242, 242, 242, 0.2); /* Volta pro apagado */
    }
    100% { 
        transform: translateX(40px); 
        color: rgba(242, 242, 242, 1); 
    }
}

/* Centralização matemática exata baseada na altura relativa de 14 itens (Metade de 1 item = 3.5714%) */
@keyframes scrollVertical {
    0%, 10% { transform: translateY(-3.5714%); }
    14.28%, 24.28% { transform: translateY(-10.7142%); }
    28.57%, 38.57% { transform: translateY(-17.8571%); }
    42.85%, 52.85% { transform: translateY(-25%); }
    57.14%, 67.14% { transform: translateY(-32.1428%); }
    71.42%, 81.42% { transform: translateY(-39.2857%); }
    85.71%, 95.71% { transform: translateY(-46.4285%); }
    100% { transform: translateY(-53.5714%); }
}

/* ---------------------------------------------------------------------
   VERTICAL TEXT SCROLLER PARA 8 ITENS (Classy Tricot)
   --------------------------------------------------------------------- */
.scroller-content-8 {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding-left: 3rem;
    animation: scrollVertical8 20s ease-in-out infinite;
}

@keyframes shiftRight8 {
    0%, 9% { 
        transform: translateX(40px); 
        color: rgba(242, 242, 242, 1); 
    }
    12.5%, 96.5% { 
        transform: translateX(0); 
        color: rgba(242, 242, 242, 0.2); 
    }
    100% { 
        transform: translateX(40px); 
        color: rgba(242, 242, 242, 1); 
    }
}

/* Para 8 itens: Metade de 1 item = 3.125%, 1 item = 6.25% */
@keyframes scrollVertical8 {
    0%, 9% { transform: translateY(-3.125%); }
    12.5%, 21.5% { transform: translateY(-9.375%); }
    25%, 34% { transform: translateY(-15.625%); }
    37.5%, 46.5% { transform: translateY(-21.875%); }
    50%, 59% { transform: translateY(-28.125%); }
    62.5%, 71.5% { transform: translateY(-34.375%); }
    75%, 84% { transform: translateY(-40.625%); }
    87.5%, 96.5% { transform: translateY(-46.875%); }
    100% { transform: translateY(-53.125%); }
}

/* ---------------------------------------------------------------------
   VERTICAL TEXT SCROLLER PARA MOIRA (#b2e400)
   --------------------------------------------------------------------- */
.scroller-item-moira {
    padding: 16px 0;
    font-size: clamp(42px, 6vw, 72px);
    font-weight: 700;
    color: rgba(178, 228, 0, 0.2);
    white-space: nowrap;
    line-height: 1;
    transform-origin: left center;
    text-transform: uppercase;
}

@keyframes shiftRightMoira {
    0%, 10% { 
        transform: translateX(40px); 
        color: rgba(178, 228, 0, 1); 
    }
    14.28%, 95.71% { 
        transform: translateX(0); 
        color: rgba(178, 228, 0, 0.2); 
    }
    100% { 
        transform: translateX(40px); 
        color: rgba(178, 228, 0, 1); 
    }
}

/* ---------------------------------------------------------------------
   VERTICAL TEXT SCROLLER PARA CRISTIANO (#f15303)
   --------------------------------------------------------------------- */
.scroller-item-cristiano {
    padding: 16px 0;
    font-size: clamp(42px, 6vw, 72px);
    font-weight: 700;
    color: rgba(241, 83, 3, 0.2);
    white-space: nowrap;
    line-height: 1;
    transform-origin: left center;
}

@keyframes shiftRightCristiano {
    0%, 10% { 
        transform: translateX(40px); 
        color: rgba(241, 83, 3, 1); 
    }
    14.28%, 95.71% { 
        transform: translateX(0); 
        color: rgba(241, 83, 3, 0.2); 
    }
    100% { 
        transform: translateX(40px); 
        color: rgba(241, 83, 3, 1); 
    }
}

/* ---------------------------------------------------------------------
   VERTICAL TEXT SCROLLER PARA INSTITUTO REVIVA (#e6fcf5)
   --------------------------------------------------------------------- */
.scroller-item-reviva {
    padding: 16px 0;
    font-size: clamp(42px, 6vw, 72px);
    font-weight: 700;
    color: rgba(230, 252, 245, 0.2);
    white-space: nowrap;
    line-height: 1;
    transform-origin: left center;
    text-transform: uppercase;
}

@keyframes shiftRightReviva {
    0%, 10% { 
        transform: translateX(40px); 
        color: rgba(230, 252, 245, 1); 
    }
    14.28%, 95.71% { 
        transform: translateX(0); 
        color: rgba(230, 252, 245, 0.2); 
    }
    100% { 
        transform: translateX(40px); 
        color: rgba(230, 252, 245, 1); 
    }
}

/* ---------------------------------------------------------------------
   VERTICAL TEXT SCROLLER PARA HEAD 7 (#0f3d2e)
   --------------------------------------------------------------------- */
.scroller-item-head7 {
    padding: 16px 0;
    font-size: clamp(42px, 6vw, 72px);
    font-weight: 700;
    color: rgba(15, 61, 46, 0.25);
    white-space: nowrap;
    line-height: 1;
    transform-origin: left center;
    text-transform: uppercase;
}

@keyframes shiftRightHead7 {
    0%, 10% { 
        transform: translateX(40px); 
        color: rgba(15, 61, 46, 1); 
    }
    14.28%, 95.71% { 
        transform: translateX(0); 
        color: rgba(15, 61, 46, 0.25); 
    }
    100% { 
        transform: translateX(40px); 
        color: rgba(15, 61, 46, 1); 
    }
}

/* =====================================================================
   UI/UX PRO MAX & TASTE SKILL - MOBILE OPTIMIZATIONS (<= 768px)
   ===================================================================== */
@media (max-width: 768px) {
    /* 1. Viewport & Body Protection */
    html, body.portfolio-body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }

    /* 2. Lado Esquerdo (Header & Sticky Content no Mobile) */
    .project-sticky-content {
        padding: 72px 20px 24px 20px !important;
    }

    .project-logo-box {
        height: 48px !important;
        margin-bottom: 20px !important;
    }

    .project-title {
        font-size: clamp(34px, 8.5vw, 46px) !important;
        line-height: 1.05 !important;
        letter-spacing: -0.03em !important;
    }

    .project-subtitle {
        font-size: 18px !important;
        margin: 6px 0 16px 0 !important;
    }

    .project-description {
        font-size: 15px !important;
        line-height: 1.55 !important;
        max-width: 100% !important;
        color: rgba(242, 242, 242, 0.85) !important;
    }

    /* 4. Cartão e Layout do Card */
    .project-right {
        padding: 12px !important;
    }

    .project-card {
        border-radius: 16px !important;
    }

    .project-card-header {
        padding: 20px 16px 16px 16px !important;
    }

    .card-mini-logo {
        height: 28px !important;
    }

    .co-logo {
        height: 22px !important;
    }

    .project-card-body {
        padding: 16px !important;
        gap: 20px !important;
    }

    /* 5. Blocos de Texto Internos (Conceito / Resultado) */
    .content-block {
        padding: 8px 0 !important;
        margin: 0 !important;
    }

    .content-block h3 {
        font-size: 20px !important;
        margin-bottom: 8px !important;
    }

    .content-block p {
        font-size: 14.5px !important;
        line-height: 1.6 !important;
        max-width: 100% !important;
        color: rgba(242, 242, 242, 0.85) !important;
    }

    /* 6. Text Scroller no Mobile */
    .scroller-wrapper {
        min-height: 240px !important;
        border-radius: 12px !important;
    }

    .scroller-item,
    .scroller-item-cristiano,
    .scroller-item-reviva,
    .scroller-item-head7 {
        font-size: clamp(32px, 8vw, 46px) !important;
        padding: 10px 0 !important;
    }
}


