/* 
    FRONTEND SPECIALIST - PREMIUM DESIGN SYSTEM v2
    Aesthetic: Modern, Clean, High-Contrast
*/

:root {
    --bg-light: #f5f2ed;
    --accent-orange: #e05a1c;
    --black: #000000;
    --white: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #666;

    --font-ui: 'Inter', sans-serif;
    --font-title: 'Outfit', sans-serif;

    --safe-padding: clamp(2rem, 8vw, 8rem);
    --block-size: 40vw;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

/* Previne o Flash of Unstyled Content (FOUC) - Oculta os recipientes enquanto o JS processa */
#hero-title,
.hero-subtitle {
    opacity: 0;
    visibility: hidden;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

body {
    background-color: var(--bg-light);
    color: var(--text-primary);
    font-family: var(--font-ui);
    overflow-y: auto;
    /* Snap scroll via JS but allow vertical flow for content safety */
    line-height: 1.5;
}

#three-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.6;
}

/* Assinatura Visual: Bloco Preto */
.black-block {
    position: fixed;
    top: 0;
    right: 0;
    width: var(--block-size);
    min-height: 40rem;
    /* Use rem based height for stability */
    height: 70vh;
    padding-bottom: 5vh;
    background: var(--black);
    z-index: 20;
    /* Camada base da tarja */
    clip-path: polygon(0 0, 100% 0, 100% 100%, 15% 100%);
    box-shadow: -20px 0 50px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    transition: none;
    pointer-events: none;
    /* Garante que não bloqueie cliques, embora agora o conteúdo esteja à frente */
}

#ui-wrapper {
    position: relative;
    /* Removido z-index fixo para permitir que elementos internos (fixed/relative) compitam no root */
    height: 100vh;
    width: 100vw;
}

/* Header (Dual-Tone logic) */
#main-header,
#main-header-clone {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 3rem var(--safe-padding);
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
    /* Deixa cliques passarem para os itens reais */
}

#main-header {
    z-index: 450;
    /* À frente do view-port (100), mas atrás do clone (500) */
}

#main-header-clone {
    z-index: 500;
    /* Topo absoluto, visível apenas na área da tarja via clip-path */
    clip-path: polygon(100% 0%, 100% 0%, 100% 100%, 100% 100%);
}

.logo {
    font-family: var(--font-title);
    font-weight: 900;
    font-size: 1.5rem;
    cursor: pointer;
    pointer-events: auto;
}

.header-base .logo {
    color: var(--black);
}

.header-overlay {
    will-change: clip-path;
    backface-visibility: hidden;
}

.header-overlay .logo {
    color: rgba(255, 255, 255, 0.9);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 3rem;
    pointer-events: auto;
}

.nav-item {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15rem;
    cursor: pointer;
    transition: opacity 0.3s, color 0.3s;
    opacity: 0.6;
}

.header-base .nav-item {
    color: var(--black);
}

.header-overlay .nav-item {
    color: #c8c8c8;
}

.nav-item:hover {
    opacity: 1;
}

.nav-item.active {
    opacity: 1;
}

.header-overlay .nav-item.active {
    color: var(--accent-orange);
}

.header-base .nav-item.active {
    color: var(--accent-orange);
}

/* Hamburger Button Component */
.hamburger-btn {
    display: none;
    width: 30px;
    height: 20px;
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 600;
    pointer-events: auto;
}

.hamburger-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background: currentColor;
    position: absolute;
    left: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s;
}

.header-base .hamburger-btn {
    color: var(--black);
}

.header-overlay .hamburger-btn {
    color: var(--white);
}

.hamburger-btn span:first-child {
    top: 0;
}

.hamburger-btn span:last-child {
    bottom: 0;
}

.hamburger-btn.active span:first-child {
    transform: translateY(9px) rotate(45deg);
}

.hamburger-btn.active span:last-child {
    transform: translateY(-9px) rotate(-45deg);
}

@media (max-width: 1024px) {
    .nav-links {
        display: none;
    }

    .hamburger-btn {
        display: block;
    }
}

/* --- SECTIONS ENGINE --- */
#view-port {
    height: 100vh;
    overflow: hidden;
    position: relative;
    z-index: 100;
    /* À frente da tarja (20) */
}

#sections-container {
    height: 400vh;
    /* 4 seções: Home, Projetos, Soluções, Contato */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    will-change: transform;
}

.vh-section {
    min-height: 100vh;
    width: 100%;
    padding: 10rem var(--safe-padding) 4rem;
    /* Padding base encurtado para evitar cortes */
    display: flex;
    align-items: center;
    position: relative;
    box-sizing: border-box;
    /* Mudado para visible para permitir que feixes de luz decorativos vazem entre seções, criando fluidez */
    overflow: visible;
}

.content {
    position: relative;
    z-index: 150;
    /* Entre o bloco (100) e o header clone (200) */
    width: 100%;
}

#hero-section {
    padding-top: 10rem;
}

#projects-section {
    padding-top: 7.5rem;
    /* Subindo o conteúdo de projetos para mais perto do logo */
}

/* Hero Section */
.hero-content {
    max-width: 1200px;
    position: relative;
}

