* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0070f3;
    --secondary-color: #0051cc;
    --accent-color: #ff6b00;
    --dark-bg: #0a0a0a;
    --dark-surface: #1a1a1a;
    --dark-surface-hover: #252525;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --border-color: #333333;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
}

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

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

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.logo svg {
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

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

.cart-btn {
    position: relative;
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.cart-btn:hover {
    background: var(--dark-surface);
}

.cart-count {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 100px 20px;
    max-width: 1400px;
    margin: 0 auto;
    overflow: hidden;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 2;
    position: relative;
}

.hero-badge {
    display: inline-block;
    background: rgba(0, 112, 243, 0.2);
    border: 1px solid rgba(0, 112, 243, 0.3);
    padding: 8px 16px;
    border-radius: 20px;
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    animation: fadeInUp 0.6s ease;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #ffffff 0%, #b3b3b3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.6;
    animation: fadeInUp 1s ease;
}

.hero-stats {
    display: flex;
    gap: 32px;
    margin-bottom: 40px;
    padding: 24px 0;
    animation: fadeInUp 1.2s ease;
}

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

.stat-number {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 4px;
    background: linear-gradient(135deg, #0070f3 0%, #00d4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeInUp 1.4s ease;
}

.hero-visual {
    position: relative;
    flex: 1;
    height: 600px;
    max-width: 600px;
    margin-left: 40px;
    z-index: 1;
}

.hero-gradient {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 112, 243, 0.3) 0%, rgba(118, 75, 162, 0.2) 50%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
    animation: pulse 4s ease-in-out infinite;
}

.hero-game-cards {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-game-card {
    position: absolute;
    width: 200px;
    height: 280px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.5s ease;
    cursor: pointer;
}

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

.hero-game-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 30px 80px rgba(0, 112, 243, 0.4);
    border-color: rgba(0, 112, 243, 0.5);
    z-index: 10;
}

.hero-game-card:hover img {
    transform: scale(1.1);
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 112, 243, 0.3) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.hero-game-card:hover .card-glow {
    opacity: 1;
}

.hero-game-card.card-1 {
    top: 10%;
    left: 10%;
    transform: rotate(-8deg);
    animation: float 6s ease-in-out infinite;
}

.hero-game-card.card-1:hover {
    transform: rotate(0deg) translateY(-10px) scale(1.05);
}

.hero-game-card.card-2 {
    top: 20%;
    right: 15%;
    transform: rotate(5deg);
    animation: float 6s ease-in-out infinite 2s;
    z-index: 2;
}

.hero-game-card.card-2:hover {
    transform: rotate(0deg) translateY(-10px) scale(1.05);
}

.hero-game-card.card-3 {
    bottom: 15%;
    left: 20%;
    transform: rotate(-5deg);
    animation: float 6s ease-in-out infinite 4s;
}

.hero-game-card.card-3:hover {
    transform: rotate(0deg) translateY(-10px) scale(1.05);
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.floating-circle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 112, 243, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
    filter: blur(20px);
}

.floating-circle.circle-1 {
    width: 150px;
    height: 150px;
    top: 10%;
    right: 10%;
    animation: floatCircle 8s ease-in-out infinite;
}

.floating-circle.circle-2 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    right: 20%;
    animation: floatCircle 10s ease-in-out infinite 2s;
}

.floating-circle.circle-3 {
    width: 80px;
    height: 80px;
    top: 50%;
    left: 5%;
    animation: floatCircle 12s ease-in-out infinite 4s;
}

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

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.8;
    }
}

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

@keyframes floatCircle {
    0%, 100% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(20px, -20px);
    }
    50% {
        transform: translate(-10px, -30px);
    }
    75% {
        transform: translate(-20px, 10px);
    }
}

/* Buttons */
.btn {
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover {
    border-color: var(--primary-color);
    background: rgba(0, 112, 243, 0.1);
}

.btn-game {
    width: 100%;
    background: var(--primary-color);
    color: white;
    margin-top: 16px;
}

.btn-game:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* Games Section */
.games-section {
    padding: 100px 0;
    background: var(--dark-bg);
}

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

.section-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
}

.game-card {
    background: var(--dark-surface);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.game-image {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

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

.game-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-image img[src=""],
.game-image:not(:has(img[src])) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

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

.game-overlay {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
}

.game-badge {
    background: var(--primary-color);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.game-badge.new {
    background: var(--accent-color);
}

.game-info {
    padding: 24px;
}

.game-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.game-genre {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 12px;
}

.game-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.stars {
    color: #ffd700;
    font-size: 16px;
}

.rating-text {
    color: var(--text-secondary);
    font-size: 14px;
}

.game-price {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.price-current {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.price-original {
    font-size: 18px;
    color: var(--text-secondary);
    text-decoration: line-through;
}

/* Offers Section */
.offers-section {
    padding: 100px 0;
    background: var(--dark-surface);
}

.offers-banner {
    background: var(--gradient-1);
    border-radius: 20px;
    padding: 80px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.offers-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

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

.offers-content {
    position: relative;
    z-index: 2;
}

.offers-banner h3 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
}

.offers-banner p {
    font-size: 20px;
    margin-bottom: 32px;
    opacity: 0.9;
}

/* Features Section */
.features-section {
    padding: 100px 0;
    background: var(--dark-bg);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.feature-card {
    text-align: center;
    padding: 40px 24px;
    background: var(--dark-surface);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Footer */
.footer {
    background: var(--dark-surface);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-section p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--text-primary);
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    font-size: 24px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: scale(1.2);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 60px 20px;
        min-height: auto;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-visual {
        margin-left: 0;
        margin-top: 40px;
        height: 400px;
        max-width: 100%;
    }

    .hero-game-card {
        width: 150px;
        height: 210px;
    }

    .hero-stats {
        justify-content: center;
        gap: 20px;
    }

    .stat-number {
        font-size: 24px;
    }

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

    .section-title {
        font-size: 32px;
    }

    .offers-banner {
        padding: 60px 20px;
    }

    .offers-banner h3 {
        font-size: 36px;
    }

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

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

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

    .btn {
        width: 100%;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.game-card {
    animation: fadeIn 0.6s ease-out;
}

.game-card:nth-child(1) { animation-delay: 0.1s; }
.game-card:nth-child(2) { animation-delay: 0.2s; }
.game-card:nth-child(3) { animation-delay: 0.3s; }
.game-card:nth-child(4) { animation-delay: 0.4s; }
.game-card:nth-child(5) { animation-delay: 0.5s; }
.game-card:nth-child(6) { animation-delay: 0.6s; }

