/* ============================================
   CSS Reset & Base Styles
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette - Professional Pharmaceutical Theme */
    --primary: #0ea5e9;
    --primary-dark: #0284c7;
    --primary-light: #38bdf8;
    --secondary: #14b8a6;
    --accent: #22c55e;
    --dark: #0c1524;
    --dark-secondary: #162033;
    --dark-tertiary: #1e3a5f;
    --light: #f8fafc;
    --light-secondary: #e2e8f0;
    --text-primary: #ffffff;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Poppins', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-base);
}

.navbar.scrolled {
    background: rgba(15, 23, 42, 0.95);
    box-shadow: var(--shadow-lg);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-sm) 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-family: var(--font-display);
    font-size: clamp(1rem, 2.5vw, 1.35rem);
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}

.logo .logo-text {
    white-space: nowrap;
}

@media (max-width: 900px) {
    .logo .logo-text {
        white-space: normal;
        max-width: 140px;
        line-height: 1.2;
    }
}

.logo-icon {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: logoPulse 2s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.5)); }
    50% { transform: scale(1.1); filter: drop-shadow(0 0 16px rgba(236, 72, 153, 0.6)); }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-base);
    position: relative;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
    transition: all var(--transition-base);
    transform: translateX(-50%);
}

.nav-link:hover {
    color: var(--text-primary);
    transform: translateY(-2px);
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 100%;
}

.nav-link.active {
    color: var(--text-primary);
}

.nav-link.active::after {
    display: none;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.btn-nav {
    padding: var(--spacing-xs) var(--spacing-md);
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: var(--radius-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-nav:hover {
    background: var(--primary);
    color: var(--text-primary);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: var(--spacing-xs);
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-base);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-lg);
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-base);
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--text-primary);
    box-shadow: 0 4px 14px 0 rgba(99, 102, 241, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px 0 rgba(99, 102, 241, 0.5);
    animation: btnGlow 1.5s ease-in-out infinite alternate;
}

.btn-primary:hover::before {
    left: 100%;
}

@keyframes btnGlow {
    from { box-shadow: 0 8px 25px 0 rgba(99, 102, 241, 0.5); }
    to { box-shadow: 0 8px 35px 0 rgba(99, 102, 241, 0.7); }
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--text-primary);
}

.btn-secondary:hover {
    background: var(--text-primary);
    color: var(--dark);
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(255,255,255,0.2);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--text-primary);
}

.btn-small {
    padding: var(--spacing-xs) var(--spacing-md);
    font-size: 0.875rem;
}

.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--dark-tertiary);
    background: var(--dark-secondary);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-icon:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 80px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at top, rgba(99, 102, 241, 0.15), transparent 70%);
    animation: gradientShift 8s ease-in-out infinite alternate;
}

@keyframes gradientShift {
    0% { opacity: 0.8; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.1); }
}

/* Floating Particles */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(99, 102, 241, 0.6);
    border-radius: 50%;
    animation: particleFloat 15s infinite ease-in-out;
}

.particle:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; animation-duration: 12s; }
.particle:nth-child(2) { left: 20%; top: 80%; animation-delay: 2s; animation-duration: 18s; }
.particle:nth-child(3) { left: 35%; top: 40%; animation-delay: 4s; animation-duration: 14s; }
.particle:nth-child(4) { left: 50%; top: 10%; animation-delay: 1s; animation-duration: 16s; }
.particle:nth-child(5) { left: 65%; top: 60%; animation-delay: 3s; animation-duration: 13s; }
.particle:nth-child(6) { left: 75%; top: 30%; animation-delay: 5s; animation-duration: 17s; }
.particle:nth-child(7) { left: 85%; top: 70%; animation-delay: 2.5s; animation-duration: 15s; }
.particle:nth-child(8) { left: 15%; top: 50%; animation-delay: 3.5s; animation-duration: 19s; background: rgba(20, 184, 166, 0.5); }
.particle:nth-child(9) { left: 90%; top: 15%; animation-delay: 1.5s; animation-duration: 11s; background: rgba(34, 197, 94, 0.5); }
.particle:nth-child(10) { left: 45%; top: 85%; animation-delay: 4.5s; animation-duration: 20s; }

