/* style.css */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --pixel-black: #0a0a0a;
    --pixel-dark: #1a1a1a;
    --pixel-gray: #2a2a2a;
    --pixel-light: #f0f0f0;
    --pixel-orange: #ff6b35;
    --pixel-blue: #4a9cff;
    --pixel-border: 2px solid #333;
}

body {
    font-family: 'Roboto Mono', monospace;
    background-color: var(--pixel-black);
    color: var(--pixel-light);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Header */
.pixel-header {
    background-color: var(--pixel-dark);
    border-bottom: var(--pixel-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.pixel-logo h1 {
    font-family: 'Press Start 2P', cursive;
    font-size: 1.5rem;
    letter-spacing: 1px;
    margin: 0;
    color: var(--pixel-orange);
}

.pixel-badge {
    display: inline-flex;
    align-items: center;
    background-color: #000;
    padding: 0.3rem 0.6rem;
    margin-left: 1rem;
    border: 1px solid var(--pixel-orange);
    font-size: 0.7rem;
    gap: 0.5rem;
}

.pixel-dot {
    width: 6px;
    height: 6px;
    background-color: var(--pixel-orange);
    display: inline-block;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

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

.pixel-nav a {
    color: var(--pixel-light);
    text-decoration: none;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    transition: color 0.3s;
}

.pixel-nav a:hover {
    color: var(--pixel-orange);
}

.pixel-nav-icon {
    color: var(--pixel-orange);
    font-family: 'Press Start 2P', cursive;
}

/* Hero Section */
.pixel-hero {
    padding: 5rem 0;
    border-bottom: var(--pixel-border);
}

.pixel-hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.pixel-title-main {
    display: block;
    font-family: 'Press Start 2P', cursive;
    font-size: 2.5rem;
    color: var(--pixel-orange);
    margin-bottom: 0.5rem;
}

.pixel-title-sub {
    display: block;
    font-size: 1.2rem;
    color: var(--pixel-blue);
    margin-bottom: 2rem;
    font-family: 'Roboto Mono', monospace;
}

.pixel-hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #aaa;
    line-height: 1.6;
}

.pixel-features-preview {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.feature-tag {
    background-color: var(--pixel-gray);
    border: 1px solid #444;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    color: var(--pixel-light);
}

/* Pixel Art Showcase */
.pixel-art-showcase {
    background-color: var(--pixel-dark);
    border: var(--pixel-border);
    padding: 2rem;
    text-align: center;
}

.pixel-cat-large {
    display: inline-block;
    margin-bottom: 2rem;
}

.pixel-row {
    display: flex;
    justify-content: center;
    gap: 0;
}

.pixel {
    width: 20px;
    height: 20px;
    background-color: #888;
    margin: 1px;
}

.pixel.black { background-color: #222; }
.pixel.white { background-color: #fff; }
.pixel.orange { background-color: var(--pixel-orange); }

.pixel-scene {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: #222;
    border: 1px solid var(--pixel-gray);
}

.scene-text {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.scene-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 1rem;
    color: var(--pixel-orange);
}

.scene-subtitle {
    font-size: 0.9rem;
    color: #888;
}

/* Sections */
.pixel-section {
    padding: 4rem 0;
    border-bottom: var(--pixel-border);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.pixel-section-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 1.5rem;
    color: var(--pixel-light);
    margin-bottom: 1rem;
}

.section-subtitle {
    color: #888;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.pixel-bracket {
    color: var(--pixel-orange);
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.about-card {
    background-color: var(--pixel-dark);
    border: 1px solid var(--pixel-gray);
    padding: 2rem;
    text-align: center;
    transition: border-color 0.3s;
}

.about-card:hover {
    border-color: var(--pixel-orange);
}

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

.about-card h3 {
    font-family: 'Press Start 2P', cursive;
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--pixel-light);
}

.about-card p {
    color: #888;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-item {
    background-color: var(--pixel-dark);
    border: 1px solid var(--pixel-gray);
    padding: 2rem;
}

.feature-number {
    font-family: 'Press Start 2P', cursive;
    font-size: 2rem;
    color: var(--pixel-orange);
    margin-bottom: 1rem;
    opacity: 0.3;
}

.feature-item h3 {
    font-family: 'Press Start 2P', cursive;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--pixel-light);
}

.feature-item p {
    color: #888;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Gallery Section */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.gallery-placeholder {
    background-color: var(--pixel-dark);
    border: 1px solid var(--pixel-gray);
    padding: 2rem;
    height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.placeholder-text {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.9rem;
    color: var(--pixel-light);
    margin-bottom: 1.5rem;
}

.pixel-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 4px;
    width: 100px;
    height: 100px;
}

.grid-pixel {
    background-color: var(--pixel-gray);
}

.grid-pixel.accent {
    background-color: var(--pixel-orange);
}

/* Updates Section */
.updates-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.update-card {
    background-color: var(--pixel-dark);
    border: 1px solid var(--pixel-gray);
    padding: 2rem;
}

.update-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--pixel-gray);
}

.update-date {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.8rem;
    color: var(--pixel-light);
}

.update-status {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    background-color: #222;
    border: 1px solid var(--pixel-orange);
    color: var(--pixel-orange);
}

.update-card h3 {
    font-family: 'Press Start 2P', cursive;
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--pixel-light);
}

.update-card p {
    color: #888;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Subscribe Box */
.subscribe-box {
    background-color: var(--pixel-dark);
    border: 1px solid var(--pixel-gray);
    padding: 3rem;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.subscribe-box h3 {
    font-family: 'Press Start 2P', cursive;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--pixel-light);
}

.subscribe-box p {
    color: #888;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.subscribe-form {
    display: flex;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto 1rem;
}

.pixel-input {
    flex: 1;
    padding: 1rem;
    background-color: #222;
    border: 1px solid var(--pixel-gray);
    color: var(--pixel-light);
    font-family: 'Roboto Mono', monospace;
    font-size: 0.9rem;
}

.pixel-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pixel-button {
    background-color: var(--pixel-gray);
    border: 1px solid #444;
    padding: 1rem 2rem;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.9rem;
    color: var(--pixel-light);
    cursor: pointer;
    transition: all 0.3s;
}

.pixel-button:hover {
    background-color: var(--pixel-orange);
    color: #000;
    border-color: var(--pixel-orange);
}

.form-note {
    font-size: 0.8rem;
    color: #666;
}

/* Developer Section */
.dev-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.dev-info h3, .project-info h3 {
    font-family: 'Press Start 2P', cursive;
    font-size: 1rem;
    color: var(--pixel-light);
    margin-bottom: 1rem;
}

.dev-name {
    font-family: 'Press Start 2P', cursive;
    font-size: 1.2rem;
    color: var(--pixel-orange);
    margin-bottom: 1.5rem;
}

.dev-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.pixel-link {
    color: var(--pixel-orange);
    text-decoration: none;
    border: 1px solid var(--pixel-gray);
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.pixel-link:hover {
    background-color: var(--pixel-orange);
    color: #000;
    border-color: var(--pixel-orange);
}

.project-info p {
    color: #888;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Footer */
.pixel-footer {
    background-color: #111;
    padding: 3rem 0;
    border-top: var(--pixel-border);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 2rem;
    align-items: center;
}

.pixel-logo-small {
    font-family: 'Press Start 2P', cursive;
    font-size: 1.2rem;
    color: var(--pixel-orange);
    margin-bottom: 0.5rem;
}

.footer-tag {
    font-size: 0.9rem;
    color: #888;
}

.footer-info p {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.8rem;
    color: var(--pixel-orange);
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--pixel-orange);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

/* Responsive */
@media (max-width: 992px) {
    .pixel-hero-content,
    .about-content,
    .features-grid,
    .gallery,
    .updates-content,
    .dev-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .pixel-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .pixel-title-main {
        font-size: 2rem;
    }
    
    .subscribe-form {
        flex-direction: column;
    }
    
    .pixel-button {
        width: 100%;
    }
}

/* 404 page specific styles */
.error-main {
    min-height: calc(100vh - 200px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 0;
}

.error-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* Error code */
.pixel-error-code {
    margin-bottom: 3rem;
}

.error-digits {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.digit {
    font-family: 'Press Start 2P', cursive;
    font-size: 8rem;
    color: var(--pixel-orange);
    text-shadow: 4px 4px 0 #000;
    display: inline-block;
    line-height: 1;
}

.error-subtitle {
    font-family: 'Press Start 2P', cursive;
    font-size: 1.2rem;
    color: var(--pixel-light);
    letter-spacing: 1px;
}

.pixel-bracket {
    color: var(--pixel-orange);
    margin: 0 0.5rem;
}

/* Error scene */
.pixel-error-scene {
    background-color: var(--pixel-dark);
    border: var(--pixel-border);
    padding: 3rem 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.scene-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.lost-cat {
    position: relative;
    display: inline-block;
}

.cat-body {
    display: inline-block;
}

.pixel-row {
    display: flex;
    justify-content: center;
    gap: 0;
}

.pixel {
    width: 24px;
    height: 24px;
    background-color: #888;
    margin: 2px;
}

.pixel.black { background-color: #222; }
.pixel.white { background-color: #fff; }
.pixel.orange { background-color: var(--pixel-orange); }

.blink {
    animation: blink 1s infinite;
}

.question-mark {
    position: absolute;
    top: -20px;
    right: -30px;
    font-family: 'Press Start 2P', cursive;
    font-size: 3rem;
    color: var(--pixel-blue);
    animation: float 2s ease-in-out infinite;
}

/* Error message */
.error-message {
    max-width: 600px;
}

.error-message p {
    font-size: 1.1rem;
    color: #aaa;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.error-suggestions {
    text-align: left;
    display: inline-block;
    background-color: #222;
    border: 1px solid var(--pixel-gray);
    padding: 1.5rem;
}

.suggestion {
    color: #888;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.suggestion:last-child {
    margin-bottom: 0;
}

.suggestion-icon {
    color: var(--pixel-orange);
    font-family: 'Press Start 2P', cursive;
}

/* Error actions */
.error-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.pixel-button {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background-color: var(--pixel-gray);
    border: 1px solid #444;
    padding: 1rem 2rem;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.9rem;
    color: var(--pixel-light);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
}

.pixel-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.5);
}

.pixel-button.primary {
    background-color: var(--pixel-orange);
    color: #000;
    border-color: var(--pixel-orange);
}

.pixel-button.primary:hover {
    background-color: #ff8b5c;
}

.pixel-button.secondary {
    background-color: transparent;
    border-color: var(--pixel-blue);
    color: var(--pixel-blue);
}

.pixel-button.secondary:hover {
    background-color: rgba(74, 156, 255, 0.1);
}

.button-icon {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.8rem;
}

/* Debug panel */
.error-debug {
    background-color: var(--pixel-dark);
    border: 1px solid var(--pixel-gray);
    margin-top: 2rem;
}

.debug-toggle {
    width: 100%;
    padding: 1rem;
    background: none;
    border: none;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.9rem;
    color: #888;
    cursor: pointer;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: color 0.3s;
}

.debug-toggle:hover {
    color: var(--pixel-orange);
}

.debug-icon {
    color: var(--pixel-orange);
    transition: transform 0.3s;
}

.debug-content {
    display: none;
    padding: 1.5rem;
    border-top: 1px solid var(--pixel-gray);
}

.debug-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.debug-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #333;
}

.debug-label {
    color: #888;
    font-size: 0.9rem;
}

.debug-value {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.9rem;
    color: var(--pixel-orange);
}

.debug-message {
    font-size: 0.8rem;
    color: #666;
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid #333;
}

/* Pixel decoration */
.pixel-decoration {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.2;
    z-index: -1;
}

.decoration-row {
    display: flex;
    gap: 4px;
    margin-bottom: 4px;
    justify-content: center;
}

.pixel-deco {
    width: 8px;
    height: 8px;
    background-color: var(--pixel-orange);
}

.pixel-deco.glitch {
    animation: glitch 2s infinite;
}

/* Footer adjustments for 404 */
.error-footer {
    margin-top: auto;
}

.status-dot.error {
    background-color: var(--pixel-red);
    animation: blink 1s infinite;
}

/* Responsive */
@media (max-width: 768px) {
    .digit {
        font-size: 5rem;
    }
    
    .error-subtitle {
        font-size: 0.9rem;
    }
    
    .error-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .pixel-button {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .debug-grid {
        grid-template-columns: 1fr;
    }
    
    .pixel {
        width: 16px;
        height: 16px;
    }
    
    .question-mark {
        font-size: 2rem;
        right: -20px;
    }
}

@media (max-width: 480px) {
    .digit {
        font-size: 4rem;
    }
    
    .pixel-error-scene {
        padding: 2rem 1rem;
    }
    
    .error-message p {
        font-size: 1rem;
    }
}