#hero-title {
    font-family: var(--font-title);
    font-size: clamp(3.5rem, 11vw, 10rem);
    line-height: 0.95;
    letter-spacing: -0.04em;
    color: var(--black);
    margin-bottom: 2.8rem;
    text-transform: uppercase;
    /* Adicionado padding para garantir que o traço do outline não seja cortado por overflows */
    padding-right: 2rem;
}

/* Tags Antes/Depois Estilo Premium */
.ba-tag {
    position: absolute;
    top: 20px;
    z-index: 10;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.1rem;
    padding: 0.6rem 1.4rem;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    color: var(--white);
    border-radius: 100px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
    text-transform: uppercase;
    user-select: none;
}

.tag-before { left: 20px; }
.tag-after  { right: 20px; }

.scroll-indicator {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--white);
    padding: 5px 10px;
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.1rem;
    border-radius: 2px;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.4s;
    pointer-events: none;
    z-index: 10;
}

.scroll-indicator .mobile-text {
    display: none;
}

@media (max-width: 768px) {
    #hero-title {
        font-size: clamp(3rem, 18vw, 6rem);
        line-height: 1.0;
        margin-bottom: 1.5rem;
        padding-right: 0;
    }

    /* Subtítulo: centralizado verticalmente na tela, independente do título */
    .hero-subtitle {
        position: absolute;
        top: 180%;
        left: var(--safe-padding);
        right: var(--safe-padding);
        transform: translateY(-50%);
        font-size: 0.78rem;
        letter-spacing: 0.05em;
        text-align: center;
        width: auto;
        margin: 0;
    }

    /* Esconde o traço lateral quando o subtítulo é centralizado */
    .hero-subtitle .dash {
        display: none;
    }

    /* Hero: título no topo, subtítulo no meio via absolute */
    #hero-section {
        align-items: flex-start;
        padding-top: 15rem;
    }

    /* Remove o contexto posicionado do .content para o subtitle referenciar a section */
    #hero-section .content {
        position: static;
    }

    .vh-section {
        padding: 8rem var(--safe-padding) 4rem;
    }

    /* Projetos Mobile */
    #projects-section {
        padding-top: 6rem;
    }

    .projects-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .project-display {
        order: 1;
    }

    .project-info-main h3 {
        font-size: 1.5rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
        margin-bottom: 0.5rem;
    }

    .status-tag {
        margin-left: 0;
        font-size: 0.6rem;
    }

    .project-info-main p {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 1rem;
    }

    .ba-container {
        aspect-ratio: 16/9;
    }

    .project-showcase {
        flex-direction: column;
        gap: 1.2rem;
        align-items: stretch;
    }

    .project-footer {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 1rem;
        padding-bottom: 0;
    }

    .project-meta-info {
        flex: 1;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1.2rem 2rem;
        border-left: none;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        padding-left: 0;
        padding-top: 1rem;
    }

    .spec-item {
        min-width: 120px;
    }

    .spec-label {
        font-size: 0.65rem;
        margin-bottom: 0.15rem;
    }

    .spec-value {
        font-size: 0.9rem;
    }

    .visit-link {
        width: 100%;
        padding: 1rem;
        font-size: 0.75rem;
        margin-top: 0.25rem;
    }

    /* Navegação de projetos */
    .project-navigation {
        order: 2;
        justify-content: center;
        padding-right: 0;
        padding-top: 0.15rem;
        border-top: 1px solid rgba(0, 0, 0, 0.08);
    }

    .project-list {
        flex-direction: row;
        overflow-x: auto;
        width: 100%;
        padding: 0.1rem 0 0.1rem 0.5rem;
        gap: 0;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .project-list::-webkit-scrollbar {
        display: none;
    }

    .project-nav-item {
        padding: 0.2rem 1rem 0.2rem 0;
    }

    .project-nav-item:last-child {
        border-right: none;
    }

    .project-nav-item .pj-num {
        color: var(--accent-orange);
        opacity: 0.7;
    }

    .project-nav-item .pj-name {
        color: var(--text-primary);
        opacity: 0.45;
        font-size: 0.8rem;
        letter-spacing: 0.01em;
        transform: none !important;
    }

    .project-nav-item.active .pj-name {
        color: var(--text-primary);
        opacity: 1;
        letter-spacing: 0;
    }

    .project-nav-item.active .pj-num {
        opacity: 1;
    }

    .scroll-indicator {
        bottom: 25px;
        right: 20px;
        font-size: 0.72rem;
        padding: 6px 12px;
        background: rgba(0, 0, 0, 0.85);
        border: 1px solid rgba(255, 255, 255, 0.1);
        pointer-events: none;
        transform: translateY(0);
    }

    .scroll-indicator .desktop-text {
        display: none;
    }

    .scroll-indicator .mobile-text {
        display: block;
    }

    /* Tags ANTES/DEPOIS menores no mobile */
    .ba-tag {
        font-size: 0.38rem;
        padding: 0.2rem 0.45rem;
        top: 7px;
        letter-spacing: 0.03rem;
    }

    .tag-before { left: 7px; }
    .tag-after  { right: 7px; }

    /* Black block menor em 768px */
    .black-block {
        --block-size: 28vw;
        min-height: 0;
    }

    /* Modal responsivo */
    .modal-content {
        height: 92vh;
        overflow-y: auto;
    }
}

