:root {
    --primary: #e63946;
    --dark: #0a0a0a;
    --darker: #050505;
    --light: #f1faee;
    --gray: #333333;
    --light-gray: #646464;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--dark);
    color: var(--light);
    line-height: 1.6;
}

/* Ensure navbar stays on top */
.navbar {
    background-color: rgba(5, 5, 5, 0.95);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000; /* Higher z-index to stay on top */
    transition: all 0.3s ease;
}

.navbar-scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.navbar-brand {
    font-weight: 700;
}

.nav-link {
    color: var(--light) !important;
    margin: 0 0.5rem;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
}

    .nav-link:hover {
        color: var(--primary) !important;
    }

    .nav-link::after {
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        bottom: 0;
        left: 0;
        background-color: var(--primary);
        transition: width 0.3s ease;
    }

    .nav-link:hover::after {
        width: 100%;
    }

/* Fix video positioning issue */
.hero-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
    margin-top: 100px; /* Remove this if you had margin-top */
    padding-top: 76px; /* Adjust based on your navbar height */
}

#hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1; /* Place video behind content */
}


.hero-content {
    z-index: 1;
    padding: 2rem;
    max-width: 800px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 8px;
}

    .hero-content h1 {
        font-size: 3.5rem;
        font-weight: 700;
        margin-bottom: 1.5rem;
        text-transform: uppercase;
        letter-spacing: 2px;
    }

    .hero-content p {
        font-size: 1.25rem;
        margin-bottom: 2rem;
    }

/* Buttons */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

    .btn-primary:hover {
        background-color: transparent;
        border-color: var(--primary);
        color: var(--primary);
    }

.btn-outline-light {
    border-color: var(--light);
    color: var(--light);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

    .btn-outline-light:hover {
        background-color: var(--primary);
        border-color: var(--primary);
    }

/* Sections */
section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 1rem;
}

    .section-title::after {
        content: '';
        position: absolute;
        width: 50px;
        height: 3px;
        background-color: var(--primary);
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
    }

/* Game Cards */
.featured-games {
    background-color: var(--darker);
}

.rowcenter {
    overflow: hidden;
    flex-shrink: 0; /* Prevents the cards from shrinking */
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px; /* Space between the cards */
}

.games-hero {
    margin-top: 100px;
}

.game-card {
    background-color: var(--gray);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.game-image {
    position: relative;
    overflow: hidden;
}

    .game-image img {        
        width: 100%;
        height: 250px;
        object-fit: scale-down;
        transition: all 0.5s ease;
    }

.game-card:hover .game-image img {
    transform: scale(1.1);
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.game-card:hover .game-overlay {
    opacity: 1;
}

.game-info {
    padding: 1.5rem;
}

    .game-info h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
        font-weight: 600;
    }

.platforms {
    margin-top: 1rem;
}

.platform-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    background-color: var(--light-gray);
    color: var(--light);
    font-size: 0.8rem;
    border-radius: 4px;
}

/* News Section */
    .latest-news {
    background-color: var(--dark);
}

.news-card {
    background-color: var(--gray);
    border-radius: 8px;
    padding: 1.5rem;
    height: 100%;
    transition: all 0.3s ease;
}

    .news-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }

.news-date {
    color: var(--primary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.news-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.read-more {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

    .read-more:hover {
        color: var(--light);
    }

/* About Section */
.about-studio {
    background-color: var(--darker);
}

    .about-studio h2 {
        font-size: 2.5rem;
        font-weight: 700;
        margin-bottom: 1.5rem;
        text-transform: uppercase;
        letter-spacing: 2px;
    }

/* Newsletter Section */
.newsletter-section {
    background-color: var(--primary);
    color: white;
}

    .newsletter-section h2 {
        font-size: 2.5rem;
        font-weight: 700;
        margin-bottom: 1rem;
        text-transform: uppercase;
        letter-spacing: 2px;
    }

.newsletter-form {
    margin: 2rem 0;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

    .social-icon:hover {
        background-color: white;
        color: var(--primary);
    }

/* Footer */
.footer {
    background-color: var(--darker);
    padding: 4rem 0 2rem;
}

    .footer h5 {
        margin-bottom: 1.5rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .footer a {
        color: var(--light);
        text-decoration: none;
        transition: all 0.3s ease;
    }

        .footer a:hover {
            color: var(--primary);
        }

    .footer ul li {
        margin-bottom: 0.5rem;
    }

.social-icons {
    display: flex;
    gap: 1rem;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .about-studio h2,
    .newsletter-section h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    section {
        padding: 3rem 0;
    }

    .about-studio img {
        margin-top: 2rem;
    }
}
