/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base Styles */
body {
    background: linear-gradient(135deg, #0d0724 0%, #1e1b4b 20%, #0f0f23 40%, #050511 70%, #000000 100%);
    color: #fff;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    padding-top: 80px; /* Add padding for fixed header */
}

/* Animated Background Canvas */
#backgroundCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: transparent;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(76, 42, 133, 0.3);
    z-index: 100;
    padding: 1rem 0;
    box-shadow: 0 4px 30px rgba(76, 42, 133, 0.1);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.nav-center {
    display: flex;
    gap: 2rem;
}

.nav-center a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.nav-center a:hover {
    color: #4c2a85;
    background: rgba(76, 42, 133, 0.1);
}

.nav-center a.active {
    color: #4c2a85;
    background: rgba(76, 42, 133, 0.15);
}

.cart-icon {
    position: absolute;
    right: 2rem;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 8px;
}

.cart-icon:hover {
    color: #4c2a85;
    background: rgba(76, 42, 133, 0.1);
}

/* Main Content */
main {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 8rem 2rem 2rem;
    z-index: 10;
}

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 6rem;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff 0%, #4c2a85 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(76, 42, 133, 0.3);
}

.subtitle {
    font-size: 1.3rem;
    color: #a0aec0;
    max-width: 650px;
    margin: 0 auto 3rem;
    line-height: 1.8;
}

.action-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 3rem;
}

.btn {
    padding: 14px 30px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::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;
}

.btn:hover::before {
    left: 100%;
}

.btn.primary {
    background: linear-gradient(135deg, #4c2a85, #2d1b69);
    color: white;
    box-shadow: 0 6px 20px rgba(76, 42, 133, 0.4);
}

.btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(76, 42, 133, 0.6);
}

.btn.secondary {
    background: rgba(76, 42, 133, 0.15);
    color: #4c2a85;
    border: 1px solid rgba(76, 42, 133, 0.3);
}

.btn.secondary:hover {
    background: rgba(76, 42, 133, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(76, 42, 133, 0.3);
}

/* Products Grid - Enhanced */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    max-width: 1100px;
    margin: 0 auto 8rem;
    padding: 2rem 0;
}

.product-card {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(76, 42, 133, 0.2);
    border-radius: 20px;
    text-decoration: none;
    color: #fff;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    
    /* Subtle glow at all times */
    box-shadow: 
        0 8px 32px rgba(76, 42, 133, 0.15),
        0 0 0 1px rgba(76, 42, 133, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(76, 42, 133, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.product-card:hover::before {
    opacity: 1;
}

.product-card:hover {
    transform: translateY(-8px) rotateX(1deg);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(76, 42, 133, 0.5);
    box-shadow: 
        0 20px 60px rgba(76, 42, 133, 0.3),
        0 0 0 1px rgba(76, 42, 133, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.product-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 15px 15px 0 0;
    margin-bottom: 0;
    transition: transform 0.4s ease;
    flex-grow: 1;
}

.product-card:hover img {
    transform: scale(1.02);
}

.product-card span {
    font-size: 1.2rem;
    font-weight: 600;
    display: block;
    text-align: center;
    padding: 1.5rem 2rem;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
}

.product-card .category-icon {
    margin: 1rem 0;
    text-align: center;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-radius: 15px;
    background: transparent;
}

.product-card .category-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.product-card:hover .category-icon img {
    transform: scale(1.05);
}

.product-card p {
    font-size: 0.9rem;
    color: #a0aec0;
    text-align: center;
    padding: 0 2rem 1.5rem;
    margin: 0;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
}

/* Categories Section */
.categories-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.categories-section h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 4rem;
    background: linear-gradient(135deg, #fff 0%, #4c2a85 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.category-container {
    margin-bottom: 5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(76, 42, 133, 0.2);
    border-radius: 25px;
    padding: 3rem;
    backdrop-filter: blur(15px);
    box-shadow: 0 20px 60px rgba(76, 42, 133, 0.15);
}

.category-header {
    text-align: center;
    margin-bottom: 3rem;
}

.category-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 20px rgba(76, 42, 133, 0.5));
}

.category-header h3 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #fff;
    text-shadow: 0 0 20px rgba(76, 42, 133, 0.5);
}

.category-header p {
    font-size: 1.2rem;
    color: #a0aec0;
    max-width: 600px;
    margin: 0 auto;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.game-category {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(76, 42, 133, 0.3);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.game-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(76, 42, 133, 0.3);
    border-color: rgba(76, 42, 133, 0.5);
}

.game-category img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 1rem;
    border: 2px solid rgba(76, 42, 133, 0.3);
}

.game-category h4 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #fff;
    font-weight: 600;
}

.game-products {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.product-link {
    background: rgba(76, 42, 133, 0.15);
    color: #fff;
    text-decoration: none;
    padding: 0.8rem 1.2rem;
    border-radius: 10px;
    border: 1px solid rgba(76, 42, 133, 0.3);
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.product-link:hover {
    background: rgba(76, 42, 133, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 42, 133, 0.2);
    border-color: rgba(76, 42, 133, 0.5);
}

/* Features Section */
.features-section {
    text-align: center;
    margin-bottom: 6rem;
    position: relative;
}

.features-section h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, #fff 0%, #4c2a85 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-card {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(76, 42, 133, 0.15);
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(76, 42, 133, 0.1);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(76, 42, 133, 0.3);
    box-shadow: 0 8px 30px rgba(76, 42, 133, 0.2);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #4c2a85;
}

.feature-card p {
    color: #a0aec0;
    line-height: 1.6;
}

/* Stats Section */
.stats-section {
    background: rgba(76, 42, 133, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 3rem 2rem;
    margin-bottom: 6rem;
    border: 1px solid rgba(76, 42, 133, 0.15);
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: #4c2a85;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(128, 90, 213, 0.3);
}

.stat-label {
    font-size: 1rem;
    color: #a0aec0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Footer */
footer {
    background: linear-gradient(135deg, rgba(128, 90, 213, 0.1), rgba(26, 0, 51, 0.3));
    backdrop-filter: blur(15px);
    border-top: 1px solid rgba(128, 90, 213, 0.2);
    margin-top: 4rem;
    position: relative;
    z-index: 10;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h4 {
    color: #4c2a85;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section p {
    color: #a0aec0;
    line-height: 1.6;
}

.footer-section a {
    display: block;
    color: #a0aec0;
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #4c2a85;
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(76, 42, 133, 0.15);
    color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding-top: 70px; /* Slightly less padding on mobile */
    }
    
    .nav-center {
        gap: 1rem;
    }
    
    .nav-center a {
        font-size: 0.9rem;
        padding: 0.3rem 0.8rem;
    }
    
    main {
        padding: 6rem 1rem 2rem;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .product-card {
        padding: 1.5rem;
    }
    
    .features-section h2 {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    /* Categories responsive */
    .categories-section {
        padding: 2rem 1rem;
    }
    
    .categories-section h2 {
        font-size: 2.5rem;
        margin-bottom: 2rem;
    }
    
    .category-container {
        padding: 2rem 1.5rem;
        margin-bottom: 3rem;
    }
    
    .category-icon {
        font-size: 3rem;
    }
    
    .category-header h3 {
        font-size: 2rem;
    }
    
    .category-header p {
        font-size: 1rem;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .game-category {
        padding: 1.5rem;
    }
    
    .game-category img {
        width: 60px;
        height: 60px;
    }
}

/* Disable text selection and other protections */
* {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(128, 90, 213, 0.1);
}

::-webkit-scrollbar-thumb {
    background: rgba(128, 90, 213, 0.4);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(128, 90, 213, 0.6);
}