/* Toque Especial: Progressão de Peso e Estilo */
#hero-title div:nth-child(1) {
    font-weight: 200;
    -webkit-text-stroke: 1.5px var(--black);
    color: transparent;
}

#hero-title div:nth-child(2) {
    font-weight: 600;
    letter-spacing: -0.02em;
}

#hero-title div:nth-child(3) {
    font-weight: 900;
    color: var(--accent-orange);
    letter-spacing: -0.06em;
}

.hero-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    max-width: 900px;
    margin-bottom: 0;
    line-height: 1.6;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 600;
}

.hero-subtitle .dash {
    width: 20px;
    height: 1px;
    background: var(--accent-orange);
    display: inline-block;
    vertical-align: middle;
    margin-right: 1rem;
    position: relative;
    top: -1px;
}

.hero-subtitle .highlight {
    color: var(--accent-orange);
    font-weight: 900;
    font-size: 1.1rem;
    display: inline;
}

/* Hero Counter (Over Black Block) */
.hero-counter-wrap {
    position: absolute;
    right: 3vw;
    /* Mais para a direita para não bater no slant do bloco */
    top: 30%;
    transform: translateY(-50%) translateX(20px);
    color: var(--white);
    z-index: 21;
    /* Um nível acima da black-block base (20) */
    pointer-events: none;
    text-align: right;
    opacity: 0;
    will-change: opacity, transform;
}

.counter-number {
    font-family: var(--font-title);
    font-size: clamp(4rem, 14vw + 2rem, 14rem);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 0.5rem;
    letter-spacing: -0.05em;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
}

.counter-number .plus {
    color: var(--accent-orange);
    font-size: 0.35em;
    margin-top: 0.15em;
    opacity: 0;
    transform: translateX(20px);
}

.counter-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    line-height: 1.4;
    opacity: 0.6;
    margin-right: 0.5rem;
}



/* --- PROJECTS SHOWCASE --- */
.projects-layout {
    display: grid;
    grid-template-columns: 1fr 30vw;
    gap: 3vw;
    width: 100%;
    min-height: 80vh;
    /* Permite que o container cresça com o zoom */
    align-items: center;
}

.project-display {
    position: relative;
    max-width: 1550px;
    width: 100%;
}

#active-project-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.project-info-main h3 {
    font-family: var(--font-title);
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 900;
    margin-bottom: 0.5rem;
    color: var(--black);
    display: flex;
    align-items: center;
}

.status-tag {
    font-size: 0.65rem;
    padding: 0.4rem 1.2rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-secondary);
    border-radius: 100px;
    letter-spacing: 0.1rem;
    text-transform: uppercase;
    font-weight: 700;
    margin-left: 1.5rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}


.project-info-main p {
    font-size: 1.6rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin-bottom: 1.5rem;
}

.project-showcase {
    display: flex;
    gap: 3rem;
    align-items: flex-end;
    /* Alinha o conteúdo com a base da imagem */
    width: 100%;
}

.project-visual {
    flex: 1;
    max-width: 100%;
}

.ba-container {
    width: 100%;
    max-height: 82vh;
    aspect-ratio: 16/9;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.15);
}

.ba-slider {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: ew-resize;
    user-select: none;
    /* Impede seleção de texto ao arrastar */
}

.ba-slider.no-slider {
    cursor: default;
}

.pj-image-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: 100% auto;
    background-position: top center;
    background-repeat: no-repeat;
    /* Transição removida do CSS para não conflitar com GSAP */
    will-change: background-position;
}

.after-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    clip-path: inset(0 0 0 50%);
    transition: border-color 0.3s ease;
}

.ba-slider:not(.no-slider) .ba-tag {
    opacity: 1;
}

.ba-handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: var(--white);
    transform: translateX(-50%);
    z-index: 5;
}

.ba-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 44px;
    height: 44px;
    background: var(--white);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
}

.ba-circle::after {
    content: '↔';
    color: var(--accent-orange);
    font-weight: 900;
}

.ba-slider.no-slider .ba-handle,
.ba-slider.no-slider .ba-circle {
    display: none;
}

.ba-slider.no-slider .after-wrapper {
    width: 100% !important;
    height: 100% !important;
    border-right: none;
    overflow: hidden;
    clip-path: inset(0 0 0 0) !important;
}

/* O scroll é controlado exclusivamente via Javascript (GSAP) para garantir precisão de tempo e reset imediato */
.ba-slider:hover .scroll-indicator {
    opacity: 0;
    transform: translateY(-10px);
}

.project-footer {
    width: 320px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    /* Reduzido de 2rem */
    margin-bottom: 3rem;
    /* Adicionado para subir o texto */
    padding-bottom: 1.5rem;
    flex-shrink: 0;
    border-top: none;
}

.project-meta-info {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    /* Reduzido de 1.5rem */
    border-left: 1px solid rgba(0, 0, 0, 0.1);
    padding-left: 1.5rem;
}

