﻿/* Enhanced Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
    transform: translateZ(0); /* Force hardware acceleration to prevent scroll issues */
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    background: linear-gradient(45deg, #ffffff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    opacity: 0.95;
    font-weight: 300;
    position: relative;
}

/* Enhanced Primary CTA */
.primary-cta-container {
    margin-top: 3rem;
    position: relative;
    z-index: 2;
}

.free-download-card,
.premium-upgrade-card {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 1.5rem;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    position: relative;
    height: 100%;
}

.premium-upgrade-card.featured {
    border-color: #ffd700;
    box-shadow: 0 10px 40px rgba(255, 215, 0, 0.3);
    transform: scale(1.05);
}

.free-download-card:hover,
.premium-upgrade-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

.card-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #333;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    animation: pulse 2s infinite;
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: #ffd700;
    opacity: 0.9;
}

.card-icon i {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.price-display {
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.price-display .price {
    font-size: 2.5rem;
    font-weight: 900;
    color: #ffd700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.price-display .period {
    font-size: 1.1rem;
    opacity: 0.8;
    font-weight: 300;
}

/* Enhanced CTA Buttons */
.cta-button {
    background: linear-gradient(45deg, #667eea, #764ba2);
    border: none;
    color: white;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.cta-button::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;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
    color: white;
    text-decoration: none;
}

.cta-button-premium {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #333;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
}

.cta-button-premium:hover {
    color: #333;
    box-shadow: 0 12px 35px rgba(255, 215, 0, 0.5);
}

.cta-button-free {
    background: linear-gradient(45deg, #28a745, #20c997);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
}

.cta-button-free:hover {
    box-shadow: 0 12px 35px rgba(40, 167, 69, 0.4);
}

.guarantee {
    margin-top: 1rem;
    font-size: 0.9rem;
    opacity: 0.8;
    color: #ffd700;
}

/* Floating Particles Animation */
#floating-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
    transform: translateZ(0); /* Force hardware acceleration */
    will-change: transform; /* Optimize for animations */
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s infinite ease-in-out;
    transform: translateZ(0); /* Prevent layout shifts */
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg) translateZ(0);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) rotate(360deg) translateZ(0);
        opacity: 0;
    }
}

/* Enhanced Premium Preview Section */
.premium-preview-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    padding: 4rem 0;
    position: relative;
}

.premium-preview-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="80" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="40" cy="60" r="1.5" fill="rgba(255,255,255,0.08)"/></svg>');
    opacity: 0.3;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.2rem;
    opacity: 0.8;
    margin-bottom: 2rem;
}

/* Enhanced Feature Cards */
.quick-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.feature-preview-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-preview-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.02), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.feature-preview-card:hover::before {
    transform: translateX(100%);
}

.feature-preview-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 215, 0, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: #ffd700;
}

.feature-badge.premium {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #333;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    display: inline-block;
    margin-top: 1rem;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

/* Enhanced Pulse Effect */
.pulse-effect {
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    }
    50% {
        box-shadow: 0 12px 35px rgba(102, 126, 234, 0.6);
        transform: translateY(-2px);
    }
    100% {
        box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    }
}

.mega-pulse {
    animation: mega-pulse-glow 3s infinite;
}

@keyframes mega-pulse-glow {
    0% {
        box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 20px 60px rgba(255, 215, 0, 0.7);
        transform: scale(1.05);
    }
    100% {
        box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
        transform: scale(1);
    }
}

