/* ==========================================
   Global Styles & Reset
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette */
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary-color: #8b5cf6;
    --accent-color: #ec4899;
    --dark-bg: #0f0f23;
    --darker-bg: #050510;
    --card-bg: rgba(30, 30, 60, 0.6);
    --card-hover: rgba(40, 40, 80, 0.8);
    --text-primary: #ffffff;
    --text-secondary: #b4b4c9;
    --success-color: #10b981;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --glow-primary: 0 0 20px rgba(99, 102, 241, 0.5);
    --glow-accent: 0 0 30px rgba(236, 72, 153, 0.6);
}

html {
    scroll-behavior: smooth;
}

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

/* ==========================================
   Typography
   ========================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
}

h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
}

/* ==========================================
   Container & Layout
   ========================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ==========================================
   Header
   ========================================== */
.header {
    background: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid rgba(99, 102, 241, 0.3);
    box-shadow: var(--shadow-md);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 1.8rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-icon {
    font-size: 2rem;
    filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.8));
}

.nav {
    display: flex;
    gap: var(--spacing-md);
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

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

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

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

/* ==========================================
   Hero Section
   ========================================== */
.hero {
    position: relative;
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, var(--darker-bg) 0%, #1a0b2e 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(236, 72, 153, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: var(--spacing-md);
    background: linear-gradient(135deg, #fff 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* Starfield Animation */
.hero-stars {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #eee, transparent),
        radial-gradient(2px 2px at 60px 70px, #fff, transparent),
        radial-gradient(1px 1px at 50px 50px, #ddd, transparent),
        radial-gradient(1px 1px at 130px 80px, #fff, transparent),
        radial-gradient(2px 2px at 90px 10px, #eee, transparent);
    background-size: 200px 200px;
    animation: stars 120s linear infinite;
    opacity: 0.3;
}

@keyframes stars {
    from { background-position: 0 0; }
    to { background-position: -200px 200px; }
}

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

/* ==========================================
   Buttons
   ========================================== */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1rem 2.5rem;
    border-radius: var(--radius-lg);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md), var(--glow-primary);
    border: none;
    cursor: pointer;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg), var(--glow-accent);
}

.cta-button-large {
    padding: 1.3rem 3rem;
    font-size: 1.3rem;
}

/* ==========================================
   Game Section
   ========================================== */
.game-section {
    padding: var(--spacing-xl) 0;
    background: var(--dark-bg);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: var(--spacing-lg);
    background: linear-gradient(135deg, var(--text-primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.game-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: var(--spacing-md);
    align-items: start;
}

.game-wrapper {
    width: 100%;
    position: relative;
}

.game-frame {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--darker-bg);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg), 0 0 40px rgba(99, 102, 241, 0.3);
    border: 2px solid rgba(99, 102, 241, 0.3);
}

.game-frame iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.game-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(15, 15, 35, 0.9), rgba(26, 11, 46, 0.9));
    position: relative;
    overflow: hidden;
}

.game-placeholder::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle, rgba(99, 102, 241, 0.1) 1px, transparent 1px),
        radial-gradient(circle, rgba(236, 72, 153, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: 0 0, 25px 25px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.play-button {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1.5rem 3rem;
    border-radius: var(--radius-lg);
    border: none;
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg), var(--glow-primary);
}

.play-button:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg), var(--glow-accent);
}

.play-icon {
    font-size: 1.5rem;
}

/* ==========================================
   Controls Sidebar
   ========================================== */
.controls-sidebar {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    border: 1px solid rgba(99, 102, 241, 0.2);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 100px;
}

.controls-title {
    font-size: 1.3rem;
    margin-bottom: var(--spacing-md);
    color: var(--primary-light);
}

.control-item {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}

.control-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.control-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.control-text strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
    font-size: 1rem;
}

.control-text p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