.spec-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
    color: var(--black);
    margin-bottom: 0.2rem;
    opacity: 0.9;
}

.spec-value {
    display: block;
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--text-primary);
    opacity: 0.7;
}

.visit-link {
    background: var(--black);
    color: var(--white);
    padding: 1.2rem 1.5rem;
    /* Ajustado para sidebar */
    text-decoration: none;
    font-weight: 800;
    font-size: 0.75rem;
    /* Um pouco menor para caber melhor */
    text-align: center;
    letter-spacing: 0.1rem;
    transition: all 0.3s;
    border-radius: 2px;
}

.visit-link:hover {
    background: var(--accent-orange);
    transform: translateY(-3px);
}

/* Side Navigation (Project List) */
.project-navigation {
    position: relative;
    z-index: 20;
    display: flex;
    justify-content: flex-end;
    /* Alinhado à direita (perto da parede) */
    padding-right: 2rem;
    /* Reduzido de var(--safe-padding) para aproximar da borda */
}

.project-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.project-nav-item {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    /* Conteúdo interno (número e nome) alinhados à direita */
    transition: transform 0.3s;
}

.project-nav-item .pj-num {
    font-size: 0.7rem;
    color: var(--accent-orange);
    font-weight: 900;
    margin-bottom: 0.2rem;
    opacity: 0.6;
}

.project-nav-item .pj-name {
    font-family: var(--font-title);
    font-size: 1.1rem;
    /* Reduzido de 1.4rem para caber melhor */
    font-weight: 600;
    color: var(--white);
    opacity: 0.3;
    transition: all 0.3s;
}

.project-nav-item:hover .pj-name {
    opacity: 0.7;
    transform: translateX(-5px);
    /* Suavizado de -10px */
}

.project-nav-item.active .pj-name {
    opacity: 1;
    transform: translateX(10px);
    /* Reduzido de 20px para não empurrar muito */
    letter-spacing: 0.05em;
}

.project-nav-item.active .pj-num {
    opacity: 1;
}

/* Contact Section & Bio Box - Premium Refined */
.contact-grid {
    display: flex;
    /* Mudado para flex para facilitar a divisória central */
    width: 100%;
    gap: 4rem;
    align-items: center;
    justify-content: center;
    min-height: 500px;
}

.about-column {
    flex: 1.1;
    display: flex;
    justify-content: flex-end;
}

.contact-divider {
    width: 1px;
    height: 380px;
    background: #1a1a1a;
    flex-shrink: 0;
}

.contact-actions-column {
    flex: 0.9;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-left: 2rem;
}

/* Card Sobre Mim - Novo Estilo Claro */
.about-artist-box {
    background: #f5f2ed;
    padding: 3.5rem;
    border-radius: 6px;
    border-left: 4px solid #e05a1c;
    /* Borda um pouco mais grossa para presença */
    width: 100%;
    max-width: 540px;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.about-artist-box .about-label {
    color: #e05a1c;
    margin-bottom: 2rem;
}

.about-label-row {
    cursor: default;
}

.about-toggle-btn {
    display: none;
}

.about-artist-box .about-lead {
    color: var(--black) !important;
    font-size: 1.5rem !important;
}

.about-artist-box p {
    color: #333333 !important;
    /* Cor sólida e bem legível */
    font-weight: 450;
    line-height: 1.7;
}

.about-artist-box .about-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--black) !important;
}

/* Coluna CTA - Direita */
.cta-tag {
    font-family: var(--font-title);
    font-size: 0.75rem;
    color: #e05a1c;
    font-weight: 800;
    letter-spacing: 0.2em;
    margin-bottom: 1.5rem;
    display: block;
}

.cta-title {
    font-family: var(--font-title);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    color: var(--white);
    line-height: 1;
    margin-bottom: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.cta-title .dot {
    color: #e05a1c;
}

.cta-sub {
    font-family: var(--font-ui);
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.6);
    max-width: 420px;
    margin-bottom: 3rem;
    line-height: 1.6;
}

.cta-whatsapp-premium {
    display: inline-flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.4rem 4.5rem;
    /* Aumentado horizontalmente de 2.8rem para 4.5rem */
    border: 1px solid #e05a1c;
    /* Vazado por padrão */
    background: transparent;
    color: var(--white);
    text-decoration: none;
    font-family: var(--font-title);
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 2px;
}

.cta-whatsapp-premium:hover {
    background: transparent;
    /* Permanece vazado */
    transform: translateX(10px);
    box-shadow:
        0 0 20px rgba(224, 90, 28, 0.4),
        0 0 40px rgba(224, 90, 28, 0.2);
    /* Brilho Laranja */
    border-color: #ff7c33;
    /* Borda acende levemente */
}

.cta-whatsapp-premium .cta-arrow {
    font-size: 1.2rem;
    transition: transform 0.4s ease;
}

.cta-whatsapp-premium:hover .cta-arrow {
    transform: translateX(5px);
}

.cta-note {
    margin-top: 0.8rem;
    /* Reduzido de 1.5rem para aproximar do botão */
    font-family: var(--font-ui);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.05em;
}


