* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

:root {
    --bg-dark: #161c24; 
    --bg-panel: #222b36; 
    --primary-color: #1ed760;
    --primary-hover: #1abc56;
    --text-white: #ffffff;
    --text-gray: #a0aab5;
    --font-heading: 'Teko', sans-serif;
    --font-body: 'Montserrat', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: var(--font-body);
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

#navbar {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background-color: rgba(22, 28, 36, 0);
    transition: background-color 0.3s ease, padding 0.3s ease;
    padding: 20px 0;
}

#navbar.scrolled {
    background-color: rgba(22, 28, 36, 0.95);
    padding: 10px 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.logo-link {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 50px;
    width: auto;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 35px;
    color: var(--text-white);
    letter-spacing: 2px;
}

/* Nav layout */
.nav-right {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 40px;
}

.nav-links a {
    color: var(--text-white);
    text-decoration: none;
    font-weight: 800;
    font-size: 16px;
    letter-spacing: 1px;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Social icons */
.social-icons {
    display: flex;
    align-items: center;
    gap: 20px;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
    padding-left: 20px;
}

.social-icons a {
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s, transform 0.2s;
}

.social-icons a svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.social-icons a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('images/background2.png') center/cover no-repeat;
    background-color: #1a1a1a;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(22,28,36,0.4) 0%, rgba(22,28,36,0.95) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 20px;
}

.badge-skew {
    background-color: var(--primary-color);
    color: #000;
    transform: skewX(-15deg);
    padding: 5px 20px;
    margin-bottom: 20px;
}

.badge-skew span {
    display: inline-block;
    transform: skewX(15deg);
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 2px;
}

.title {
    font-family: var(--font-heading);
    font-size: 130px;
    line-height: 0.9;
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-transform: uppercase;
    text-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

.description {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 40px;
    max-width: 600px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.btn {
    display: inline-block;
    transform: skewX(-15deg);
    text-decoration: none;
    transition: transform 0.2s, filter 0.2s;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    padding: 15px 50px;
    box-shadow: 0 10px 20px rgba(30, 215, 96, 0.3);
}

.btn-secondary {
    background-color: var(--bg-panel);
    border: 2px solid var(--primary-color);
    padding: 10px 30px;
}

.btn-inner {
    display: inline-block;
    transform: skewX(15deg);
    font-family: var(--font-heading);
    font-size: 30px;
    color: #000;
    letter-spacing: 1px;
}

.btn-secondary .btn-inner {
    color: var(--primary-color);
    font-size: 24px;
}

.btn:hover {
    transform: skewX(-15deg) scale(1.05);
    filter: brightness(1.2);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
}

.btn-secondary:hover .btn-inner {
    color: #000;
}

.about-info, .games-section {
    padding: 100px 0;
    background-color: var(--bg-dark);
}

.about-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-gray);
    font-size: 18px;
    line-height: 1.8;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 50px;
    letter-spacing: 2px;
    text-align: center;
    margin-bottom: 60px;
    color: var(--text-white);
}

.games-grid {
    display: flex;
    justify-content: center;
}

.game-card {
    background-color: var(--bg-panel);
    border-bottom: 4px solid var(--primary-color);
    display: flex;
    flex-direction: row;
    max-width: 1000px;
    width: 100%;
    overflow: hidden;
    transition: transform 0.3s;
}

.game-card:hover {
    transform: translateY(-10px);
}

.game-image {
    position: relative;
    flex: 1;
    min-height: 300px;
    background-color: #11151c;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.status-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: #000;
    font-family: var(--font-heading);
    font-size: 20px;
    padding: 5px 15px;
    transform: skewX(-10deg);
    font-weight: bold;
}

