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

body {
    background: #0a0e27;
    color: #e1e8f0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
}

/* Add padding wrapper for content sections */
.content-wrapper {
    padding: 0 40px;
}

/* Navigation Bar */
.navbar {
    background: rgba(15, 20, 40, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0;
}

.nav-container {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-logo {
    font-size: 1.5em;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: #a0aec0;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 0.95em;
}

.nav-links a:hover {
    color: #fff;
}

.nav-links a.active {
    color: #667eea;
}

.nav-right {
    display: flex;
    align-items: center;
}

.search-bar {
    position: relative;
}

.search-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px 40px 10px 15px;
    color: #fff;
    font-size: 0.9em;
    width: 300px;
    transition: all 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
    background: rgba(255, 255, 255, 0.08);
}

.search-input::placeholder {
    color: #6b7280;
}

.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    pointer-events: none;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    padding: 10px 0 80px 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(102, 126, 234, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    width: 100%;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-cards-panel {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-cards-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.floating-card {
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(10, 14, 39, 0.8);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.floating-card:not(.special-center-card):hover {
    transform: scale(1.05) !important;
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 15px 50px rgba(102, 126, 234, 0.4);
    z-index: 10;
}

/* Ensure regular cards never overlay the special center card */
.floating-card:not(.special-center-card) {
    z-index: 1;
}

.floating-card:not(.special-center-card):hover {
    z-index: 10;
}

.floating-card-image {
    width: 100%;
    height: 70%;
    background: linear-gradient(135deg, #1a1f3a 0%, #2d3548 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4a5568;
    font-size: 0.8em;
    overflow: hidden;
}

.floating-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.floating-card-title {
    padding: 15px;
    font-size: 0.85em;
    font-weight: 600;
    color: #fff;
    text-align: center;
    background: #0a0e27;
    height: 30%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Arc animations for cards */
@keyframes floatArc1 {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(30px, -20px) rotate(3deg);
    }
    50% {
        transform: translate(50px, 0) rotate(0deg);
    }
    75% {
        transform: translate(30px, 20px) rotate(-3deg);
    }
}

@keyframes floatArc2 {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(-25px, -30px) rotate(-2deg);
    }
    50% {
        transform: translate(-40px, -10px) rotate(0deg);
    }
    75% {
        transform: translate(-25px, 15px) rotate(2deg);
    }
}

@keyframes floatArc3 {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(20px, 25px) rotate(2deg);
    }
    50% {
        transform: translate(40px, 40px) rotate(0deg);
    }
    75% {
        transform: translate(20px, 20px) rotate(-2deg);
    }
}

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

@keyframes floatArc5 {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(25px, -25px) rotate(2deg);
    }
    50% {
        transform: translate(35px, -40px) rotate(0deg);
    }
    75% {
        transform: translate(15px, -20px) rotate(-2deg);
    }
}

/* Regular Cards - 4 corners */
.floating-card:nth-child(1) {
    top: 10%;
    left: 10%;
    animation: floatArc1 8s ease-in-out infinite;
}

.floating-card:nth-child(2) {
    top: 10%;
    right: 10%;
    animation: floatArc2 10s ease-in-out infinite;
    animation-delay: 1s;
}

.floating-card:nth-child(3) {
    bottom: 10%;
    left: 10%;
    animation: floatArc3 12s ease-in-out infinite;
    animation-delay: 2s;
}

.floating-card:nth-child(4) {
    bottom: 10%;
    right: 10%;
    animation: floatArc4 9s ease-in-out infinite;
    animation-delay: 0.5s;
}

/* Special Center Card - SteamUnlock */
.special-center-card {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 3px solid #FFD700 !important;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.2), 0 0 15px rgba(255, 215, 0, 0.15) !important;
    z-index: 100 !important;
    animation: floatCenter 6s ease-in-out infinite !important;
    pointer-events: auto !important;
    isolation: isolate;
    background: rgba(10, 14, 39, 0.8) !important;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
    will-change: background, border-color, box-shadow;
}

.special-center-card:hover {
    background: linear-gradient(135deg, #FFD700 0%, #FFC107 100%) !important;
    border-color: #FFD700 !important;
    box-shadow: 0 15px 60px rgba(255, 215, 0, 0.6), 0 0 50px rgba(255, 215, 0, 0.5) !important;
    z-index: 100 !important;
}

.special-center-card .floating-card-title {
    background: #0a0e27;
    color: #FFD700;
    font-weight: 700;
    font-size: 0.95em;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
}

.special-center-card:hover .floating-card-title {
    background: linear-gradient(135deg, #FFD700 0%, #FFC107 100%);
    color: #000;
    text-shadow: none;
}

/* Center card animation */
@keyframes floatCenter {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
    }
    25% {
        transform: translate(-50%, -55%) scale(1.05);
    }
    50% {
        transform: translate(-50%, -50%) scale(1);
    }
    75% {
        transform: translate(-50%, -45%) scale(1.05);
    }
}

.hero-badge {
    display: inline-block;
    background: rgba(102, 126, 234, 0.2);
    border: 1px solid rgba(102, 126, 234, 0.3);
    color: #a78bfa;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85em;
    font-weight: 600;
    margin-bottom: 30px;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 3.5em;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
    background: linear-gradient(135deg, #fff 0%, #a0aec0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -2px;
}

.hero-description {
    font-size: 1.2em;
    color: #a0aec0;
    line-height: 1.6;
    margin-bottom: 40px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: left;
}

.hero-stat-number {
    font-size: 2.2em;
    font-weight: 700;
    color: #667eea;
    display: block;
    line-height: 1;
}

.hero-stat-label {
    font-size: 0.9em;
    color: #6b7280;
    margin-top: 8px;
}

.hero-cta {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 16px 40px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05em;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #a0aec0;
    padding: 16px 40px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05em;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: inline-block;
}

.btn-secondary:hover {
    border-color: #667eea;
    color: #fff;
}

.price-tag {
    display: inline-flex;
    align-items: baseline;
    gap: 10px;
}

.price-old {
    font-size: 1.2em;
    color: #6b7280;
    text-decoration: line-through;
}

.price-new {
    font-size: 1.8em;
    font-weight: 700;
    color: #667eea;
}

/* Games Showcase Section */
.games-section {
    padding: 80px 0;
}

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

.section-subtitle {
    color: #667eea;
    font-size: 0.9em;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.section-title {
    font-size: 2.5em;
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.section-description {
    font-size: 1.1em;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.game-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
}

.game-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.game-image {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, #1a1f3a 0%, #2d3548 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4a5568;
    font-size: 0.9em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.game-info {
    padding: 20px;
}

.game-title {
    font-size: 1.1em;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.game-description {
    color: #6b7280;
    font-size: 0.9em;
    line-height: 1.5;
    margin-bottom: 15px;
}

.game-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.game-price-amount {
    font-size: 1.3em;
    font-weight: 700;
    color: #667eea;
}

.game-buy-btn {
    background: rgba(102, 126, 234, 0.2);
    color: #667eea;
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 0.9em;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.game-buy-btn:hover {
    background: rgba(102, 126, 234, 0.3);
    border-color: #667eea;
}

.load-more {
    text-align: center;
}

/* Features Section */
.features-section {
    padding: 80px 0;
    background: rgba(102, 126, 234, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 35px;
    transition: all 0.3s;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateY(-5px);
}

.feature-number {
    color: #667eea;
    font-size: 0.9em;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.feature-title {
    font-size: 1.3em;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.feature-description {
    color: #6b7280;
    line-height: 1.6;
    font-size: 1em;
}

/* Stats Section */
.stats-section {
    padding: 80px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-item {
    padding: 35px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.3s;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(102, 126, 234, 0.3);
}

.stat-number {
    font-size: 3em;
    font-weight: 800;
    color: #667eea;
    margin-bottom: 10px;
    line-height: 1;
}

.stat-label {
    color: #6b7280;
    font-size: 1em;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.cta-container h2 {
    font-size: 3em;
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.cta-container p {
    font-size: 1.2em;
    color: #6b7280;
    margin-bottom: 35px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #6b7280;
    font-size: 0.9em;
}

/* Responsive Design */
@media (max-width: 768px) {
    .content-wrapper {
        padding: 0 20px;
    }

    .nav-container {
        padding: 15px 20px;
    }

    .nav-links {
        display: none;
    }

    .search-input {
        width: 150px;
    }

    .hero-section {
        padding: 60px 0;
        min-height: auto;
    }

    .hero-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-cards-panel {
        display: none;
    }

    .hero-title {
        font-size: 2.2em;
    }

    .hero-description {
        font-size: 1.05em;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

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

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

    .section-title,
    .cta-container h2 {
        font-size: 2em;
    }

    .games-section,
    .features-section,
    .stats-section,
    .cta-section {
        padding: 60px 0;
    }
}
