/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #ffffff;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #7ED321;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(126, 211, 33, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top svg {
    width: 24px;
    height: 24px;
    color: white;
}

.back-to-top:hover {
    background: #6BC218;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(126, 211, 33, 0.4);
}

/* Header */
.header {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    gap: 30px;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #333;
    font-size: 24px;
    font-weight: 700;
}

.logo svg {
    width: 40px;
    height: 40px;
}

.nav {
    display: flex;
    gap: 10px;
    flex: 1;
    justify-content: center;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    text-decoration: none;
    color: #666;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-item svg {
    width: 20px;
    height: 20px;
    color: #7ED321;
}

.nav-item:hover {
    background: rgba(126, 211, 33, 0.1);
    color: #7ED321;
}

.search-btn {
    width: 44px;
    height: 44px;
    background: #7ED321;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.search-btn svg {
    width: 20px;
    height: 20px;
    color: white;
}

.search-btn:hover {
    background: #6BC218;
    transform: scale(1.05);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: #333;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    padding: 20px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.mobile-menu-overlay.active .mobile-menu-content {
    transform: translateX(0);
}

.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    font-size: 36px;
    cursor: pointer;
    color: #333;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 80px;
}

.mobile-nav-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    text-decoration: none;
    color: #333;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-size: 18px;
    font-weight: 500;
}

.mobile-nav-item svg {
    width: 24px;
    height: 24px;
    color: #7ED321;
}

.mobile-nav-item:hover {
    background: rgba(126, 211, 33, 0.1);
    color: #7ED321;
}

/* Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-overlay-content {
    width: 100%;
    max-width: 600px;
    padding: 20px;
    position: relative;
}

.search-close {
    position: absolute;
    top: -50px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: none;
    border: none;
    font-size: 40px;
    cursor: pointer;
    color: #333;
}

.search-box {
    display: flex;
    gap: 10px;
    background: #f5f5f5;
    padding: 10px;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.search-box input {
    flex: 1;
    border: none;
    background: none;
    padding: 15px 20px;
    font-size: 18px;
    outline: none;
}

.search-submit {
    width: 50px;
    height: 50px;
    background: #7ED321;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.search-submit svg {
    width: 24px;
    height: 24px;
    color: white;
}

.search-submit:hover {
    background: #6BC218;
    transform: scale(1.05);
}

/* Banner */
.banner {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #7ED321 0%, #5FB817 100%);
}

.banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.15) 0%, transparent 60%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.15) 0%, transparent 60%),
        radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

.banner-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
}

.banner-content {
    position: relative;
    text-align: center;
    color: white;
    z-index: 2;
    padding: 60px 20px;
    max-width: 900px;
}

.banner-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: fadeInDown 0.8s ease;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.banner-title {
    font-size: 64px;
    font-weight: 900;
    margin-bottom: 25px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    letter-spacing: -1px;
    line-height: 1.1;
}

.banner-subtitle {
    font-size: 28px;
    margin-bottom: 30px;
    opacity: 0.95;
    font-weight: 500;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 1s ease 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.banner-features {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 35px;
    flex-wrap: wrap;
    animation: fadeIn 1.2s ease 0.4s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
}

.feature-icon {
    font-size: 20px;
}

.banner-btn {
    display: inline-block;
    padding: 18px 50px;
    background: white;
    color: #7ED321;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.banner-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(126, 211, 33, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.banner-btn:hover::before {
    width: 300px;
    height: 300px;
}

.banner-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.2);
}

.banner-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 40px;
    padding: 25px 40px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeIn 1.4s ease 0.6s both;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.stat-number {
    font-size: 32px;
    font-weight: 900;
    line-height: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.stat-label {
    font-size: 13px;
    opacity: 0.9;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-divider {
    width: 2px;
    height: 40px;
    background: rgba(255, 255, 255, 0.3);
}

.floating-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-icon {
    position: absolute;
    font-size: 50px;
    opacity: 0.25;
    animation: float 4s ease-in-out infinite;
    animation-delay: var(--delay);
    left: var(--x);
    top: var(--y);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg) scale(1);
    }

    25% {
        transform: translateY(-15px) rotate(5deg) scale(1.05);
    }

    50% {
        transform: translateY(-30px) rotate(-5deg) scale(1.1);
    }

    75% {
        transform: translateY(-15px) rotate(3deg) scale(1.05);
    }
}

.banner-wave {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 1;
}

.banner-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
}

.banner-wave path {
    animation: waveAnimation 8s ease-in-out infinite;
}

@keyframes waveAnimation {

    0%,
    100% {
        d: path("M0,0 C150,100 350,0 600,50 C850,100 1050,0 1200,50 L1200,120 L0,120 Z");
    }

    50% {
        d: path("M0,50 C150,0 350,100 600,0 C850,0 1050,100 1200,50 L1200,120 L0,120 Z");
    }
}

/* Game Sections */
.game-section {
    padding: 60px 0;
    position: relative;
}

.game-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e0e0e0 50%, transparent);
}

.game-section:first-of-type::before {
    display: none;
}