.about-artist-box:hover {
    transform: translateY(-8px) rotateX(1deg);
    box-shadow: 50px 60px 100px rgba(0, 0, 0, 0.12);
}

/* --- SOLUTIONS SECTION --- */
#solutions-section {
    background-color: transparent;
    position: relative;
    /* overflow: hidden removido para permitir vazamento de luz entre páginas */
}

.solutions-glow-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(160px);
    /* Aumentado de 100px para evitar bordas visíveis */
    opacity: 0.3;
    animation: orbMove 25s infinite alternate ease-in-out;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--accent-orange);
    top: -200px;
    right: -150px;
    opacity: 0.2;
}

.orb-2 {
    width: 600px;
    height: 600px;
    background: #e0e6ff;
    /* Soft Blue for Light BG */
    bottom: -200px;
    left: -100px;
    opacity: 0.2;
    animation-delay: -5s;
}

@keyframes orbMove {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(-10%, 10%) scale(1.2);
    }
}

#solutions-section .content {
    position: relative;
    z-index: 10;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    width: min(1250px, 100%);
    min-width: 0;
}

.solution-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-top: 3px solid var(--accent-orange);
    padding: 3rem 2.5rem 3.5rem;
    border-radius: 10px;
    position: relative;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.04),
        0 4px 16px rgba(0, 0, 0, 0.06),
        0 20px 48px rgba(0, 0, 0, 0.07);
}

.solution-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.2),
            transparent);
    transform: skewX(-25deg);
    transition: 0.75s;
    pointer-events: none;
}

.solution-card:hover::after {
    left: 150%;
}

.solution-card:hover {
    transform: translateY(-12px) scale(1.02);
    background: #ffffff;
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.05),
        0 12px 32px rgba(0, 0, 0, 0.1),
        0 32px 64px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(224, 90, 28, 0.12);
}

.sol-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--accent-orange) 0%, #ff7a2e 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 11px;
    margin-bottom: 2rem;
    color: #ffffff;
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 14px rgba(224, 90, 28, 0.35);
}

.sol-icon svg {
    width: 100%;
    height: 100%;
}

.solution-card:hover .sol-icon {
    transform: scale(1.1) rotate(5deg);
    /* Pequena rotação no hover */
    box-shadow: 0 8px 25px rgba(255, 122, 0, 0.45);
}

.sol-num {
    position: absolute;
    bottom: -0.5rem;
    /* Ajuste para flutuar no canto */
    right: 1.5rem;
    font-family: var(--font-title);
    font-size: 8rem;
    /* Aumentado para 8rem */
    font-weight: 950;
    color: var(--black);
    opacity: 0.05;
    line-height: 1;
    letter-spacing: -0.08em;
    pointer-events: none;
    user-select: none;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.solution-card:hover .sol-num {
    opacity: 0.12;
    /* Mais visível no hover */
    transform: translateY(-10px);
    /* Sobe um pouco */
}

.solution-card h4 {
    font-family: var(--font-title);
    font-size: 1.45rem;
    color: var(--black);
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.15;
}

.solution-card p {
    font-family: var(--font-ui);
    font-size: 0.95rem;
    line-height: 1.75;
    color: #444;
    font-weight: 450;
}

@media (max-width: 1200px) {
    #solutions-section .content {
        justify-content: center;
    }

    .solutions-grid {
        width: 100%;
    }
}