@keyframes particleFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.6;
    }
    25% {
        transform: translate(30px, -50px) scale(1.5);
        opacity: 1;
    }
    50% {
        transform: translate(-20px, 30px) scale(0.8);
        opacity: 0.4;
    }
    75% {
        transform: translate(-40px, -30px) scale(1.2);
        opacity: 0.8;
    }
}

.animated-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
    animation: float 20s infinite ease-in-out;
}


.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--secondary);
    top: 60%;
    right: 10%;
    animation-delay: 5s;
}

.shape-3 {
    width: 350px;
    height: 350px;
    background: var(--accent);
    bottom: 10%;
    left: 50%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.hero-content {
    text-align: center;
    max-width: 900px;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-md);
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid var(--primary);
    border-radius: var(--radius-xl);
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
    animation: fadeInUp 0.6s ease, badgePulse 2s ease-in-out infinite 1s;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4); }
    50% { box-shadow: 0 0 20px 5px rgba(99, 102, 241, 0.2); }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
    animation: fadeInUp 0.8s ease;
}

.title-line {
    display: block;
}

.title-line.highlight {
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent), var(--primary-light));
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientFlow 5s ease infinite;
}

@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    margin-bottom: var(--spacing-2xl);
    animation: fadeInUp 1.2s ease;
}

.hero-stats {
    display: flex;
    gap: var(--spacing-xl);
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1.4s ease;
}

.stat-item {
    text-align: center;
}

.hero-stats .stat-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: var(--spacing-xs);
    animation: statPulse 2s ease-in-out infinite;
}

.hero-stats .stat-item:nth-child(1) .stat-number { animation-delay: 0s; }
.hero-stats .stat-item:nth-child(2) .stat-number { animation-delay: 0.2s; }
.hero-stats .stat-item:nth-child(3) .stat-number { animation-delay: 0.4s; }

@keyframes statPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.scroll-indicator {
    position: absolute;
    bottom: var(--spacing-xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--text-muted);
    font-size: 0.875rem;
    animation: bounce 2s infinite;
}

.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--text-muted);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(12px);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Section Styles
   ============================================ */
section {
    padding: var(--spacing-2xl) 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.section-tag {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-md);
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid var(--primary);
    border-radius: var(--radius-xl);
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    transition: all var(--transition-base);
}

.section-header:hover .section-tag {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.3);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
    transition: transform 0.6s ease;
}

