/* 
   INSIDE - POR DENTRO DA STEAM
*/

/* ================================
   KEYFRAMES
================================ */
@keyframes gira {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes go-up {
    0% {
        opacity: 0;
        transform: translateX(var(--inside-info-tx, -50%)) translateY(30px) scale(var(--inside-info-scale, 1));
    }

    100% {
        opacity: 1;
        transform: translateX(var(--inside-info-tx, -50%)) translateY(0) scale(var(--inside-info-scale, 1));
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }

    100% {
        transform: scale(1);
    }
}

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

    50% {
        opacity: 0.4;
    }
}

@keyframes insideSaibaMaisPulse {
    0%, 100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-2px) scale(1.035);
    }
}

@keyframes grow {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Logo girando com glow laranja */
@keyframes giraGlow {
    0% {
        transform: rotate(0deg);
        filter: drop-shadow(0 0 8px #F2561D);
    }

    50% {
        transform: rotate(180deg);
        filter: drop-shadow(0 0 22px #F2561D);
    }

    100% {
        transform: rotate(360deg);
        filter: drop-shadow(0 0 8px #F2561D);
    }
}

/* Rotação do anel dentro do wrapper */
@keyframes orbitSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes orbitSpinRev {
    from {
        transform: rotate(360deg);
    }

    to {
        transform: rotate(0deg);
    }
}

/* 
   Contra-rotação do dot — cancela a rotação do anel
   para o dot ficar sempre na posição normal (upright)
*/
@keyframes dotContra {
    from {
        transform: translateX(-50%) rotate(0deg);
    }

    to {
        transform: translateX(-50%) rotate(-360deg);
    }
}

@keyframes dotContraRev {
    from {
        transform: translateX(-50%) rotate(360deg);
    }

    to {
        transform: translateX(-50%) rotate(0deg);
    }
}

/* Pulso do dot */
@keyframes dotPulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}
/* ================================
   KEYFRAME DO POPUP — igual ao site antigo
================================ */
@keyframes growleft {
    0% {
        scale: 0.1;
        transform: translateX(3000px);
    }

    100% {
        scale: 1;
        transform: translateX(0);
    }
}

/* Fade suave da máscara do fundo da órbita */
@keyframes insideOrbitBgFadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/* ================================
   SEÇÃO PRINCIPAL
================================ */
.inside {
    position: relative;
    width: 100%;
    background-color: #0d0d0d;
    overflow: hidden;
}
/* ================================
   TÍTULO DA SESSÃO INSIDE
================================ */
.inside__titulo {
    position: absolute;
    top: 80px; /* ← desce para não bater no header */
    left: 60px; /* ← alinha à esquerda */
    transform: none; /* ← remove o translateX(-50%) do centro */
    z-index: 20;
    text-align: left;
    white-space: nowrap;
    font-family: 'Syncopate', sans-serif;
    font-size: clamp(1rem, 2.5vw, 2rem);
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 6px;
    text-transform: uppercase;
    pointer-events: none;
    user-select: none;
}

    .inside__titulo span {
        color: #F2561D;
    }

/* Notebook / desktop médio: título não invade a engrenagem central do header */
@media (min-width: 769px) and (max-width: 1600px) {
    .inside__titulo {
        left: max(16px, 2.5vw);
        /* Encerra o bloco antes do centro (menu); permite 2 linhas se precisar */
        max-width: min(22em, calc(50vw - 120px));
        white-space: normal;
        line-height: 1.22;
        letter-spacing: 4px;
    }
}

/* ================================
   FASE 1 — LOGO
================================ */
.inside__gear {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100vh;
    position: relative;
    background-color: #0d0d0d;
}

    .inside__gear.hidden {
        display: none;
    }

.inside__gear__container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 400px;
    height: 400px;
}

/* Logo central */
.inside__gear__img {
    width: 200px;
    position: absolute;
    z-index: 2;
    animation: giraGlow 6s linear infinite;
}

/* Canvas atrás do logo */
#orbitCanvasBack {
    position: absolute;
    top: 0;
    left: 0;
    width: 400px;
    height: 400px;
    z-index: 1;
    pointer-events: none;
}

/* Logo no meio */
.inside__gear__img {
    width: 200px;
    position: absolute;
    z-index: 2;
    animation: giraGlow 6s linear infinite;
}

/* Canvas na frente do logo */
#orbitCanvasFront {
    position: absolute;
    top: 0;
    left: 0;
    width: 400px;
    height: 400px;
    z-index: 3;
    pointer-events: none;
}

