/**
 * GameHubJS - Homepage Styles
 * Modern Apple-inspired cinematic design with tech + gaming backgrounds.
 * Mobile-first, dark theme, scroll animations.
 * 
 * Filename: app/static/css/home.css
 * Signed: admin@thepandadev.com
 */

/* ============================================
   CSS Variables - Homepage Specific
   ============================================ */
:root {
    --home-bg: #0a0a1a;
    --home-bg-alt: #0d0d1f;
    --home-text: #ffffff;
    --home-text-muted: #8892b0;
    --home-accent: #6c63ff;
    --home-accent-2: #ff6584;
    --home-accent-3: #ffd93d;
    --home-border: rgba(255, 255, 255, 0.06);
    --home-glow: 0 0 60px rgba(108, 99, 255, 0.15);
}

/* ============================================
   Base Homepage Container
   ============================================ */
.home-container {
    background: var(--home-bg);
    overflow-x: hidden;
    position: relative;
}

/* ============================================
   GLOBAL TECH BACKGROUND LAYER
   ============================================ */
.home-container::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    
    background-image:
        radial-gradient(rgba(108, 99, 255, 0.08) 1px, transparent 1px),
        linear-gradient(rgba(108, 99, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(108, 99, 255, 0.03) 1px, transparent 1px),
        radial-gradient(ellipse at 20% 10%, rgba(108, 99, 255, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 90%, rgba(255, 101, 132, 0.06) 0%, transparent 50%);
    
    background-size:
        24px 24px,
        100px 100px,
        100px 100px,
        100% 100%,
        100% 100%;
    
    background-position:
        0 0, 0 0, 0 0, 0 0, 0 0;
    
    animation: techGridDrift 60s linear infinite;
}

@keyframes techGridDrift {
    0% {
        background-position: 0 0, 0 0, 0 0, 0 0, 0 0;
    }
    100% {
        background-position: 24px 24px, 100px 100px, 100px 100px, 0 0, 0 0;
    }
}

/* ============================================
   FLOATING GAME ICONS LAYER
   ============================================ */
.home-container::after {
    content: '🎮 🏆 🎯 🚀 🧩 💬 🐍 🧱';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    font-size: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.04;
    letter-spacing: 400px;
    line-height: 500px;
    word-spacing: 500px;
    padding: 200px;
    overflow: hidden;
    animation: iconFloat 30s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

/* Ensure sections render above the background */
.home-hero,
.home-stats,
.home-section,
.home-why,
.home-tech,
.home-tester-cta,
.home-final-cta {
    position: relative;
    z-index: 1;
}

/* ============================================
   HERO SECTION
   ============================================ */
.home-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 100px 1.5rem 60px;
    background: linear-gradient(180deg, rgba(10, 10, 26, 0.7) 0%, rgba(18, 18, 46, 0.5) 50%, rgba(10, 10, 26, 0.7) 100%);
}

.home-hero::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.15) 0%, transparent 60%);
    border-radius: 50%;
    animation: orbFloat1 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

.home-hero::after {
    content: '';
    position: absolute;
    bottom: -40%;
    right: -20%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(255, 101, 132, 0.1) 0%, transparent 60%);
    border-radius: 50%;
    animation: orbFloat2 25s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(80px, 60px) scale(1.1); }
}

@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-60px, -40px) scale(1.15); }
}

/* ============================================
   HERO — ANIMATED GAME SYMBOLS LAYER
   Transparent, decorative background of game-themed
   glyphs (X, O, triangle, square, star, hexagon, etc.)
   that drift slowly behind the hero content.
   ============================================ */
.home-hero-symbols {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
    user-select: none;
    -webkit-user-select: none;
}

.home-hero-symbols span {
    position: absolute;
    font-family: 'Orbitron', Arial, sans-serif;
    font-weight: 900;
    line-height: 1;
    opacity: 0;
    color: #6c63ff;
    text-shadow: 0 0 30px currentColor;
    will-change: transform, opacity;
    animation: symbolFadeIn 2s ease forwards;
}

