/* ===========================
   BLAZEGUN - Global Styles
   =========================== */

:root {
    /* Color Palette - Military & Tactical Theme */
    --primary-color: #ff4444;
    --primary-dark: #cc0000;
    --secondary-color: #ffaa00;
    --accent-color: #00ff88;
    --dark-bg: #0a0a0a;
    --darker-bg: #050505;
    --card-bg: #1a1a1a;
    --border-color: #333;
    --text-primary: #ffffff;
    --text-secondary: #aaaaaa;
    --text-muted: #666666;

    /* Typography */
    --font-primary: 'Orbitron', sans-serif;
    --font-secondary: 'Rajdhani', sans-serif;

    /* Spacing */
    --section-padding: 100px 0;
    --container-padding: 0 20px;
}

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

html {
    scroll-behavior: smooth;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
}

/* ===========================
   Navigation
   =========================== */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 2px solid var(--primary-color);
    box-shadow: 0 4px 20px rgba(255, 68, 68, 0.3);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    width: 45px;
    height: 45px;
    filter: drop-shadow(0 0 10px var(--primary-color));
}

.brand-name {
    font-family: var(--font-primary);
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 3px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-menu a {
    color: var(--text-primary);
    text-decoration: none;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    position: relative;
}

.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 {
    color: var(--primary-color);
}

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

/* ===========================
   Hero Section
   =========================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 50%, rgba(255, 68, 68, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 170, 0, 0.1) 0%, transparent 50%),
        linear-gradient(180deg, var(--darker-bg) 0%, var(--dark-bg) 100%);
    z-index: -1;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255, 68, 68, 0.03) 2px, rgba(255, 68, 68, 0.03) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(255, 68, 68, 0.03) 2px, rgba(255, 68, 68, 0.03) 4px);
    animation: gridMove 20s linear infinite;
}

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

.hero-content {
    text-align: center;
    z-index: 1;
}

.hero-title {
    margin-bottom: 30px;
}

.title-main {
    display: block;
    font-family: var(--font-primary);
    font-size: 90px;
    font-weight: 900;
    letter-spacing: 10px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 50px rgba(255, 68, 68, 0.5);
    animation: titleGlow 2s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    from { filter: drop-shadow(0 0 20px rgba(255, 68, 68, 0.5)); }
    to { filter: drop-shadow(0 0 40px rgba(255, 68, 68, 0.8)); }
}

.title-sub {
    display: block;
    font-family: var(--font-primary);
    font-size: 24px;
    font-weight: 500;
    letter-spacing: 8px;
    color: var(--text-secondary);
    margin-top: 10px;
}

.hero-description {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 50px;
    line-height: 1.8;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 80px;
}

/* ===========================
   Buttons
   =========================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 40px;
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 2px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    box-shadow: 0 10px 30px rgba(255, 68, 68, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 68, 68, 0.6);
}

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

.btn-secondary:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 68, 68, 0.4);
}

.btn-download {
    background: linear-gradient(135deg, var(--secondary-color), #ff6600);
    color: var(--dark-bg);
    box-shadow: 0 10px 30px rgba(255, 170, 0, 0.4);
    font-size: 18px;
    padding: 20px 50px;
}

.btn-download:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 170, 0, 0.6);
}

.btn-icon {
    font-size: 20px;
}

/* ===========================
   Hero Stats
   =========================== */

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 80px;
    margin-top: 60px;
}

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

.stat-number {
    font-family: var(--font-primary);
    font-size: 48px;
    font-weight: 900;
    color: var(--primary-color);
    text-shadow: 0 0 20px rgba(255, 68, 68, 0.5);
}

.stat-label {
    font-size: 16px;
    color: var(--text-secondary);
    letter-spacing: 2px;
    margin-top: 5px;
}

/* ===========================
   Section Titles
   =========================== */

.section-title {
    font-family: var(--font-primary);
    font-size: 48px;
    font-weight: 900;
    letter-spacing: 5px;
    text-align: center;
    margin-bottom: 20px;
}

.title-accent {
    color: var(--primary-color);
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 60px;
}

/* ===========================
   Features Section
   =========================== */

.features {
    padding: var(--section-padding);
    background: var(--darker-bg);
}

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

.feature-card {
    background: var(--card-bg);
    padding: 40px 30px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 68, 68, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(255, 68, 68, 0.3);
}

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

.feature-icon {
    font-size: 60px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px rgba(255, 68, 68, 0.3));
}

.feature-card h3 {
    font-family: var(--font-primary);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ===========================
   Gameplay Section
   =========================== */

.gameplay {
    padding: var(--section-padding);
    background: var(--dark-bg);
}

.gameplay-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 60px;
}