@media (max-width: 768px) {
    .inside__gear__container {
        width: 300px;
        height: 300px;
    }

    .inside__gear__img {
        width: 150px;
    }

    #orbitCanvasBack,
    #orbitCanvasFront {
        width: 300px;
        height: 300px;
    }
}

@media (max-width: 480px) {
    .inside__gear__container {
        width: 240px;
        height: 240px;
    }

    .inside__gear__img {
        width: 120px;
    }

    #orbitCanvasBack,
    #orbitCanvasFront {
        width: 240px;
        height: 240px;
    }
}
/* ================================
   WRAPPERS — seguram a inclinação 3D (estáticos)
================================ */
.orbit__wrapper {
    position: absolute;
    width: 300px;
    height: 300px;
    transform-style: preserve-3d;
}

/* Diagonal: esquerda ALTA / direita BAIXA */
.orbit__wrapper--1 {
    transform: rotateX(70deg) rotateZ(-45deg);
}

/* Diagonal: esquerda BAIXA / direita ALTA */
.orbit__wrapper--2 {
    transform: rotateX(70deg) rotateZ(45deg);
}

/* Horizontal no meio */
.orbit__wrapper--3 {
    transform: rotateX(85deg);
}

/* ================================
   ANÉIS — fazem apenas a rotação
================================ */
.orbit__ring {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid rgba(242, 86, 29, 0.25);
    position: relative;
}

.orbit__ring--1 {
    animation: orbitSpin 5s linear infinite;
}

.orbit__ring--2 {
    animation: orbitSpinRev 7s linear infinite;
}

.orbit__ring--3 {
    animation: orbitSpin 9s linear infinite;
}

/* ================================
   DOTS — ficam upright com contra-rotação
================================ */
.orbit__dot {
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: #F2561D;
    border-radius: 50%;
    box-shadow: 0 0 10px #F2561D, 0 0 24px #F2561D;
    /* contra-rotação + pulso combinados */
    animation: dotContra 5s linear infinite, dotPulse 2s ease-in-out infinite;
}

.orbit__ring--2 .orbit__dot {
    width: 9px;
    height: 9px;
    background: #ff7c45;
    box-shadow: 0 0 8px #ff7c45, 0 0 18px #ff7c45;
    animation: dotContraRev 7s linear infinite, dotPulse 2s ease-in-out infinite 0.6s;
}

.orbit__ring--3 .orbit__dot {
    width: 7px;
    height: 7px;
    background: #ffaa80;
    box-shadow: 0 0 6px #ffaa80, 0 0 14px #ffaa80;
    animation: dotContra 9s linear infinite, dotPulse 2s ease-in-out infinite 1.2s;
}

/* ================================
   FASE 2 — VÍDEO
================================ */
.inside__video {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 20000;
    align-items: center;
    justify-content: center;
}

    .inside__video.active {
        display: flex;
    }

    .inside__video video {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
/* ================================
   BOTÃO PULAR VÍDEO
================================ */
.inside__video__skip {
    position: absolute;
    bottom: 40px;
    right: 50px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 20001;
    transition: all 0.3s ease;
    animation: blink 2s ease-in-out infinite;
    backdrop-filter: blur(4px);
}
.inside__video__skip {
    /* ... restante que já tem ... */
    pointer-events: all;
}
    .inside__video__skip svg {
        width: 16px;
        height: 16px;
        transition: transform 0.3s ease;
    }

    .inside__video__skip:hover {
        background: rgba(242, 86, 29, 0.2);
        border-color: #F2561D;
        color: #F2561D;
        letter-spacing: 4px;
    }

        .inside__video__skip:hover svg {
            transform: translateX(4px);
        }
/* ================================
   FASE 3 — ÓRBITA
================================ */
.inside__orbit {
    display: none;
    width: 100%;
    height: 100vh;
    position: relative;
    background-color: #0d0d0d;
    overflow: visible;
    isolation: isolate;
}

/* Fundo fotográfico só na fase das elipses (após o vídeo) */
.inside__orbit::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(13, 13, 13, 0.78), rgba(13, 13, 13, 0.84)),
        url("../../assets/media/img/fundo%20inside.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
}

    .inside__orbit.active {
        display: block;
    }

    .inside__orbit.active::before {
        animation: insideOrbitBgFadeIn 1.8s ease-out forwards;
    }