/* Each symbol's position, size, color, animation */
.home-hero-symbols span:nth-child(1)  { top: 12%; left:  8%;  font-size: 120px; color: #6c63ff; animation: symbolFadeIn 2s ease forwards, symbolFloat1 18s ease-in-out infinite 2s; }
.home-hero-symbols span:nth-child(2)  { top: 22%; left: 82%;  font-size:  90px; color: #ff6584; animation: symbolFadeIn 2s ease forwards, symbolFloat2 22s ease-in-out infinite 2s; }
.home-hero-symbols span:nth-child(3)  { top: 68%; left: 14%;  font-size: 100px; color: #ffd93d; animation: symbolFadeIn 2s ease forwards, symbolFloat3 20s ease-in-out infinite 2s; }
.home-hero-symbols span:nth-child(4)  { top: 78%; left: 76%;  font-size: 140px; color: #4facfe; animation: symbolFadeIn 2s ease forwards, symbolFloat1 25s ease-in-out infinite 2s; }
.home-hero-symbols span:nth-child(5)  { top: 45%; left: 48%;  font-size:  70px; color: #48bb78; animation: symbolFadeIn 2s ease forwards, symbolFloat2 16s ease-in-out infinite 2s; }
.home-hero-symbols span:nth-child(6)  { top:  8%; left: 55%;  font-size:  80px; color: #a855f7; animation: symbolFadeIn 2s ease forwards, symbolFloat3 24s ease-in-out infinite 2s; }
.home-hero-symbols span:nth-child(7)  { top: 82%; left: 42%;  font-size:  65px; color: #ff9f43; animation: symbolFadeIn 2s ease forwards, symbolFloat1 19s ease-in-out infinite 2s; }
.home-hero-symbols span:nth-child(8)  { top: 35%; left: 22%;  font-size:  75px; color: #00d2d3; animation: symbolFadeIn 2s ease forwards, symbolFloat2 21s ease-in-out infinite 2s; }
.home-hero-symbols span:nth-child(9)  { top: 58%; left: 88%;  font-size: 110px; color: #6c63ff; animation: symbolFadeIn 2s ease forwards, symbolFloat3 23s ease-in-out infinite 2s; }
.home-hero-symbols span:nth-child(10) { top: 92%; left: 60%;  font-size:  85px; color: #ff6584; animation: symbolFadeIn 2s ease forwards, symbolFloat1 20s ease-in-out infinite 2s; }
.home-hero-symbols span:nth-child(11) { top: 15%; left: 68%;  font-size:  60px; color: #ffd93d; animation: symbolFadeIn 2s ease forwards, symbolFloat2 17s ease-in-out infinite 2s; }
.home-hero-symbols span:nth-child(12) { top: 62%; left: 32%;  font-size:  55px; color: #4facfe; animation: symbolFadeIn 2s ease forwards, symbolFloat3 18s ease-in-out infinite 2s; }

/* Fade-in to base opacity, then hold */
@keyframes symbolFadeIn {
    0%   { opacity: 0; }
    100% { opacity: 0.09; }
}

/* Three floating/rotating patterns, all slow + gentle */
@keyframes symbolFloat1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50%      { transform: translate(20px, -30px) rotate(8deg); }
}

@keyframes symbolFloat2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50%      { transform: translate(-25px, 20px) rotate(-10deg); }
}

@keyframes symbolFloat3 {
    0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
    50%      { transform: translate(15px, 25px) rotate(6deg) scale(1.08); }
}

.home-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 100%;
    text-align: center;
}

.home-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    background: rgba(108, 99, 255, 0.1);
    border: 1px solid rgba(108, 99, 255, 0.2);
    color: var(--home-accent);
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

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

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

.home-hero-badge .pulse-dot {
    width: 6px;
    height: 6px;
    background: var(--home-accent);
    border-radius: 50%;
    animation: pulseDot 2s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

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

.home-hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2.5rem, 8vw, 5.5rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: #fff;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 40px rgba(108, 99, 255, 0.3);
}

.home-hero-title .gradient-text {
    background: linear-gradient(135deg, #6c63ff 0%, #ff6584 50%, #ffd93d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    filter: drop-shadow(0 0 30px rgba(108, 99, 255, 0.4));
}

.home-hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--home-text-muted);
    max-width: 640px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
}

.home-hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.home-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 2.25rem;
    border-radius: 3rem;
    background: linear-gradient(135deg, #6c63ff, #ff6584);
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(108, 99, 255, 0.3);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.home-btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.home-btn-primary:hover::before {
    left: 100%;
}

.home-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(108, 99, 255, 0.5);
    color: #fff;
}

.home-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 2rem;
    border-radius: 3rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-weight: 500;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.home-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: translateY(-2px);
}

.home-hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--home-text-muted);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 2;
}

.home-hero-scroll .scroll-line {
    width: 1px;
    height: 30px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0%, 100% { opacity: 0.3; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(1.3); }
}

/* ============================================
   STATS SECTION
   ============================================ */
.home-stats {
    padding: 4rem 1.5rem;
    background: rgba(13, 13, 31, 0.85);
    border-top: 1px solid var(--home-border);
    border-bottom: 1px solid var(--home-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.home-stats::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(90deg, rgba(108, 99, 255, 0.05) 1px, transparent 1px),
        linear-gradient(0deg, rgba(108, 99, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.5;
    pointer-events: none;
}

.home-stats-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.home-stat-item {
    position: relative;
}

.home-stat-item::after {
    content: '';
    position: absolute;
    right: -1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 40px;
    background: var(--home-border);
}

.home-stat-item:last-child::after {
    display: none;
}

.home-stat-number {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, #6c63ff, #ff6584);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 0 20px rgba(108, 99, 255, 0.3));
}

.home-stat-label {
    font-size: 0.75rem;
    color: var(--home-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
}

/* ============================================
   SECTION WRAPPER
   ============================================ */
.home-section {
    padding: 5rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.home-section::before {
    content: '';
    position: absolute;
    top: 20px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.06) 0%, transparent 70%);
    pointer-events: none;
    border-radius: 50%;
    animation: orbFloat1 15s ease-in-out infinite;
}

.home-section-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.home-section-eyebrow {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--home-accent);
    margin-bottom: 1rem;
    padding: 0.25rem 0.85rem;
    border-radius: 2rem;
    background: rgba(108, 99, 255, 0.08);
    border: 1px solid rgba(108, 99, 255, 0.15);
}

.home-section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.home-section-subtitle {
    font-size: 1rem;
    color: var(--home-text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ============================================
   FEATURED GAMES - Uniform Cards
   ============================================ */
.home-featured-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.home-featured-card {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    background: linear-gradient(135deg, #12122e, #0a0a1a);
    border: 1px solid var(--home-border);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.4s ease,
                box-shadow 0.4s ease;
    aspect-ratio: 4 / 5;
    width: 100%;
    min-height: 0;
    max-height: 460px;
    display: flex;
    align-items: flex-end;
    text-decoration: none;
    isolation: isolate;
}

.home-featured-card::before,
.home-featured-card::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    border: 2px solid rgba(108, 99, 255, 0.7);
    opacity: 0;
    transition: opacity 0.35s ease, transform 0.35s ease;
    pointer-events: none;
    z-index: 6;
}

.home-featured-card::before {
    top: 12px;
    left: 12px;
    border-right: none;
    border-bottom: none;
    border-radius: 8px 0 0 0;
    transform: translate(-4px, -4px);
}

.home-featured-card::after {
    bottom: 12px;
    right: 12px;
    border-left: none;
    border-top: none;
    border-radius: 0 0 8px 0;
    transform: translate(4px, 4px);
}

.home-featured-card:hover::before,
.home-featured-card:hover::after {
    opacity: 1;
    transform: translate(0, 0);
}

.home-featured-card:hover {
    transform: translateY(-8px);
    border-color: rgba(108, 99, 255, 0.5);
    box-shadow:
        0 25px 80px rgba(108, 99, 255, 0.3),
        0 0 60px rgba(108, 99, 255, 0.15);
    text-decoration: none;
}

.home-featured-card-glow {
    position: absolute;
    inset: -1px;
    border-radius: 1.5rem;
    padding: 1px;
    background: linear-gradient(135deg, transparent, rgba(108, 99, 255, 0.5), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 5;
}

.home-featured-card:hover .home-featured-card-glow {
    opacity: 1;
}

.home-featured-card-bg {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    opacity: 0.45;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.6s ease,
                filter 0.6s ease;
    z-index: 0;
    filter: drop-shadow(0 0 50px rgba(108, 99, 255, 0.5));
    line-height: 1;
}

.home-featured-card-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(108, 99, 255, 0.15) 1px, transparent 1px);
    background-size: 18px 18px;
    opacity: 0.5;
    z-index: -1;
}

.home-featured-card:hover .home-featured-card-bg {
    opacity: 0.85;
    transform: scale(1.15) rotate(-4deg);
    filter: drop-shadow(0 0 70px rgba(108, 99, 255, 0.7));
}

.home-featured-card-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top,
            rgba(10, 10, 26, 0.98) 0%,
            rgba(10, 10, 26, 0.7) 40%,
            rgba(10, 10, 26, 0.2) 70%,
            transparent 100%);
    pointer-events: none;
    z-index: 1;
}

.home-featured-card-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 100%, rgba(108, 99, 255, 0.25) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.home-featured-card:hover .home-featured-card-overlay::after {
    opacity: 1;
}

.home-featured-card-content {
    position: relative;
    z-index: 2;
    padding: 1.5rem 1.35rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.home-featured-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.7rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(255, 217, 61, 0.2), rgba(255, 159, 67, 0.15));
    border: 1px solid rgba(255, 217, 61, 0.35);
    color: var(--home-accent-3);
    font-size: 0.6rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    align-self: flex-start;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(255, 217, 61, 0.2);
}

.home-featured-badge i {
    font-size: 0.55rem;
    filter: drop-shadow(0 0 6px currentColor);
}

.home-featured-name {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.35rem, 2.4vw, 1.65rem);
    font-weight: 800;
    color: #fff;
    margin: 0;
    line-height: 1.15;
    text-shadow: 0 0 30px rgba(108, 99, 255, 0.5);
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-featured-desc {
    color: var(--home-text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(0.85rem * 1.5 * 2);
    max-height: calc(0.85rem * 1.5 * 2);
}

.home-featured-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    padding-top: 0.75rem;
    margin-top: 0.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.home-featured-meta-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--home-text-muted);
    font-size: 0.75rem;
    font-weight: 500;
}

.home-featured-meta-item i {
    color: var(--home-accent);
    font-size: 0.65rem;
    filter: drop-shadow(0 0 6px rgba(108, 99, 255, 0.5));
}

/* ============================================
   GAME LIBRARY GRID
   ============================================ */
.home-games-filter {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 1;
}

.home-filter-btn {
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--home-border);
    color: var(--home-text-muted);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.home-filter-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(108, 99, 255, 0.15);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    z-index: -1;
}

.home-filter-btn:hover::before {
    width: 200%;
    height: 200%;
}

.home-filter-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-color: rgba(108, 99, 255, 0.3);
}

.home-filter-btn.active {
    background: linear-gradient(135deg, #6c63ff, #ff6584);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 8px 25px rgba(108, 99, 255, 0.4);
}

.home-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1.25rem;
    position: relative;
    z-index: 1;
}

.home-game-card {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--home-border);
    transition: all 0.4s ease;
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.home-game-card::before,
.home-game-card::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    border: 2px solid rgba(108, 99, 255, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
}

.home-game-card::before {
    top: 6px;
    left: 6px;
    border-right: none;
    border-bottom: none;
    border-radius: 4px 0 0 0;
}

.home-game-card::after {
    bottom: 6px;
    right: 6px;
    border-left: none;
    border-top: none;
    border-radius: 0 0 4px 0;
}

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

.home-game-card:hover {
    transform: translateY(-6px);
    border-color: rgba(108, 99, 255, 0.4);
    box-shadow: 0 20px 50px rgba(108, 99, 255, 0.25);
    text-decoration: none;
}

.home-game-thumb {
    position: relative;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    background: linear-gradient(135deg, #12122e, #0a0a1a);
    overflow: hidden;
    line-height: 1;
}

.home-game-thumb::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(108, 99, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(108, 99, 255, 0.08) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.5;
    z-index: 0;
}

.home-game-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 10, 26, 0.9), transparent 60%);
    z-index: 1;
}

