
/* --- CONFIGURAÇÕES GERAIS --- */
body {
    background-color: #020204;
    color: white;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* --- ELEMENTOS DE FUNDO --- */
#star-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at center, #0a1025 0%, #000000 100%);
}

#hero-bg-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

/* --- IMAGENS PISCANTES (FLASH) --- */
.flash-image {
    position: absolute;
    width: auto;
    height: auto;
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 12px;
    border: 1px solid rgba(0, 243, 255, 0.5);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.9);
    opacity: 0;
    filter: grayscale(100%) contrast(1.2);
    animation: flashEffect 4s ease-out forwards;
}

@keyframes flashEffect {
    0% {
        opacity: 0;
        transform: scale(0.9);
        filter: grayscale(100%);
    }

    10% {
        opacity: 0.8;
        filter: grayscale(100%);
    }

    30% {
        opacity: 1;
        filter: grayscale(0%);
        transform: scale(1);
    }

    80% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: scale(1.05);
        filter: grayscale(0%);
    }
}

/* --- COMPONENTES UI --- */
.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.text-neon {
    text-shadow: 0 0 8px rgba(0, 243, 255, 0.6);
}

.btn-back {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-family: 'Share Tech Mono', monospace;
    transition: all 0.3s ease;
}

.btn-back:hover {
    border-color: #00f3ff;
    color: #00f3ff;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.3);
}

.btn-cyber {
    position: relative;
    background: transparent;
    color: #00f3ff;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 1px solid #00f3ff;
    overflow: hidden;
    transition: 0.3s;
    clip-path: polygon(10% 0, 100% 0, 100% 70%, 90% 100%, 0 100%, 0 30%);
}

.btn-cyber:hover {
    background: rgba(0, 243, 255, 0.1);
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.4);
    transform: translateY(-2px);
}

.btn-cyber:active {
    transform: translateY(0);
}

/* --- VÍDEO (TRAILER E BACKGROUND HERO) --- */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid rgba(0, 243, 255, 0.3);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.1);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Container do Vídeo Background */
#video-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    overflow: hidden;
}

#youtube-audio,
#youtube-player-frame {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.2);
}

/* Estados do Vídeo */
.video-fragment-active {
    opacity: 1 !important;
    filter: brightness(1.5) contrast(1.5) grayscale(50%);
}

.video-full-reveal {
    opacity: 1 !important;
    clip-path: none !important;
    filter: brightness(0.8) contrast(1.1);
    transition: opacity 2s ease !important;
}

/* Efeito TV Antiga */
#crt-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%),
        linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 3px, 6px 100%;
}

.show-crt {
    opacity: 1 !important;
}

/* Strobe Light */
#strobe-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
}

/* --- TELA DE ENTRADA (OVERLAY) --- */
#enter-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #020204;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease-out, visibility 0.8s;
    background-image: radial-gradient(circle at center, #0a1025 0%, #000000 100%);
}

#enter-screen.hidden-overlay {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.welcome-text {
    font-family: 'Share Tech Mono', monospace;
    color: #fff;
    text-align: center;
    margin-bottom: 3rem;
}

.welcome-text h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #00f3ff;
    text-shadow: 0 0 15px rgba(0, 243, 255, 0.5);
    letter-spacing: 2px;
}

.btn-start-experience {
    font-family: 'Share Tech Mono', monospace;
    font-size: 1.2rem;
    color: #00f3ff;
    border: 1px solid #00f3ff;
    padding: 15px 50px;
    background: rgba(0, 243, 255, 0.05);
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 4px;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.2);
    animation: pulse-border 2s infinite;
}

.btn-start-experience:hover {
    background: #00f3ff;
    color: #000;
    box-shadow: 0 0 50px rgba(0, 243, 255, 0.6);
}

@keyframes pulse-border {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 243, 255, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(0, 243, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 243, 255, 0);
    }
}

/* --- PLAYER --- */
.music-bar-anim span {
    display: inline-block;
    width: 3px;
    background-color: #00f3ff;
    animation: equalize 1s infinite;
}

.music-bar-anim span:nth-child(1) {
    animation-delay: 0.1s;
    height: 10px;
}

.music-bar-anim span:nth-child(2) {
    animation-delay: 0.3s;
    height: 15px;
}

.music-bar-anim span:nth-child(3) {
    animation-delay: 0.6s;
    height: 8px;
}

.music-bar-anim span:nth-child(4) {
    animation-delay: 0.2s;
    height: 12px;
}

@keyframes equalize {

    0%,
    100% {
        transform: scaleY(1);
    }

    50% {
        transform: scaleY(1.5);
    }
}