/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --blue: #002395;
    --blue-light: #3b5cc6;
    --blue-glow: rgba(0, 35, 149, 0.4);
    --white: #ffffff;
    --red: #ed2939;
    --red-light: #f25565;
    --red-glow: rgba(237, 41, 57, 0.4);

    --bg-primary: #050508;
    --bg-secondary: #0a0a10;
    --bg-card: #0f0f18;
    --bg-card-hover: #14142a;
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);

    --text-primary: #f0f0f5;
    --text-secondary: #8888a0;
    --text-muted: #55556a;

    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 6px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

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

/* ===== LANGUAGE BAR ===== */
.lang-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    display: flex;
    justify-content: center;
    padding: 6px 0;
    background: rgba(5, 5, 8, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.lang-switcher {
    display: flex;
    gap: 2px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 2px;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    background: transparent;
    border: none;
    border-radius: 100px;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.02em;
}

.lang-btn:hover {
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.04);
}

.lang-btn.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.flag-icon {
    width: 18px;
    height: 13px;
    border-radius: 2px;
    overflow: hidden;
    flex-shrink: 0;
}

/* RTL support */
html[dir="rtl"] {
    direction: rtl;
}

html[dir="rtl"] .nav-links {
    flex-direction: row-reverse;
}

html[dir="rtl"] .about-content .section-title,
html[dir="rtl"] .about-content {
    text-align: right;
}

html[dir="rtl"] .feature {
    flex-direction: row-reverse;
    text-align: right;
}

html[dir="rtl"] .contact-form {
    text-align: right;
}

html[dir="rtl"] .form-group label {
    text-align: right;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 36px;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(5, 5, 8, 0.85);
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: -0.02em;
}

.logo-img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

.logo-text {
    background: linear-gradient(135deg, var(--blue-light), var(--white), var(--red-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--blue), var(--red));
    transition: var(--transition);
    border-radius: 1px;
}

.nav-link:hover::after {
    width: 100%;
}

.btn-nav {
    background: linear-gradient(135deg, var(--blue), var(--blue-light));
    color: var(--white) !important;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: var(--transition);
}

.btn-nav::after {
    display: none;
}

.btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--blue-glow);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

/* Hero mosaic background */
.hero-mosaic {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    display: flex;
    flex-direction: column;
    gap: 16px;
    opacity: 0.15;
    z-index: 0;
    width: 250vw;
}

.mosaic-row {
    display: flex;
    gap: 16px;
    flex-shrink: 0;
    will-change: transform;
}

.mosaic-row:nth-child(odd) {
    animation: mosaicScrollLeft 35s linear infinite;
}

.mosaic-row:nth-child(even) {
    animation: mosaicScrollRight 40s linear infinite;
}

.mosaic-row:nth-child(3n) {
    animation-duration: 45s;
}

.mosaic-img {
    width: 220px;
    height: 140px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
}

@keyframes mosaicScrollLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes mosaicScrollRight {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% 50%, rgba(5, 5, 8, 0.85) 0%, rgba(5, 5, 8, 0.6) 50%, rgba(5, 5, 8, 0.4) 100%),
        radial-gradient(ellipse 80% 60% at 20% 50%, rgba(0, 35, 149, 0.2) 0%, transparent 60%),
        radial-gradient(ellipse 80% 60% at 80% 50%, rgba(237, 41, 57, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 50% 0%, rgba(255, 255, 255, 0.04) 0%, transparent 50%);
    z-index: 1;
}

.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 2;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: float linear infinite;
}

@keyframes float {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 800px;
    padding: 0 24px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 32px;
    animation: fadeInUp 0.8s ease-out;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
    animation: pulse 2s ease-in-out infinite;
}

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