.home-game-thumb > * {
    position: relative;
    z-index: 2;
}

.home-game-type {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.15rem 0.5rem;
    border-radius: 1rem;
    font-size: 0.55rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 3;
    backdrop-filter: blur(10px);
}

.home-game-type.type-2d {
    background: rgba(108, 99, 255, 0.85);
    color: #fff;
    box-shadow: 0 0 15px rgba(108, 99, 255, 0.5);
}

.home-game-type.type-3d {
    background: rgba(255, 101, 132, 0.85);
    color: #fff;
    box-shadow: 0 0 15px rgba(255, 101, 132, 0.5);
}

.home-game-body {
    padding: 0.75rem 0.85rem 1rem;
    position: relative;
    z-index: 2;
}

.home-game-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: #fff;
    margin-bottom: 0.15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-game-category {
    font-size: 0.7rem;
    color: var(--home-text-muted);
}

.home-games-view-all {
    text-align: center;
    margin-top: 3rem;
    position: relative;
    z-index: 1;
}

/* ============================================
   COMING SOON SECTION
   ============================================ */
.home-coming-soon {
    margin-top: 4rem;
    padding: 0 0.25rem;
    position: relative;
    z-index: 1;
}

.home-coming-soon-inner {
    position: relative;
    padding: 3rem 2rem;
    border-radius: 1.5rem;
    background:
        linear-gradient(135deg, rgba(108, 99, 255, 0.06), rgba(255, 101, 132, 0.04)),
        linear-gradient(135deg, #12122e, #0a0a1a);
    border: 1px solid rgba(108, 99, 255, 0.15);
    text-align: center;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(108, 99, 255, 0.1);
}

.home-coming-soon-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(rgba(108, 99, 255, 0.12) 1px, transparent 1px);
    background-size: 22px 22px;
    opacity: 0.5;
    pointer-events: none;
    animation: comingGridDrift 40s linear infinite;
}

