* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    text-shadow: none !important;
}

body * {
    text-shadow: none !important;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background-color: #000; /* Fundo preto caso o vídeo falhe */
}

.video-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/overlay.jpeg') no-repeat center center;
    background-size: cover;
    opacity: 0.5;
    z-index: 2; /* Garantir que fica por cima do vídeo */
    pointer-events: none;
}

.video-background video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
    pointer-events: none;
}

.content {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 25px 20px;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    gap: 30px;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.95);
}

.navbar a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
    padding: 8px 15px;
    border: none;
    border-radius: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    letter-spacing: 1px;
    cursor: pointer;
}

.navbar a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff6b35, #f7931e);
    transition: all 0.4s ease;
    transform: translateX(-50%);
}

.navbar a:hover {
    background: transparent;
    color: #ff6b35;
    transform: translateY(-3px);
}

.navbar a:hover::after {
    width: 100%;
}

.navbar a.active {
    color: #ff6b35;
}

.navbar a.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    z-index: 10000;
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: #ff6b35;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: auto; /* Ensure clickable */
}

.mobile-menu-btn:hover {
    transform: scale(1.1);
    background: #f7931e;
}

.mobile-menu-btn.active {
    background: rgba(0, 0, 0, 0.8);
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    border-radius: 3px;
    transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.logo {
    max-width: 400px;
    margin-bottom: 30px;
    margin-top: 80px;
    animation: float 3s ease-in-out infinite;
}

h1 {
    color: white;
    margin-bottom: 20px;
    text-align: center;
    text-shadow: none;
    font-size: 72px;
    font-family: 'Bebas Neue', cursive;
    letter-spacing: 5px;
}

.countdown-title {
    color: white;
    font-size: 28px;
    margin-bottom: 20px;
    text-align: center;
    text-shadow: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

.countdown-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.countdown-item {
    background: rgba(0, 0, 0, 0.7);
    padding: 25px 30px;
    border-radius: 15px;
    text-align: center;
    min-width: 120px;
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
    overflow: hidden;
}

.countdown-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 15px;
    padding: 2px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.countdown-number {
    color: white;
    font-size: 56px;
    font-family: 'Bebas Neue', cursive;
    letter-spacing: 2px;
    line-height: 1;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.countdown-label {
    color: #ccc;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 8px;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
}

.page-container {
    background: transparent;
    padding: 40px;
    border-radius: 0;
    box-shadow: none;
    border: none;
    backdrop-filter: none;
    margin: 100px auto 40px;
    max-width: 900px;
    width: calc(100% - 40px);
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: visible;
}

.page-container h1 {
    color: white;
    margin-bottom: 30px;
    text-align: center;
    font-size: 56px;
    font-family: 'Bebas Neue', cursive;
    letter-spacing: 3px;
    text-shadow: none;
}

.page-container p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: center;
}

.cartaz-container {
    display: flex;
    flex-direction: row;
    gap: 20px;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    flex-wrap: wrap;
    width: 100%;
}

.cartaz-image {
    width: 380px;
    max-width: 100%;
    flex: 0 0 380px;
    height: 520px;
    object-fit: cover;
    object-position: center;
    border-radius: 0;
    box-shadow: none;
    transition: transform 0.3s ease;
}

.cartaz-container .cartaz-image:first-child {
    clip-path: inset(0 8% 0 8%);
    transform: scaleX(1.18);
}

.cartaz-image:hover {
    transform: scale(1.02);
}

.cartaz-container .cartaz-image:first-child:hover {
    transform: scaleX(1.18) scale(1.02);
}

.artistas-flex {
    display: flex;
    flex-direction: column; /* Alterado de row para column */
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
    flex-wrap: wrap;
    width: 100%;
}

.artista-destaque {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 0;
    box-shadow: none;
    transition: transform 0.3s ease;
}

.artista-destaque:hover {
    transform: scale(1.03);
}

.proximos-artistas {
    font-family: 'Bebas Neue', cursive;
    font-size: 42px;
    color: #ffffff;
    letter-spacing: 2px;
    text-align: center;
    text-shadow: none;
}

.jogo-breve {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 400px;
    text-align: center;
    padding: 20px;
}

.jogo-breve h2 {
    font-family: 'Bebas Neue', cursive;
    font-size: 64px;
    color: white;
    letter-spacing: 4px;
    text-shadow: none;
    animation: pulse 2s ease-in-out infinite;
}

.galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); /* Reduced min size */
    gap: 20px;
    width: 100%;
    margin-top: 40px;
}

.galeria-item {
    width: auto;
    height: auto;
    max-width: 100%;
    border-radius: 0;
    box-shadow: none;
    transition: transform 0.3s ease;
}

.galeria-item:hover {
    transform: scale(1.05);
}

.home-map {
    width: 100%;
    max-width: 1100px;
    margin-top: 30px;
}