/* Container da engrenagem central — centralizado */
.inside__orbit__container {
    position: absolute;
    top: 32%;
    left: 12%;
    transform: translate(-50%, -50%);
    width: 180px;
    height: 180px;
    z-index: 2;
}

.inside__orbit__gear {
    width: 270px;
    animation: gira 6s linear infinite;
    position: absolute;
    top: calc(40vh - 25px);
    left: calc(30vw + 70.5px);
    z-index: 5;
}

/* Bolas — position absolute relativo ao .inside__orbit */
.inside__ball {
    position: absolute;
    cursor: pointer;
    border-radius: 50%;
    transition: top 1.5s ease-out, left 1.5s ease-out, width 1.5s ease-out, height 1.5s ease-out, filter 0.4s ease;
    z-index: 3;
}

    .inside__ball img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .inside__ball__label {
        position: absolute;
        top: calc(100% + 6px);
        left: 50%;
        transform: translateX(-50%);
        display: block;
        white-space: nowrap;
        pointer-events: none;
        font-family: 'Syncopate', sans-serif;
        font-size: clamp(0.48rem, 0.52vw, 0.62rem);
        font-weight: 700;
        letter-spacing: 1.2px;
        text-transform: uppercase;
        color: #f2f2f2;
        text-shadow: 0 0 8px rgba(242, 86, 29, 0.45), 0 0 2px rgba(0, 0, 0, 0.9);
        opacity: 0.95;
    }

    .inside__ball.ball--active {
        filter: drop-shadow(0 0 12px #F2561D);
        animation: pulse 1.5s ease-in-out infinite;
    }

    .inside__ball.ball--active .inside__ball__label {
        top: calc(100% + 34px);
        font-size: 1rem;
        letter-spacing: 1.8px;
        color: #ffffff;
        text-shadow: 0 0 12px rgba(242, 86, 29, 0.75), 0 0 2px rgba(0, 0, 0, 0.95);
    }
/* ================================
   BOTÕES NAVEGAÇÃO ÓRBITA
================================ */
.inside__nav {
    position: fixed;
    right: 50px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10001;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
}

    .inside__nav.visible {
        opacity: 1;
        pointer-events: all;
    }

.inside__nav--up {
    top: 40px;
}

.inside__nav--down {
    bottom: 40px;
}

.inside__nav svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.inside__nav:hover {
    background: rgba(242, 86, 29, 0.2);
    border-color: #F2561D;
    color: #F2561D;
    letter-spacing: 4px;
}

.inside__nav--up:hover svg {
    transform: translateY(-4px);
}

.inside__nav--down:hover svg {
    transform: translateY(4px);
}

/* ================================
   CAIXA DE INFO — lado direito
================================ */
.inside__info {
    display: none;
    position: absolute;
    width: 540px;
    height: 225px;
    top: 7.5vh;
    left: 72vw;
    background-image: url('../../assets/media/img/howWeDoBox.png');
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    text-align: center;
    padding-top: 56%;
    padding-left: 29%;
    padding-right: 29%;
    opacity: 0.9;
    color: #fff;
    z-index: 10;
    /* permite a animação manter a escala (não sobrescrever o transform do scale) */
    --inside-info-scale: 0.88;
    --inside-info-tx: -50%;
    transform-origin: top left;
}


.inside__info.info--active {
    display: block;
    animation: go-up 0.5s ease forwards;
}

    .inside__info h3 {
        color: #FFF;
        font-size: 1.15rem;
        margin-bottom: 8px;
        text-transform: uppercase;
        letter-spacing: 2px;
    }

    .inside__info p {
        font-size: 0.88rem;
        line-height: 1.5;
        color: #ccc;
    }

/* ================================
   SAIBA MAIS — botão em código (sem imagem)
================================ */
.inside__saibamais {
    position: absolute;
    top: calc(17.5vh + 176px);
    left: calc(57vw + 238px);
    min-width: 138px;
    min-height: 46px;
    border: 1px solid #f2561d;
    border-radius: 999px;
    padding: 0 24px;
    background: linear-gradient(145deg, #252525 0%, #050505 48%, #161616 100%);
    color: #fff;
    cursor: pointer;
    font-family: 'Syncopate', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    line-height: 1;
    text-transform: uppercase;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.38);
    box-shadow: none;
    transform-style: preserve-3d;
    animation: insideSaibaMaisPulse 2s ease-in-out infinite;
    transition: transform 0.22s ease, border-color 0.22s ease, filter 0.22s ease;
    z-index: 31;
}

    .inside__saibamais::before {
        content: "";
        position: absolute;
        inset: 5px 12px auto 12px;
        height: 38%;
        border-radius: inherit;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0));
        pointer-events: none;
    }

    .inside__saibamais:hover,
    .inside__saibamais:focus-visible {
        border-color: #ff7c45;
        filter: brightness(1.18);
        transform: translateY(-4px) scale(1.04);
        box-shadow: none;
    }

    .inside__saibamais:active {
        transform: translateY(5px) scale(0.99);
        box-shadow: none;
    }