.hero-title {
    font-size: clamp(2.8rem, 7vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease-out 0.1s both;
}

.gradient-text {
    background: linear-gradient(135deg, var(--blue-light) 0%, #ffffff 40%, var(--red-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 580px;
    margin: 0 auto 40px;
    line-height: 1.7;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, var(--blue), var(--blue-light));
    color: var(--white);
    box-shadow: 0 4px 20px var(--blue-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 40px var(--blue-glow);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    color: var(--text-primary);
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, 0.04);
}

/* Scroll indicator */
.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.scroll-indicator {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.scroll-dot {
    width: 4px;
    height: 8px;
    background: var(--text-secondary);
    border-radius: 2px;
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(12px); opacity: 0.3; }
}

/* ===== STATS ===== */
.stats {
    padding: 80px 0;
    border-bottom: 1px solid var(--border);
}

.stats-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--blue-light), var(--white), var(--red-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-divider {
    width: 1px;
    height: 48px;
    background: var(--border);
}

/* ===== SECTIONS ===== */
.section {
    padding: 120px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--blue-light);
    margin-bottom: 16px;
    padding: 6px 16px;
    background: rgba(0, 35, 149, 0.1);
    border: 1px solid rgba(0, 35, 149, 0.2);
    border-radius: 100px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

/* ===== GAMES ===== */
.games {
    background: var(--bg-secondary);
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 6px 16px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #10b981;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.games-loading {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 80px 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.game-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.game-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.game-image {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, var(--bg-card), var(--bg-card-hover));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease-out;
}

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

.game-placeholder {
    color: var(--text-muted);
    opacity: 0.5;
}

.game-overlay {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    gap: 8px;
}

.game-badge-playing {
    padding: 5px 12px;
    background: rgba(16, 185, 129, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #10b981;
    display: flex;
    align-items: center;
    gap: 6px;
}

.game-badge-playing .live-pip {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.game-info {
    padding: 24px;
}

.game-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.game-stats {
    display: flex;
    gap: 20px;
}

.game-stats span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.game-stats .stat-playing {
    color: #10b981;
}

/* Game card rank indicator */
.game-rank {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--text-primary);
}

/* Update shimmer for loading cards */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.game-card.skeleton .game-image,
.game-card.skeleton .game-info > * {
    background: linear-gradient(90deg, var(--bg-card-hover) 25%, rgba(255,255,255,0.04) 50%, var(--bg-card-hover) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 6px;
}

.game-card.skeleton .game-title {
    height: 20px;
    width: 70%;
}

.game-card.skeleton .game-desc {
    height: 40px;
    width: 100%;
}

.game-card.skeleton .game-stats {
    height: 16px;
    width: 50%;
}

/* ===== ABOUT ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-content .section-tag {
    margin-bottom: 20px;
}

.about-content .section-title {
    text-align: left;
    margin-bottom: 24px;
}

.about-text {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 36px;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon.blue {
    background: rgba(0, 35, 149, 0.15);
    color: var(--blue-light);
    border: 1px solid rgba(0, 35, 149, 0.25);
}

.feature-icon.white {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.feature-icon.red {
    background: rgba(237, 41, 57, 0.12);
    color: var(--red-light);
    border: 1px solid rgba(237, 41, 57, 0.2);
}

.feature h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.feature p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.about-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-logo-wrapper {
    position: relative;
    width: 320px;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-logo {
    width: 240px;
    height: 240px;
    border-radius: 32px;
    position: relative;
    z-index: 1;
    animation: logoFloat 6s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.logo-glow {
    position: absolute;
    inset: -20%;
    background: radial-gradient(circle, rgba(0, 35, 149, 0.2) 0%, rgba(237, 41, 57, 0.15) 50%, transparent 70%);
    filter: blur(40px);
    animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* ===== SERVICES ===== */
.services {
    background: var(--bg-secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 28px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--blue), var(--white) 50%, var(--red));
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

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

.service-icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    margin-bottom: 24px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    color: var(--blue-light);
    border-color: rgba(0, 35, 149, 0.3);
    background: rgba(0, 35, 149, 0.1);
}

.service-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== TEAM ===== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.team-grid-2 {
    grid-template-columns: repeat(2, 1fr);
    max-width: 640px;
    margin: 0 auto;
}

.team-card {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px 24px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.team-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.team-avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--border);
    transition: var(--transition);
}

.team-card:hover .team-avatar {
    border-color: var(--blue-light);
    box-shadow: 0 0 20px var(--blue-glow);
}

.team-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 35, 149, 0.2), rgba(237, 41, 57, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.team-username {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 2px;
}

.team-handle {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 10px;
}

.team-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.team-role {
    font-size: 0.85rem;
    color: var(--blue-light);
    font-weight: 600;
    padding: 4px 14px;
    background: rgba(0, 35, 149, 0.1);
    border: 1px solid rgba(0, 35, 149, 0.2);
    border-radius: 100px;
    display: inline-block;
}

/* ===== CONTACT ===== */
.contact {
    background: var(--bg-secondary);
}

.contact-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 80px;
    text-align: center;
    overflow: hidden;
}