.game-details {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.game-details h3 {
    font-family: var(--font-heading);
    font-size: 45px;
    color: var(--text-white);
    line-height: 1;
    margin-bottom: 5px;
}

.game-tagline {
    color: var(--primary-color);
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.game-details p {
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 30px;
}

.media-slider-section {
    padding: 80px 0 120px 0;
    background-color: #1a212b;
    overflow: hidden;
}

.slider-container {
    width: 100vw;
    overflow: hidden;
    position: relative;
}

.slider-track {
    display: flex;
    width: max-content;
    animation: scroll 20s linear infinite; 
}

.slider-track:hover {
    animation-play-state: paused;
}

/* Slider slides (fora do media query) */
.slide {
    width: 500px;
    height: 280px;
    margin: 0 15px;
    transform: skewX(-5deg);
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.1);
    background-color: var(--bg-dark);
}

.slide img {
    width: 110%; 
    height: 100%;
    object-fit: cover;
    transform: skewX(5deg) translateX(-5%); 
    transition: transform 0.5s ease;
}

.slide:hover img {
    transform: skewX(5deg) translateX(-5%) scale(1.05);
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-500px * 4 - 30px * 4)); }
}

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
}

.modal-box {
    background-color: var(--bg-panel);
    margin: 5% auto;
    padding: 50px;
    width: 90%;
    max-width: 800px;
    border-top: 4px solid var(--primary-color);
    color: var(--text-white);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

/* Store modal config */
.store-modal-box {
    background-color: #ffffff;
    color: #0b0e14;
    text-align: center;
    max-width: 600px;
    margin: 10% auto;
    border-top: 4px solid var(--primary-color);
}

.store-modal-box .modal-title {
    color: #0b0e14;
}

.store-modal-box .close-btn {
    color: #a0aab5;
}

.store-modal-box .close-btn:hover {
    color: var(--primary-color);
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 40px;
    margin-bottom: 20px;
}

.modal-body p {
    color: var(--text-gray);
    margin-bottom: 20px;
    line-height: 1.6;
}

.modal-body strong {
    color: var(--text-white);
}

.store-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.store-btn img {
    height: 60px;
    width: auto;
    transition: transform 0.2s;
}

.store-btn:hover img {
    transform: scale(1.05);
}

.close-btn {
    color: var(--text-gray);
    position: absolute;
    right: 30px;
    top: 30px;
    font-size: 40px;
    cursor: pointer;
    line-height: 0.5;
}

.close-btn:hover {
    color: var(--primary-color);
}

.back-to-top {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    font-size: 20px;
    border: none;
    outline: none;
    background-color: var(--primary-color);
    color: #000;
    cursor: pointer;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    transition: transform 0.3s, background-color 0.3s;
}

.back-to-top:hover {
    background-color: var(--primary-hover);
    transform: translateY(-5px);
}

footer {
    background-color: #0f1319;
    padding: 60px 0;
    text-align: center;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 70px;
    margin-bottom: 10px;
}

.footer-logo h2 {
    font-family: var(--font-heading);
    font-size: 30px;
    color: var(--text-white);
    letter-spacing: 2px;
}

/* Footer links */
.footer-links {
    margin-bottom: 20px;
}

.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary-color);
}

footer p {
    color: #666;
    font-size: 14px;
}

/* News section */
.news-section {
    padding: 100px 0;
    background-color: var(--bg-dark);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

/* Cinematic Card Base */
.news-card {
    position: relative;
    height: 400px;
    background-color: var(--bg-panel);
    border-radius: 10px;
    border-bottom: 4px solid var(--primary-color);
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
}

.news-card:hover {
    transform: translateY(-10px);
}

/* Image acts as dynamic background */
.news-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: radial-gradient(circle at center, #2a3542 0%, #161c24 100%);
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.3s ease;
    opacity: 0.5; 
}

.news-card:hover .news-image img {
    transform: scale(1.15);
    opacity: 0.2; 
}

/* Overlay gradient */
.news-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70%;
    background: linear-gradient(to top, var(--bg-panel) 5%, rgba(34, 43, 54, 0.7) 50%, transparent 100%);
    z-index: 2;
    transition: height 0.4s ease;
}

.news-card:hover::after {
    height: 100%;
}