.section-header:hover .section-title::after {
    transform: translateX(-50%) scaleX(0.5);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.section-footer {
    text-align: center;
    margin-top: var(--spacing-xl);
}

/* About block (company overview) */
.about-first .section-header {
    margin-bottom: var(--spacing-lg);
}

.about-block {
    max-width: 800px;
    margin: 0 auto;
}

.about-lead {
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

.about-lead strong {
    color: var(--primary-light);
}

.about-body {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

.about-body:last-child {
    margin-bottom: 0;
}

/* Compliance section */
.compliance-section {
    background: var(--dark);
}

.compliance-block {
    max-width: 800px;
    margin: 0 auto;
}

.compliance-block .about-body {
    margin-bottom: var(--spacing-lg);
}

/* ============================================
   Games Section
   ============================================ */
.games-section {
    background: var(--dark-secondary);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.game-card {
    background: var(--dark);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    border: 1px solid var(--dark-tertiary);
    animation: cardReveal 0.8s ease backwards;
}

.game-card:nth-child(1) { animation-delay: 0.1s; }
.game-card:nth-child(2) { animation-delay: 0.2s; }
.game-card:nth-child(3) { animation-delay: 0.3s; }
.game-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes cardReveal {
    from {
        opacity: 0;
        transform: translateY(40px) rotateX(-10deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }
}

.game-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(99, 102, 241, 0.25);
    border-color: var(--primary);
}

.game-card:hover .game-placeholder {
    transform: scale(1.15) rotate(2deg);
}

.game-card.featured {
    grid-column: span 2;
}

.game-image {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.game-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    background-size: 200% 200%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    animation: gameGradient 6s ease infinite;
}

@keyframes gameGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.game-1 {
    background: linear-gradient(-45deg, #0ea5e9, #14b8a6, #0284c7, #0ea5e9);
    background-size: 200% 200%;
}
.game-2 {
    background: linear-gradient(-45deg, #14b8a6, #22c55e, #10b981, #14b8a6);
    background-size: 200% 200%;
}
.game-3 {
    background: linear-gradient(-45deg, #3b82f6, #0ea5e9, #06b6d4, #3b82f6);
    background-size: 200% 200%;
}
.game-4 {
    background: linear-gradient(-45deg, #8b5cf6, #0ea5e9, #14b8a6, #8b5cf6);
    background-size: 200% 200%;
}


.game-overlay-content {
    text-align: center;
    z-index: 2;
}

.game-overlay-content h3 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
}

.game-overlay-content p {
    font-size: 1rem;
    opacity: 0.9;
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.7));
    display: flex;
    align-items: flex-end;
    padding: var(--spacing-md);
}

.game-badges {
    display: flex;
    gap: var(--spacing-xs);
    flex-wrap: wrap;
}

.game-badge {
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.game-badge.new {
    background: var(--success);
    color: var(--text-primary);
    animation: badgeBounce 2s ease-in-out infinite;
}

.game-badge.coming {
    background: var(--accent);
    color: var(--text-primary);
    animation: badgeBounce 2s ease-in-out infinite 0.3s;
}

.game-badge.popular {
    background: var(--secondary);
    color: var(--text-primary);
    animation: badgeBounce 2s ease-in-out infinite 0.6s;
}

.game-badge.rating {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    backdrop-filter: blur(10px);
}

@keyframes badgeBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.game-content {
    padding: var(--spacing-lg);
}

.game-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-sm);
    font-size: 0.875rem;
    color: var(--text-muted);
}

.game-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.game-description {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

.game-tags {
    display: flex;
    gap: var(--spacing-xs);
    flex-wrap: wrap;
    margin-bottom: var(--spacing-md);
}

.tag {
    padding: 4px var(--spacing-sm);
    background: var(--dark-tertiary);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.game-actions {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
}

/* ============================================
   About Section
   ============================================ */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
}

.about-description p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    font-size: 1.125rem;
    line-height: 1.8;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.feature-item {
    text-align: center;
    padding: var(--spacing-lg);
    background: var(--dark-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--dark-tertiary);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.feature-item:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--primary);
    box-shadow: 0 20px 40px -15px rgba(99, 102, 241, 0.3);
}

.feature-item:hover .feature-icon {
    animation: iconBounce 0.6s ease;
}

@keyframes iconBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
    transition: transform var(--transition-base);
}

.feature-item h4 {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-xs);
    color: var(--text-primary);
}

.feature-item p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.about-visual {
    position: relative;
}

.about-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
}

.about-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    background-size: 200% 200%;
    animation: gameGradient 6s ease infinite;
}

.about-badge {
    position: absolute;
    bottom: var(--spacing-lg);
    right: var(--spacing-lg);
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    border: 1px solid var(--primary);
    text-align: center;
}

.badge-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.badge-text {
    display: block;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* ============================================
   Stats Section
   ============================================ */
.stats-section {
    background: var(--dark-secondary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
}

.stat-card {
    text-align: center;
    padding: var(--spacing-xl);
    background: var(--dark);
    border-radius: var(--radius-lg);
    border: 1px solid var(--dark-tertiary);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    animation: statReveal 0.6s ease backwards;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes statReveal {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.stat-card:hover {
    transform: translateY(-10px) scale(1.05);
    border-color: var(--primary);
    box-shadow: 0 20px 40px -15px rgba(99, 102, 241, 0.4);
}

.stat-card:hover .stat-icon {
    animation: iconSpin 0.8s ease;
}

@keyframes iconSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    transition: transform var(--transition-base);
}

.stat-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: var(--spacing-xs);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   Careers Section
   ============================================ */
.careers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.career-card {
    padding: var(--spacing-lg);
    background: var(--dark-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--dark-tertiary);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.career-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px -15px rgba(99, 102, 241, 0.3);
}

.career-card:hover .career-category {
    animation: categoryGlow 1s ease infinite alternate;
}

@keyframes categoryGlow {
    from { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.3); }
    to { box-shadow: 0 0 15px 2px rgba(99, 102, 241, 0.2); }
}

.career-category {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-sm);
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid var(--primary);
    border-radius: var(--radius-sm);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: var(--spacing-md);
}

.career-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    color: var(--text-primary);
}

