
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}


.hero-banner {
    background: var(--primary-gradient);
    border-radius: 25px;
    overflow: hidden;
    margin-bottom: 3rem;
    box-shadow: var(--shadow);
    position: relative;
}


.hero-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 8s ease-in-out infinite;
}

.hero-banner::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 6s ease-in-out infinite reverse;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}


.banner-content {
    position: relative;
    z-index: 1;
    padding: 4rem 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}


.banner-top {
    display: flex;
    justify-content: center;
    gap: 2rem;
    animation: fadeInDown 0.6s ease-out;
}

.banner-icon {
    font-size: 3.5rem;
    animation: float-icon 3s ease-in-out infinite;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.2));
}

.banner-icon:nth-child(1) { animation-delay: 0s; }
.banner-icon:nth-child(2) { animation-delay: 0.3s; }
.banner-icon:nth-child(3) { animation-delay: 0.6s; }
.banner-icon:nth-child(4) { animation-delay: 0.9s; }

@keyframes float-icon {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-15px) rotate(-5deg); }
    50% { transform: translateY(-25px) rotate(0deg); }
    75% { transform: translateY(-15px) rotate(5deg); }
}


.banner-middle {
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
    position: relative;
}

.banner-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.8rem;
    letter-spacing: -1px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
    line-height: 1.2;
}

.banner-title-highlight {
    display: inline-block;
    background: linear-gradient(135deg, #fff 0%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.banner-title-highlight::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, white, transparent);
    animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.3; transform: translateX(-100%); }
    50% { opacity: 1; transform: translateX(100%); }
}

.banner-subtitle {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 0.5rem;
    font-weight: 500;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.banner-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    line-height: 1.6;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}


.banner-bottom {
    display: flex;
    gap: 3rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out;
    padding-top: 1rem;
}

.banner-stat {
    text-align: center;
    padding: 1.2rem 2rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    min-width: 140px;
}

.banner-stat:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    display: block;
    margin-bottom: 0.3rem;
    text-shadow: 0 3px 15px rgba(0,0,0,0.3);
}

.stat-label {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}


.banner-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1.2s ease-out;
}

.cta-button {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.cta-primary {
    background: white;
    color: #667eea;
}

.cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255,255,255,0.4);
}

.cta-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

.cta-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-3px);
}

.cta-icon {
    font-size: 1.3rem;
}


.banner-divider {
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
    margin: 0 auto;
}


.banner-middle::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
    filter: blur(30px);
    z-index: -1;
}


.cta-button {
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cta-button:active::before {
    width: 300px;
    height: 300px;
}


.banner-stat::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 15px;
    padding: 1px;
    background: linear-gradient(45deg, 
        transparent 30%, 
        rgba(255,255,255,0.4) 50%, 
        transparent 70%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s;
}

.banner-stat:hover::before {
    opacity: 1;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.categories-section {
    margin-bottom: 3rem;
}

.categories-header {
    text-align: center;
    margin-bottom: 2rem;
}

.categories-title {
    font-size: 2rem;
    font-weight: bold;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.categories-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.category-item {
    background: var(--card-bg);
    border-radius: 15px;
    padding:1.5rem;
    text-align: center;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.category-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--card-gradient);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 0;
}

.category-item:hover::before {
    opacity: 1;
}

.category-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-image: var(--primary-gradient);
    border-image-slice: 1;
}

.category-item-content {
    position: relative;
    z-index: 1;
}

.category-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    display: block;
    animation: float-icon 3s ease-in-out infinite;
}

