/* --- VARIÁVEIS E SETUP --- */
:root {
    /* Paleta Dark Premium */
    --bg-deep: #020c1b;       /* Azul Void */
    --bg-navy: #0a192f;       /* Azul Marinho Profundo */
    --bg-card: rgba(16, 33, 60, 0.7); /* Vidro escuro */

    --accent-neon: #14ff66;   /* Verde Neon */
    --accent-glow: rgba(20, 255, 161, 0.4);
    --border-glass: rgba(255, 255, 255, 0.1);

    --text-main: #e6f1ff;     /* Branco gelo */
    --text-muted: #a8b2d1;    /* Cinza azulado claro */

    --font-heading: 'Rajdhani', sans-serif;
    --font-body: 'Inter', sans-serif;

    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

body {
    background-color: var(--bg-deep);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
}

/* Utilitários */
.text-muted { color: var(--text-muted) !important; }
.text-white { color: var(--text-main) !important; }
h1, h2, h3, h4, h5, h6 { color: var(--text-main); font-family: var(--font-heading); text-transform: uppercase; letter-spacing: 2px; }
a { text-decoration: none; transition: var(--transition); }

/* --- ANIMAÇÕES --- */
@keyframes anim-circle {
    0% { opacity: 0; } 50% { opacity: 1; } 100% { opacity: 0; }
}
.anim-circle { color: var(--accent-neon); animation: anim-circle 1s infinite ease-in-out; }

/* Animação de Brilho no Botão */
@keyframes shine-effect {
    0% { left: -100%; }
    20% { left: 100%; }
    100% { left: 100%; } /* Pausa longa entre os brilhos */
}

/* Animação de Zoom Pulsante Suave */
@keyframes pulse-zoom {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); }
    100% { transform: scale(1); }
}

/* --- COMPONENTES UI --- */
.btn-cta {
    position: relative;
    padding: 15px 40px;
    background: transparent;
    color: var(--accent-neon);
    border: 1px solid var(--accent-neon);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 0 10px rgba(57, 255, 20, 0.1);
    transition: var(--transition);
    display: inline-block;
    /* Zoom in leve e constante */
    animation: pulse-zoom 3s infinite ease-in-out;
}

/* Efeito de Brilho (Shine) */
.btn-cta::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.4), transparent);
    transform: skewX(-25deg);
    z-index: -1;
    animation: shine-effect 5s infinite; /* 5s total, passa rápido e espera */
}

.btn-cta:hover {
    color: var(--bg-deep);
    background-color: var(--accent-neon) !important;
    box-shadow: 0 0 30px var(--accent-glow);
    animation: none; /* Para o pulso ao passar o mouse para focar */
    transform: scale(1.05);
}

.badge-tech {
    background: rgba(57, 255, 20, 0.1);
    border: 1px solid var(--accent-neon);
    color: var(--accent-neon);
    padding: 5px 10px;
    font-size: 0.75rem;
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

/* --- HEADER --- */
/* --- ATUALIZAÇÃO HEADER (GLASSMORPHISM) --- */
.navbar {
    background: rgba(2, 12, 27, 0.65); /* Mais transparência */
    backdrop-filter: blur(16px);       /* Desfoque de vidro */
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar-brand img {
    max-height: 45px; /* Ajuste conforme o tamanho da sua logo */
    width: auto;
    filter: drop-shadow(0 0 5px rgba(57, 255, 20, 0.3)); /* Glow sutil na logo */
    transition: var(--transition);
}

.navbar-brand:hover img {
    filter: drop-shadow(0 0 10px rgba(57, 255, 20, 0.6));
    transform: scale(1.05);
}

/* --- ANIMAÇÕES CTA (BRILHO E ZOOM) --- */
@keyframes shimmer {
    0% { left: -100%; opacity: 0; }
    20% { left: 100%; opacity: 0.5; } /* Passa rápido */
    100% { left: 100%; opacity: 0; }  /* Espera o resto do tempo */
}

.btn-cta {
    /* ... propriedades anteriores mantidas ... */
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Efeito elástico suave */
}

/* Efeito de Zoom In no Hover */
.btn-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px var(--accent-glow);
    background: rgba(57, 255, 20, 0.1);
}

/* Brilho periódico */
.btn-cta::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.6), transparent);
    transform: skewX(-25deg);
    animation: shimmer 5s infinite; /* Roda a cada 5 segundos */
    pointer-events: none;
}