/* ================================
   BOLA ATIVA — pulse + glow
================================ */
.inside__ball.ball--active {
    filter: drop-shadow(0 0 16px #F2561D) drop-shadow(0 0 32px rgba(242,86,29,0.4));
    animation: pulse 1.5s ease-in-out infinite;
    z-index: 13 !important;
}
/* ================================
   POPUP
================================ */
.inside__popup__fundo {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

    .inside__popup__fundo.active {
        display: flex;
    }

.inside__popup__container {
    background-image: url('../../assets/media/img/popupBackground.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 1px solid #F2561D;
    border-radius: 12px;
    padding: 40px;
    padding-top: 20px; /* ← menos padding no topo para o ícone sobrar */
    max-width: 560px;
    width: 90%;
    min-height:45%;
    position: relative;
    color: #fff;
    text-align: center;
    overflow: visible; /* ← permite o ícone sair para fora */
    animation: growleft 0.5s ease-out;
}

/* Ícone — metade para fora do topo, centralizado */
.inside__popup__content img {
    height: 10rem;
    width: auto;
    position: relative;
    top: -60px; /* ← metade para fora do container */
    margin-bottom: -40px; /* ← compensa o espaço que sobra */
    object-fit: contain;
}

/* Título em destaque */
.inside__popup__content h3 {
    color: #111;
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

/* Texto descritivo */
.inside__popup__content p {
    color: #444;
    font-size: 1rem;
    line-height: 1.7;
    padding: 0 1rem;
}

/* Botão fechar */
.inside__popup__close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: none;
    border: none;
    color: #F2561D;
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
}

    .inside__popup__close:hover {
        color: #fff;
        transition: color 0.3s ease;
    }

/* ================================
   RESPONSIVO — 768px
================================ */
@media (max-width: 768px) {

    .inside__gear__img {
        width: 150px;
    }

    .orbit__wrapper {
        width: 220px;
        height: 220px;
    }

    .inside__orbit__container {
        width: 360px;
        height: 360px;
    }

    .inside__orbit__gear {
        width: 120px;
    }

    .inside__ball {
        width: 55px;
        height: 55px;
    }

    

    .inside__info {
        width: 90%;
        bottom: -180px;
        --inside-info-scale: 1;
        --inside-info-tx: 0%;
    }

    .inside__saibamais {
        bottom: -280px;
    }
}

/* ================================
   RESPONSIVO — 480px
================================ */
@media (max-width: 480px) {

    .inside__gear__img {
        width: 120px;
    }

    .orbit__wrapper {
        width: 180px;
        height: 180px;
    }

    .inside__orbit__container {
        width: 300px;
        height: 300px;
    }

    .inside__orbit__gear {
        width: 90px;
    }

    .inside__ball {
        width: 45px;
        height: 45px;
    }

    

    .inside__info {
        width: 95%;
        bottom: -200px;
        --inside-info-scale: 1;
        --inside-info-tx: 0%;
    }

    .inside__popup__container {
        padding: 24px;
    }
}
@media (max-width: 768px) {
    #orbitCanvasBack,
    #orbitCanvasFront {
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: 200px !important;
        height: 200px !important;
        pointer-events: none !important;
    }
}