@keyframes comingGridDrift {
    0% { background-position: 0 0; }
    100% { background-position: 22px 22px; }
}

.home-coming-soon-inner::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.15) 0%, transparent 60%);
    border-radius: 50%;
    pointer-events: none;
    animation: orbFloat1 18s ease-in-out infinite;
}

.home-coming-soon-icon {
    position: relative;
    z-index: 2;
    width: 72px;
    height: 72px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #6c63ff, #ff6584);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: #fff;
    box-shadow: 0 15px 50px rgba(108, 99, 255, 0.4);
    animation: rocketBob 3s ease-in-out infinite;
}

@keyframes rocketBob {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-8px) rotate(5deg); }
}

.home-coming-soon-title {
    position: relative;
    z-index: 2;
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    font-weight: 800;
    color: #fff;
    margin: 0 0 0.75rem;
    line-height: 1.2;
}

.home-coming-soon-title .gradient-text {
    background: linear-gradient(135deg, #6c63ff, #ff6584, #ffd93d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 25px rgba(108, 99, 255, 0.4));
}

.home-coming-soon-desc {
    position: relative;
    z-index: 2;
    color: var(--home-text-muted);
    font-size: 1rem;
    max-width: 560px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.home-coming-soon-chips {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    max-width: 720px;
    margin: 0 auto 2rem;
}

.home-coming-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.9rem;
    border-radius: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(108, 99, 255, 0.15);
    color: var(--home-text-muted);
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: default;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.home-coming-chip span:first-child {
    font-size: 0.95rem;
    filter: drop-shadow(0 0 6px rgba(108, 99, 255, 0.4));
}

.home-coming-chip:hover {
    background: rgba(108, 99, 255, 0.08);
    border-color: rgba(108, 99, 255, 0.4);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108, 99, 255, 0.2);
}

.home-coming-chip-more {
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.15), rgba(255, 101, 132, 0.1));
    border-color: rgba(108, 99, 255, 0.3);
    color: #fff;
    font-weight: 700;
}

