/* --- Glitch Gaming Theme --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: radial-gradient(ellipse at bottom, #1b2735 0%, #090a0f 100%);
    color: #e0e0e0;
    overflow-x: hidden;
    min-height: 100vh;
}

.bg-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.05;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="white" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    pointer-events: none;
    z-index: -1;
}

header {
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(0, 217, 255, 0.2);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(90deg, #00d9ff, #ff00c8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    color: #ccc;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

nav a:hover {
    color: #00d9ff;
    background: rgba(0, 217, 255, 0.1);
}

.hero {
    text-align: center;
    padding: 8rem 2rem 4rem;
    margin-top: 80px;
}

h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(0, 217, 255, 0.5), 0 0 20px rgba(255, 0, 200, 0.3);
}

.hero p {
    font-size: 1.2rem;
    color: #aaa;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(90deg, #00d9ff, #ff00c8);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 217, 255, 0.4);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 217, 255, 0.5);
}

h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin: 3rem 0;
    background: linear-gradient(90deg, #00d9ff, #ff00c8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section {
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.games-section, .stats-section, .features-section {
    background: rgba(26, 26, 46, 0.8);
    backdrop-filter: blur(10px);
    margin: 1rem 0;
    border-radius: 20px;
    padding: 3rem 1rem;
    border: 1px solid rgba(0, 217, 255, 0.2);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columns on desktop */
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .games-grid {
        grid-template-columns: 1fr; /* 1 column on tablets/mobile */
        gap: 15px;
    }
}


.game-image {
    padding: 30px;
    font-size: 40px;
    text-align: center;
}

.game-content {
    padding: 20px;
    flex-grow: 1;
}


.game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 25px rgba(0, 217, 255, 0.5);
    border-color: #00d9ff;
}

.game-image {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    position: relative;
    overflow: hidden;
}

.game-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
}

.game-content {
    padding: 1.5rem;
}

.game-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.5rem;
}

.game-desc {
    font-size: 0.95rem;
    color: #aaa;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.play-button {
    width: 100%;
    padding: 0.8rem;
    background: linear-gradient(90deg, #00d9ff, #ff00c8);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.play-button:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(0, 217, 255, 0.3);
}

.stats-grid, .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.stat-card, .feature-card {
    text-align: center;
    padding: 2rem;
    background: #1a1a2e;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid #333;
}

.stat-number {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #00d9ff;
    display: block;
}

.stat-label {
    color: #aaa;
    font-weight: 500;
    margin-top: 0.5rem;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1rem;
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.popup-content {
    position: relative;
    width: 90%;
    height: 90%;
    max-width: 1200px;
    background: #12121c;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid #00d9ff;
}

.popup-header {
    background: linear-gradient(90deg, #00d9ff, #ff00c8);
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.close-button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-button:hover {
    background: rgba(255, 255, 255, 0.3);
}

.game-iframe {
    width: 100%;
    height: calc(100% - 60px);
    border: none;
}

footer {
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
    color: #888;
    border-top: 1px solid rgba(0, 217, 255, 0.2);
}

footer a {
    color: #00d9ff;
    text-decoration: none;
}

@media (max-width: 768px) {
    .header-content { padding: 0 1rem; }
    .logo { font-size: 1.5rem; }
    nav ul { gap: 1rem; }
    nav a { font-size: 0.9rem; padding: 0.4rem 0.8rem; }
    h1 { font-size: 2.5rem; }
    .hero { padding: 6rem 1rem 2rem; }
    .games-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .popup-content { width: 95%; height: 95%; }
    .section { padding: 2rem 1rem; }
}

@media (max-width: 480px) {
    .header-content { flex-direction: column; gap: 1rem; padding: 1rem; }
    nav ul { flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
    h1 { font-size: 2rem; }
    h2 { font-size: 2rem; }
    .hero p { font-size: 1rem; }
}

.highlight {
    border-color: #00d9ff !important;
    box-shadow: 0 0 25px rgba(0, 217, 255, 0.6) !important;
}
