/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-bg: #1a1d2e;
    --secondary-bg: #0f1117;
    --accent-purple: #8b5cf6;
    --accent-hover: #a78bfa;
    --text-white: #ffffff;
    --text-gray: #b8bcc8;
    --border-color: #2a2d3e;
    --transition: all 0.3s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-white);
    background: var(--primary-bg);
    overflow-x: hidden;
}

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

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

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    gap: 30px;
    position: relative;
}

.header-content::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-purple), transparent);
}

.nav-left,
.nav-right {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-white);
    font-size: 15px;
    font-weight: 500;
    transition: var(--transition);
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--accent-purple);
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-white);
    letter-spacing: 1px;
}

.logo-image {
    height: 50px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.logo-fallback {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    font-size: 32px;
    filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.5));
}

.header-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn {
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.btn-login {
    background: transparent;
    color: var(--accent-purple);
    border: 2px solid var(--accent-purple);
}

.btn-login:hover {
    background: var(--accent-purple);
    color: var(--text-white);
}

.btn-register {
    background: var(--accent-purple);
    color: var(--text-white);
}

.btn-register:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.burger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.burger-menu span {
    width: 25px;
    height: 3px;
    background: var(--text-white);
    transition: var(--transition);
    border-radius: 3px;
}

.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 73px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 73px);
    background: var(--secondary-bg);
    transition: var(--transition);
    z-index: 999;
    overflow-y: auto;
}

.mobile-menu.active {
    left: 0;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.mobile-nav-link {
    padding: 16px 20px;
    text-decoration: none;
    color: var(--text-white);
    font-size: 16px;
    font-weight: 500;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.mobile-nav-link:hover {
    color: var(--accent-purple);
    padding-left: 30px;
}

/* Hero Section */
.hero-banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(167, 139, 250, 0.15) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4);
}

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

.hero-text {
    max-width: 600px;
    background: rgba(15, 17, 23, 0.85);
    backdrop-filter: blur(10px);
    padding: 50px;
    border-radius: 12px;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-white);
}

.hero-subtitle {
    font-size: 18px;
    margin-bottom: 30px;
    color: var(--text-gray);
    line-height: 1.6;
}

.btn-hero {
    background: var(--accent-purple);
    color: var(--text-white);
    padding: 14px 40px;
    font-size: 16px;
}

.btn-hero:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

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

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

.feature-card {
    background: linear-gradient(135deg, var(--primary-bg) 0%, rgba(139, 92, 246, 0.05) 100%);
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-purple), transparent);
    opacity: 0;
    transition: var(--transition);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-purple);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.2);
}

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

.feature-title {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--text-white);
}

.feature-description {
    color: var(--text-gray);
    margin-bottom: 25px;
    line-height: 1.6;
}

.feature-link {
    display: inline-block;
    padding: 10px 30px;
    background: transparent;
    color: var(--accent-purple);
    border: 2px solid var(--accent-purple);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.feature-link:hover {
    background: var(--accent-purple);
    color: var(--text-white);
}

/* Content Section */
.content-section {
    padding: 80px 0;
    background: var(--primary-bg);
}

.section-title {
    font-size: 42px;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-white);
}

.content-text {
    margin-bottom: 30px;
    color: var(--text-gray);
    font-size: 16px;
    line-height: 1.8;
}

.content-subtitle {
    font-size: 28px;
    margin: 40px 0 20px;
    color: var(--text-white);
}

.cta-box {
    text-align: center;
    margin-top: 50px;
}

.btn-cta {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-hover));
    color: var(--text-white);
    padding: 16px 50px;
    font-size: 18px;
    position: relative;
    overflow: hidden;
}

.btn-cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-cta:hover::before {
    width: 300px;
    height: 300px;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(139, 92, 246, 0.4);
}

/* Games Section */
.games-section {
    padding: 80px 0;
    background: var(--secondary-bg);
    position: relative;
}

.games-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(90deg, transparent 0%, rgba(139, 92, 246, 0.05) 50%, transparent 100%);
    pointer-events: none;
}

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

.game-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    display: block;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 0 0 0 rgba(139, 92, 246, 0);
}

.game-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), transparent);
    opacity: 0;
    transition: var(--transition);
}

.game-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.game-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: 20px;
    transform: translateY(0);
    transition: var(--transition);
}

.game-title {
    color: var(--text-white);
    font-size: 18px;
    font-weight: 600;
}

.game-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.3), 0 8px 25px rgba(139, 92, 246, 0.3);
}

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

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

/* Security Section */
.security-section {
    padding: 80px 0;
    background: var(--primary-bg);
}

.security-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    color: var(--text-gray);
    font-size: 16px;
    line-height: 1.8;
}

/* Footer */
.footer {
    background: var(--secondary-bg);
    padding: 60px 0 30px;
    border-top: 1px solid var(--border-color);
}

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

.footer-title {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-purple);
}

.payment-methods {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.payment-icon {
    font-size: 32px;
}

.footer-text {
    color: var(--text-gray);
    line-height: 1.6;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    color: var(--text-gray);
}

.footer-warning {
    margin-top: 10px;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .nav-left,
    .nav-right {
        display: none;
    }
    
    .burger-menu {
        display: flex;
    }
}

@media (max-width: 768px) {
    .header-buttons {
        display: none;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-text {
        padding: 30px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
    }
}