.career-location {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: var(--spacing-md);
}

.career-description {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

.career-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition-fast);
}

.career-link:hover {
    color: var(--primary-light);
}

/* ============================================
   News Section
   ============================================ */
.news-section {
    background: var(--dark-secondary);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.news-card {
    background: var(--dark);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--dark-tertiary);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -15px rgba(99, 102, 241, 0.3);
    border-color: var(--primary);
}

.news-card:hover .news-placeholder {
    transform: scale(1.1);
}

.news-placeholder {
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.news-card.featured-news {
    grid-column: span 2;
}

.news-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.news-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.news-1 {
    background: linear-gradient(135deg, #0ea5e9, #14b8a6);
}

.news-2 {
    background: linear-gradient(135deg, #14b8a6, #22c55e);
}

.news-3 {
    background: linear-gradient(135deg, #3b82f6, #0ea5e9);
}

.news-badge {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    padding: var(--spacing-xs) var(--spacing-sm);
    background: var(--primary);
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.news-content {
    padding: var(--spacing-lg);
}

.news-meta {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    font-size: 0.875rem;
    color: var(--text-muted);
}

.news-category {
    color: var(--primary);
    font-weight: 600;
}

.news-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.news-excerpt {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

.news-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition-fast);
}

.news-link:hover {
    color: var(--primary-light);
}

/* ============================================
   Contact Section
   ============================================ */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--spacing-2xl);
}

.contact-info {
    display: grid;
    gap: var(--spacing-lg);
}

.info-card {
    padding: var(--spacing-lg);
    background: var(--dark-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--dark-tertiary);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.info-card:hover {
    transform: translateX(8px);
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}

.info-card:hover .info-icon {
    animation: iconPop 0.5s ease;
}

@keyframes iconPop {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

.info-icon {
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
}

.info-card h4 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.info-card p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.info-card a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.info-card a:hover {
    color: var(--primary-light);
}

.contact-form {
    padding: var(--spacing-xl);
    background: var(--dark-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--dark-tertiary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    color: var(--text-primary);
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: var(--spacing-sm);
    background: var(--dark);
    border: 1px solid var(--dark-tertiary);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group textarea {
    resize: vertical;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--dark-secondary);
    border-top: 1px solid var(--dark-tertiary);
    padding: var(--spacing-2xl) 0 var(--spacing-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
    align-items: start;
}

.footer-brand {
    max-width: none;
}

.footer-newsletter {
    min-width: 0;
}

.footer-description {
    color: var(--text-secondary);
    margin: var(--spacing-md) 0;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dark);
    border: 1px solid var(--dark-tertiary);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.social-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--text-primary);
    transform: translateY(-5px) rotate(5deg);
    box-shadow: 0 10px 20px -5px rgba(99, 102, 241, 0.5);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.footer-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--spacing-xs);
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary);
}

.newsletter-form {
    display: flex;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-md);
}

.newsletter-form input {
    flex: 1;
    padding: var(--spacing-xs) var(--spacing-sm);
    background: var(--dark);
    border: 1px solid var(--dark-tertiary);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-primary);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--dark-tertiary);
    color: var(--text-muted);
    font-size: 0.875rem;
}

.footer-bottom-links {
    display: flex;
    gap: var(--spacing-lg);
}

.footer-bottom-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-bottom-links a:hover {
    color: var(--primary);
}

/* Scroll-triggered reveal animations */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Cursor glow effect for interactive elements */
.btn, .game-card, .nav-link, .career-card, .news-card {
    will-change: transform;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1.2fr 1fr 1fr;
        gap: var(--spacing-lg);
    }
    
    .footer-brand {
        grid-row: 1 / 3;
    }
    
    .game-card.featured,
    .news-card.featured-news {
        grid-column: span 1;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: var(--dark);
        width: 100%;
        padding: var(--spacing-lg);
        border-top: 1px solid var(--dark-tertiary);
        transition: left var(--transition-base);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-lg);
    }
    
    .footer-brand {
        grid-column: 1 / -1;
        grid-row: auto;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--spacing-md);
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    section {
        padding: var(--spacing-xl) 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
}
