/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #00D4FF;
    --primary-dark: #0099CC;
    --secondary-color: #FFD700;
    --secondary-dark: #FFC107;
    --accent-color: #00A8E8;
    --dark-bg: #0A0A0F;
    --dark-bg-light: #12121A;
    --dark-bg-lighter: #1A1A24;
    --text-primary: #FFFFFF;
    --text-secondary: #B0B0B8;
    --text-muted: #6B6B75;
    --border-color: #252530;
    --gradient-primary: linear-gradient(135deg, #00D4FF 0%, #FFD700 100%);
    --gradient-secondary: linear-gradient(135deg, #00A8E8 0%, #FFD700 100%);
    --yellow-glow: rgba(255, 215, 0, 0.3);
    --blue-glow: rgba(0, 212, 255, 0.3);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    line-height: 1;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.logo-link:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* Fallback text logo styles (in case image doesn't load) */
.logo-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
}

.logo-subtitle {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 3px;
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.cta-button {
    background: var(--gradient-primary);
    padding: 0.6rem 1.5rem;
    border-radius: 4px;
    color: var(--text-primary);
    font-weight: 600;
}

.nav-link.cta-button::after {
    display: none;
}

.nav-link.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.4);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

/* Nav Actions (Account + Language) */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: 1rem;
}

/* Account Navigation */
.account-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-account-link,
.nav-login-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.nav-login-link {
    background: rgba(100, 149, 237, 0.1);
    border-color: rgba(100, 149, 237, 0.3);
    color: var(--primary-color);
}

.nav-login-link:hover {
    background: rgba(100, 149, 237, 0.2);
    border-color: var(--primary-color);
    color: var(--text-primary);
}

.nav-account-link {
    color: var(--text-primary);
    border-color: var(--border-color);
}

.nav-account-link:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.nav-account-link.active {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Language Switcher */
.language-switcher {
    position: relative;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--dark-bg-lighter);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
}

.lang-btn:hover {
    border-color: var(--primary-color);
    background: var(--dark-bg);
}

.lang-btn .flag {
    font-size: 1.4rem;
    line-height: 1;
    display: inline-block;
    margin-right: 0.4rem;
}

.lang-btn .lang-code {
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: auto;
    background: var(--dark-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    min-width: 200px;
    max-width: calc(100vw - 20px);
    max-height: 400px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0.3s;
    z-index: 1001;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    /* Firefox fix - ensure it can be displayed */
    display: block;
    pointer-events: none;
}

.lang-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0s;
    pointer-events: auto;
}

/* Mobile dropdown positioning override */
@media (max-width: 768px) {
    .lang-dropdown {
        /* Will be positioned by JavaScript, but set base styles */
        transform: translateY(-10px);
    }
    
    .lang-dropdown.active {
        transform: translateY(0);
    }
    
    /* If dropdown is centered or left-aligned */
    .lang-dropdown[style*="translateX"] {
        transform: translateX(-50%) translateY(0) !important;
    }
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border-color);
}

.lang-option:last-child {
    border-bottom: none;
}

.lang-option:hover {
    background: var(--dark-bg-lighter);
    color: var(--text-primary);
    padding-left: 1.25rem;
}

.lang-option.active {
    background: rgba(0, 212, 255, 0.1);
    color: var(--primary-color);
    border-left: 3px solid var(--primary-color);
}

