@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800;900&display=swap');

:root {
    --bg-primary: #0a0b10;
    --bg-secondary: #121420;
    --accent-blue: #0072ff;
    --accent-violet: #8a2be2;
    --accent-gold: #ffaa00;
    --text-primary: #ffffff;
    --text-secondary: #9ea2b6;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-glow: rgba(138, 43, 226, 0.15);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background animated stars/neon lines */
.bg-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    background: radial-gradient(circle at 10% 20%, rgba(138, 43, 226, 0.15) 0%, transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(0, 114, 255, 0.15) 0%, transparent 40%);
    opacity: 0.8;
}

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: 
        radial-gradient(rgba(255,255,255,0.15) 1px, transparent 1px),
        radial-gradient(rgba(255,255,255,0.1) 1.5px, transparent 1.5px);
    background-size: 40px 40px, 80px 80px;
    background-position: 0 0, 20px 20px;
    opacity: 0.3;
    animation: particleMove 60s linear infinite;
}

@keyframes particleMove {
    0% { background-position: 0 0, 20px 20px; }
    100% { background-position: 1000px 500px, 1020px 520px; }
}

/* Navigation Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 80px;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    background-color: rgba(10, 11, 16, 0.7);
    border-bottom: 1.5px solid var(--glass-border);
}

.logo {
    font-size: 26px;
    font-weight: 900;
    letter-spacing: 1.5px;
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--accent-violet));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo span {
    color: var(--accent-blue);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 32px;
}

nav a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    transition: color 0.3s ease;
}

nav a:hover, nav a.active {
    color: var(--text-primary);
    text-shadow: 0 0 10px rgba(255,255,255,0.3);
}

/* Hero Section */
.hero {
    min-height: calc(100vh - 90px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
    position: relative;
}

.hero-tag {
    background: rgba(138, 43, 226, 0.1);
    border: 1px solid rgba(138, 43, 226, 0.3);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #c79eff;
    margin-bottom: 24px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(138, 43, 226, 0.4); }
    70% { transform: scale(1.02); box-shadow: 0 0 0 10px rgba(138, 43, 226, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(138, 43, 226, 0); }
}

.hero h1 {
    font-size: 72px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -2px;
    background: linear-gradient(to right, #ffffff, #a3b8ff, #e2b3ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 20px;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 16px 36px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-violet), var(--accent-blue));
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(138, 43, 226, 0.6);
}

.btn-secondary {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: white;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.2);
    transform: translateY(-3px);
}

/* Studio Stats */
.stats-container {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 60px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 24px 60px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.stat-item h3 {
    font-size: 36px;
    font-weight: 900;
    color: var(--text-primary);
    text-align: center;
}

.stat-item p {
    font-size: 13px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

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

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 44px;
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 12px;
}

.section-title p {
    color: var(--text-secondary);
    font-size: 16px;
}

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

.game-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 32px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(8px);
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent, var(--glass-glow));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.game-card:hover {
    transform: translateY(-8px);
    border-color: rgba(138, 43, 226, 0.3);
    box-shadow: 0 10px 30px var(--glass-glow);
}

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

.game-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    object-fit: cover;
}

.icon-ludo {
    background: linear-gradient(135deg, #ff416c, #ff4b2b);
}

.icon-tile {
    background: linear-gradient(135deg, #11998e, #38ef7d);
}

.icon-lexio {
    background: linear-gradient(135deg, #f2994a, #f2c94c);
}

.game-card h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.game-card p {
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 24px;
    min-height: 70px;
}

.game-features {
    list-style: none;
    margin-bottom: 30px;
}

.game-features li {
    font-size: 14px;
    color: #b0b4c8;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.game-features li::before {
    content: '✦';
    color: var(--accent-violet);
    font-weight: bold;
}

.playstore-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #000000;
    border: 1px solid rgba(255,255,255,0.15);
    padding: 10px 20px;
    border-radius: 10px;
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 13px;
    transition: all 0.3s ease;
}

.playstore-badge:hover {
    border-color: white;
    transform: scale(1.03);
}

/* About Section */
.about-section {
    background-color: var(--bg-secondary);
    padding: 100px 80px;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.about-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.about-content h2 {
    font-size: 40px;
    font-weight: 900;
    margin-bottom: 24px;
}

.about-content p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.8;
}

/* Contact Footer */
footer {
    padding: 60px 80px;
    text-align: center;
    background-color: var(--bg-primary);
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 32px;
}

.social-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--accent-violet);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.4);
}

.copyright {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Join Redirect Screen Specifics */
.redirect-box {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 48px;
    border-radius: 28px;
    text-align: center;
    max-width: 480px;
    width: 90%;
    backdrop-filter: blur(12px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
    margin-top: 40px;
}

.redirect-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 20px;
}

.room-code-card {
    background: rgba(0,0,0,0.3);
    border: 1.5px dashed var(--accent-gold);
    padding: 16px;
    border-radius: 14px;
    font-size: 32px;
    font-weight: 900;
    letter-spacing: 4px;
    color: var(--accent-gold);
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    position: relative;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255,255,255,0.1);
    border-top: 4px solid var(--accent-violet);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 24px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive queries */
@media (max-width: 768px) {
    header {
        padding: 20px 24px;
        flex-direction: column;
        gap: 16px;
    }
    .hero h1 {
        font-size: 44px;
    }
    .hero p {
        font-size: 16px;
    }
    .games-section {
        padding: 60px 24px;
    }
    .about-section {
        padding: 60px 24px;
    }
    footer {
        padding: 40px 24px;
    }
    .stats-container {
        flex-direction: column;
        gap: 24px;
        padding: 24px;
    }
}