.home-coming-chip-more:hover {
    background: linear-gradient(135deg, #6c63ff, #ff6584);
    border-color: transparent;
    color: #fff;
}

.home-coming-soon-cta {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   WHY SECTION
   ============================================ */
.home-why {
    padding: 5rem 1.5rem;
    background: rgba(13, 13, 31, 0.85);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.home-why::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(rgba(108, 99, 255, 0.08) 1.5px, transparent 1.5px);
    background-size: 30px 30px;
    opacity: 0.4;
    pointer-events: none;
}

.home-why-inner {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.home-why-block {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
    margin-bottom: 4rem;
}

.home-why-block:last-child {
    margin-bottom: 0;
}

.home-why-visual {
    position: relative;
    aspect-ratio: 1;
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
    border-radius: 1.5rem;
    background: linear-gradient(135deg, #12122e, #0a0a1a);
    border: 1px solid var(--home-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    line-height: 1;
}

.home-why-visual::before {
    content: '';
    position: absolute;
    inset: -50%;
    background: conic-gradient(from 0deg, transparent, rgba(108, 99, 255, 0.25), transparent 30%);
    animation: rotate 10s linear infinite;
    z-index: 0;
}

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

.home-why-visual::after {
    content: '';
    position: absolute;
    inset: 20px;
    border-radius: 1rem;
    background-image:
        linear-gradient(rgba(108, 99, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(108, 99, 255, 0.1) 1px, transparent 1px);
    background-size: 25px 25px;
    opacity: 0.5;
    z-index: 0;
}

.home-why-visual-content {
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 30px rgba(108, 99, 255, 0.5));
    animation: iconBounce 3s ease-in-out infinite;
}

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

.home-why-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.home-why-desc {
    font-size: 1rem;
    color: var(--home-text-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.home-why-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

.home-why-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--home-text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.home-why-features li i {
    color: var(--home-accent);
    margin-top: 0.2rem;
    flex-shrink: 0;
}

/* ============================================
   TECH MARQUEE
   ============================================ */
.home-tech {
    padding: 3rem 0;
    border-top: 1px solid var(--home-border);
    border-bottom: 1px solid var(--home-border);
    overflow: hidden;
    background: rgba(10, 10, 26, 0.9);
    position: relative;
}

.home-tech::before,
.home-tech::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(108, 99, 255, 0.5), transparent);
    pointer-events: none;
}

.home-tech::before {
    top: 0;
}

.home-tech::after {
    bottom: 0;
}

.home-tech-label {
    text-align: center;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--home-text-muted);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.home-tech-marquee {
    display: flex;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    position: relative;
    z-index: 1;
}

.home-tech-track {
    display: flex;
    gap: 3rem;
    animation: marquee 30s linear infinite;
    flex-shrink: 0;
    padding-right: 3rem;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}

.home-tech-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--home-text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.home-tech-item:hover {
    color: #fff;
}

.home-tech-item i {
    font-size: 1.5rem;
    filter: drop-shadow(0 0 10px currentColor);
}

/* ============================================
   TESTER CTA SECTION
   ============================================ */
.home-tester-cta {
    padding: 5rem 1.5rem;
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.05), rgba(255, 101, 132, 0.03));
    border-top: 1px solid var(--home-border);
    border-bottom: 1px solid var(--home-border);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.home-tester-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(108, 99, 255, 0.04) 1px, transparent 1px);
    background-size: 100% 20px;
    animation: codeRain 20s linear infinite;
    pointer-events: none;
    opacity: 0.6;
}

@keyframes codeRain {
    0% { background-position: 0 0; }
    100% { background-position: 0 100px; }
}

.home-tester-cta-inner {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.home-tester-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 1rem;
    border-radius: 2rem;
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.home-tester-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.5rem, 3.5vw, 2.5rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.home-tester-desc {
    color: var(--home-text-muted);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.home-tester-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   FINAL CTA SECTION
   ============================================ */
.home-final-cta {
    padding: 6rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse at center, rgba(108, 99, 255, 0.1) 0%, transparent 70%);
}

.home-final-cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.15) 0%, transparent 60%);
    animation: orbFloat1 15s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

.home-final-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 1;
}