.gameplay-rules h3,
.difficulty-system h3 {
    font-family: var(--font-primary);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--secondary-color);
    letter-spacing: 2px;
}

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

.rules-list li {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--card-bg);
    border-left: 4px solid var(--primary-color);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.rules-list li:hover {
    background: rgba(255, 68, 68, 0.1);
    transform: translateX(10px);
}

.rule-icon {
    font-size: 36px;
    flex-shrink: 0;
}

.rules-list strong {
    display: block;
    font-family: var(--font-primary);
    font-size: 18px;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.rules-list p {
    color: var(--text-secondary);
}

/* Difficulty Table */

.difficulty-table {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
}

.difficulty-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1.5fr;
    padding: 20px;
    gap: 20px;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.3s ease;
}

.difficulty-row:last-child {
    border-bottom: none;
}

.difficulty-header {
    background: var(--primary-color);
    font-family: var(--font-primary);
    font-weight: 700;
    letter-spacing: 2px;
}

.difficulty-row:not(.difficulty-header):hover {
    background: rgba(255, 68, 68, 0.1);
}

.stars {
    color: var(--secondary-color);
}

/* ===========================
   Power-ups Section
   =========================== */

.powerups {
    padding: var(--section-padding);
    background: var(--darker-bg);
}

.powerups-note {
    text-align: center;
    padding: 20px;
    background: var(--card-bg);
    border: 2px solid var(--secondary-color);
    border-radius: 10px;
    margin-bottom: 60px;
    font-size: 18px;
}

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

.powerup-card {
    background: var(--card-bg);
    padding: 40px 30px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.powerup-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.powerup-card:hover {
    transform: translateY(-10px) scale(1.05);
    border-color: transparent;
}

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

.powerup-icon {
    font-size: 70px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 15px rgba(255, 170, 0, 0.5));
}

.powerup-card h3 {
    font-family: var(--font-primary);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.powerup-effect {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 16px;
}

.powerup-price {
    font-family: var(--font-primary);
    font-size: 20px;
    font-weight: 700;
    color: var(--secondary-color);
    padding: 10px 20px;
    background: rgba(255, 170, 0, 0.1);
    border-radius: 5px;
    display: inline-block;
}

/* ===========================
   Download Section
   =========================== */

.download {
    padding: var(--section-padding);
    background: var(--dark-bg);
}

.download-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-top: 60px;
}

.download-info h3 {
    font-family: var(--font-primary);
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.download-info p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.download-features {
    list-style: none;
    margin-bottom: 40px;
}

.download-features li {
    font-size: 18px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.download-features li:last-child {
    border-bottom: none;
}

.download-note {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-muted);
}

/* Phone Mockup */

.download-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    width: 300px;
    height: 600px;
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    border: 8px solid #0a0a0a;
    border-radius: 40px;
    padding: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    position: relative;
}

.phone-mockup::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 6px;
    background: #0a0a0a;
    border-radius: 3px;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, var(--darker-bg), var(--dark-bg));
    border-radius: 30px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-preview {
    text-align: center;
    position: relative;
}

.target-demo {
    font-size: 120px;
    animation: targetPulse 1.5s ease-in-out infinite;
}

@keyframes targetPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.score-demo {
    font-family: var(--font-primary);
    font-size: 24px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-top: 20px;
}

.timer-demo {
    font-size: 20px;
    color: var(--primary-color);
    margin-top: 10px;
}

/* ===========================
   Footer
   =========================== */

.footer {
    background: var(--darker-bg);
    border-top: 2px solid var(--primary-color);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand {
    text-align: center;
}

.footer-logo {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 10px var(--primary-color));
}

.footer-brand h4 {
    font-family: var(--font-primary);
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 3px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

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

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-primary);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

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

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    line-height: 2;
    transition: color 0.3s ease;
}

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

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

.footer-email a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-email a:hover {
    color: var(--secondary-color);
}

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

/* ===========================
   Responsive Design
   =========================== */

@media (max-width: 968px) {
    .nav-menu {
        display: none;
    }

    .title-main {
        font-size: 60px;
    }

    .title-sub {
        font-size: 18px;
    }

    .hero-stats {
        gap: 40px;
    }

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

    .gameplay-content {
        grid-template-columns: 1fr;
    }

    .download-content {
        grid-template-columns: 1fr;
    }

    .phone-mockup {
        margin-top: 40px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .title-main {
        font-size: 40px;
        letter-spacing: 5px;
    }

    .title-sub {
        font-size: 14px;
        letter-spacing: 3px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

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

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

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

/* ===========================
   Animations
   =========================== */

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

.feature-card,
.powerup-card {
    animation: fadeInUp 0.6s ease-out forwards;
}

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