/* --- HERO IMAGE HOVER --- */
.hero-img-hover {
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-img-hover:hover {
    transform: translateY(-15px) scale(1.02) rotate(1deg);
    filter: drop-shadow(0 20px 30px rgba(57, 255, 20, 0.2));
    cursor: pointer;
}

/* --- SEÇÃO OUTSOURCING --- */
.outsourcing-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    padding: 2rem;
    height: 100%;
    transition: var(--transition);
}

.outsourcing-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-muted);
    transform: translateY(-5px);
}

.outsourcing-icon {
    font-size: 2.5rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.outsourcing-card:hover .outsourcing-icon {
    color: var(--accent-neon);
    text-shadow: 0 0 15px var(--accent-glow);
}

.navbar-nav .nav-link.active{
    color: var(--accent-neon) !important;
    text-shadow: 0 0 15px var(--accent-glow);
}
.navbar-nav .nav-link{
    color: var(--text-main);
}
/* --- HERO SECTION --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: radial-gradient(circle at center, rgba(10, 25, 47, 0.6) 0%, var(--bg-deep) 90%), url('../img/bg4.gif');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-title {
    font-size: 5rem;
    line-height: 0.9;
    margin-bottom: 1.5rem;
    background: -webkit-linear-gradient(#fff, #a8b2d1);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Hover Animado na Imagem Flutuante */
.hero-floating-img {
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.5s ease;
}
.hero-floating-img:hover {
    transform: translateY(-15px) scale(1.02) rotate(2deg);
    box-shadow: 0 20px 50px rgba(57, 255, 20, 0.2) !important;
    border-color: var(--accent-neon) !important;
}

/* --- SEÇÃO JOGOS --- */
#jogos {
    background-image: linear-gradient(to bottom, var(--bg-deep), rgba(5, 10, 16, .9)), url('../img/bg-condenado.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}
.section-title::after {
    content: ''; display: block; width: 60px; height: 4px; background: var(--accent-neon); margin-top: 10px; box-shadow: 0 0 10px var(--accent-glow);
}

.game-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass);
    height: 100%;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.game-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-neon);
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
}

.game-card-img-wrapper { position: relative; overflow: hidden; height: 220px; }
.game-card-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease; }
.game-card:hover .game-card-img { transform: scale(1.1); }

.game-card-body { padding: 1.5rem; flex-grow: 1; display: flex; flex-direction: column; }
.game-card-title { color: var(--text-main); font-size: 1.3rem; margin-bottom: 0.5rem; }
.game-card-desc { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1.5rem; font-weight: 300; }

.featured-card {
    border: 1px solid rgba(57, 255, 20, 0.3);
    background: linear-gradient(145deg, rgba(10, 25, 47, 0.9), rgba(6, 78, 59, 0.2));
}
.featured-card .game-card-img-wrapper { height: 400px; }

/* --- OUTSOURCING SECTION --- */
.outsourcing-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    padding: 2rem;
    height: 100%;
    transition: var(--transition);
}
.outsourcing-card:hover {
    background: rgba(57, 255, 20, 0.05);
    border-color: var(--accent-neon);
}
.outsourcing-icon {
    font-size: 2.5rem;
    color: var(--accent-neon);
    margin-bottom: 1.5rem;
}

/* --- EQUIPE --- */
.team-section {
    background: radial-gradient(circle at top, #0d1f3a 0%, var(--bg-deep) 70%);
    padding: 100px 0;
}
.char-select-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    padding: 10px;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    clip-path: polygon(10% 0, 100% 0, 100% 90%, 90% 100%, 0 100%, 0 10%);
    height: 100%;
}
.char-select-card:hover {
    background: rgba(57, 255, 20, 0.05);
    border-color: var(--accent-neon);
    transform: scale(1.05);
}
.char-select-card.purple-card:hover{
    background: rgba(216, 20, 255, 0.05);
    border-color: #911ee9 !important;
}
.char-select-card.pink-card:hover{
    background: rgba(255, 20, 177, 0.05);
    border-color: #e91e63 !important;
}
.char-select-card.blue-card:hover{
    background: rgba(20, 130, 255, 0.05);
    border-color: #1eb6e9ff !important;
}
.char-img {
    width: 100%; height: 300px; object-fit: cover;
    filter: grayscale(100%) contrast(1.2); transition: var(--transition);
}
.char-select-card:hover .char-img { filter: grayscale(0%) contrast(1); }
.char-info { padding: 1.5rem; text-align: center; }
.char-role { color: var(--accent-neon); font-size: 0.8rem; letter-spacing: 3px; margin-bottom: 5px; display: block; }