/* Content layout and animations */
.news-content {
    position: relative;
    z-index: 3;
    padding: 30px;
    width: 100%;
    transform: translateY(65px);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.news-card:hover .news-content {
    transform: translateY(0);
}

.news-date {
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 10px;
    display: inline-block;
}

.news-content h3 {
    font-family: var(--font-heading);
    font-size: 32px;
    color: var(--text-white);
    line-height: 1.1;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.news-content p {
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 20px;
    opacity: 0;
    max-height: 0;
    transition: opacity 0.4s ease, max-height 0.4s ease;
}

.news-card:hover .news-content p {
    opacity: 1;
    max-height: 100px;
}

.news-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 1px;
    display: inline-block;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.4s ease 0.1s;
}

.news-card:hover .news-link {
    opacity: 1;
    transform: translateX(0);
}

/* News modal redesign */
.news-modal-full {
    max-width: 900px;
    padding: 0;
    overflow: hidden;
    border-radius: 10px;
    border-top: none;
    border-bottom: 4px solid var(--primary-color);
    background-color: var(--bg-panel);
}

.modal-news-layout {
    display: flex;
    flex-direction: column;
}

.modal-news-image {
    width: 100%;
    position: relative;
    background-color: var(--bg-panel); 
}

.modal-news-image img {
    width: 100%;
    height: auto; 
    max-height: 65vh; 
    object-fit: contain; 
    display: block;
    margin: 0 auto;
}

.modal-news-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top, var(--bg-panel) 0%, transparent 100%);
    pointer-events: none; 
}

.modal-news-info {
    padding: 0 50px 50px 50px;
    position: relative;
    z-index: 2;
    margin-top: -20px;
}

/* Trailer section */
.trailer-section {
    padding: 100px 0;
    background-color: var(--bg-dark);
}

.video-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    background-color: #000;
    border: 4px solid var(--bg-panel);
    border-bottom: 4px solid var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-wrapper video {
    width: 100%;
    height: auto;
    display: block;
    outline: none;
}

/* Container da divisao */
.animated-divider {
    width: 100%;
    height: 120px;
    position: relative;
    overflow: hidden;
    background-color: var(--bg-dark);
    display: flex;
    align-items: center;
}

/* Container que agrupa missil e rastro */
.missile-container {
    position: absolute;
    display: flex;
    align-items: center;
    left: -1000px;
    animation: loopMissile 3s linear infinite;
}

/* Rastro que desaparece */
.missile-trail {
    width: 800px;
    height: 4px;
    background: linear-gradient(90deg, rgba(30, 215, 96, 0) 0%, rgba(30, 215, 96, 0.6) 100%);
    box-shadow: 0 0 15px rgba(30, 215, 96, 0.4);
    border-radius: 2px;
}

/* Missil maior */
.missile-icon {
    height: 80px; 
    margin-left: -5px; 
    filter: drop-shadow(0 0 10px rgba(30, 215, 96, 0.5));
}

/* Animacao de loop */
@keyframes loopMissile {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(100vw + 1200px));
    }
}

