/* ==========================================
   ARQUIVO: /assets/css/premium.css
   ========================================== */

/* Preloader Premium */
.preloader-premium {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #0d1b14;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
    padding: 0 20px;
}

.preloader-logo-wrapper {
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.preloader-logo {
    height: 60px;
    width: auto;
    filter: brightness(0) invert(1);
    transform: translateY(100%);
    opacity: 0;
}

.preloader-subtitle-wrapper {
    overflow: hidden;
    padding-top: 5px;
}

.preloader-subtitle {
    display: inline-block;
    font-size: 1.1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 2px;
    text-transform: uppercase;
    transform: translateY(100%);
    opacity: 0;
}

.overflow-hidden {
    overflow: hidden;
    display: inline-block;
}

.preloader-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background-color: #28a745;
    width: 0%;
}

/* Custom Cursor Lusion Style */
@media (pointer: fine) {

    body,
    a,
    button,
    .magnetic-btn,
    .card-item {
        cursor: none !important;
    }
}

.cursor-dot,
.cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    pointer-events: none;
    z-index: 999999;
    transform: translate(-50%, -50%);
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: #28a745;
}

.cursor-follower {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(40, 167, 69, 0.5);
    transition: width 0.3s, height 0.3s, background-color 0.3s;
    mix-blend-mode: exclusion;
}

.cursor-follower.active {
    width: 80px;
    height: 80px;
    background-color: white;
    border-color: transparent;
    mix-blend-mode: difference;
}

/* Ocultar elementos para revelação GSAP */
.gs-stagger,
.gs-reveal-up,
.gs-card,
.gs-reveal-left,
.gs-reveal-right,
.gs-plano,
.preloader-logo,
.preloader-subtitle,
.plano-card-premium {
    visibility: hidden;
}

/* Configuração Canvas 3D e Hero */
#hero-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -2;
    background-color: transparent;
}

.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: transparent !important;
}

.hero-overlay-3d {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.2) 100%);
    z-index: -1;
}

/* Magnetic Button Config */
.magnetic-btn {
    display: inline-block;
    transition: transform 0.1s ease-out, background 0.3s, box-shadow 0.3s;
    will-change: transform;
}

.magnetic-btn span {
    display: inline-block;
    pointer-events: none;
}

/* Premium Dynamic Transition Curtain */
.premium-transition-curtain {
    position: fixed;
    top: 100%;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #0d1b14;
    /* Máxima prioridade de z-index: garante ficar acima de preserve-3d e will-change */
    z-index: 2147483647; /* Valor máximo de z-index (int32 max) */
    /* Força um contexto de composição independente no GPU */
    transform: translateZ(0);
    isolation: isolate;
    will-change: transform;
    pointer-events: none;
}

/* ================================================================
   BARRA DE PROGRESSO ESTILO YOUTUBE (Topo da Tela)
   ================================================================ */
#page-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #10b981, #4ade80, #10b981);
    background-size: 200% 100%;
    animation: progressShimmer 1.2s linear infinite;
    z-index: 9999999; /* Acima de tudo, inclusive da curtain */
    opacity: 0;
    border-radius: 0 2px 2px 0;
    /* Emissão de luz verde suave (igual ao canal do YouTube) */
    box-shadow: 0 0 8px 2px rgba(16, 185, 129, 0.7),
                0 0 20px 4px rgba(16, 185, 129, 0.3);
    pointer-events: none;
}

/* Animação de shimmer que faz a barra "pulsar" enquanto carrega */
@keyframes progressShimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Centralized Global Dark Theme Background to Override global.css white default */
body.dark-premium-theme {
    background-color: #050806 !important;
    color: #e0e0e0 !important;
    overflow-x: hidden;
}