/* --- Global Container for Home --- */
.home-section, .hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 5%; /* Side padding for mobile breathing room */
}

/* --- Hero Section --- */
.hero {
    text-align: center;
    padding: 100px 5%;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 25px;
    color: var(--text-black);
}

.hero h1 span { color: var(--spidey-red); }

.hero p {
    font-size: 1.2rem;
    color: #555;
    max-width: 800px;
    margin: 0 auto 35px;
}

/* --- Section Headers --- */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--grey-light);
    padding-bottom: 15px;
}

.section-title {
    font-size: 2rem;
    position: relative;
}

.section-title span { color: var(--spidey-red); }

/* Red line indicator */
.section-title::after {
    content: '';
    position: absolute;
    bottom: -17px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--spidey-red);
}

.view-all {
    font-weight: 600;
    color: var(--spidey-red);
    font-size: 1rem;
}

.view-all:hover {
    text-decoration: underline;
    transform: translateX(5px);
}

/* --- Games Grid --- */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
}

.game-card {
    background-color: var(--grey-light);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: var(--spidey-red);
}

.game-img { width: 100%; height: 160px; object-fit: cover; }
.game-info { padding: 20px; }
.game-category { color: var(--spidey-red); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.game-title { font-size: 1.2rem; margin: 10px 0 15px; color: var(--text-black); }

/* --- Mobile Fixes --- */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.2rem; }
    .section-title { font-size: 1.5rem; }
    .games-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 15px; }
}

/* grid size control for 80% area */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.game-card {
    background-color: var(--grey-light);
    border-radius: 12px;
    overflow: hidden;
    transition: 0.3s;
    border: 1px solid transparent;
}

.game-card:hover {
    transform: translateY(-8px);
    border-color: var(--spidey-red);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.game-img { width: 100%; height: 160px; object-fit: cover; }
.game-info { padding: 15px; }
.game-title { font-size: 1.1rem; margin: 10px 0; font-weight: 800; }
.game-category { color: var(--spidey-red); font-size: 12px; font-weight: 600; text-transform: uppercase; }

.hero-slider {
    width: 100%;
    height: 500px;
    background: #000;
}

.swiper-slide {
    position: relative;
    overflow: hidden;
}

.slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6; /* Image thodi dark taaki text dikhe */
}

.slide-content {
    position: absolute;
    bottom: 50px;
    left: 5%;
    color: white;
    z-index: 10;
    max-width: 600px;
}

.slide-content h1 {
    font-size: 3rem;
    color: white;
    margin-bottom: 10px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.slide-content h1 span { color: var(--spidey-red); }

/* Swiper Red Theme */
.swiper-pagination-bullet-active { background: var(--spidey-red) !important; }
.swiper-button-next, .swiper-button-prev { color: var(--spidey-red) !important; }

@media (max-width: 768px) {
    .hero-slider { height: 400px; }
    .slide-content h1 { font-size: 2rem; }
}