.lang-option .flag {
    font-size: 1.6rem;
    line-height: 1;
    display: inline-block;
    min-width: 28px;
    text-align: center;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.lang-option span:not(.flag) {
    font-size: 0.95rem;
    flex: 1;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 120px 20px 120px;
    background: linear-gradient(135deg, #0A0A0F 0%, #1A0A2E 50%, #16213E 100%);
    overflow: hidden;
    z-index: 1;
}

.hero-bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: 0;
    opacity: 0.4;
}

.hero-bg-video:not([src]) {
    display: none;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255, 215, 0, 0.1) 0%, transparent 50%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0, 212, 255, 0.03) 2px,
            rgba(0, 212, 255, 0.03) 4px
        );
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-logo {
    margin: 2rem 0 3rem;
    padding: 0 2rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-logo-img {
    max-width: 100%;
    height: auto;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    display: block;
    filter: drop-shadow(0 10px 30px rgba(0, 212, 255, 0.3));
    transition: transform 0.3s ease;
}

.hero-logo-img:hover {
    transform: scale(1.02);
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid var(--primary-color);
    border-radius: 30px;
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.hero-title {
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}

.title-line-1,
.title-line-2,
.title-line-3 {
    display: block;
    background: linear-gradient(135deg, #FFFFFF 0%, #00D4FF 50%, #FFD700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-line-1 {
    animation: fadeInUp 1s ease-out 0.2s both;
}

.title-line-2 {
    animation: fadeInUp 1s ease-out 0.4s both;
}

.title-line-3 {
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-primary);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 212, 255, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--text-secondary);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-large {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    justify-content: center;
    flex-wrap: wrap;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
    position: relative;
    z-index: 3;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 0.3rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--text-muted);
    border-radius: 15px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 2px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% { opacity: 1; top: 10px; }
    100% { opacity: 0; top: 25px; }
}

/* Section Styles */
section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header.white {
    color: var(--text-primary);
}

.section-tag {
    display: inline-block;
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.section-tag.white {
    color: var(--primary-color);
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #FFFFFF 0%, #00D4FF 50%, #FFD700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Showcase Section - Gameplay Videos */
.showcase-section {
    background: var(--dark-bg);
    padding: 100px 0;
    position: relative;
    z-index: 2;
    margin-top: 0;
}

.showcase-video {
    margin-bottom: 5rem;
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
}

.showcase-video-player {
    width: 100%;
    height: auto;
    display: block;
    background: var(--dark-bg-lighter);
}

/* Video Gallery Grid */
.video-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.video-gallery-item {
    position: relative;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.video-gallery-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.video-item-container {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    background: var(--dark-bg-lighter);
}

.video-item-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.2);
    border-color: var(--primary-color);
}

.gallery-video {
    width: 100%;
    height: auto;
    display: block;
    background: var(--dark-bg-lighter);
}

.video-item-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    color: var(--text-primary);
    padding: 1.5rem 1rem 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    pointer-events: none;
}

/* eSports Video Showcase */
.esports-video-showcase {
    margin-top: 4rem;
    display: flex;
    justify-content: center;
    padding: 0 20px;
}

.video-showcase-item {
    max-width: min(900px, calc(100% - 40px));
    width: 100%;
}

.video-showcase-container {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    background: var(--dark-bg-lighter);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.video-showcase-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 70px rgba(0, 212, 255, 0.3);
    border-color: var(--primary-color);
}

.showcase-item-video {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    background: var(--dark-bg-lighter);
    object-fit: contain;
}

.video-showcase-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    color: var(--text-primary);
    padding: 1.5rem 1rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    pointer-events: none;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.showcase-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
}

.showcase-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 40px var(--blue-glow);
}

.showcase-loop,
.showcase-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.showcase-image {
    transition: transform 0.3s ease;
}

.showcase-item:hover .showcase-image {
    transform: scale(1.05);
}

.showcase-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(10, 10, 15, 0.95) 0%, transparent 100%);
    padding: 2rem;
    z-index: 2;
}

.showcase-overlay h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin: 0;
    font-family: 'Orbitron', sans-serif;
}

.showcase-item:hover .showcase-overlay h3 {
    color: var(--primary-color);
}

/* Game Section */
.game-section {
    background: var(--dark-bg-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--dark-bg-lighter);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* eSports Section */
.esports-section {
    background: linear-gradient(135deg, #0A0A1E 0%, #0A1E2E 50%, #1E1A0A 100%);
    position: relative;
    overflow: hidden;
}

.esports-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 50%, rgba(0, 212, 255, 0.05) 0%, transparent 60%),
        radial-gradient(circle at 70% 50%, rgba(255, 215, 0, 0.05) 0%, transparent 60%);
}

.esports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.esports-card {
    background: rgba(18, 18, 26, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 212, 255, 0.2);
    padding: 2.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.esports-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.3);
}

.esports-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.esports-card-header h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
}

.esports-icon {
    font-size: 2.5rem;
}

.esports-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.esports-features {
    list-style: none;
}