@media (max-width: 960px) {
    .solutions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.about-content {
    position: relative;
}

@media (max-width: 768px) {

    /* --- SOLUÇÕES: compactar para caber em 100vh --- */
    #solutions-section {
        align-items: flex-start;
        padding-top: 7rem;
        padding-bottom: 1.5rem;
    }

    .solutions-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding: 0;
    }

    .solution-card {
        padding: 1.5rem 1.5rem 1.5rem;
    }

    .sol-icon {
        width: 36px;
        height: 36px;
        padding: 8px;
        margin-bottom: 0.85rem;
    }

    .solution-card h4 {
        font-size: 1.05rem;
        margin-bottom: 0.4rem;
    }

    .solution-card p {
        font-size: 0.85rem;
        line-height: 1.55;
    }

    .sol-num {
        font-size: 4rem;
    }

    /* --- CONTATO: compactar para mostrar CTA na mesma tela --- */
    #contact-section {
        align-items: flex-start;
        padding-top: 12rem;
        padding-bottom: 5rem;
    }

    .contact-grid {
        flex-direction: column;
        gap: 0;
        padding-top: 0;
        min-height: 0;
    }

    .about-column {
        flex: none;
        width: 100%;
        padding: 0;
        text-align: left;
        align-items: flex-start;
    }

    .contact-actions-column {
        flex: none;
        width: 100%;
        padding: 0;
        padding-top: 2.5rem;
        text-align: center;
        align-items: center;
    }

    .contact-divider {
        width: 100%;
        height: 1px;
        margin: 2rem 0 0;
        background: rgba(0, 0, 0, 0.12);
    }

    .about-artist-box {
        padding: 1.5rem;
        max-width: 100%;
    }

    /* Todos os parágrafos ocultos por padrão (colapsado via max-height) */
    .about-content>p:not(.about-lead):not(.about-footer) {
        display: block;
    }

    .about-artist-box .about-label {
        margin-bottom: 1rem;
    }

    .about-artist-box .about-lead {
        font-size: 1.15rem !important;
        margin-bottom: 1rem !important;
    }

    .about-footer {
        padding-top: 0.75rem;
    }

    .cta-title {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }

    .cta-sub {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .cta-whatsapp-premium {
        width: 100%;
        justify-content: center;
        padding: 1.1rem 1.5rem;
    }

    .cta-tag {
        margin-bottom: 0.75rem;
        font-size: 0.95rem;
        letter-spacing: 0.3em;
    }

    .cta-note {
        margin-top: 0.5rem;
    }

    /* Cores pretas no mobile (fundo claro, não escuro) */
    .cta-title {
        color: var(--black);
    }

    .cta-sub {
        color: var(--black);
        opacity: 0.7;
    }

    .cta-whatsapp-premium {
        color: var(--black);
        border-color: var(--black);
    }

    /* Toggle "Sobre Mim" */
    .about-label-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
        margin-bottom: 0;
    }

    .about-toggle-btn {
        display: block;
        background: none;
        border: none;
        font-size: 1.6rem;
        font-weight: 300;
        color: var(--black);
        cursor: pointer;
        line-height: 1;
        padding: 0 0.25rem;
        transition: transform 0.3s ease;
    }

    .about-toggle-btn.open {
        transform: rotate(45deg);
    }

    /* Painel fechado: colapsado inline */
    .about-content {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transform: translateY(-6px);
        transition: max-height 0.45s ease, opacity 0.3s ease, transform 0.3s ease;
        pointer-events: none;
    }

    /* Painel aberto: glass card inline */
    .about-content.open {
        max-height: 700px;
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem;
        margin-top: 0.75rem;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.18);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        border: 1px solid rgba(255, 255, 255, 0.55);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.7);
    }

    /* Mostrar todos os parágrafos dentro do glass card */
    .about-content.open>p {
        display: block !important;
    }

}

/* Glass panel header sempre oculto */
.glass-panel-header {
    display: none;
}

.about-label {
    font-family: var(--font-title);
    font-size: 0.7rem;
    letter-spacing: 0.5em;
    color: var(--accent-orange);
    margin-bottom: 2.5rem;
    font-weight: 900;
    text-transform: uppercase;
}

.about-content p {
    font-family: var(--font-ui);
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-weight: 300;
    letter-spacing: -0.01em;
}

.about-lead {
    font-family: var(--font-title) !important;
    font-size: 1.4rem !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    color: var(--black) !important;
    margin-bottom: 2rem !important;
    letter-spacing: -0.02em !important;
}

.about-footer {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    font-weight: 600 !important;
    color: var(--black) !important;
}

/* Custom Cursor */
#custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10000;
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-orange);
    border-radius: 50%;
    position: absolute;
    transform: translate(-50%, -50%);
}

