/* CSS Variables - Theme Colors */
:root {
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-surface: #1a1a1a;
    --text-primary: #c0c0c0;
    --text-secondary: #b8b8b8;
    --text-dim: #808080;
    --accent-metallic: #c0c0c0;
    --accent-blue: #00ffff;
    --accent-blue-bright: #00bfff;
    --accent-blue-dark: #0080ff;
    --border-color: #404040;
    --border-light: #606060;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Courier New', 'Courier', monospace;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
}

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

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--bg-surface);
    border-bottom: 2px solid var(--border-color);
    z-index: 1000;
    padding: 15px 0;
}

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

.nav-logo {
    font-size: 18px;
    font-weight: bold;
    color: var(--accent-blue);
    letter-spacing: 3px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 30px;
    width: auto;
    opacity: 0.95;
    filter: brightness(1.1) contrast(1.1);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: color 0.3s;
    position: relative;
}

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

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

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-color: var(--bg-primary);
    padding-top: 80px;
    overflow: hidden;
}

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

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    filter: brightness(0.8) contrast(1.2);
}

.hero-container {
    text-align: center;
    z-index: 2;
    position: relative;
}

.terminal-window {
    background-color: var(--bg-surface);
    border: 2px solid var(--border-color);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.terminal-header {
    background-color: var(--bg-secondary);
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.terminal-title {
    color: var(--text-primary);
    font-size: 12px;
    letter-spacing: 1px;
}

.terminal-status {
    color: var(--accent-blue);
    font-size: 11px;
}

.terminal-body {
    padding: 20px;
    min-height: 80px;
}

.terminal-line {
    display: flex;
    align-items: center;
    gap: 10px;
}

.terminal-prompt {
    color: var(--accent-blue);
    font-weight: bold;
}

.typing-text {
    color: var(--text-primary);
}

.cursor {
    color: var(--accent-blue);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero-title {
    font-size: clamp(28px, 5vw, 48px);
    margin-bottom: 20px;
    position: relative;
    color: var(--text-primary);
}

.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--accent-blue);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 var(--accent-blue-bright), 2px 2px var(--accent-blue);
    animation: glitch-anim2 1s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(31px, 9999px, 94px, 0); }
    20% { clip: rect(54px, 9999px, 66px, 0); }
    40% { clip: rect(19px, 9999px, 79px, 0); }
    60% { clip: rect(37px, 9999px, 87px, 0); }
    80% { clip: rect(45px, 9999px, 98px, 0); }
    100% { clip: rect(23px, 9999px, 92px, 0); }
}

@keyframes glitch-anim2 {
    0% { clip: rect(65px, 9999px, 100px, 0); }
    20% { clip: rect(25px, 9999px, 33px, 0); }
    40% { clip: rect(66px, 9999px, 80px, 0); }
    60% { clip: rect(12px, 9999px, 60px, 0); }
    80% { clip: rect(78px, 9999px, 95px, 0); }
    100% { clip: rect(43px, 9999px, 88px, 0); }
}

.hero-tagline {
    font-size: clamp(16px, 2.5vw, 24px);
    color: var(--text-dim);
    margin-bottom: 40px;
    letter-spacing: 1px;
}

.hero-cta {
    margin-top: 30px;
}

/* Glitch Overlay */
.glitch-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 255, 255, 0.03),
        rgba(0, 255, 255, 0.03) 1px,
        transparent 1px,
        transparent 2px
    );
    z-index: 1;
    pointer-events: none;
    animation: static 0.1s infinite;
}

@keyframes static {
    0% { transform: translateY(0); }
    100% { transform: translateY(-2px); }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 40px;
    background-color: var(--bg-surface);
    color: var(--text-primary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 14px;
    border: 2px solid var(--border-color);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--accent-blue);
    transition: left 0.3s;
    z-index: -1;
}

.btn:hover {
    color: var(--text-primary);
    border-color: var(--accent-blue);
}

.btn:hover::before {
    left: 0;
}