.contact-content {
    position: relative;
    z-index: 1;
}

.contact-content .section-title {
    margin-bottom: 20px;
}

.contact-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto 24px;
    line-height: 1.7;
}

.contact-email {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 100px;
    margin-bottom: 40px;
    color: var(--text-secondary);
    transition: var(--transition);
}

.contact-email:hover {
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, 0.06);
}

.contact-email a {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
}

/* Contact Form */
.contact-form {
    max-width: 560px;
    margin: 0 auto 36px;
    text-align: left;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--blue-light);
    background: rgba(0, 35, 149, 0.06);
    box-shadow: 0 0 0 3px rgba(59, 92, 198, 0.15);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%238888a0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.form-group select option {
    background: var(--bg-card);
    color: var(--text-primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    width: 100%;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.btn-loading,
.btn-success {
    display: none;
    align-items: center;
    gap: 8px;
}

.btn-submit.loading .btn-text { display: none; }
.btn-submit.loading .btn-loading { display: inline-flex; }
.btn-submit.success .btn-text { display: none; }
.btn-submit.success .btn-loading { display: none; }
.btn-submit.success .btn-success { display: inline-flex; }
.btn-submit.success {
    background: linear-gradient(135deg, #059669, #10b981);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
}

.spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Social links */
.contact-socials {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.social-link {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    transition: var(--transition);
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-hover);
    color: var(--text-primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.contact-decoration {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.deco-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
}

.deco-blue {
    width: 300px;
    height: 300px;
    background: var(--blue);
    top: -100px;
    left: -100px;
}

.deco-white {
    width: 200px;
    height: 200px;
    background: var(--white);
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.05;
}

.deco-red {
    width: 300px;
    height: 300px;
    background: var(--red);
    top: -100px;
    right: -100px;
}

/* ===== FOOTER ===== */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.95rem;
}

.footer-logo {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

.footer-copy {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--text-primary);
}

/* ===== SCROLL ANIMATIONS ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Slide from left */
.slide-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-left.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Slide from right */
.slide-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Scale up */
.scale-in {
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Blur in */
.blur-in {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, filter 0.8s ease-out, transform 0.8s ease-out;
}

.blur-in.visible {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

/* Tilt hover on cards */
.tilt-hover {
    transition: transform 0.4s ease-out, box-shadow 0.4s ease-out;
}

/* Gradient border animation on cards */
.game-card::before,
.team-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--blue), transparent 40%, transparent 60%, var(--red));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease-out;
}

.game-card,
.team-card {
    position: relative;
}

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

/* Magnetic button effect - applied via JS */
.btn-magnetic {
    transition: transform 0.2s ease-out;
}

/* Text reveal animation */
.text-reveal {
    overflow: hidden;
}

.text-reveal > * {
    transform: translateY(100%);
    animation: textReveal 0.8s ease-out forwards;
}

@keyframes textReveal {
    to { transform: translateY(0); }
}

/* Marquee / horizontal scroll for stats */
.stat-item .stat-number {
    transition: transform 0.3s ease-out;
}

.stat-item:hover .stat-number {
    transform: scale(1.1);
}

/* Glow on hover for service cards */
.service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(59, 92, 198, 0.08) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease-out;
    pointer-events: none;
}

.service-card:hover::after {
    opacity: 1;
}

/* Ripple effect for buttons */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: scale(0);
    animation: ripple 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}


/* Parallax tilt for about logo */
.about-logo-wrapper {
    perspective: 800px;
}

.about-logo {
    transition: transform 0.3s ease-out;
    transform-style: preserve-3d;
}

/* Stagger children animation helper */
.stagger-children > *:nth-child(1) { transition-delay: 0s; }
.stagger-children > *:nth-child(2) { transition-delay: 0.08s; }
.stagger-children > *:nth-child(3) { transition-delay: 0.16s; }
.stagger-children > *:nth-child(4) { transition-delay: 0.24s; }
.stagger-children > *:nth-child(5) { transition-delay: 0.32s; }
.stagger-children > *:nth-child(6) { transition-delay: 0.4s; }

/* ===== GRADIENT BORDER SHIMMER ON GAME CARDS ===== */
.game-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(59, 92, 198, 0.06) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease-out;
    pointer-events: none;
}

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