.esports-features li {
    color: var(--text-secondary);
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.esports-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.cta-box {
    background: rgba(0, 212, 255, 0.1);
    border: 2px solid var(--primary-color);
    padding: 3rem;
    border-radius: 8px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.cta-box h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-box p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Modes Section */
.modes-section {
    background: var(--dark-bg);
}

.modes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.mode-card {
    background: var(--dark-bg-light);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mode-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.mode-card:hover::before {
    transform: scaleX(1);
}

.mode-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.mode-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: rgba(0, 212, 255, 0.2);
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mode-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.mode-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Community Section */
.community-section {
    background: var(--dark-bg-light);
}

.community-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.community-text {
    max-width: 600px;
}

.community-text p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
    margin: 1.5rem 0 2rem;
}

.community-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.community-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: var(--dark-bg-lighter);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.community-link:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.2);
}

.community-link.discord:hover {
    border-color: #5865F2;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
}

.community-link.twitch:hover {
    border-color: #9146FF;
    box-shadow: 0 4px 15px rgba(145, 70, 255, 0.3);
}

.community-link.youtube:hover {
    border-color: #FF0000;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
}

.community-link.twitter:hover {
    border-color: #1DA1F2;
    box-shadow: 0 4px 15px rgba(29, 161, 242, 0.3);
}

.community-link.instagram:hover {
    border-color: #E4405F;
    box-shadow: 0 4px 15px rgba(228, 64, 95, 0.3);
}

.community-link.patreon:hover {
    border-color: #FF424D;
    box-shadow: 0 4px 15px rgba(255, 66, 77, 0.3);
}

/* Newsletter Signup */
.newsletter-signup {
    background: var(--dark-bg-lighter);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: 8px;
}

.newsletter-signup h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.newsletter-signup p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.newsletter-input {
    width: 100%;
    padding: 1rem;
    background: var(--dark-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.newsletter-input::placeholder {
    color: var(--text-muted);
}

.newsletter-btn {
    width: 100%;
    justify-content: center;
}

#mc_embed_signup {
    background: transparent;
    clear: left;
    width: 100%;
}

#mc_embed_signup .mc-field-group {
    margin-bottom: 1rem;
}

#mc_embed_signup .response {
    margin: 1rem 0;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

#mc_embed_signup #mce-error-response {
    background: rgba(255, 0, 0, 0.1);
    color: #ff6b6b;
    border: 1px solid #ff6b6b;
}

#mc_embed_signup #mce-success-response {
    background: rgba(0, 255, 0, 0.1);
    color: #51cf66;
    border: 1px solid #51cf66;
}

.community-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.stat-box {
    background: var(--dark-bg-lighter);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-box:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 0.5rem;
}

.stat-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Download Section */
.download-section {
    background: linear-gradient(135deg, #0A0A0F 0%, #0A1E2E 50%, #1E1A0A 100%);
    position: relative;
    overflow: hidden;
}

.download-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 50%, rgba(0, 212, 255, 0.1) 0%, transparent 60%),
        radial-gradient(circle at 70% 50%, rgba(255, 215, 0, 0.1) 0%, transparent 60%);
}

.download-content {
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.download-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin: 1rem 0 1.5rem;
    background: linear-gradient(135deg, #FFFFFF 0%, #00D4FF 50%, #FFD700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.download-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.download-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.info-item {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.info-item strong {
    color: var(--primary-color);
}

/* Reviews Section */
.reviews-section {
    background: var(--dark-bg-light);
    padding: 100px 0;
}

.reviews-slider-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto 3rem;
}

.reviews-slider {
    display: flex;
    overflow: hidden;
    position: relative;
    min-height: 300px;
}

.review-card {
    min-width: 100%;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.5s ease;
    background: var(--dark-bg-lighter);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2.5rem;
    display: none;
}

