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

:root {
    /* Ultra Dark Cinematic Sci-Fi Color Palette */
    --primary-dark: #000000;
    --primary-blue: #0a0a0f;
    --accent-orange: #d97642;
    --accent-cyan: #4dd9d9;
    --text-white: #e8f0f7;
    --text-gray: #6a7380;
    
    /* Legacy support */
    --primary-color: var(--accent-orange);
    --secondary-color: var(--accent-cyan);
    --accent-color: var(--accent-orange);
    --dark-bg: var(--primary-blue);
    --darker-bg: var(--primary-dark);
    --text-primary: var(--text-white);
    --text-secondary: var(--text-gray);
    --gradient: linear-gradient(135deg, var(--accent-cyan), var(--accent-orange));
    --shadow: 0 10px 40px rgba(217, 118, 66, 0.2);
    --glow-cyan: 0 0 40px rgba(77, 217, 217, 0.4);
    --glow-orange: 0 0 40px rgba(217, 118, 66, 0.4);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Roboto', sans-serif;
    background: var(--darker-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

* {
    -webkit-tap-highlight-color: transparent;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(77, 217, 217, 0.1);
}

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

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text-primary);
}

.logo .highlight {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.3s;
}

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

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

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

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 3px;
    transition: all 0.3s;
}

/* Hero Section - Cinematic */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 120px 0 80px;
    overflow: hidden;
    background: radial-gradient(ellipse at center, #0a0a0f 0%, #000000 100%);
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 0;
    object-fit: cover;
    opacity: 0.3;
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.7) 50%,
        rgba(0, 0, 0, 0.9) 100%
    );
    z-index: 1;
}

.nebula {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        ellipse at 20% 50%,
        rgba(77, 217, 217, 0.1) 0%,
        transparent 50%
    ),
    radial-gradient(
        ellipse at 80% 80%,
        rgba(217, 118, 66, 0.08) 0%,
        transparent 50%
    );
    z-index: 1;
    animation: nebulaFloat 30s ease-in-out infinite;
}

@keyframes nebulaFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-20px, -30px) scale(1.1); }
}

.stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #eee, transparent),
        radial-gradient(2px 2px at 60px 70px, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 50px 50px, #fff, transparent),
        radial-gradient(1px 1px at 80px 10px, rgba(255,255,255,0.6), transparent),
        radial-gradient(2px 2px at 90px 40px, #eee, transparent),
        radial-gradient(1px 1px at 33px 60px, rgba(255,255,255,0.4), transparent),
        radial-gradient(1px 1px at 70px 80px, rgba(255,255,255,0.5), transparent);
    background-repeat: repeat;
    background-size: 200px 200px;
    animation: sparkle 20s linear infinite;
    opacity: 0.4;
}

@keyframes sparkle {
    from { transform: translateY(0); }
    to { transform: translateY(-200px); }
}

.hero .container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-family: 'Orbitron', 'Exo 2', sans-serif;
    font-size: clamp(3rem, 10vw, 8rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: 0.1em;
    text-shadow: var(--glow-cyan);
}

.title-main {
    display: block;
    background: linear-gradient(to right, var(--accent-cyan), var(--accent-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% { filter: drop-shadow(0 0 20px rgba(77, 217, 217, 0.5)); }
    50% { filter: drop-shadow(0 0 40px rgba(217, 118, 66, 0.8)); }
}

.title-year {
    display: block;
    font-size: 0.6em;
    color: var(--text-gray);
    margin-top: 0.5rem;
    text-shadow: 0 0 10px rgba(138, 153, 173, 0.5);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-orange), #e8946b);
    color: var(--text-primary);
    box-shadow: 0 0 30px rgba(217, 118, 66, 0.5), var(--shadow);
    border: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 0 50px rgba(217, 118, 66, 0.8), 0 15px 50px rgba(217, 118, 66, 0.4);
    background: linear-gradient(135deg, #e8946b, var(--accent-orange));
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--accent-cyan);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(77, 217, 217, 0.1);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 30px rgba(77, 217, 217, 0.5);
    transform: translateY(-3px);
}

/* Removed hero-image and game-preview - replaced with video background */

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 50px;
    border: 2px solid var(--accent-cyan);
    border-radius: 25px;
    opacity: 0.7;
    z-index: 2;
    box-shadow: 0 0 20px rgba(77, 217, 217, 0.3);
}

.scroll-indicator span {
    display: block;
    width: 4px;
    height: 10px;
    background: var(--accent-cyan);
    border-radius: 2px;
    margin: 8px auto;
    animation: scroll 2s infinite;
    box-shadow: 0 0 10px rgba(77, 217, 217, 0.8);
}

/* Video Modal */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(10px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-modal.active {
    display: flex;
    opacity: 1;
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    aspect-ratio: 16/9;
    background: #000000;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 0 60px rgba(77, 217, 217, 0.4), 0 0 100px rgba(217, 118, 66, 0.2);
    border: 2px solid rgba(77, 217, 217, 0.2);
}

.modal-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.video-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(10, 14, 26, 0.8);
    border: 2px solid var(--accent-cyan);
    border-radius: 50%;
    color: var(--text-white);
    font-size: 2rem;
    cursor: pointer;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.video-modal-close:hover {
    background: rgba(77, 217, 217, 0.2);
    box-shadow: 0 0 30px rgba(77, 217, 217, 0.8);
    transform: scale(1.1);
}

@keyframes scroll {
    0%, 100% { opacity: 0; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(15px); }
}

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

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

/* Features Section */
.features {
    padding: 100px 0;
    background: #000000;
}

.history-timeline {
    padding: 100px 0;
    background: #000000;
    position: relative;
}

.history-timeline .section-title {
    font-family: 'Orbitron', 'Exo 2', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    text-align: center;
    margin-bottom: 60px;
    margin-top: 0;
    padding-top: 0;
    background: linear-gradient(to right, var(--accent-cyan), var(--accent-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.05em;
    text-shadow: 0 0 30px rgba(77, 217, 217, 0.3);
}

.section-title {
    font-family: 'Orbitron', 'Exo 2', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    text-align: center;
    margin-bottom: 4rem;
    background: linear-gradient(to right, var(--accent-cyan), var(--accent-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.05em;
    text-shadow: 0 0 30px rgba(77, 217, 217, 0.3);
}

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

.feature-card {
    background: rgba(10, 10, 15, 0.4);
    border: 1px solid rgba(77, 217, 217, 0.15);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--accent-cyan);
    box-shadow: 0 20px 60px rgba(77, 217, 217, 0.2), 0 0 40px rgba(77, 217, 217, 0.1);
    background: rgba(10, 10, 15, 0.6);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: block;
}

.feature-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

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

/* Download Section */
.download {
    padding: 100px 0;
    background: #000000;
    text-align: center;
}

.download-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.download-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 2.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s;
    min-width: 200px;
}

.download-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.download-btn svg {
    width: 32px;
    height: 32px;
}

.download-btn div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.download-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.download-text {
    font-size: 1.25rem;
    font-weight: 600;
    font-family: 'Orbitron', sans-serif;
}

.coming-soon {
    color: var(--accent-color);
    font-style: italic;
    margin-top: 1rem;
}

/* About Section */
.about {
    padding: 100px 0;
    background: #000000;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-text {
    font-size: 1.1rem;
    line-height: 2;
    color: var(--text-secondary);
}

.about-text p {
    margin-bottom: 1.5rem;
}

/* Footer */
.footer {
    background: #000000;
    border-top: 1px solid rgba(77, 217, 217, 0.1);
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

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

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(99, 102, 241, 0.1);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

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

    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: rgba(0, 0, 0, 0.98);
        width: 100%;
        text-align: center;
        transition: left 0.3s;
        padding: 2rem 0;
        gap: 1rem;
    }

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

    .hero {
        padding: 100px 0 60px;
    }

    .hero .container {
        display: flex;
        flex-direction: column;
        text-align: center;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 4rem);
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        width: 100%;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        padding: 1rem 1.5rem;
    }

    .hero-video {
        opacity: 0.15;
    }

    .stars {
        opacity: 0.3;
    }

    .section-title {
        font-size: clamp(1.5rem, 6vw, 2.5rem);
        margin-bottom: 3rem;
    }

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

    .feature-card {
        padding: 1.5rem;
    }

    .download-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .download-btn {
        width: 100%;
        max-width: 300px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    /* Timeline Mobile */
    .timeline-content {
        flex-direction: column !important;
        gap: 1.5rem;
    }

    .timeline-content.left,
    .timeline-content.right {
        flex-direction: column;
    }

    .timeline-image {
        width: 100%;
        max-width: 100%;
        height: 200px;
        flex: none;
    }

    .timeline-text {
        padding: 1.5rem;
    }

    .timeline-text h3 {
        font-size: 1.25rem;
    }

    .timeline-text p {
        font-size: 0.95rem;
    }

    .timeline-item {
        margin-bottom: 50px;
    }

    /* Video Modal Mobile */
    .video-modal-content {
        width: 95%;
        border-radius: 15px;
    }

    .video-modal-close {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
        top: 10px;
        right: 10px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 80px 0 40px;
        min-height: 100vh;
    }

    .hero-title {
        font-size: clamp(1.75rem, 10vw, 3rem);
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        padding: 0 10px;
    }

    .btn {
        padding: 0.875rem 1.25rem;
        font-size: 0.875rem;
        max-width: 280px;
    }

    .section-title {
        font-size: clamp(1.25rem, 7vw, 2rem);
        margin-bottom: 2rem;
    }

    .timeline-image {
        height: 180px;
    }

    .timeline-text {
        padding: 1.25rem;
    }

    .timeline-text h3 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }

    .timeline-text p {
        font-size: 0.875rem;
        line-height: 1.6;
    }

    .timeline-item {
        margin-bottom: 40px;
    }

    .history-timeline {
        padding: 60px 0;
    }

    .feature-card {
        padding: 1.25rem;
    }

    .feature-icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .scroll-indicator {
        width: 25px;
        height: 40px;
        bottom: 20px;
    }
}

/* History Page Styles */
/* Removed duplicate history styles - using main history-timeline */

.timeline-item {
    margin-bottom: 80px;
    margin-top: 0;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.timeline-item:first-of-type {
    margin-top: 0;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    max-width: 1100px;
    margin: 0 auto;
}

.timeline-content.left {
    flex-direction: row;
}

.timeline-content.right {
    flex-direction: row-reverse;
}

.timeline-image {
    flex: 0 0 400px;
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
}

.timeline-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.timeline-image:hover img {
    transform: scale(1.05);
}

.timeline-text {
    flex: 1;
    padding: 2rem;
    background: rgba(10, 10, 15, 0.4);
    border: 1px solid rgba(77, 217, 217, 0.15);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}

.timeline-text:hover {
    background: rgba(10, 10, 15, 0.6);
    border-color: var(--accent-cyan);
    box-shadow: 0 20px 60px rgba(77, 217, 217, 0.2), 0 0 40px rgba(77, 217, 217, 0.1);
}

.timeline-text h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.timeline-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.timeline-text p.no-description {
    font-style: italic;
    opacity: 0.7;
}

.nav-menu a.active {
    color: var(--text-primary);
}

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

/* Additional Mobile Optimizations */
@media (max-width: 968px) {
    .timeline-content {
        max-width: 100%;
    }
}

@media (max-width: 320px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 0.75rem 1rem;
        font-size: 0.8rem;
        max-width: 100%;
    }

    .timeline-image {
        height: 150px;
    }

    .timeline-text {
        padding: 1rem;
    }
}
