:root {
    --purple: #6a0dad;
    --neon: #bc13fe;
    --black: #05010a;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    background-color: var(--black);
    color: white;
    font-family: 'Oswald', sans-serif;
    overflow-x: hidden;
}

/* Background Fixo (Impacto que você solicitou) */
.void-bg-fixed {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100vh;
    background: linear-gradient(rgba(5, 1, 10, 0.6), rgba(5, 1, 10, 0.6)), 
                url('bg-void.jpg') center/cover no-repeat;
    z-index: -1;
}

#main-nav {
    position: fixed;
    top: 0; width: 100%;
    padding: 25px 10%;
    display: flex;
    justify-content: space-between;
    background: linear-gradient(to bottom, var(--black), transparent);
    z-index: 100;
}

#main-nav ul { display: flex; list-style: none; }
#main-nav ul li { margin-left: 40px; }
#main-nav a { 
    color: white; text-decoration: none; 
    text-transform: uppercase; letter-spacing: 2px;
    transition: 0.3s;
}
#main-nav a:hover { color: var(--neon); text-shadow: 0 0 10px var(--neon); }

.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.glitch {
    font-size: 8rem;
    font-family: 'Cinzel', serif;
    filter: drop-shadow(0 0 20px var(--purple));
}

/* Lore em destaque logo no início */
.content-section {
    min-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(10, 5, 20, 0.8); /* Camada para leitura */
    backdrop-filter: blur(5px);
}

.lore-box {
    max-width: 800px;
    padding: 50px;
    border-left: 5px solid var(--neon);
    background: rgba(255, 255, 255, 0.05);
}

.lore-box h2 { font-family: 'Cinzel', serif; font-size: 2.5rem; margin-bottom: 20px; color: var(--neon); }
.lore-box p { font-size: 1.3rem; line-height: 1.8; color: #ddd; margin-bottom: 15px; }

/* Monstros Flutuantes na última parte */
.monster-section {
    padding: 100px 5%; /* Aumenta a área útil lateral */
    text-align: center;
}

.title-light {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    color: white;
    text-shadow: 0 0 20px var(--purple);
    margin-bottom: 40px;
}

.monster-float-container {
    display: grid;
    /* Cria 4 colunas em telas grandes, ajusta para 2 ou 1 em telas menores */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
    align-items: start; /* Alinha os cards pelo topo */
}

.floating-boss {
    margin: 0; /* Remove a margem fixa para o grid trabalhar */
    padding: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: 0.5s;
    background: rgba(255, 255, 255, 0.00); /* Fundo sutil para delimitar o espaço */
    border-radius: 15px;
}

.float-img {
    width: 100%; /* Ocupa a largura do card */
    max-width: 280px; /* Limita o tamanho máximo da imagem */
    height: 300px; /* Altura fixa para manter o alinhamento horizontal */
    object-fit: contain; /* Garante que a imagem não seja cortada */
    filter: drop-shadow(0 0 25px var(--purple));
}

.boss-info {
    margin-top: 25px;
    min-height: 150px; /* Garante que o texto de um não empurre o outro pra baixo */
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.boss-info h3 { 
    font-family: 'Cinzel', serif; 
    font-size: 1.8rem; 
    color: var(--neon); 
    margin-bottom: 5px;
}

.boss-info p {
    font-size: 1rem;
    color: #bbb;
    line-height: 1.4;
}

/* Animações de flutuação diferentes para cada monstro */
.anim-1 { animation: float1 4s ease-in-out infinite; }
.anim-2 { animation: float2 5s ease-in-out infinite; }

@keyframes float1 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(2deg); }
}

@keyframes float2 {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-40px) scale(1.05); }
}

.lore-section {
    padding: 100px 10%;
    background: linear-gradient(to bottom, transparent, rgba(10, 5, 20, 0.95), var(--black));
    position: relative;
}

.lore-container h2 {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    color: var(--neon);
    text-align: center;
    margin-bottom: 50px;
}

.lore-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 50px;
    align-items: center;
}

.lore-text p {
    font-size: 1.1rem;
    line-height: 2;
    margin-bottom: 20px;
    color: #bbb;
    text-align: justify;
}

.lore-highlight {
    background: rgba(188, 19, 254, 0.05);
    padding: 30px;
    border-right: 3px solid var(--neon);
    font-style: italic;
    color: #fff;
}

/* Estilo para os Bosses */
.boss-title {
    display: block;
    color: #888;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 3px;
    margin-bottom: 10px;
}

.glow-effect {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 200px; height: 200px;
    background: var(--purple);
    filter: blur(80px);
    opacity: 0.3;
    z-index: -1;
}

/* Animação extra para o terceiro monstro */
.anim-3 { animation: float3 6s ease-in-out infinite; }

@keyframes float3 {
    0%, 100% { transform: scale(1) translate(0,0); }
    50% { transform: scale(1.1) translate(10px, -20px); }
}

/* Footer */
footer {
    padding: 80px 10% 40px;
    background: #030105;
    border-top: 1px solid rgba(138, 43, 226, 0.2);
    text-align: center;
}

.footer-logo {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    color: var(--neon);
    margin-bottom: 20px;
}

.social-links {
    margin: 30px 0;
}

.social-links a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    border: 1px solid var(--purple);
    padding: 10px 20px;
    transition: 0.3s;
}

.social-links a:hover {
    background: var(--purple);
    box-shadow: 0 0 15px var(--neon);
}

.copy {
    font-size: 0.8rem;
    color: #444;
    margin-top: 40px;
}

/* Music Player Stylized */
#music-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(10, 5, 20, 0.9);
    border: 1px solid var(--neon);
    padding: 15px 25px;
    z-index: 2000;
    display: flex;
    align-items: center;
    gap: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(188, 19, 254, 0.2);
    border-radius: 5px;
}

.music-status {
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: var(--neon);
}

#music-toggle {
    background: transparent;
    border: 1px solid white;
    color: white;
    padding: 5px 15px;
    cursor: pointer;
    font-family: 'Oswald', sans-serif;
    font-size: 0.8rem;
    transition: 0.3s;
}

#music-toggle:hover {
    background: white;
    color: var(--black);
}

/* Visualizer Animation */
.visualizer {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 15px;
}

.visualizer span {
    width: 3px;
    background: var(--neon);
    animation: bounce 1s ease-in-out infinite;
}

.visualizer span:nth-child(2) { animation-delay: 0.2s; }
.visualizer span:nth-child(3) { animation-delay: 0.4s; }
.visualizer span:nth-child(4) { animation-delay: 0.6s; }

@keyframes bounce {
    0%, 100% { height: 3px; }
    50% { height: 15px; }
}

/* Classe para quando a música está pausada */
.paused .visualizer span {
    animation-play-state: paused;
    height: 3px;
}

/* Container do Background */
.void-bg-fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background-color: var(--black); /* Fallback caso o vídeo demore a carregar */
}

/* Ajuste do Vídeo para preencher a tela (Object Fit) */
#void-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover; /* Faz o vídeo se comportar como background-size: cover */
}

/* Camada de escurecimento para manter a leitura do texto */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 1, 10, 0.5); /* Ajuste a opacidade conforme necessário */
    z-index: 1;
}