.btn-primary {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

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

.btn-secondary {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

.btn-secondary:hover {
    color: var(--text-primary);
}

.btn-secondary::before {
    background-color: var(--accent-blue);
}

.btn-large {
    padding: 18px 50px;
    font-size: 16px;
}

/* Section Styles */
section {
    padding: 80px 0;
    position: relative;
}

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

.section-title {
    font-size: clamp(24px, 4vw, 36px);
    color: var(--text-primary);
    margin-bottom: 15px;
    letter-spacing: 3px;
}

.terminal-border {
    width: 100px;
    height: 2px;
    background-color: var(--accent-blue);
    margin: 0 auto;
}

/* About Section */
.about {
    background-color: var(--bg-secondary);
}

.log-entry {
    background-color: var(--bg-surface);
    border: 2px solid var(--border-color);
    padding: 30px;
    margin-bottom: 40px;
    font-family: 'Courier New', monospace;
}

.log-line {
    margin-bottom: 15px;
    display: flex;
    gap: 15px;
}

.log-timestamp {
    color: var(--accent-blue);
    font-weight: bold;
    min-width: 50px;
}

.log-content {
    color: var(--text-secondary);
}

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

.about-card {
    background-color: var(--bg-surface);
    border: 2px solid var(--border-color);
    padding: 30px;
    transition: border-color 0.3s;
}

.about-card:hover {
    border-color: var(--accent-blue);
}

.card-title {
    font-size: 20px;
    color: var(--accent-blue);
    margin-bottom: 15px;
    letter-spacing: 2px;
}

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

.card-text strong {
    color: var(--accent-blue);
}

/* Features Section */
.features {
    background-color: var(--bg-primary);
}

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

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

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

.feature-card:hover::before {
    left: 100%;
}

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

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

.feature-title {
    font-size: 18px;
    color: var(--accent-blue);
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.feature-description {
    color: var(--text-dim);
    line-height: 1.6;
    font-size: 14px;
}

/* Preview Section */
.preview {
    background-color: var(--bg-secondary);
}

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

.screenshots-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.screenshot-item {
    background-color: var(--bg-surface);
    border: 2px solid var(--border-color);
    padding: 10px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.screenshot-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid var(--accent-blue);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 1;
}

.screenshot-item:hover {
    border-color: var(--accent-blue);
    transform: translateY(-5px);
}

.screenshot-item:hover::before {
    opacity: 0.5;
}

.screenshot-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s;
}

.screenshot-item:hover .screenshot-img {
    transform: scale(1.02);
}

/* Play Section */
.play {
    background-color: var(--bg-primary);
}

.play-content {
    max-width: 700px;
    margin: 0 auto;
}

.play-card {
    background-color: var(--bg-surface);
    border: 2px solid var(--border-color);
    padding: 50px;
    text-align: center;
}

.play-title {
    font-size: 28px;
    color: var(--accent-blue);
    margin-bottom: 20px;
    letter-spacing: 3px;
}

.play-description {
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.8;
    font-size: 16px;
}

.play-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.play-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.info-label {
    color: var(--text-dim);
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.info-value {
    color: var(--text-primary);
    font-size: 14px;
}

/* Footer */
.footer {
    background-color: var(--bg-surface);
    border-top: 2px solid var(--border-color);
    padding: 40px 0;
}

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

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

.footer-title {
    font-size: 16px;
    color: var(--accent-blue);
    margin-bottom: 10px;
    letter-spacing: 2px;
}

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

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

.footer-line {
    color: var(--text-dim);
    font-size: 10px;
    letter-spacing: 1px;
    overflow: hidden;
    white-space: nowrap;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        gap: 15px;
    }

    .nav-link {
        font-size: 12px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-tagline {
        font-size: 16px;
    }

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

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

    .screenshots-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .play-buttons {
        flex-direction: column;
    }

    .btn-large {
        width: 100%;
    }

    .play-card {
        padding: 30px 20px;
    }

    .info-item {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .nav-container {
        flex-direction: column;
        gap: 15px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .terminal-window {
        margin-bottom: 30px;
    }

    section {
        padding: 60px 0;
    }

    .screenshots-gallery {
        grid-template-columns: 1fr;
    }
}

/* Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