/* --- FOOTER & FORM --- */
.form-control, .form-select {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-glass);
    color: var(--text-main);
    padding: 15px;
    border-radius: 0;
}
.form-control:focus, .form-select:focus {
    background: rgba(255,255,255,0.05);
    border-color: var(--accent-neon);
    color: var(--text-main);
    box-shadow: 0 0 15px rgba(57, 255, 20, 0.1);
}
/* Ajuste para o select ficar com texto claro */
.form-select option {
    background-color: var(--bg-navy);
    color: var(--text-main);
}

footer { background-color: #010609; padding: 50px 0 20px; border-top: 1px solid var(--border-glass); }
footer h5 { color: var(--text-main); }
footer ul li a { color: var(--text-muted); }
footer ul li a:hover { color: var(--accent-neon); }

@media (max-width: 768px) {
    .hero-title { font-size: 3rem; }
    .featured-card .game-card-img-wrapper { height: 250px; }
}


/* --- PÁGINAS INTERNAS DE JOGOS --- */

/* Hero do Jogo */
.game-hero {
    min-height: 80vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px; /* Espaço para o header fixo */
}

.game-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(2, 12, 27, 0.3), var(--bg-deep)); /* Gradiente para fundir com o corpo */
    z-index: 1;
}

.game-logo {
    max-width: 600px;
    margin-bottom: 1.5rem;
    /* filter: drop-shadow(0 0 20px rgba(57, 255, 20, 0.4)); */
    animation: float-logo 6s ease-in-out infinite;
}

@keyframes float-logo {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Cards de Informação (HUD Style) */
.info-card {
    background: rgba(10, 25, 47, 0.6);
    border: 1px solid var(--border-glass);
    padding: 1.5rem;
    height: 100%;
    border-left: 3px solid var(--accent-neon); /* Detalhe Tech */
    transition: var(--transition);
}

.info-card:hover {
    background: rgba(57, 255, 20, 0.05);
    transform: translateX(5px);
}

.info-label {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    display: block;
}

.info-value {
    color: var(--text-main);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
}

/* Carrossel Customizado */
.game-carousel .carousel-item img {
    height: 500px;
    object-fit: cover;
    border: 1px solid var(--border-glass);
    border-radius: 4px;
}

.carousel-indicators [data-bs-target] {
    background-color: var(--accent-neon);
}

/* Lista de Destaques */
.feature-list li {
    margin-bottom: 1rem;
    color: var(--text-muted);
    display: flex;
    align-items: start;
}

.feature-list li i {
    color: var(--accent-neon);
    margin-top: 5px;
    margin-right: 10px;
}

/* CTA Final */
.beta-cta-section {
    background: linear-gradient(45deg, var(--bg-navy), var(--bg-deep));
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
}


/* --- ROADMAP (QUEST LOG) --- */
.roadmap-section {
    position: relative;
    overflow: hidden;
}

/* Linha central */
.roadmap-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--accent-neon), transparent);
    transform: translateX(-50%);
}

.roadmap-item {
    position: relative;
    margin-bottom: 60px;
    width: 50%;
}

.roadmap-item:nth-child(odd) {
    left: 0;
    padding-right: 40px;
    text-align: right;
}

.roadmap-item:nth-child(even) {
    left: 50%;
    padding-left: 40px;
    text-align: left;
}

/* Ponto na linha */
.roadmap-dot {
    position: absolute;
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--bg-deep);
    border: 2px solid var(--accent-neon);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-glow);
    z-index: 2;
}

.roadmap-item:nth-child(odd) .roadmap-dot { right: -10px; }
.roadmap-item:nth-child(even) .roadmap-dot { left: -10px; }

/* Conteúdo */
.roadmap-content {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    padding: 20px;
    border-radius: 4px;
    transition: var(--transition);
}

.roadmap-content:hover {
    border-color: var(--accent-neon);
    transform: translateY(-5px);
    background: rgba(57, 255, 20, 0.05);
}

.roadmap-date {
    color: var(--accent-neon);
    font-family: var(--font-heading);
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
}

@media (max-width: 768px) {
    .roadmap-line { left: 20px; }
    .roadmap-item { width: 100%; left: 0 !important; padding-left: 50px !important; padding-right: 0 !important; text-align: left !important; }
    .roadmap-item:nth-child(odd) .roadmap-dot, 
    .roadmap-item:nth-child(even) .roadmap-dot { left: 10px; right: auto; }
}

