/* ==================== CSS Variables ==================== */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --accent: #f43f5e;
    --accent-glow: rgba(244, 63, 94, 0.3);
    --bg-dark: #0a0a0f;
    --bg-card: #12121a;
    --bg-card-hover: #1a1a25;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-accent: linear-gradient(135deg, #f43f5e 0%, #ff6b6b 100%);
    --gradient-glow: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.3);
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --font-display: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
}

/* ==================== Reset & Base ==================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-weight: 500;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==================== Star Background ==================== */
.star-field {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: twinkle var(--duration) ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: var(--min-opacity); }
    50% { opacity: var(--max-opacity); }
}

/* ==================== Container ==================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==================== Section Styles ==================== */
.section {
    position: relative;
    padding: 100px 0;
    z-index: 1;
}

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

.section-tag {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent);
    margin-bottom: 16px;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ==================== Navigation ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-normal);
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.98);
    box-shadow: var(--shadow-lg);
}

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

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

.logo-icon {
    font-size: 28px;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 2px;
}

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

.nav-links a {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: var(--transition-fast);
    position: relative;
}

.nav-links a:not(.btn-nav):hover {
    color: var(--text-primary);
}

.nav-links a:not(.btn-nav)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-normal);
}

.nav-links a:not(.btn-nav):hover::after {
    width: 100%;
}

.btn-nav {
    padding: 10px 24px;
    background: var(--gradient-primary);
    border-radius: 8px;
    color: white !important;
    font-weight: 600;
}

.btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

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

.mobile-menu span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition-fast);
}

/* ==================== Hero Section ==================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150%;
    height: 150%;
    background: var(--gradient-glow);
    z-index: 0;
}

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

.hero-title {
    font-family: var(--font-display);
    line-height: 1;
    margin-bottom: 24px;
}

.title-line {
    display: block;
    font-size: clamp(48px, 10vw, 96px);
    font-weight: 900;
    letter-spacing: 8px;
}

.title-line.accent {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 60px var(--accent-glow);
}

.hero-subtitle {
    font-size: 24px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 48px;
}

.feature-tag {
    padding: 8px 16px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.ship-preview {
    position: relative;
    animation: float 3s ease-in-out infinite;
}

.ship-svg {
    width: 200px;
    height: 240px;
    filter: drop-shadow(0 0 30px rgba(100, 181, 246, 0.5));
}

.ship-glow {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 150px;
    background: radial-gradient(ellipse, rgba(100, 181, 246, 0.3) 0%, transparent 70%);
    animation: pulse 2s ease-in-out infinite;
}

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

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

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 14px;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* ==================== Buttons ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition-normal);
    border: none;
}

.btn svg {
    width: 20px;
    height: 20px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
}

.btn-download {
    background: var(--gradient-accent);
    color: white;
    padding: 18px 36px;
    font-size: 18px;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-download:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 40px var(--accent-glow);
}

.btn-github {
    background: #24292e;
    color: white;
}

.btn-github:hover {
    background: #333;
}

/* ==================== Features Grid ==================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 32px;
    transition: var(--transition-normal);
}

.feature-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

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

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 20px;
    margin-bottom: 12px;
}

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

/* ==================== Enemies Section ==================== */
.enemies {
    background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(244, 63, 94, 0.05) 50%, var(--bg-dark) 100%);
}

.enemies-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
}

.enemy-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 24px 16px;
    text-align: center;
    transition: var(--transition-normal);
}

.enemy-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.enemy-visual {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
}

.enemy-visual svg {
    width: 100%;
    height: 100%;
}

.enemy-card h4 {
    font-family: var(--font-display);
    font-size: 16px;
    margin-bottom: 8px;
}

.enemy-points {
    color: var(--accent);
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 8px;
}

.enemy-behavior {
    font-size: 13px;
    color: var(--text-muted);
}

/* ==================== Boss Section ==================== */
.boss-section {
    background: radial-gradient(ellipse at top, rgba(99, 102, 241, 0.1) 0%, transparent 50%);
}

.boss-phases {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.phase-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.phase-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.phase-1::before { background: #4caf50; }
.phase-2::before { background: #ff9800; }
.phase-3::before { background: #f44336; }
.phase-enrage::before { background: var(--accent); }

.phase-number {
    width: 48px;
    height: 48px;
    background: var(--bg-card-hover);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 900;
    margin: 0 auto 16px;
    border: 2px solid currentColor;
}

.phase-1 .phase-number { color: #4caf50; }
.phase-2 .phase-number { color: #ff9800; }
.phase-3 .phase-number { color: #f44336; }
.phase-enrage .phase-number { color: var(--accent); }

.phase-card h4 {
    font-family: var(--font-display);
    margin-bottom: 8px;
}

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

/* ==================== Power-Ups Grid ==================== */
.powerups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.powerup-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.powerup-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--powerup-color);
    opacity: 0;
    transition: var(--transition-normal);
}

.powerup-card:hover {
    transform: translateY(-5px);
    border-color: var(--powerup-color);
}

.powerup-card:hover::before {
    opacity: 0.1;
}

.powerup-icon {
    font-size: 36px;
    margin-bottom: 12px;
    position: relative;
}

.powerup-card h4 {
    font-size: 16px;
    margin-bottom: 4px;
    position: relative;
}

.powerup-card p {
    font-size: 13px;
    color: var(--text-muted);
    position: relative;
}

/* ==================== Controls Section ==================== */
.controls-section {
    background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(99, 102, 241, 0.05) 100%);
}

.controls-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.control-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    transition: var(--transition-normal);
}

.control-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
}

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

.control-card h4 {
    font-family: var(--font-display);
    font-size: 18px;
    margin-bottom: 4px;
}

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

/* ==================== Screenshots Gallery ==================== */
.screenshots-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.screenshot-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-normal);
}

.screenshot-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-glow);
    border-color: var(--primary);
}

.screenshot-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 16/10;
    object-fit: cover;
}

.screenshot-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    opacity: 0;
    transition: var(--transition-normal);
}

.screenshot-item:hover .screenshot-overlay {
    opacity: 1;
}

.screenshot-overlay span {
    font-size: 14px;
    font-weight: 600;
}

/* ==================== Download Section ==================== */
.download {
    background: radial-gradient(ellipse at center, rgba(244, 63, 94, 0.1) 0%, transparent 50%);
}

.download-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.download-badge {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.version, .size {
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
}

.download-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
}

.download-features li {
    padding: 8px 16px;
    background: var(--bg-card);
    border-radius: 8px;
    font-size: 15px;
}

.download-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

/* ==================== Footer ==================== */
.footer {
    padding: 60px 0 24px;
    background: var(--bg-card);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 1;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand .logo {
    margin-bottom: 16px;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 14px;
    max-width: 300px;
}

.footer-links h4 {
    font-family: var(--font-display);
    font-size: 14px;
    margin-bottom: 16px;
    color: var(--text-secondary);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 14px;
    transition: var(--transition-fast);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 13px;
}

/* ==================== Responsive ==================== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-card);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .mobile-menu {
        display: flex;
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 160px;
    }
    
    .hero-features {
        justify-content: center;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-visual {
        margin-top: 48px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-brand p {
        max-width: none;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 60px 0;
    }
    
    .hero-title .title-line {
        letter-spacing: 4px;
    }
    
    .hero-features {
        gap: 8px;
    }
    
    .feature-tag {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 14px;
    }
}
