/* Reset básico e Configuração de Scroll Suave */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #0a0a0a;
    color: #f0f0f0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    z-index: 500;
    text-align: center;
    border-bottom: 1px solid #222;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    margin: 0 15px;
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #888;
}

/* Hero, Logo e Frase de Impacto */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at center, #1a1a1a 0%, #0a0a0a 100%);
    padding-top: 60px;
}

.logo-container {
    text-align: center;
}

.main-logo {
    max-width: 450px; 
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.1));
    transition: transform 0.5s ease;
}

.main-logo:hover {
    transform: scale(1.05);
}

.catchphrase {
    margin-top: 20px;
    font-size: 1.5rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 6px;
    font-style: italic;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

/* Seções Genéricas */
.section {
    padding: 6rem 2rem;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.bg-darker {
    background-color: #050505;
}

.section-title {
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 3rem;
    text-align: center;
    color: #fff;
}

/* Carrossel de Jogos */
.carousel-wrapper {
    position: relative;
    max-width: 1200px;
    width: 100%;
    display: flex;
    align-items: center;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    border: 1px solid #333;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-btn:hover {
    background-color: #fff;
    color: #000;
}

.left-btn { left: -70px; }
.right-btn { right: -70px; }

.games-grid {
    display: flex; 
    gap: 40px;
    overflow-x: auto; 
    scroll-behavior: smooth;
    padding: 20px 0; 
    width: 100%;
    scrollbar-width: none; 
}

.games-grid::-webkit-scrollbar {
    display: none; 
}

.game-card {
    flex: 0 0 calc(33.333% - 27px); 
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    background-color: #111;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card.active-card {
    border: 2px solid #555;
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.8);
    background-color: #151515;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.8);
    background-color: #151515;
}

.img-wrapper {
    width: 100%;
    aspect-ratio: 3 / 4; 
    overflow: hidden;
    position: relative;
    background-color: #050505;
}

.game-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top; 
    display: block;
    transition: transform 0.5s ease;
}

.game-card:hover img {
    transform: scale(1.08);
}

.game-title {
    text-align: center;
    padding: 1.5rem;
    font-size: 1.2rem;
    color: #ddd;
    letter-spacing: 1px;
}

/* Painel Expansível de Detalhes */
.details-panel {
    width: 100%;
    max-width: 1200px;
    margin-top: 3rem;
    background-color: #111;
    border-radius: 8px;
    border: 1px solid #222;
    display: none; 
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    grid-column: 1 / -1; 
}

.details-panel.show {
    opacity: 1;
    transform: translateY(0);
}

.close-panel-btn {
    position: absolute;
    top: 15px;
    right: 25px;
    color: #aaa;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.close-panel-btn:hover {
    color: #fff;
}

.panel-content {
    display: flex;
    padding: 3rem;
    gap: 3rem;
    align-items: flex-start; /* Melhor alinhamento quando a descrição for grande */
}

#panel-img {
    width: 300px;
    border-radius: 8px;
    object-fit: cover;
    aspect-ratio: 3 / 4;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.panel-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#panel-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

#panel-desc {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #bbb;
}

/* Imagem de Gameplay no Painel */
.gameplay-container {
    width: 100%;
    margin: 1.5rem 0; 
    display: none; /* Controlado via JS */
}

#panel-gameplay-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    border: 1px solid #222;
    aspect-ratio: 16 / 9; /* Proporção horizontal */
}

/* Botões do Painel */
.play-btn {
    display: inline-block; 
    text-decoration: none; 
    padding: 12px 24px;
    background-color: #fff;
    color: #000;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
    align-self: flex-start;
}

.play-btn:hover {
    background-color: #ccc;
}

.play-btn.disabled {
    background-color: #333;
    color: #888;
    cursor: not-allowed;
    pointer-events: none; 
    margin-top: 10px;
}

/* About Us */
.about-container {
    max-width: 800px;
    text-align: center;
}

.about-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #bbb;
}

/* Contact Us */
.contact-container {
    max-width: 600px;
    width: 100%;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 1rem;
    background-color: #111;
    border: 1px solid #333;
    color: #fff;
    font-family: inherit;
    border-radius: 4px;
    transition: border-color 0.3s;
}

.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: #666;
}

.submit-btn {
    padding: 1rem;
    background-color: #fff;
    color: #000;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #ccc;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background-color: #000;
    color: #555;
    border-top: 1px solid #111;
}

/* Animações de Scroll */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsividade */
@media (max-width: 1350px) {
    .left-btn { left: 10px; }
    .right-btn { right: 10px; }
}

@media (max-width: 900px) {
    .games-grid {
        flex-direction: column; 
        overflow-x: visible;
    }
    .game-card {
        flex: 0 0 100%;
        width: 100%;
    }
    .carousel-btn {
        display: none; 
    }
}

@media (max-width: 768px) {
    .details-panel {
        margin-top: 1rem; 
    }
    .panel-content {
        flex-direction: column;
        padding: 2rem;
        text-align: center;
        align-items: center;
    }
    #panel-img {
        width: 100%;
        max-width: 250px;
    }
    .play-btn {
        align-self: center;
    }
    .nav-links a {
        font-size: 0.9rem;
        margin: 0 8px;
    }
}