/* Enhanced Pricing Highlights */
.pricing-highlight {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #333;
    padding: 1.5rem 2rem;
    border-radius: 2rem;
    text-align: center;
    margin: 2rem 0;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.pricing-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.price-amount {
    font-size: 2rem;
    font-weight: 900;
    margin: 0 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Enhanced Conversion Elements */
.conversion-guarantee {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.guarantees {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.guarantee-item {
    font-size: 0.9rem;
    opacity: 0.9;
    white-space: nowrap;
}

/* Enhanced Mission Section */
.compact-mission-section {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    padding: 3rem 0;
    color: white;
    position: relative;
}

.mission-compact-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    padding: 2.5rem;
    backdrop-filter: blur(10px);
}

.mission-header-compact {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    justify-content: center;
}

.mission-header-compact h3 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

.mission-pillars-compact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.pillar-compact {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pillar-compact i {
    font-size: 1.5rem;
    margin-right: 1rem;
    color: #ffd700;
}

/* Enhanced Stats Section */
.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 2rem;
    color: white;
}

.stat {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.stat:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 215, 0, 0.3);
}

.stat h2 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

.stat p {
    font-size: 1.1rem;
    opacity: 0.8;
    margin: 0;
    font-weight: 500;
}

/* Enhanced Final CTA */
.final-cta-section {
    margin: 4rem 0 2rem;
}

.cta-background {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2rem;
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: white !important;
    margin-bottom: 1rem;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.7);
    font-weight: 900;
    letter-spacing: -0.02em;
}

.cta-subtitle {
    font-size: 1.3rem;
    color: white !important;
    opacity: 1;
    margin-bottom: 2rem;
    font-weight: 400;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    line-height: 1.4;
}

/* Ensure all CTA text elements are properly contrasted */
.cta-content * {
    color: white !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.cta-content .price {
    color: white !important;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
    font-weight: 800;
}

.cta-content .premium-cta-btn {
    background: rgba(255, 255, 255, 0.25) !important;
    color: white !important;
    border: 3px solid white !important;
    backdrop-filter: blur(15px);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    font-weight: 700;
    font-size: 1.1rem;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
}

.cta-content .premium-cta-btn:hover {
    background: white !important;
    color: #667eea !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    text-shadow: none;
}

/* Enhanced Featured Games */
.featured-game-card {
    background: white;
    border-radius: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

.featured-game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.featured-game-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    font-weight: bold;
    font-size: 1.2rem;
    text-align: center;
}

.featured-game-body {
    padding: 1.5rem;
}

.highscore-table {
    width: 100%;
    font-size: 0.9rem;
}

.highscore-table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    padding: 0.75rem 0.5rem;
    font-weight: 600;
    border: none;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.highscore-table td {
    padding: 0.5rem;
    border-bottom: 1px solid #eee;
}

.view-all-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.view-all-link:hover {
    color: #5a6fd8;
    text-decoration: none;
    transform: translateX(5px);
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .primary-cta-container .row {
        gap: 1rem;
    }
    
    .premium-upgrade-card.featured {
        transform: none;
        margin-top: 1rem;
    }
    
    .quick-features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .guarantees {
        gap: 1rem;
        flex-direction: column;
        align-items: center;
    }
    
    .guarantee-item {
        text-align: center;
    }
    
    .mission-pillars-compact {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 3rem 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .cta-button {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
}

/* Extra small mobile devices */
@media (max-width: 575px) {
    :root {
        --header-height: 90px; /* Even smaller for very small screens */
    }
    
    body {
        margin-bottom: 100px;
    }
    
    footer {
        padding: 1rem 0.25rem;
    }
    
    footer p,
    footer span,
    footer small,
    footer .text-muted {
        font-size: 0.65rem !important;
        line-height: 1.1 !important;
    }
    
    footer a {
        font-size: 0.65rem !important;
    }
    
    .footer-text-long {
        display: none !important;
    }
    
    .footer-text-short {
        display: block !important;
    }
}

/* Utility classes for footer text management */
.footer-text-short {
    display: none;
}

.footer-text-long {
    display: block;
}

/* Hero Section */
.hero-section {
    background: transparent;
    color: white;
    text-align: center;
    padding: 4rem 0;
    position: relative;
    z-index: 1;
    margin-top: 0;
}

#floating-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    background: linear-gradient(45deg, #fff, #a183ff, #fff);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    animation: shine 3s linear infinite;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Primary CTA Container */
.primary-cta-container {
    margin: 3rem auto 2rem;
    max-width: 800px;
}

.free-download-card,
.premium-upgrade-card {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    color: white !important;
    position: relative;
    overflow: hidden;
}

.premium-upgrade-card.featured {
    border-color: rgba(102, 126, 234, 0.5);
    background: rgba(102, 126, 234, 0.1) !important;
}

.card-badge {
    position: absolute;
    top: -10px;
    right: 15px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0 0 0.5rem 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
}

.free-download-card:hover,
.premium-upgrade-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.price-display {
    margin: 1rem 0;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: #667eea;
}

.period {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
}

.guarantee {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.5rem;
    display: block;
}

.cta-button {
    background: linear-gradient(45deg, #007bff, #0056b3);
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
    color: white;
    text-decoration: none;
}

.cta-button-free {
    background: linear-gradient(45deg, #28a745, #20c997);
}

.cta-button-premium {
    background: linear-gradient(45deg, #667eea, #764ba2);
}

/* Premium Preview Section */
.premium-preview-section {
    background: rgba(15, 19, 35, 0.8) !important;
    backdrop-filter: blur(20px);
    padding: 4rem 0;
    margin: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.section-title {
    color: white !important;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 1.2rem;
}

.quick-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 400px;
}

.feature-preview-card {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease;
    position: relative;
    height: 100%;
    color: white !important;
}

.feature-preview-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15) !important;
}

.feature-preview-card h4,
.feature-preview-card p {
    color: white !important;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
}

.feature-badge.premium {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 1rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* Stone Tablet Mission Statement */
.compact-mission-section {
    background: rgba(15, 19, 35, 0.6) !important;
    backdrop-filter: blur(20px);
    padding: 3rem 0;
    border-top: 1px solid rgba(139, 69, 19, 0.3);
    border-bottom: 1px solid rgba(139, 69, 19, 0.3);
}

.mission-compact-card {
    background: linear-gradient(135deg, 
        rgba(139, 69, 19, 0.15) 0%,
        rgba(160, 82, 45, 0.12) 25%,
        rgba(139, 69, 19, 0.18) 50%,
        rgba(101, 67, 33, 0.15) 75%,
        rgba(139, 69, 19, 0.12) 100%) !important;
    backdrop-filter: blur(20px);
    border: 3px solid rgba(139, 69, 19, 0.4);
    border-radius: 1.5rem;
    padding: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    color: white !important;
    position: relative;
    box-shadow: 
        0 8px 32px rgba(139, 69, 19, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(139, 69, 19, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 80% 50%, rgba(160, 82, 45, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 40% 70%, rgba(101, 67, 33, 0.08) 1px, transparent 1px);
}

.mission-compact-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        rgba(218, 165, 32, 0.5), 
        rgba(139, 69, 19, 0.3), 
        rgba(218, 165, 32, 0.5));
    border-radius: 1.5rem;
    z-index: -1;
    filter: blur(1px);
}

.mission-header-compact {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #DAA520 !important;
    font-weight: 700;
    font-size: 1.4rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 1px;
}

.mission-header-compact i {
    color: #DAA520;
    font-size: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.mission-pillars-compact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.pillar-compact {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: white !important;
    font-size: 0.95rem;
    padding: 1rem;
    background: rgba(139, 69, 19, 0.1);
    border-radius: 0.75rem;
    border: 1px solid rgba(139, 69, 19, 0.2);
    transition: all 0.3s ease;
}

.pillar-compact:hover {
    background: rgba(139, 69, 19, 0.15);
    transform: translateY(-2px);
}

.pillar-compact i {
    color: #DAA520;
    font-size: 1.5rem;
    flex-shrink: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.pillar-compact span {
    color: white !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.mission-footer-compact {
    text-align: center;
    color: #DAA520 !important;
    font-style: italic;
    padding-top: 1.5rem;
    border-top: 2px solid rgba(139, 69, 19, 0.3);
    font-size: 1.1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.5px;
}

.mission-details-expanded {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: rgba(139, 69, 19, 0.08);
    border-radius: 1rem;
    border: 1px solid rgba(139, 69, 19, 0.2);
}

.mission-details-expanded h5 {
    color: #DAA520 !important;
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.mission-details-expanded p {
    color: white !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    line-height: 1.6;
}

/* Social Proof Section */
.social-proof-section {
    padding: 2rem 0;
    background: rgba(15, 19, 35, 0.4) !important;
    backdrop-filter: blur(20px);
}

.stat-card {
    padding: 1.5rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 0.75rem;
    color: white !important;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.15) !important;
}

.stat-card.featured {
    background: rgba(102, 126, 234, 0.2) !important;
    border: 2px solid rgba(102, 126, 234, 0.3);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #667eea;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8) !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.5rem;
}

/* Stats Section */
.stats-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin: 60px 0;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.stat {
    text-align: center;
    flex: 1;
    margin: 10px;
    min-width: 150px;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.stat:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.stat h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.stat p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Highscore Sections */
.highscores-container {
    margin: 60px 0;
    padding: 40px 0;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 15px;
}

.highscores-container h2 {
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 40px;
    font-weight: 700;
}

.featured-game-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    height: 100%;
}

.featured-game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
}

.featured-game-header {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    color: white;
    padding: 20px;
    font-weight: 600;
    font-size: 1.1rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.featured-game-header.bg-dark {
    background: linear-gradient(135deg, #2c3e50, #34495e);
}

.featured-game-body {
    padding: 25px;
    color: #fff;
    background: rgba(0, 0, 0, 0.2);
}

.highscore-table {
    width: 100%;
    color: white;
    font-size: 0.9rem;
}

.highscore-table th {
    background: rgba(102, 126, 234, 0.8) !important;
    color: white !important;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.highscore-table td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem;
}

.view-all-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.view-all-link:hover {
    color: #5a6fd8;
    text-decoration: none;
}

/* Media Section */
.media-section {
    margin: 60px 0;
}

.responsive-video {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.responsive-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* GAMES GRID - Completely rewritten for 4K compatibility */
#games-container {
    width: 100%;
    max-width: 100%;
    overflow: visible;
    scroll-margin-top: var(--header-height); /* Account for fixed header */
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* Container wrapper - FIXED centering */
.games-container-wrapper {
    min-height: 400px !important;
    display: flex !important;
    flex-direction: column !important;
    max-width: 100% !important;
    width: 100% !important;
    overflow: visible !important;
    justify-content: center !important;
    align-items: center !important;
}

.games-container-wrapper .games-grid {
    flex: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
    display: grid !important;
    justify-items: center !important; /* Center grid items */
    align-items: start !important;
}

.games-container-wrapper .pagination-container {
    margin-top: auto !important;
    position: static !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
}

/* Override any conflicting table or grid styles from other CSS files */
.games-grid {
    display: grid !important;
    gap: 1.5rem;
    min-height: 300px;
    margin: 2rem 0;
    width: 100% !important;
    max-width: 100% !important;
    justify-content: center !important;
    justify-items: center !important; /* Center each grid item */
    align-items: start !important;
    
    /* Force explicit column counts for different screen sizes */
    grid-template-columns: repeat(1, 1fr); /* Mobile default */
}

/* Responsive breakpoints with explicit column counts */
@media (min-width: 576px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (min-width: 768px) {
    .games-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (min-width: 992px) {
    .games-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

@media (min-width: 1200px) {
    .games-grid {
        grid-template-columns: repeat(5, 1fr) !important;
    }
}

@media (min-width: 1400px) {
    .games-grid {
        grid-template-columns: repeat(6, 1fr) !important;
    }
}

@media (min-width: 1920px) {
    .games-grid {
        grid-template-columns: repeat(7, 1fr) !important;
    }
}

@media (min-width: 2560px) {
    .games-grid {
        grid-template-columns: repeat(8, 1fr) !important;
    }
}

@media (min-width: 3440px) {
    .games-grid {
        grid-template-columns: repeat(10, 1fr) !important;
    }
}

@media (min-width: 3840px) {
    .games-grid {
        grid-template-columns: repeat(12, 1fr) !important;
    }
}

/* Game Cards - COMPLETELY FIXED centering */
.game-card {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 0.75rem !important;
    padding: 1.5rem !important;
    text-align: center !important;
    transition: all 0.3s ease !important;
    color: white !important;
    position: relative !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    min-height: 280px !important;
    width: 100% !important;
    max-width: 280px !important; /* Add max-width for better consistency */
    box-sizing: border-box !important;
    margin: 0 auto !important; /* Center within grid cell */
    place-self: center !important; /* Grid centering */
}

.game-card:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    transform: translateY(-5px) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
}

.game-status {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    z-index: 2 !important;
}

.bg-gradient-premium {
    background: linear-gradient(45deg, #667eea, #764ba2) !important;
}

/* COMPLETELY FIXED: Game icon wrapper centering */
.game-icon-wrapper {
    width: 80px !important;
    height: 80px !important;
    margin: 0 auto 1rem !important;
    border-radius: 0.5rem !important;
    overflow: hidden !important;
    background: rgba(255, 255, 255, 0.1) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    position: relative !important;
}

.game-icon-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 0.5rem !important;
    display: block !important;
    margin: 0 !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
}

/* Fallback for missing images - FIXED positioning */
/* .game-icon-wrapper::before {
    content: '🎮';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.5);
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
} */

/* Hide fallback when image loads successfully */
.game-icon-wrapper:has(.game-icon-img[src]:not([src=""])) ::before {
    display: none;
}

.game-info {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    min-height: 120px !important;
    width: 100% !important;
    text-align: center !important;
    align-items: center !important;
}

.game-name {
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    margin-bottom: 0.5rem !important;
    color: white !important;
    line-height: 1.3 !important;
    text-align: center !important;
    width: 100% !important;
}

.game-genre {
    font-size: 0.9rem !important;
    color: rgba(255, 255, 255, 0.8) !important;
    margin-bottom: 0.25rem !important;
    text-align: center !important;
    width: 100% !important;
}

.game-system {
    font-size: 0.8rem !important;
    color: rgba(255, 255, 255, 0.6) !important;
    margin-bottom: 0.5rem !important;
    text-align: center !important;
    width: 100% !important;
}

.release-year, .game-description {
    font-size: 0.8rem !important;
    color: #667eea !important;
    margin-top: auto !important;
    padding-top: 0.5rem !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    text-align: center !important;
    width: 100% !important;
}

.game-description {
    cursor: help !important;
}

/* Pagination */
.pagination-container {
    position: sticky;
    bottom: 0;
    background: rgba(15, 19, 35, 0.9);
    backdrop-filter: blur(20px);
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.pagination-container .btn.active {
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-color: transparent;
    color: white;
}

.loading-container,
.error-container {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
}

/* Empty state - FIXED centering */
.empty-state {
    background: rgba(255, 255, 255, 0.05);
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    padding: 3rem;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    grid-column: 1 / -1;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    width: 100%;
    place-self: center; /* Grid centering */
}

/* Animations */
@keyframes shine {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 200% center;
    }
}

/* Responsive Adjustments for Mobile */
@media (max-width: 575px) {
    body {
        margin-top: var(--header-height);
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .game-card {
        min-height: 200px !important;
        padding: 1rem !important;
    }
    
    .game-icon-wrapper {
        width: 60px !important;
        height: 60px !important;
    }
    
    .game-icon-wrapper::before {
        font-size: 1.5rem !important;
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .stats-section {
        flex-direction: column;
        margin: 40px 0;
        padding: 30px 15px;
    }
    
    .stat {
        margin: 10px 0;
    }
    
    .primary-cta-container {
        margin: 2rem auto 1rem;
    }
    
    .free-download-card,
    .premium-upgrade-card {
        padding: 1.5rem 1rem;
        margin-bottom: 1rem;
    }
    
    .featured-game-body {
        padding: 20px;
    }
    
    .quick-features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        min-height: auto;
    }
    
    .mission-pillars-compact {
        grid-template-columns: 1fr;
    }
    
    .mission-compact-card {
        padding: 1.5rem;
    }
    
    .mission-header-compact {
        font-size: 1.2rem;
    }
    
    .empty-state {
        padding: 2rem;
        min-height: 250px;
    }
    
    .price {
        font-size: 2rem;
    }
    
    .stat h2 {
        font-size: 2rem;
    }
    
    .stat p {
        font-size: 0.9rem;
    }
    
    .card-icon {
        font-size: 2.5rem;
    }
}

/* Ensure all text elements are white where needed */
.premium-preview-section *,
.compact-mission-section *,
.social-proof-section * {
    color: inherit;
}

.premium-preview-section h2,
.premium-preview-section h3,
.premium-preview-section h4,
.premium-preview-section p,
.compact-mission-section h3,
.compact-mission-section span,
.social-proof-section .stat-number,
.social-proof-section .stat-label {
    color: white !important;
}