/* ------------------------------------------- PROJETOS/INTERACTIVE-SHOWCASE ------------------------------------------------- */

/* ======================================================== */
/* SEÇÃO: SHOWCASE INTERATIVO (VERSÃO STICKY SCROLL)      */
/* ======================================================== */

/* [MUDANÇA] Define a "pista de rolagem" */
#interactive-showcase {
    /* 400vh = 1 tela para o título, 1 para cada projeto */
    height: 400vh;
    padding: 0; /* Remove o padding para o sticky funcionar */
    overflow: visible; /* Garante que o sticky funcione */
    position: relative;
}

/* [NOVO] Este é o elemento que "trava" na tela */
.showcase-sticky-wrapper {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    height: 100vh; /* Ocupa a tela inteira */
    width: 100%;
    overflow: hidden; /* Previne que o zoom vaze */
}

/* [MUDANÇA] Centraliza o seu container dentro do wrapper sticky */
.showcase-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    
    height: 100%;
    display: block; /* <-- MUDANÇA PRINCIPAL */
    
    /* Adiciona um preenchimento para "centralizar" o texto */
    padding-top: 10vh; 
}

.subtitulo-showcase {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem auto;
    color: var(--cor-texto-secundario);
}

.showcase-stage {
    position: relative;
    width: 100%;
    margin: 0 auto;
    /* [MUDANÇA] A transição precisa ser mais rápida para o scroll */
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    transform-origin: center center;
    height: 70vh; 
    max-height: 800px;
}

/* Wrapper para a imagem e os hotspots */
.showcase-visual-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    aspect-ratio: 1 / 1;
}

.showcase-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    position: relative;
}

/* ESTADOS DE ZOOM (Seus estilos originais - mantidos) */
.showcase-stage.zoom-eniac {
    transform: scale(3) translate(7%, 40%);
}
.showcase-stage.zoom-solumatch {
    transform: scale(3) translate(-11%, -5%);
}
.showcase-stage.zoom-bateponto {
    transform: scale(3.5) translate(1%, -37%);
}

/* HOTSPOTS */
.hotspot {
    position: absolute;
    width: 40px;
    height: 40px;
    transform: translate(-290%, -200%); /* Seu posicionamento original */
    cursor: default;
    z-index: 2;
    pointer-events: none; /* Impede o clique */
    display: block; /* Garante que esteja visível */
}

/* Estilo do número (do seu CSS original) */
.hotspot span {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    background-color: var(--cor-texto-principal);
    color: var(--cor-secundaria-laranja);
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: bold;
    z-index: 1;
    position: relative;
}

.hotspot span img {
    width: 60%; /* <-- Mude para porcentagem */
    height: auto;
    justify-content: center;
}

.hotspot span #logo-bateponto-pequeno{
    width: 45%; /* <-- Mude para porcentagem */
    height: auto;
    justify-content: center;
}

/* [CORREÇÃO] Animação de pulso (que estava faltando) */
.hotspot-pulse {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--cor-texto-principal);
    border-radius: 50%;
    animation: pulse 2s infinite;
    z-index: 0;
}

/* [CORREÇÃO] Keyframe da animação (que estava faltando) */
@keyframes pulse {
    0% { transform: scale(1); opacity: 0.7; }
    70% { transform: scale(1.8); opacity: 0; }
    100% { transform: scale(1); opacity: 0; }
}

/* PAINEL DE DETALHES DOS PROJETOS */
.project-details-panel {
    position: absolute;
    bottom: 10%; 
    right: 5%; 
    width: 90%;
    max-width: 450px; 
    background: rgba(18, 18, 18, 0.85);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid var(--cor-secundaria-laranja);
    color: var(--cor-texto-principal);
    opacity: 0;
    visibility: hidden;
    z-index: 3;

    /* [MUDANÇA] Transição mais rápida e sem o 'translateY(20px)' */
    transform: translateY(0);
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.project-details-panel.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0); 
}

.project-details-panel h3 {
    color: var(--cor-secundaria-laranja);
    margin-bottom: 1rem;
}
.close-details-btn {
    background-color: var(--cor-secundaria-laranja);
    color: var(--cor-fundo);
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 1rem;
    display: none;
}

/* Seu estilo original para a imagem do painel */
.project-details-panel img {
    width: 100%; /* A imagem ocupa 100% da largura do card */
    max-width: 300px; /* Limite opcional, se quiser */
    object-fit: contain; /* Garante que a imagem caiba sem distorcer */
    margin: 0 auto; /* Centraliza a imagem se ela for menor */
    display: block; /* Garante o comportamento de bloco */
}

/* ================================================================== */
/* SOLUÇÃO DEFINITIVA PARA POSICIONAMENTO E RESPONSIVIDADE DO SHOWCASE */
/* ================================================================== */

        /* --- EFEITO FADE PARA O TEXTO DA SEÇÃO --- */
        /* Adiciona uma transição suave para o título e subtítulo */
        #interactive-showcase .showcase-container > h2,
        #interactive-showcase .showcase-container > .subtitulo-showcase {
            transition: opacity 0.4s ease, visibility 0.4s ease;
        }

        /* Quando o container tem a classe 'showcase-zoomed', o texto desaparece */
        #interactive-showcase .showcase-container.showcase-zoomed > h2,
        #interactive-showcase .showcase-container.showcase-zoomed > .subtitulo-showcase {
            opacity: 0;
            visibility: hidden;
        }


        /* --- POSIÇÕES DOS HOTSPOTS PARA DESKTOP --- */
        .hotspot[data-target="eniac"] {
            top: 18%;
            left: 41%;
        }

        .hotspot[data-target="solumatch"] {
            top: 70%;
            left: 64%;
        }

        .hotspot[data-target="bateponto"] {
            top: 107%;
            left: 48%;
        }

        /* Adicione esta regra perto das outras do showcase */
#interactive-showcase .showcase-container > h2,
#interactive-showcase .showcase-container > .subtitulo-showcase {
    text-align: center;
}