/* Estilos Gerais */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #0a0a0a;
    color: #e0e0e0;
    line-height: 1.7;
}

/* Cabeçalho e Navegação */
header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

header.scrolled {
    background-color: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(10px);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    margin: 0 auto;
    padding: 1rem 0;
}

nav .logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

nav ul li a {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #3498db;
}

/* Seção Hero */
#hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    /* Imagem de fundo alterada para 'painel.jpg' */
    background: linear-gradient(rgba(10, 10, 10, 0.7), rgba(10, 10, 10, 0.7)), url('painel.jpg') no-repeat center center/cover;
    color: #fff;
    position: relative;
    overflow: hidden;
}

/* Efeito de esmaecimento na parte inferior */
#hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px; /* Altura do gradiente */
    background: linear-gradient(to top, #0a0a0a, transparent);
}

#hero h1 {
    font-size: 15vw;
    font-weight: 700;
    margin: 0;
    color: transparent;
    -webkit-text-stroke: 2px #3498db;
    text-stroke: 2px #3498db;
    animation: fadeIn 2s ease-out;
}

#hero p {
    font-size: 1.5rem;
    font-weight: 600;
    animation: fadeInUp 1s ease-out 0.5s;
    animation-fill-mode: both;
}

/* Animações */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Seções Gerais */
section {
    padding: 5rem 5%;
    border-bottom: 1px solid #222;
}

section h2 {
    text-align: center;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #888;
    margin-top: -1rem;
    margin-bottom: 3rem;
}

/* Seção Sobre - Com Galeria */
.about-container {
    display: flex;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}
.about-text {
    flex: 1;
    min-width: 300px;
}
.about-gallery {
    flex: 1.2;
    min-width: 320px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
.about-gallery img {
    width: 100%;
    height: 350px; /* Altura ajustada para o layout de 2 fotos */
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}
.about-gallery img:hover {
    transform: scale(1.05);
}

/* Seção Música - Player Responsivo */
.music-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.music-player-main {
    display: none; /* Esconde o player por padrão */
    flex: 1;
    min-width: 300px;
    position: relative;
    padding-top: calc(1 / 16 * 9 * 100%); /* Proporção 16:9 */
    height: 0;
}

/* Quando o container tiver a classe 'is-playing', o player aparece */
.music-container.is-playing .music-player-main {
    display: block;
}

.music-player-main iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

.music-playlist {
    flex: 1;
    min-width: 300px;
    width: 100%; /* Ocupa 100% da largura por padrão */
}

/* Quando o player estiver visível, a playlist se ajusta */
.music-container.is-playing .music-playlist {
    flex: 1;
    width: auto;
}

.music-playlist h3 {
    margin-top: 0;
    color: #ffffff;
    border-bottom: 1px solid #333;
    padding-bottom: 0.5rem;
    font-weight: 600;
}

.music-playlist ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.music-playlist .track-item {
    padding: 1rem;
    cursor: pointer;
    border-bottom: 1px solid #222;
    transition: background-color 0.3s ease;
}

.music-playlist .track-item:hover {
    background-color: #1a1a1a;
}

.music-playlist .track-item.active {
    background-color: #3498db;
    color: #ffffff;
}

.music-playlist .track-item .track-title {
    display: block;
    font-weight: 600;
}

.music-playlist .track-item .track-artist {
    display: block;
    font-size: 0.9rem;
    color: #aaa;
}

.music-playlist .track-item.active .track-artist {
    color: #e0e0e0;
}

/* Seção Eventos - Galeria de Cards */
#events {
    background-color: #000; /* Fundo escuro para destacar a galeria */
}

.events-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.event-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.event-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
}

.event-card img {
    width: 100%;
    height: 400px; /* Altura fixa para todos os cards */
    object-fit: cover; /* Garante que a imagem cubra o espaço sem distorcer */
    display: block;
}

/* Seção Contato */
#contact {
    text-align: center;
}
.contact-button {
    display: inline-block;
    margin-top: 2rem;
    padding: 1rem 2.5rem;
    background-color: #3498db;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    transition: background-color 0.3s ease;
}
.contact-button:hover {
    background-color: #2980b9;
}

/* Rodapé */
footer {
    text-align: center;
    padding: 3rem 0;
    background-color: #000;
}
.social-links a {
    margin: 0 1rem;
    color: #e0e0e0;
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s;
}
.social-links a:hover {
    color: #3498db;
}
footer p {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #777;
}

/* Menu Mobile e Responsividade */
.menu-toggle { display: none; }
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    nav ul {
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 60px; /* Altura do header */
        left: 0;
        
        /* Efeito de vidro (Glassmorphism) */
        background-color: rgba(17, 17, 17, 0.7); /* Fundo preto com 70% de opacidade */
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px); /* Para compatibilidade com Safari */
        
        /* Estado inicial: invisível e ligeiramente deslocado para cima */
        opacity: 0;
        visibility: hidden;
        transform: translateY(-15px);
        
        /* Transição suave para opacidade e posição */
        transition: opacity 0.4s ease, transform 0.4s ease;
    }

    nav ul.active {
        /* Estado ativo: totalmente visível e na posição final */
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .menu-toggle.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }
    nav ul li { text-align: center; padding: 1rem 0; }
    .menu-toggle { display: flex; flex-direction: column; cursor: pointer; }
    .menu-toggle .bar { height: 3px; width: 25px; background-color: #ffffff; margin: 4px 0; transition: all 0.3s ease; }
    .menu-toggle.active .bar:nth-child(1) { transform: rotate(-45deg) translate(-5px, 6px); }
    .menu-toggle.active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.active .bar:nth-child(3) { transform: rotate(45deg) translate(-5px, -6px); }
    #hero h1 { font-size: 20vw; }
    .about-container { flex-direction: column; }

    section {
        padding: 4rem 5%;
    }

    section h2 {
        font-size: 2.5rem;
    }
}