/* --- OST PLAYER --- */
.ost-player {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.player-content {
    background: rgba(2, 12, 27, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass);
    border-radius: 50px;
    padding: 10px 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    overflow: hidden;
    max-width: 300px;
    transition: var(--transition);
}

.ost-player.collapsed .player-content {
    max-width: 0;
    padding: 0;
    border: none;
    opacity: 0;
}

.player-toggle {
    width: 50px;
    height: 50px;
    background: var(--bg-navy);
    border: 1px solid var(--accent-neon);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(57, 255, 20, 0.2);
    margin-left: -10px; /* Sobreposição visual */
    z-index: 2;
    transition: var(--transition);
}

.player-toggle:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 0 25px var(--accent-glow);
}

.track-info {
    display: flex;
    flex-direction: column;
    min-width: 120px;
}

.track-name { font-family: var(--font-heading); font-size: 0.9rem; color: var(--text-main); }
.track-artist { font-size: 0.7rem; color: var(--text-muted); }

.player-controls button {
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
}

.player-controls button:hover { color: var(--accent-neon); }

/* --- CTA MUSICAL (CORRIGIDO) --- */
.cta-card-option {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    padding: 2rem;
    width: 300px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 3; /* Garante que o card fique acima das notas */
}

.cta-card-option:hover {
    transform: translateY(-10px);
    border-color: var(--accent-neon);
    background: rgba(57, 255, 20, 0.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* CONTAINER DAS NOTAS (O QUE FALTOU) */
.musical-notes-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Importante: permite clicar nos botões através das notas */
    z-index: 1;
    overflow: hidden;
}

/* Animação das Notas */
.musical-notes-bg i {
    position: absolute;
    color: var(--accent-neon);
    opacity: 0; /* Começa invisível */
    animation: floatUp 15s infinite linear;
}

/* Posições e Tamanhos Variados */
.note-1 { left: 10%; bottom: -100px; font-size: 3rem; animation-delay: 0s; }
.note-2 { left: 25%; bottom: -100px; font-size: 2rem; animation-delay: 5s; }
.note-3 { left: 50%; bottom: -100px; font-size: 4rem; animation-delay: 2s; }
.note-4 { left: 75%; bottom: -100px; font-size: 2.5rem; animation-delay: 7s; }
.note-5 { left: 90%; bottom: -100px; font-size: 3.5rem; animation-delay: 4s; }

@keyframes floatUp {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.3; /* Aparece suavemente */
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-1000px) rotate(360deg); /* Sobe até sumir */
        opacity: 0;
    }
}
.hover-glow:hover {
    border-color: var(--accent-neon);
    box-shadow: 0 0 20px rgba(57, 255, 20, 0.1);
    transform: translateY(-5px);
}
.transition-all {
    transition: all 0.3s ease;
}

    .hover-effect:hover {
        background-color: rgba(57, 255, 20, 0.05) !important;
        border-color: var(--accent-neon) !important;
        transform: translateY(-5px);
        transition: all 0.3s ease;
    }

.text-neon {
    color: var(--accent-neon);
}

/* --- CUSTOM DROPDOWN (DARK GLASS) --- */
.custom-dropdown {
    background: rgba(2, 12, 27, 0.95); /* Fundo escuro quase sólido */
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass);
    border-radius: 0; /* Bordas retas para visual tech */
    padding: 0.5rem 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    margin-top: 10px; /* Espaço do topo */
}

.custom-dropdown .dropdown-item {
    color: var(--text-muted);
    padding: 10px 20px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    transition: var(--transition);
}

.custom-dropdown .dropdown-item:hover {
    background: rgba(57, 255, 20, 0.05); /* Fundo verde sutil */
    color: var(--accent-neon);
    padding-left: 25px; /* Efeito de slide leve */
}

/* Item Ativo (Página Atual) */
.custom-dropdown .dropdown-item.active-game {
    color: var(--accent-neon);
    background: rgba(57, 255, 20, 0.1);
    border-left: 3px solid var(--accent-neon);
    font-weight: bold;
}

/* Ajuste da seta do dropdown */
.nav-link.dropdown-toggle::after {
    color: var(--accent-neon);
    transition: transform 0.3s;
}

.nav-item.dropdown:hover .nav-link.dropdown-toggle::after {
    transform: rotate(180deg);
}