.category-name {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.category-count {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.category-arrow {
    margin-top: 0.8rem;
    font-size: 1.5rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s;
}

.category-item:hover .category-arrow {
    opacity: 1;
    transform: translateX(0);
}


.category-item:nth-child(1) { animation: fadeInUp 0.5s ease-out; }
.category-item:nth-child(2) { animation: fadeInUp 0.6s ease-out; }
.category-item:nth-child(3) { animation: fadeInUp 0.7s ease-out; }
.category-item:nth-child(4) { animation: fadeInUp 0.8s ease-out; }
.category-item:nth-child(5) { animation: fadeInUp 0.9s ease-out; }
.category-item:nth-child(6) { animation: fadeInUp 1s ease-out; }
.category-item:nth-child(7) { animation: fadeInUp 1.1s ease-out; }
.category-item:nth-child(8) { animation: fadeInUp 1.2s ease-out; }


.game-section {
    margin-bottom: 4rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 2rem;
    font-weight: bold;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.view-all {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.view-all:hover {
    background: var(--card-gradient);
}


.games-grid-style1 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.games-grid-style2 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.games-grid-style3 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.games-grid-style4 {
    display: flex;
    overflow-x: auto;
    gap: 1.5rem;
    padding-bottom: 1rem;
    scrollbar-width: thin;
    scrollbar-color: #667eea transparent;
}

.games-grid-style4::-webkit-scrollbar {
    height: 8px;
}

.games-grid-style4::-webkit-scrollbar-track {
    background: transparent;
}

.games-grid-style4::-webkit-scrollbar-thumb {
    background: var(--primary-gradient);
    border-radius: 10px;
}

.games-grid-style4 .game-card {
    min-width: 280px;
}


.game-card-variant1 {
    position: relative;
    overflow: hidden;
}

.game-card-variant1::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--card-gradient);
    opacity: 0;
    transition: opacity 0.3s;
}

.game-card-variant1:hover::before {
    opacity: 1;
}

.game-card-variant2 {
    border: 2px solid transparent;
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

.game-card-variant2:hover {
    border-image: var(--primary-gradient);
    border-image-slice: 1;
}

.game-card-variant3 .game-card-img {
    border-radius: 15px 15px 0 0;
}


.game-card-large {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 1.5rem;
}

.game-card-large .game-card-img {
    height: 100%;
    min-height: 250px;
}

.game-card-large .game-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.game-card-large .game-card-title {
    font-size: 1.5rem;
}

.game-card-large .game-card-desc {
    -webkit-line-clamp: 3;
}


.play-btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.8rem 2rem;
    background: var(--primary-gradient);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s;
}

.play-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}


@media (max-width: 1024px) {
    .games-grid-style3 {
        grid-template-columns: 1fr;
    }

    .game-card-large {
        grid-template-columns: 1fr;
    }

    .game-card-large .game-card-img {
        height: 250px;
        min-height: auto;
    }

    .banner-title {
        font-size: 2.5rem;
    }

    .banner-stat {
        min-width: 120px;
        padding: 1rem 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-banner::before,
    .hero-banner::after {
        display: none;
    }

    .banner-content {
        padding: 3rem 1.5rem;
        gap: 1.5rem;
    }

    .banner-top {
        gap: 1rem;
    }

    .banner-icon {
        font-size: 2.5rem;
    }

    .banner-title {
        font-size: 2rem;
    }

    .banner-subtitle {
        font-size: 1.1rem;
    }

    .banner-description {
        font-size: 1rem;
    }

    .banner-bottom {
        gap: 1rem;
    }

    .banner-stat {
        min-width: 100px;
        padding: 0.8rem 1.2rem;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .stat-label {
        font-size: 0.85rem;
    }

    .banner-cta {
        gap: 1rem;
    }

    .cta-button {
        padding: 0.9rem 2rem;
        font-size: 1rem;
    }

    
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 1rem;
    }

    .category-item {
        padding: 1.5rem 1rem;
    }

    .category-icon {
        font-size: 2.5rem;
    }

    .category-name {
        font-size: 1.1rem;
    }

    .category-count {
        font-size: 0.85rem;
    }

    .categories-title {
        font-size: 1.6rem;
    }

    .categories-subtitle {
        font-size: 1rem;
    }

    .games-grid-style1,
    .games-grid-style2 {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .main-content {
        padding: 1rem;
    }

    .game-card-img {
        height: 150px;
    }
}