.home-final-title .gradient-text {
    background: linear-gradient(135deg, #6c63ff, #ff6584);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 40px rgba(108, 99, 255, 0.5));
}

.home-final-subtitle {
    color: var(--home-text-muted);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.home-final-cta > div {
    position: relative;
    z-index: 1;
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================
   RESPONSIVE - Featured Grid
   ============================================ */
@media (min-width: 640px) {
    .home-featured-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (min-width: 992px) {
    .home-featured-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.75rem;
    }

    .home-featured-card {
        aspect-ratio: auto;
        height: 420px;
        max-height: 420px;
    }
}

/* ============================================
   RESPONSIVE - Tablet
   ============================================ */
@media (min-width: 768px) {
    .home-why-block {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
        margin-bottom: 5rem;
    }
    
    .home-why-block.reverse {
        direction: rtl;
    }
    
    .home-why-block.reverse > * {
        direction: ltr;
    }
    
    .home-games-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1.5rem;
    }
}

/* ============================================
   RESPONSIVE - Desktop
   ============================================ */
@media (min-width: 1024px) {
    .home-hero {
        padding: 120px 2rem 80px;
    }
    
    .home-section {
        padding: 7rem 2rem;
    }
    
    .home-games-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 1.75rem;
    }
}

/* ============================================
   RESPONSIVE - Mobile adjustments
   ============================================ */
@media (max-width: 767px) {
    .home-stat-item::after {
        display: none;
    }
    
    .home-stats-inner {
        gap: 1.5rem;
    }
    
    .home-featured-card {
        aspect-ratio: 4 / 5;
        max-height: 320px;
    }
    
    .home-featured-card-bg {
        font-size: 5.5rem;
        opacity: 0.5;
    }
    
    .home-featured-card-content {
        padding: 1.25rem 1.15rem;
    }
    
    .home-featured-name {
        font-size: 1.25rem;
    }
    
    .home-featured-desc {
        font-size: 0.8rem;
    }
    
    .home-games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .home-game-thumb {
        font-size: 2.5rem;
    }
    
    .home-game-name {
        font-size: 0.8rem;
    }
    
    .home-hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .home-btn-primary,
    .home-btn-secondary {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .home-why-visual {
        max-width: 280px;
        font-size: 4rem;
    }
    
    /* Coming soon mobile adjustments */
    .home-coming-soon-inner {
        padding: 2rem 1.25rem;
    }

    .home-coming-soon-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .home-coming-soon-desc {
        font-size: 0.9rem;
    }

    .home-coming-chip {
        padding: 0.4rem 0.75rem;
        font-size: 0.75rem;
    }

    .home-coming-soon-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .home-coming-soon-cta .home-btn-primary,
    .home-coming-soon-cta .home-btn-secondary {
        width: 100%;
        max-width: none;
        justify-content: center;
    }
    
    /* Reduce background intensity on mobile for performance */
    .home-container::before {
        background-size:
            16px 16px,
            60px 60px,
            60px 60px,
            100% 100%,
            100% 100%;
    }
    
    .home-container::after {
        opacity: 0.02;
        letter-spacing: 200px;
        line-height: 300px;
        word-spacing: 300px;
        padding: 100px;
    }
    
    /* Simplify hero symbols on mobile — smaller, less busy */
    .home-hero-symbols span {
        animation: symbolFadeIn 1.5s ease forwards !important;
        opacity: 0.06 !important;
        font-size: 55px !important;
    }
}

/* ============================================
   PREFERS-REDUCED-MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
    
    .home-container::before,
    .home-container::after {
        animation: none;
    }
    
    .home-hero-symbols span {
        animation: symbolFadeIn 0.5s ease forwards !important;
        opacity: 0.08 !important;
    }
}

/* End of file: app/static/css/home.css */
/* Signed: admin@thepandadev.com */