.cursor-ring {
    width: 34px;
    height: 34px;
    border: 1.5px solid var(--accent-orange);
    border-radius: 50%;
    position: absolute;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

/* Utils */
.reveal-text {
    overflow: hidden;
}



@media (max-width: 1024px) {
    :root {
        --safe-padding: 5vw;
    }

    .projects-layout {
        display: flex;
        flex-direction: column;
        height: auto;
        padding-top: 1rem;
        /* Subindo o menu para mais perto do logo */
        gap: 0;
        width: 100%;
    }

    .project-display {
        width: 100%;
        padding-right: 0;
    }

    .project-navigation {
        position: relative;
        left: calc(1 * var(--safe-padding));
        width: calc(100% + 2 * var(--safe-padding));
        /* Full width sem depender de 100vw */
        margin-bottom: 1rem;
        padding: 0.4rem 0;
        order: -1;
        /* Nav de projetos no topo em tablet e mobile */
        z-index: 30;
        /* ACIMA da barra preta (z-index 20) */

        /* Estilização da Tarja (Estilosa e Premium) */
        background: rgba(245, 242, 237, 0.4);
        /* Fundo claro translúcido */
        backdrop-filter: blur(15px);
        /* Efeito Glassmorphism Forte */
        -webkit-backdrop-filter: blur(15px);
        border-top: 1px solid rgba(0, 0, 0, 0.04);
        border-bottom: 1px solid rgba(0, 0, 0, 0.04);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
    }

    .project-list {
        display: flex;
        /* Garante flexbox no mobile */
        flex-direction: row;
        overflow-x: auto;
        padding: 0 45vw 0 var(--safe-padding);
        /* Alinha os itens com o conteúdo da seção */
        gap: 2.5rem;
        scrollbar-width: none;
        -ms-overflow-style: none;
        scroll-snap-type: x mandatory;
        align-items: center;
    }

    .project-list::-webkit-scrollbar {
        display: none;
    }

    .project-nav-item {
        scroll-snap-align: start;
        flex-shrink: 0;
    }

    .project-nav-item .pj-num,
    .project-nav-item .pj-name {
        color: var(--black) !important;
        /* Corrigido: var(--bg-main) não existia */
        opacity: 1 !important;
        transform: none !important;
    }

    .project-nav-item.active .pj-name {
        transform: none !important;
        color: var(--accent-orange) !important;
    }

    /* Corrige o showcase: stacking vertical no tablet para não invadir o black block */
    .project-info-main {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }

    .project-showcase {
        flex-direction: column;
        gap: 1.5rem;
        align-items: stretch;
    }

    .project-visual {
        width: 100%;
    }

    .ba-container {
        max-height: 45vh;
    }

    .project-footer {
        width: 100%;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 1.5rem;
    }

    .project-meta-info {
        flex: 1;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1rem 2.5rem;
        border-left: none;
        padding-left: 0;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        padding-top: 1rem;
    }

    .visit-link {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .projects-layout {
        display: flex;
        flex-direction: column;
    }

    .project-display {
        order: 1;
        width: 100%;
        display: flex;
        flex-direction: column;
    }

    /* POSIÇÃO 0: Nav de projetos no TOPO */
    .project-navigation {
        order: -1;
        margin-top: 0;
        margin-bottom: 0.5rem;
        position: relative;
        left: calc(1 * var(--safe-padding));
        width: calc(100% + 2 * var(--safe-padding));
        z-index: 30;
    }

    #pj-title {
        display: none;
    }

    /* display: contents faz os filhos do showcase participarem
       diretamente do flex do project-info-main, permitindo intercalar
       a descrição entre a imagem e o footer */
    .project-info-main {
        display: flex;
        flex-direction: column;
        width: 100%;
        padding-right: 0;
        gap: 1.5rem;
    }

    .project-showcase {
        display: contents;
    }

    /* POSIÇÃO 1: Imagem */
    .project-visual {
        order: 1;
        width: 100%;
        position: static;
    }

    .ba-container {
        width: 100%;
        aspect-ratio: 16/9;
        max-height: 45vh;
        z-index: 10;
        border-radius: 8px;
        overflow: hidden;
    }

    /* POSIÇÃO 2: Descrição */
    .project-info-main p {
        order: 2;
        font-size: 1rem;
        line-height: 1.75;
        margin: 0;
        opacity: 0.95;
        color: var(--text-primary);
        width: 100%;
        text-align: left;
    }

    /* POSIÇÃO 3: Segmento/Entrega + Botão */
    .project-footer {
        order: 3;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
        padding-top: 0;
        margin-bottom: 0;
        /* Resetando a margem do desktop */
    }

    .project-meta-info {
        width: 100%;
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        gap: 2rem;
        border-left: none;
        padding-left: 0;
    }

    .spec-item {
        display: flex;
        flex-direction: column;
        gap: 0.4rem;
    }

    .spec-label {
        font-size: 0.75rem;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: var(--accent-orange);
        font-weight: 700;
        opacity: 0.85;
    }

    .spec-value {
        font-size: 1rem;
        font-weight: 400;
        color: var(--black);
    }

    /* BOTÃO DE VISITA PREMIUM */
    .visit-link {
        width: 100%;
        background: var(--black);
        color: white !important;
        text-align: center;
        padding: 0.9rem 1.2rem;
        border-radius: 10px;
        font-size: 0.85rem;
        font-weight: 600;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 0.6rem;
        text-decoration: none;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
        transition: transform 0.3s ease, background 0.3s ease;
    }

    .visit-link:active {
        transform: scale(0.97);
        background: #1a1a1a;
    }

    /* Tarja preta desativada no mobile */
    .black-block {
        display: none;
    }

    #main-header-clone {
        display: none;
    }
}

/* --- MOBILE MENU OVERLAY --- */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 550;
    visibility: hidden;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu.active {
    visibility: visible;
    pointer-events: auto;
}

.mobile-menu-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    /* Mais transparente para o glass aparecer */
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    transform: translateY(-100%);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.mobile-menu.active .mobile-menu-bg {
    transform: translateY(0);
}

.mobile-menu-content {
    position: relative;
    z-index: 10;
    text-align: center;
    width: 100%;
    padding: 2rem;
}

.mobile-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu.active .mobile-nav-item {
    opacity: 1;
    transform: translateY(0);
}

.m-num {
    font-family: var(--font-title);
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--accent-orange);
    margin-bottom: 0.5rem;
}

.m-text {
    font-family: var(--font-title);
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--black);
    letter-spacing: -0.02em;
}

.mobile-nav-item.active .m-text {
    color: var(--accent-orange);
    -webkit-text-stroke: 1px var(--accent-orange);
}

.mobile-menu-footer {
    margin-top: 5rem;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.3em;
    color: rgba(0, 0, 0, 0.3);
    opacity: 0;
}

.mobile-menu.active .mobile-menu-footer {
    opacity: 1;
    transition-delay: 0.6s;
}

