@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&family=Montserrat:wght@600&display=swap');

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

body, html {
    height: 100%;
    font-family: 'Roboto', sans-serif;
    color: white;
    background: #000;
    overflow: hidden;
}

/* Video and Overlay */
.video-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

#background-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Content Sections */
.content {
    padding: 2rem;
    max-width: 1200px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: none;
}

.content.active {
    opacity: 1;
    transform: translateY(0);
    display: block;
}

#main-content {
    display: block;
}

.fade-out {
    opacity: 0;
    transform: translateY(-20px);
}

/* Header Styles */
header h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.5rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

header p {
    font-size: 1.2rem;
    color: #FFD700;
    font-weight: bold;
}

/* Section Styles */
.section {
    position: relative;
    padding: 2rem;
    max-width: 1200px;
    width: 100%;
}

.section h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    color: #FFD700;
    margin-bottom: 2rem;
    text-align: center;
}

.section-content {
    background: rgba(0, 0, 0, 0.8);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

/* Back Button */
.back-button {
    position: absolute;
    top: 2rem;
    left: 2rem;
    padding: 0.8rem 1.2rem;
    font-size: 1.5rem;
    background: #FFD700;
    color: #000;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-button:hover {
    background: #FFC000;
    transform: scale(1.1);
}

/* Services Grid */
.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background: rgba(0, 0, 0, 0.8);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.2);
}

/* Button Styles */
.transition-button {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    background: #FFD700;
    color: #000;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.transition-button:hover {
    background: #FFC000;
    transform: scale(1.05);
}

/* Game Grid */
.game-grid, .anime-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.game-card, .anime-card, .freefire-card {
    background: rgba(0, 0, 0, 0.6);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid rgba(255, 215, 0, 0.2);
    transition: transform 0.3s ease;
}

.game-card:hover, .anime-card:hover, .freefire-card:hover {
    transform: translateY(-5px);
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2.5rem;
    }

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

    .section {
        padding: 1rem;
    }

    .back-button {
        top: 1rem;
        left: 1rem;
    }
}
#freefire-section img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
    border-radius: 8px; /* Optional: adds rounded corners */
    margin-bottom: 2rem; /* Adds some space between the image and the heading */
}


.anime-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: start;
}