/* ===== SMOOTH GRADIENT TEXT SHIFT ON HERO ===== */
.gradient-text {
    background-size: 200% 200%;
    animation: gradientShift 6s ease-in-out infinite;
}

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

/* ===== STAT NUMBER GLOW PULSE ===== */
.stat-number {
    text-shadow: 0 0 30px rgba(59, 92, 198, 0);
    transition: transform 0.3s ease-out, text-shadow 0.3s ease-out;
}

.stat-item:hover .stat-number {
    text-shadow: 0 0 30px rgba(59, 92, 198, 0.3);
}

/* ===== SECTION TAG HOVER GLOW ===== */
.section-tag {
    transition: var(--transition);
}

.section-tag:hover {
    background: rgba(0, 35, 149, 0.18);
    box-shadow: 0 0 20px rgba(0, 35, 149, 0.2);
}

/* ===== NAVBAR GLASSMORPHISM ENHANCE ===== */
.navbar.scrolled {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* ===== SMOOTH UNDERLINE DRAW FOR FOOTER LINKS ===== */
.footer-links a {
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 1.5px;
    background: linear-gradient(90deg, var(--blue-light), var(--red-light));
    transition: width 0.3s ease-out, left 0.3s ease-out;
    border-radius: 1px;
}

.footer-links a:hover::after {
    width: 100%;
    left: 0;
}

/* ===== CONTACT CARD AMBIENT GLOW BREATHING ===== */
.contact-decoration .deco-blue,
.contact-decoration .deco-red {
    animation: decoFloat 8s ease-in-out infinite;
}

.contact-decoration .deco-red {
    animation-delay: -4s;
}

@keyframes decoFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(15px, -10px) scale(1.05); }
    66% { transform: translate(-10px, 8px) scale(0.95); }
}

/* ===== SOCIAL LINK ICON SPIN ON HOVER ===== */
.social-link svg {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-link:hover svg {
    transform: rotate(8deg) scale(1.15);
}

/* ===== HERO BADGE SHIMMER ===== */
.hero-badge {
    position: relative;
    overflow: hidden;
}

.hero-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
    animation: badgeShimmer 4s ease-in-out infinite;
}

@keyframes badgeShimmer {
    0%, 100% { left: -100%; }
    50% { left: 150%; }
}

/* ===== TEAM CARD GLOW FOLLOW ===== */
.team-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(59, 92, 198, 0.06) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease-out;
    pointer-events: none;
}

.team-card:hover::after {
    opacity: 1;
}

/* ===== FORM INPUT LABEL SLIDE ===== */
.form-group label {
    transition: color 0.3s ease-out, letter-spacing 0.3s ease-out;
}

.form-group input:focus ~ label,
.form-group:focus-within label {
    color: var(--blue-light);
    letter-spacing: 0.06em;
}

/* ===== SCROLL PROGRESS BAR ===== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--blue), var(--white) 50%, var(--red));
    z-index: 1002;
    transform-origin: left;
    transform: scaleX(0);
    transition: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-content .section-title {
        text-align: center;
    }

    .about-content {
        text-align: center;
    }

    .about-features {
        align-items: center;
    }

    .feature {
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .lang-btn span:last-child {
        display: none;
    }

    .lang-btn {
        padding: 4px 8px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: rgba(10, 10, 16, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        gap: 24px;
        padding: 40px;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border-left: 1px solid var(--border);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-link {
        font-size: 1.2rem;
    }

    .nav-link::after {
        display: none;
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translateY(5px) translateX(5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translateY(-5px) translateX(5px);
    }

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

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

    .team-grid-2 {
        grid-template-columns: 1fr;
        max-width: 320px;
    }

    .stats-grid {
        gap: 32px;
    }

    .stat-divider {
        display: none;
    }

    .stats-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .stat-number {
        font-size: 2.2rem;
    }

    .contact-card {
        padding: 48px 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-socials {
        flex-wrap: wrap;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .section {
        padding: 80px 0;
    }
}

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

    .hero-cta {
        flex-direction: column;
    }

    .hero-cta .btn {
        width: 100%;
        justify-content: center;
    }

    .about-logo-wrapper {
        width: 240px;
        height: 240px;
    }

    .about-logo {
        width: 180px;
        height: 180px;
    }
}
