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

:root {
    --neon-blue: #00ffff;
    --neon-violet: #8a2be2;
    --neon-magenta: #ff00ff;
    --neon-green: #39ff14;
    --bg-dark: #0d0d0d;
    --bg-light: #ffffff;
    --text-dark: #0d0d0d;
    --text-light: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

body {
    font-family: 'Space Mono', monospace;
    background: var(--bg-dark);
    color: var(--text-light);
    overflow-x: hidden;
    transition: background 0.5s ease, color 0.5s ease;
    position: relative;
}

body.light-mode {
    background: var(--bg-light);
    color: var(--text-dark);
    --glass-bg: rgba(0, 0, 0, 0.03);
    --glass-border: rgba(0, 0, 0, 0.1);
}

body.light-mode::before {
    background: linear-gradient(45deg, #e0e0e0, #f5f5f5, #e8e8e8);
}

/* Animated Background Canvas */
#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Animated Gradient Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        var(--bg-dark), 
        #1a0033, 
        #000033, 
        #1a0033);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    z-index: -2;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 255, 255, 0.1);
    z-index: 1000;
}

/* Telegram Button */
.telegram-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 0.75rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-violet));
    border: none;
    border-radius: 50px;
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: neonPulse 2s infinite;
}

.telegram-btn span {
    display: none;
}

.telegram-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px var(--neon-blue);
}

@keyframes neonPulse {
    0%, 100% { box-shadow: 0 0 10px var(--neon-blue); }
    50% { box-shadow: 0 0 25px var(--neon-blue), 0 0 50px var(--neon-violet); }
}

/* Logo */
.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-img {
    width: 60px;
    height: 60px;
    filter: drop-shadow(0 0 15px var(--neon-blue));
    animation: logoGlow 3s infinite;
}

@keyframes logoGlow {
    0%, 100% { filter: drop-shadow(0 0 10px var(--neon-blue)); }
    50% { filter: drop-shadow(0 0 25px var(--neon-magenta)); }
}

.logo-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-magenta), var(--neon-blue));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textShine 3s linear infinite;
}

@keyframes textShine {
    to { background-position: 200% center; }
}

/* Language Selector */
.language-dropdown {
    padding: 0.5rem 1rem;
    background: var(--glass-bg);
    border: 2px solid var(--neon-blue);
    border-radius: 25px;
    color: inherit;
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.language-dropdown:hover {
    border-color: var(--neon-magenta);
    box-shadow: 0 0 20px var(--neon-blue);
}

.language-dropdown option {
    background: var(--bg-dark);
    color: var(--text-light);
}

body.light-mode .language-dropdown option {
    background: var(--bg-light);
    color: var(--text-dark);
}

/* Hero Section */
.hero {
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 8rem 2rem 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.hero .video-container {
    width: 100%;
    margin-bottom: 3rem;
}

.hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-magenta), var(--neon-green), var(--neon-blue));
    background-size: 300% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: rgbShift 5s linear infinite;
    text-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
    line-height: 1.2;
}

@keyframes rgbShift {
    to { background-position: 300% center; }
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.3rem);
    max-width: 700px;
    margin-bottom: 0;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Neon Buttons */
.neon-btn {
    padding: 1rem 2.5rem;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.neon-btn::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--neon-blue), var(--neon-magenta), var(--neon-green), var(--neon-blue));
    background-size: 400%;
    border-radius: 50px;
    z-index: -1;
    animation: rgbBorder 3s linear infinite;
}

@keyframes rgbBorder {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.neon-btn::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: var(--bg-dark);
    border-radius: 50px;
    z-index: -1;
}

body.light-mode .neon-btn::after {
    background: var(--bg-light);
}

.neon-btn.primary {
    color: var(--neon-blue);
}

.neon-btn.secondary {
    color: var(--neon-green);
}

.neon-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px currentColor;
}

.neon-btn:active {
    transform: scale(0.98);
}