/* Scroll animation states */
.scroll-anim {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-anim.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Merch Section */
.merch-section {
    padding: 100px 0;
    background-color: var(--bg-dark);
}

.merch-container {
    display: flex;
    gap: 40px;
    background: linear-gradient(145deg, var(--bg-panel) 0%, #11151c 100%);
    border: 1px solid rgba(30, 215, 96, 0.15);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

.merch-media {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.merch-video-wrapper, .merch-img-wrapper {
    border-radius: 8px;
    overflow: hidden;
    background-color: #000;
    border: 2px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
}

.merch-video-wrapper video, .merch-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.merch-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.merch-badge {
    align-self: flex-start;
}

.merch-title {
    font-family: var(--font-heading);
    font-size: 55px;
    color: var(--text-white);
    line-height: 1;
    margin-top: 15px;
    text-shadow: 0 0 15px rgba(30, 215, 96, 0.2);
}

.merch-price {
    font-family: var(--font-heading);
    font-size: 45px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.merch-desc {
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 30px;
}

.merch-desc strong {
    color: var(--text-white);
}

.size-selector h4 {
    color: var(--text-white);
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.size-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.size-btn {
    background-color: transparent;
    border: 2px solid var(--text-gray);
    color: var(--text-white);
    font-family: var(--font-heading);
    font-size: 22px;
    width: 55px;
    height: 45px;
    cursor: pointer;
    transition: all 0.3s ease;
    transform: skewX(-10deg);
}

.size-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: skewX(-10deg) translateY(-3px);
}

/* Active state for selected size */
.size-btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #000;
    box-shadow: 0 0 15px rgba(30, 215, 96, 0.4);
}

.merch-order-btn {
    align-self: flex-start;
}

.size-warning {
    color: #ff4d4d;
    font-size: 14px;
    margin-top: 15px;
    display: none;
    font-weight: bold;
    animation: shake 0.4s ease-in-out;
}

/* Seletor de Idioma na Navbar */
.lang-switcher {
    display: flex;
    gap: 10px;
}

.lang-flag {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    overflow: hidden;
    display: block;
    transition: transform 0.2s, filter 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.lang-flag img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lang-flag:hover {
    transform: scale(1.2);
    filter: brightness(1.2);
}

/* Galeria Merch Atualizada (3 Colunas) */
.merch-gallery {
    flex: 1.5; /* Dá mais espaço para as 3 imagens */
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.merch-media-item {
    border-radius: 8px;
    overflow: hidden;
    background-color: #000;
    border: 1px solid rgba(255,255,255,0.05);
    height: 100%; /* Preenche o espaco vertical */
    min-height: 350px; 
}

.merch-media-item img, .merch-media-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Hamburger base */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background-color: var(--text-white);
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Ajuste mobile para a galeria */
@media (max-width: 1100px) {
    .merch-gallery {
        grid-template-columns: 1fr; /* No tablet/mobile ficam empilhadas */
    }
    .merch-media-item {
        height: 400px;
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Mobile adaptation */
@media (max-width: 900px) {
    .game-card {
        flex-direction: column;
    }
    .game-image {
        min-height: 250px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .logo-img {
        height: 55px;
        width: auto;
    }

    /* Mobile nav layout */
    .nav-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0 20px;
    }

    .hamburger {
        display: flex;
    }

    /* Side drawer menu */
    .nav-right {
        position: fixed;
        top: 0;
        right: -100%;
        width: 250px;
        height: 100vh;
        background-color: var(--bg-panel);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        transition: right 0.4s ease;
        box-shadow: -5px 0 15px rgba(0,0,0,0.5);
        z-index: 1000;
    }

    .nav-right.active {
        right: 0;
    }

    /* Hamburger animations to X */
    .hamburger.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .nav-links {
        flex-direction: column;
        gap: 25px;
        text-align: center;
    }

    .lang-switcher {
        margin-top: 10px;
    }

    .social-icons {
        border-left: none;
        border-top: 2px solid rgba(255, 255, 255, 0.1);
        padding-left: 0;
        padding-top: 20px;
        width: 80%;
        justify-content: center;
    }


    .title {
        font-size: 70px;
        margin-bottom: 10px;
    }

    .description {
        font-size: 16px;
    }

    .btn-inner {
        font-size: 24px;
    }

    .section-title {
        font-size: 40px;
        margin-bottom: 40px;
    }

    .trailer-section {
        padding: 80px 0;
    }

    .slide {
        width: 300px;
        height: 180px;
    }
    
    @keyframes scroll {
        100% { transform: translateX(calc(-300px * 4 - 30px * 4)); }
    }

    .store-btn img {
        height: 50px;
    }

    .modal-box {
        padding: 40px 20px;
    }

    .close-btn {
        right: 20px;
        top: 20px;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }

    /* Mobile adaptation for merch */
    .merch-container {
        flex-direction: column;
        padding: 25px;
    }
    .merch-media {
        grid-template-columns: 1fr;
    }
    .merch-title {
        font-size: 45px;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 55px;
    }
    .btn {
        padding: 12px 30px;
    }
    .store-links {
        flex-direction: column;
        align-items: center;
    }
}

/* Adaptacao para desktop nos modais de noticias */
@media (min-width: 768px) {
    .modal-news-layout {
        flex-direction: column; 
    }
}