kbd {
    background: rgba(99, 102, 241, 0.2);
    padding: 0.2rem 0.5rem;
    border-radius: 0.3rem;
    font-family: monospace;
    font-size: 0.85rem;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

/* ==========================================
   Features Section
   ========================================== */
.features-section {
    padding: var(--spacing-xl) 0;
    background: var(--darker-bg);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.feature-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    border: 1px solid rgba(99, 102, 241, 0.2);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.feature-card:hover {
    transform: translateY(-5px);
    background: var(--card-hover);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg), 0 0 20px rgba(99, 102, 241, 0.3);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
    display: block;
}

.feature-card h3 {
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.feature-card p {
    font-size: 0.95rem;
}

/* ==========================================
   Gallery Section
   ========================================== */
.gallery-section {
    padding: var(--spacing-xl) 0;
    background: var(--dark-bg);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    background: var(--darker-bg);
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(99, 102, 241, 0.4);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    padding: var(--spacing-md) var(--spacing-sm) var(--spacing-sm);
    color: white;
    font-weight: 500;
}

/* ==========================================
   Reviews Section
   ========================================== */
.reviews-section {
    padding: var(--spacing-xl) 0;
    background: var(--darker-bg);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-md);
}

.review-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    border: 1px solid rgba(99, 102, 241, 0.2);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: var(--shadow-lg), 0 0 20px rgba(236, 72, 153, 0.3);
}

.review-stars {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-sm);
    color: #fbbf24;
}

.review-text {
    font-size: 1rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
}

.review-author {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.review-author strong {
    color: var(--text-primary);
    font-size: 1rem;
}

.review-author span {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* ==========================================
   About Section
   ========================================== */
.about-section {
    padding: var(--spacing-xl) 0;
    background: var(--dark-bg);
}

.about-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--spacing-lg);
}

.about-text h2 {
    text-align: left;
}

.about-text p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.stat-item {
    text-align: center;
    padding: var(--spacing-md);
    background: var(--card-bg);
    border-radius: var(--radius-md);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary-light);
    font-family: 'Orbitron', sans-serif;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.about-info {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    border: 1px solid rgba(99, 102, 241, 0.2);
    height: fit-content;
}

.about-info h3 {
    color: var(--primary-light);
    margin-bottom: var(--spacing-md);
}

.info-list {
    list-style: none;
}

.info-list li {
    padding: 0.7rem 0;
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
    color: var(--text-secondary);
}

.info-list li:last-child {
    border-bottom: none;
}

.info-list strong {
    color: var(--text-primary);
    margin-right: 0.5rem;
}

/* ==========================================
   CTA Section
   ========================================== */
.cta-section {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(236, 72, 153, 0.1));
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-lg);
    color: var(--text-secondary);
}

/* ==========================================
   Footer
   ========================================== */
.footer {
    background: var(--darker-bg);
    padding: var(--spacing-lg) 0 var(--spacing-md);
    border-top: 2px solid rgba(99, 102, 241, 0.2);
}

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

.footer-section h4 {
    color: var(--primary-light);
    margin-bottom: var(--spacing-sm);
    font-size: 1.1rem;
}

.footer-section p {
    font-size: 0.9rem;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

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

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

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(99, 102, 241, 0.1);
}

.footer-bottom p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.footer-note {
    font-size: 0.85rem;
    opacity: 0.7;
}

.footer-note a {
    color: var(--primary-light);
    text-decoration: none;
}

.footer-note a:hover {
    text-decoration: underline;
}

/* ==========================================
   Responsive Design
   ========================================== */
@media (max-width: 1024px) {
    .game-container {
        grid-template-columns: 1fr;
    }
    
    .controls-sidebar {
        position: static;
        max-width: 100%;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .nav {
        gap: var(--spacing-sm);
    }
    
    .nav-link {
        font-size: 0.9rem;
    }
    
    h2, .section-title {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .header-content {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .play-button {
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }
    
    .gallery-item img {
        height: 200px;
    }
}

/* ==========================================
   Accessibility
   ========================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus States */
a:focus,
button:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ==========================================
   Print Styles
   ========================================== */
@media print {
    .header,
    .nav,
    .hero,
    .cta-section,
    .footer {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}