.review-card.active {
    opacity: 1;
    transform: translateX(0);
    display: block;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.review-author-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.review-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.review-rating {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.rating-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.rating-badge.positive {
    background: rgba(0, 255, 0, 0.1);
    color: #51cf66;
    border: 1px solid #51cf66;
}

.review-helpful {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.review-text {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    max-height: 200px;
    overflow-y: auto;
}

.review-footer {
    display: flex;
    justify-content: flex-end;
}

.review-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.review-link:hover {
    color: var(--primary-dark);
}

.reviews-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--dark-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.reviews-nav-btn:hover {
    background: var(--dark-bg-lighter);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.reviews-nav-btn.prev {
    left: -25px;
}

.reviews-nav-btn.next {
    right: -25px;
}

.reviews-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.review-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.review-dot:hover,
.review-dot.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.2);
}

.reviews-link {
    text-align: center;
}

/* Footer */
.footer {
    background: var(--dark-bg);
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand .logo-img {
    height: 45px;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 1rem;
    line-height: 1.7;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.7rem;
}

.footer-column ul li a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-social {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-social a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.footer-social a:hover {
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Navigation Mobile */
    .language-switcher {
        margin-left: 0.5rem;
        order: -1;
    }

    .lang-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .lang-btn .lang-code {
        display: none;
    }

    .lang-dropdown {
        right: 10px;
        left: auto;
        max-width: calc(100vw - 20px);
        min-width: 180px;
        transform-origin: top right;
    }

    .nav-container {
        padding: 1rem;
        gap: 1rem;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--dark-bg);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        border-top: 1px solid var(--border-color);
        z-index: 1000;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }
    
    /* Nav Actions Mobile */
    .nav-actions {
        gap: 0.5rem;
        margin-left: 0.5rem;
    }
    
    .nav-account-link,
    .nav-login-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }

    /* Hero Mobile */
    .hero {
        padding: 100px 20px 80px;
        min-height: 90vh;
    }
    
    .hero-logo {
        margin: 1.5rem 0 2rem;
        padding: 0 1.5rem;
    }
    
    .hero-logo-img {
        max-width: min(80vw, 400px);
    }

    .hero-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
        margin-bottom: 1rem;
    }

    .hero-description {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }

    .btn {
        width: 100%;
        justify-content: center;
        max-width: 280px;
        padding: 0.9rem 1.5rem;
        font-size: 0.95rem;
    }

    .hero-stats {
        gap: 1.5rem;
        flex-direction: column;
    }

    .stat-item {
        width: 100%;
    }

    .hero-bg-video {
        opacity: 0.3;
    }

    /* Sections Mobile */
    section {
        padding: 60px 0;
    }

    .section-title {
        font-size: clamp(1.8rem, 5vw, 2.5rem);
    }

    .section-description {
        font-size: 0.95rem;
    }

    /* Showcase Mobile */
    .showcase-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .showcase-video-player,
    .showcase-loop,
    .showcase-image {
        width: 100%;
        height: auto;
    }

    .video-container {
        border-radius: 4px;
    }
    
    .showcase-video {
        margin-bottom: 3rem;
    }
    
    .video-gallery {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 3rem;
    }
    
    .video-item-label {
        padding: 1rem 0.8rem 0.8rem;
        font-size: 0.85rem;
    }
    
    /* eSports Video Showcase Mobile */
    .esports-video-showcase {
        margin-top: 3rem;
        padding: 0 15px;
    }
    
    .video-showcase-item {
        max-width: 100%;
        width: 100%;
    }
    
    .video-showcase-container {
        border-radius: 4px;
        max-width: 100%;
    }
    
    .video-showcase-label {
        padding: 1rem 0.8rem 0.8rem;
        font-size: 0.85rem;
    }

    /* Community Mobile */
    .community-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .community-links {
        flex-direction: column;
        gap: 0.8rem;
    }

    .community-link {
        width: 100%;
        justify-content: center;
        padding: 1rem;
    }

    .newsletter-signup {
        padding: 2rem;
    }

    .newsletter-input {
        font-size: 16px; /* Prevents zoom on iOS */
    }

    /* Reviews Mobile */
    .reviews-section {
        padding: 60px 0;
    }

    .reviews-slider-container {
        padding: 0 50px;
        margin-bottom: 2rem;
    }

    .reviews-nav-btn {
        width: 40px;
        height: 40px;
    }

    .reviews-nav-btn.prev {
        left: 5px;
    }

    .reviews-nav-btn.next {
        right: 5px;
    }

    .review-card {
        padding: 1.5rem;
    }

    .review-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .review-rating {
        align-items: flex-start;
        width: 100%;
    }

    .review-text {
        max-height: 150px;
        font-size: 0.9rem;
    }

    .reviews-dots {
        gap: 0.4rem;
        margin-bottom: 1.5rem;
    }

    /* eSports Mobile */
    .esports-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .esports-card {
        padding: 2rem;
    }

    .cta-box {
        padding: 2rem;
    }

    .cta-box h3 {
        font-size: 1.5rem;
    }

    /* Download Mobile */
    .download-info {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .info-item {
        font-size: 0.9rem;
    }

    /* Footer Mobile */
    .footer {
        padding: 3rem 0 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .footer-social {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    /* Extra Small Mobile */
    .nav-container {
        padding: 0.8rem;
    }

    .logo-img {
        height: 40px;
    }
    
    .hero-logo {
        margin-bottom: 1.5rem;
    }
    
    .hero-logo {
        margin: 1rem 0 1.5rem;
        padding: 0 1rem;
    }
    
    .hero-logo-img {
        max-width: min(75vw, 350px);
    }

    .hero {
        padding: 90px 15px 70px;
    }

    .hero-title {
        font-size: clamp(1.3rem, 6vw, 1.8rem);
        line-height: 1.1;
    }

    .hero-description {
        font-size: 0.9rem;
        padding: 0 10px;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 0.4rem 1rem;
    }

    .section-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    section {
        padding: 50px 0;
    }

    .container {
        padding: 0 15px;
    }

    .btn {
        font-size: 0.9rem;
        padding: 0.85rem 1.3rem;
        max-width: 100%;
    }

    .btn-large {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    /* Showcase */
    .showcase-item {
        aspect-ratio: 16/10;
    }

    /* Reviews */
    .reviews-slider-container {
        padding: 0 40px;
    }

    .review-card {
        padding: 1.2rem;
    }

    .review-author-name {
        font-size: 1rem;
    }

    .review-meta {
        font-size: 0.8rem;
        flex-direction: column;
        gap: 0.3rem;
    }

    /* Community */
    .community-link {
        padding: 0.9rem;
        font-size: 0.9rem;
    }

    .newsletter-signup {
        padding: 1.5rem;
    }

    .newsletter-signup h3 {
        font-size: 1.2rem;
    }

    /* eSports */
    .esports-card {
        padding: 1.5rem;
    }

    .esports-card-header h3 {
        font-size: 1.2rem;
    }

    .esports-icon {
        font-size: 2rem;
    }

    .cta-box {
        padding: 1.5rem;
    }

    .cta-box h3 {
        font-size: 1.3rem;
    }

    /* Footer */
    .footer {
        padding: 2.5rem 0 1rem;
    }

    .footer-column h4 {
        font-size: 0.9rem;
    }

    .footer-column ul li a {
        font-size: 0.85rem;
    }

    /* Language Switcher Small */
    .lang-btn {
        padding: 0.35rem 0.6rem;
    }

    .lang-btn .flag {
        font-size: 1.1rem;
        margin-right: 0.3rem;
    }
    
    .lang-option .flag {
        font-size: 1.4rem;
        min-width: 24px;
    }

    /* Language dropdown mobile positioning */
    .language-switcher {
        position: relative;
    }
    
    .lang-dropdown {
        position: absolute;
        right: 0;
        left: auto;
        min-width: 180px;
        max-width: calc(100vw - 40px);
        max-height: 350px;
        transform-origin: top right;
    }
    
    /* Ensure dropdown never extends beyond viewport */
    .lang-dropdown {
        max-width: min(280px, calc(100vw - 40px));
    }

    .lang-option {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }

    /* Ensure touch targets are at least 44px */
    .nav-link,
    .community-link,
    .review-dot,
    .reviews-nav-btn,
    .lang-btn {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Better touch targets */
    .nav-link,
    .community-link,
    .btn {
        padding: 0.9rem 1.5rem;
    }

    /* Remove hover effects on touch devices */
    .feature-card:hover,
    .esports-card:hover,
    .mode-card:hover {
        transform: none;
    }

    /* Larger tap targets */
    .reviews-nav-btn {
        width: 48px;
        height: 48px;
    }

    .review-dot {
        width: 14px;
        height: 14px;
    }
}
