/* CORE RE-ENGINEERING */
body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background-color: #05070a;
    color: #ffffff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
    overscroll-behavior: none;
}

/* PROXY DE ROLAGEM: Mapeia o crescimento positivo até o limite de 8000px */
.scroll-proxy {
    position: absolute;
    top: 0;
    width: 100%;
    height: 9000px; /* Altura total para acomodar a progressão dos 8000px + respiro final */
    z-index: 1;
}

/* VIEWPORT DA CÂMERA (DISTÂNCIA FOCAL PADRÃO DE 1200PX) */
.camera {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    perspective: 1200px; 
    overflow: hidden;
    z-index: 2;
    pointer-events: none;
}

/* MUNDO TRIDIMENSIONAL ESTÁTICO (OS PAINÉIS SE MOVEM INDIVIDUALMENTE) */
.scene {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

/* CARDS CINEMATOGRÁFICOS */
.panel {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80vw;
    max-width: 1000px;
    height: 60vh;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(22, 28, 38, 0.92) 0%, rgba(10, 13, 18, 0.97) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40px;
    box-sizing: border-box;
    box-shadow: 0 40px 100px rgba(0,0,0,0.9), inset 0 0 30px rgba(255,255,255,0.02);
    will-change: transform, opacity, filter;
}

.content {
    flex: 1;
    padding-right: 40px;
    z-index: 2;
}

.content h2 {
    font-size: 3rem;
    margin: 0 0 15px 0;
    color: #ffcb05;
    text-shadow: 2px 2px 0px #2a75bb;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.content p {
    font-size: 1.25rem;
    line-height: 1.6;
    color: #e1e7ed;
    margin: 0;
}

.image-container {
    flex: 0 0 40%;
    Height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.image-container img {
    max-width: 100%;
    max-height: 120%;
    object-fit: contain;
    filter: drop-shadow(0 25px 35px rgba(0,0,0,0.6));
}

/* CONTAINER DO BOTÃO FIXO (Z-INDEX ALTO PARA FICAR ACIMA DA CÂMERA E SCROLL) */
.pokedex-btn-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    z-index: 9999;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.pokedex-btn-container:hover {
    transform: scale(1.1);
}

.pokedex-btn-container:hover .pokebola {
    transform: rotate(360deg);
}

/* CONSTRUÇÃO DA POKÉBOLA EM CSS */
.pokebola {
    width: 60px;
    height: 60px;
    background: linear-gradient(to bottom, #ff1c1c 50%, #ffffff 50%);
    border: 3px solid #000000;
    border-radius: 50%;
    position: relative;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Linha central preta */
.pokebola-line {
    position: absolute;
    top: calc(50% - 2px);
    left: 0;
    width: 100%;
    height: 4px;
    background-color: #000000;
}

/* Botão central */
.pokebola-center {
    position: absolute;
    top: calc(50% - 10px);
    left: calc(50% - 10px);
    width: 16px;
    height: 16px;
    background-color: #ffffff;
    border: 3px solid #000000;
    border-radius: 50%;
    z-index: 10;
}

/* TEXTO ABAIXO DA POKÉBOLA */
.pokedex-text {
    margin-top: 8px;
    color: #ffcb05;
    font-weight: bold;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 1px 1px 2px #2a75bb, -1px -1px 0 #2a75bb, 1px -1px 0 #2a75bb, -1px 1px 0 #2a75bb;
}

@media (max-width: 768px) {
    .panel {
        flex-direction: column-reverse;
        text-align: center;
        padding: 24px;
        height: 70vh;
    }
    .content {
        padding-right: 0;
    }
    .content h2 {
        font-size: 2rem;
    }
    .content p {
        font-size: 1rem;
    }
    .image-container {
        flex: 0 0 45%;
    }
    /* Ajuste para dispositivos móveis */
    .pokedex-btn-container {
        bottom: 20px;
        right: 20px;
    }
    .pokebola {
        width: 50px;
        height: 50px;
    }
    .pokebola-center {
        top: calc(50% - 8px);
        left: calc(50% - 8px);
        width: 12px;
        height: 12px;
    }
}