.stage-title {
    width: 100%;
    text-align: center;
    font-family: 'Bebas Neue', cursive;
    font-size: 44px;
    letter-spacing: 3px;
    color: white;
    margin-top: 30px;
    margin-bottom: 15px;
}

.stage-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    justify-items: center;
    align-items: start;
}

.stage-image {
    width: 100%;
    height: 520px;
    max-width: 420px;
    display: block;
    object-fit: cover;
}

.stage-carousel {
    width: 100%;
    max-width: 420px;
    height: 520px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.stage-carousel .stage-image {
    position: absolute;
    top: 0;
    left: 0;
    max-width: none;
    width: 100%;
    height: 100%;
    opacity: 0;
    animation: stageCarouselFade 12s infinite;
}

.stage-carousel .stage-image:nth-child(1) { animation-delay: 0s; }
.stage-carousel .stage-image:nth-child(2) { animation-delay: 4s; }
.stage-carousel .stage-image:nth-child(3) { animation-delay: 8s; }

@keyframes stageCarouselFade {
    0% { opacity: 0; }
    6% { opacity: 1; }
    30% { opacity: 1; }
    36% { opacity: 0; }
    100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .stage-carousel .stage-image {
        animation: none;
        opacity: 0;
    }
    .stage-carousel .stage-image:nth-child(1) {
        opacity: 1;
    }
}

.map-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 0;
    box-shadow: none;
    cursor: pointer;
    transition: transform 0.3s ease;
}

/* Modal de Zoom */
.modal {
    display: none;
    position: fixed;
    z-index: 20000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 0;
    box-shadow: none;
    touch-action: none;
    user-select: none;
    cursor: grab;
    will-change: transform;
}

.modal-content:active {
    cursor: grabbing;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 20001;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.buy-button {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    padding: 20px 50px;
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.4);
    transition: all 0.3s ease;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 2px;
    animation: pulse 2s ease-in-out infinite;
}

.buy-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.6);
    animation: none;
}

.button-container {
    text-align: center;
    margin-top: 20px;
}

.game-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 70px;
    width: 100%;
    height: 100%;
}

.game-container iframe {
    width: 100%;
    height: calc(100vh - 80px);
    border: none;
    overflow: hidden;
}

.content-wrapper {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease-out;
}

.content-wrapper.fade-out {
    opacity: 0;
}

/* Media Queries */
@media (max-width: 1024px) {
    .navbar {
        gap: 15px;
    }
    .navbar a {
        font-size: 16px;
        padding: 8px 10px;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .navbar {
        position: fixed;
        top: 0;
        left: auto;
        right: -100%;
        width: 100%; /* Full width for easier interaction */
        max-width: 300px;
        height: 100vh;
        background: rgba(10, 10, 10, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 25px;
        transition: all 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        backdrop-filter: blur(15px);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        padding: 80px 20px;
        z-index: 9999; /* Super high z-index */
        visibility: hidden; /* Hide properly */
    }

    .navbar.active {
        right: 0;
        visibility: visible;
    }

    .navbar a {
        font-size: 22px;
        width: 100%;
        text-align: center;
        padding: 15px;
    }

    .logo {
        max-width: 250px;
        margin-top: 60px;
    }

    h1 {
        font-size: 48px;
        letter-spacing: 2px;
        padding: 0 10px;
    }

    .countdown-title {
        font-size: 20px;
    }

    .countdown-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        width: 100%;
        max-width: 400px;
        margin: 0 auto 30px;
    }

    .countdown-item {
        min-width: 0;
        padding: 15px;
    }

    .countdown-number {
        font-size: 32px;
    }

    .countdown-label {
        font-size: 10px;
    }

    .page-container {
        padding: 25px 20px;
        margin-top: 100px;
        margin-left: 15px;
        margin-right: 15px;
        width: calc(100% - 30px);
    }

    .cartaz-image {
        height: 380px;
        width: 100%;
        flex: 0 0 100%;
    }

    .cartaz-container .cartaz-image:first-child {
        clip-path: inset(0 6% 0 6%);
        transform: scaleX(1.12);
    }

    .page-container h1 {
        font-size: 36px;
    }

    .artistas-flex, .cartaz-container {
        gap: 20px; /* Smaller gaps on mobile */
    }

    .galeria-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); /* Even smaller for very small screens */
        gap: 15px;
    }

    .galeria-item {
        height: auto;
    }

    .stage-title {
        font-size: 34px;
    }

    .stage-grid {
        grid-template-columns: 1fr;
    }

    .stage-image {
        max-width: 100%;
        height: 420px;
    }

    .stage-carousel {
        max-width: 100%;
        height: 420px;
    }

    .buy-button {
        padding: 15px 30px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 36px;
    }

    .logo {
        max-width: 200px;
    }
}