/* --- PROJECT VIEWER MODAL (CRYSTAL GLASS) --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(25px) saturate(180%);
    opacity: 0;
}

.modal-content {
    position: relative;
    width: 90vw;
    height: 85vh;
    max-width: 1400px;
    z-index: 10;
    transform: scale(0.95);
    opacity: 0;
}

.modal-window {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.modal-header {
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    flex-shrink: 0;
}

.window-controls {
    display: flex;
    gap: 8px;
}

.control-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.control-dot.red {
    background: #ff5f56;
}

.control-dot.yellow {
    background: #ffbd2e;
}

.control-dot.green {
    background: #27c93f;
}

.window-title {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.2rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
}

.modal-close-btn {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    font-size: 0.6rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.modal-close-btn:hover {
    background: var(--white);
    color: var(--black);
}

.modal-body-scroll {
    flex: 1;
    overflow-y: auto;
    background: #000;
    position: relative;
    display: flex;
    flex-direction: column;
}

.modal-body-scroll img {
    width: 100%;
    height: auto;
    display: block;
}

/* Scrollbar Customizada Premium */
.modal-body-scroll::-webkit-scrollbar {
    width: 6px;
}

.modal-body-scroll::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

.modal-body-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.modal-body-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

.modal-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 100;
    color: var(--white);
    font-size: 0.6rem;
    letter-spacing: 3px;
    gap: 1.5rem;
    text-align: center;
    width: 100%;
    pointer-events: none;
}

.spinner {
    width: 35px;
    height: 35px;
    border: 2px solid rgba(255, 255, 255, 0.05);
    border-top: 2px solid var(--white);
    border-radius: 50%;
    animation: modalSpin 0.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes modalSpin {
    to {
        transform: rotate(360deg);
    }
}

#modal-iframe {
    width: 100%;
    height: 100%;
    flex: 1;
    border: none;
    display: none;
    opacity: 0;
    background: #000;
}

/* Modal em telas com pouca altura (landscape mobile) */
@media (max-height: 700px) {
    .modal-content {
        height: 95vh;
    }
}

/* --- SITE PRELOADER (LUXO) --- */
#site-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--black);
}

.preloader-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--black);
    will-change: transform;
}

.preloader-logo {
    position: relative;
    z-index: 10;
    font-family: var(--font-title);
    font-weight: 900;
    font-size: clamp(2rem, 5vw, 4rem);
    color: var(--white);
    opacity: 0;
    transform: translateY(20px);
    letter-spacing: 0.1em;
}

/* --- CINEMATIC ENTRANCE STATES --- */
#main-header,
#main-header-clone {
    transform: translateY(-110%);
    opacity: 0;
    visibility: hidden;
    will-change: transform, opacity;
}

.black-block {
    transform: translateX(100%);
    will-change: transform;
}

.hero-counter-wrap {
    transform: translateX(100px);
    opacity: 0;
    will-change: transform, opacity;
}

/* Performance & Smoothness Boost */
#sections-container,
.content,
.black-block,
.header-overlay {
    will-change: transform, clip-path, opacity;
}

/* Scroll smoothness global */
html {
    scroll-behavior: initial;
    /* GSAP controla */
}

/* --- BREAKPOINT 480px (Phones pequenos: iPhone SE, Galaxy A) --- */
@media (max-width: 480px) {

    /* Reduz o bloco preto para não ocupar tanto espaço em telas estreitas */
    .black-block {
        --block-size: 22vw;
        min-height: 0;
    }

    /* Contador: centro inferior da tela hero */
    .hero-counter-wrap {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 1rem;
        left: 0;
        right: 0;
        width: 100%;
        top: auto;
        bottom: 2.5rem;
        color: var(--black);
        text-align: center;
        opacity: 0;
    }

    .counter-number {
        font-size: clamp(2.5rem, 14vw, 4rem);
        justify-content: center;
    }

    .counter-label {
        font-size: 0.6rem;
        text-align: left;
        margin-right: 0;
        opacity: 0.5;
    }

    /* Hero title: mantém escala grande também em telas pequenas */
    #hero-title {
        font-size: clamp(2.2rem, 17vw, 5rem);
    }

    /* Seções com menos padding vertical */
    .vh-section {
        padding: 6rem var(--safe-padding) 3rem;
    }

    /* Header mais compacto */
    #main-header {
        padding: 1.5rem var(--safe-padding);
    }

    /* Mockup contido — black block ainda visível, sem conflito de sobreposição */
    .project-visual {
        width: 100%;
        position: static;
        margin-bottom: 2rem;
    }

    .ba-container {
        border-radius: 8px;
        max-height: 40vh;
    }

    /* Soluções: espaço no topo para não colar no header */
    #solutions-section {
        padding-top: 10rem;
    }

    .solution-card {
        padding: 1.2rem 1.2rem;
    }

    .solutions-grid {
        gap: 0.5rem;
    }

    /* Contato: padding mínimo em telas pequenas */
    #contact-section {
        padding-top: 8rem;
    }

    .contact-grid {
        gap: 1rem;
    }

    .cta-title {
        font-size: 1.75rem;
    }
}

/* --- ACESSIBILIDADE: prefers-reduced-motion --- */
@media (prefers-reduced-motion: reduce) {

    /* Desativa canvas 3D */
    #three-canvas {
        display: none;
    }

    /* Reduz todas animações e transições */
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}