.section-alt {
    background: linear-gradient(180deg, #f9fef5 0%, #ffffff 100%);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 35px;
    gap: 20px;
    flex-wrap: wrap;
}

.section-header-content {
    flex: 1;
    min-width: 250px;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #333;
    position: relative;
    display: inline-block;
}

.section-subtitle {
    font-size: 16px;
    color: #666;
    font-weight: 400;
    margin: 0;
    opacity: 0.9;
}

.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(126, 211, 33, 0.1);
    color: #7ED321;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    border: 2px solid #7ED321;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.view-all-btn::after {
    content: '→';
    font-size: 16px;
    transition: transform 0.3s ease;
}

.view-all-btn:hover {
    background: #7ED321;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(126, 211, 33, 0.3);
}

.view-all-btn:hover::after {
    transform: translateX(4px);
}

/* Game Grid Styles */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.game-grid-compact {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.game-grid-large {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.game-grid-list {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.game-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(126, 211, 33, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    pointer-events: none;
}

.game-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 30px rgba(126, 211, 33, 0.15), 0 4px 8px rgba(0, 0, 0, 0.1);
}

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

.game-card-img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.game-card:hover .game-card-img {
    transform: scale(1.08);
}

.game-card-content {
    padding: 16px;
    position: relative;
    z-index: 2;
    background: white;
}

.game-card-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.game-card:hover .game-card-title {
    color: #7ED321;
}

.game-card-category {
    font-size: 13px;
    color: #7ED321;
    font-weight: 500;
    display: inline-block;
    padding: 4px 12px;
    background: rgba(126, 211, 33, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.game-card:hover .game-card-category {
    background: #7ED321;
    color: white;
}

/* Footer */
.footer {
    background: #f8f9fa;
    padding: 60px 0 20px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.footer-logo svg {
    width: 40px;
    height: 40px;
}

.footer-desc {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(126, 211, 33, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7ED321;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #7ED321;
    color: white;
    transform: translateY(-3px);
}

.social-links svg {
    width: 20px;
    height: 20px;
}

.footer-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links a svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    transition: all 0.3s ease;
     color: #7ED321;

}

.footer-links a:hover {
    color: #7ED321;
    transform: translateX(3px);
}

.footer-links a:hover svg {
    transform: scale(1.1);
}

.footer-bottom {
    border-top: 1px solid #e0e0e0;
    padding-top: 20px;
    text-align: center;
    color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .nav {
        display: none;
    }

    .banner {
        min-height: 450px;
    }

    .banner-badge {
        font-size: 13px;
        padding: 6px 16px;
    }

    .banner-title {
        font-size: 42px;
    }

    .banner-subtitle {
        font-size: 20px;
    }

    .banner-btn {
        padding: 15px 40px;
        font-size: 18px;
    }

    .banner-features {
        gap: 15px;
    }

    .feature-item {
        font-size: 14px;
        padding: 8px 16px;
    }

    .banner-stats {
        gap: 20px;
        padding: 20px 30px;
    }

    .stat-number {
        font-size: 28px;
    }

    .stat-label {
        font-size: 12px;
    }

    .banner-wave svg {
        height: 60px;
    }

    .section-title {
        font-size: 24px;
    }

    .section-subtitle {
        font-size: 14px;
    }

    .section-header {
        margin-bottom: 25px;
        align-items: flex-start;
    }

    .view-all-btn {
        padding: 10px 18px;
        font-size: 13px;
    }

    .game-grid,
    .game-grid-compact,
    .game-grid-large,
    .game-grid-list {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .floating-icon {
        font-size: 30px;
    }

    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .banner {
        min-height: 350px;
    }

    .banner-content {
        padding: 30px 20px;
    }

    .banner-badge {
        font-size: 12px;
        padding: 6px 14px;
        margin-bottom: 15px;
    }

    .banner-title {
        font-size: 32px;
    }

    .banner-subtitle {
        font-size: 16px;
        margin-bottom: 25px;
    }

    .banner-btn {
        padding: 12px 30px;
        font-size: 16px;
    }

    .floating-icon {
        font-size: 35px;
    }

    .banner-features {
        gap: 10px;
        margin-bottom: 25px;
    }

    .feature-item {
        font-size: 13px;
        padding: 7px 14px;
    }

    .feature-icon {
        font-size: 18px;
    }

    .banner-stats {
        gap: 15px;
        padding: 18px 25px;
        margin-top: 30px;
        flex-wrap: wrap;
    }

    .stat-item {
        min-width: 80px;
    }

    .stat-number {
        font-size: 24px;
    }

    .stat-label {
        font-size: 11px;
    }

    .stat-divider {
        display: none;
    }

    .banner-wave svg {
        height: 40px;
    }

    .game-section {
        padding: 40px 0;
    }

    .section-title {
        font-size: 20px;
    }

    .section-subtitle {
        font-size: 13px;
    }

    .view-all-btn {
        padding: 8px 16px;
        font-size: 12px;
    }

    .game-grid,
    .game-grid-compact,
    .game-grid-large,
    .game-grid-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .game-card-title {
        font-size: 14px;
    }

    .game-card-category {
        font-size: 11px;
        padding: 3px 10px;
    }
}