/* Video Section */
.video-section {
    padding: 0 2rem 4rem;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.video-container {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 2px solid var(--glass-border);
    border-radius: 25px;
    padding: 1.5rem;
    box-shadow: 0 0 50px rgba(138, 43, 226, 0.3);
    animation: videoGlow 4s infinite;
}

@keyframes videoGlow {
    0%, 100% { box-shadow: 0 0 30px rgba(0, 255, 255, 0.3); }
    50% { box-shadow: 0 0 60px rgba(138, 43, 226, 0.5); }
}

.video-caption {
    font-size: 1.1rem;
    margin: 2rem 0 1.5rem;
    opacity: 0.9;
}

.join-telegram {
    margin-top: 1.5rem;
    color: var(--neon-magenta);
}

/* Games Section */
.games-section {
    padding: 4rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-violet));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.game-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 2px solid transparent;
    border-radius: 20px;
    padding: 1.5rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

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

.game-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(45deg, var(--neon-blue), var(--neon-magenta), var(--neon-green));
    -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.4s ease;
}

.game-card:hover::before {
    opacity: 1;
    animation: rgbBorder 2s linear infinite;
}

.game-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 20px 60px rgba(0, 255, 255, 0.3);
}

.game-img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    margin-bottom: 1rem;
    transition: transform 0.4s ease;
}

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

.game-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--neon-blue);
}

.game-btn {
    display: block;
    width: 100%;
    padding: 0.8rem;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-magenta));
    border: none;
    border-radius: 30px;
    color: white;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
}

.game-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px var(--neon-magenta);
}

/* Footer */
.footer {
    padding: 3rem 2rem;
    text-align: center;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    position: relative;
}

.player-counter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--neon-green);
    animation: counterGlow 2s infinite;
}

@keyframes counterGlow {
    0%, 100% { text-shadow: 0 0 10px var(--neon-green); }
    50% { text-shadow: 0 0 25px var(--neon-green); }
}

.pulse-dot {
    width: 12px;
    height: 12px;
    background: var(--neon-green);
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.7;
    }
}

.copyright {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Theme Toggle */



.theme-toggle:hover {
    transform: scale(1.1) rotate(20deg);
    box-shadow: 0 0 40px var(--neon-blue);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        padding: 0.8rem 1rem;
        flex-wrap: nowrap;
    }

    .logo-container {
        /* order: -1; */ /* Removed */
        /* width: 100%; */ /* Removed */
        /* justify-content: center; */ /* Removed */
        /* margin-bottom: 0.5rem; */ /* Removed */
    }

    .logo-img {
        width: 50px;
        height: 50px;
    }

    .logo-text {
        font-size: 1.2rem;
    }

    .telegram-btn {
        font-size: 0.9rem;
        padding: 0.6rem;
        width: 44px;
        height: 44px;
    }

    .hero {
        padding: 6rem 1rem 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }

    .neon-btn {
        width: 100%;
    }

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

    .theme-toggle {
        bottom: 1rem;
        left: 1rem;
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

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

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

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Selection Color */
::selection {
    background: var(--neon-magenta);
    color: white;
}



.game-card::before {
  pointer-events: none; /* stops the overlay from blocking clicks */
}

.game-btn {
  position: relative;
  z-index: 5; /* ensures the button stays on top */
  pointer-events: auto;
}



.game-btn {
    display: block;
    width: 100%;
    padding: 0.8rem;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-magenta));
    border: none;
    border-radius: 30px;
    color: white;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    z-index: 5;
}

.game-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px var(--neon-magenta);
}

.game-card::before {
    pointer-events: none;
}









.neon-btn.apk-download-btn {
    background: #007bff;
    border-color: #007bff;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center; 
    gap: 10px;
    padding: 12px 20px;
    font-weight: 600;
    text-align: center;
    position: relative;
}

.icon-wrap {
    position: absolute;
    left: 15px;
    display: flex;
    align-items: center;
}

.android-icon {
    width: 22px;
    height: 22px;
}

.neon-btn.apk-download-btn:hover {
    background: #0056b3;
    border-color: #0056b3;
}


