:root {
    /* Dark Mode - Matching logo design */
    --bg-primary: #01071A;
    --bg-secondary: #030B1A;
    --bg-tertiary: #050F1F;
    --text-logo: #FFFFFF;
    --text-primary: #FFFFFF;
    --text-secondary: #B0BEC5;
    --text-muted: #78909C;
    --accent: #2196F3;
    --accent-hover: #42A5F5;
    --success: #22C55E;
    --error: #EF4444;
    /* Monochrome code syntax - professional and subtle */
    --code-keyword: #E5E7EB;
    --code-string: #E5E7EB;
    --code-comment: #6B7280;
    --code-variable: #E5E7EB;
    --code-type: #E5E7EB;
    --border: #1A2F4A;
    --glow: rgba(33, 150, 243, 0.3);
}

/* Light mode variables - Matching logo design */
[data-theme="light"] {
    --bg-primary: #FFFFFF;
    --bg-secondary: #FFFFFF;
    --bg-tertiary: #FFFFFF;
    --text-logo: #0A0A0A;
    --text-primary: #111827;
    --text-secondary: #374151;
    --text-muted: #6B7280;
    --accent: #0099FF;
    --accent-hover: #0088EE;
    --success: #10B981;
    --error: #EF4444;
    /* Monochrome code syntax for light mode */
    --code-keyword: #111827;
    --code-string: #111827;
    --code-comment: #9CA3AF;
    --code-variable: #111827;
    --code-type: #111827;
    --border: #D1D5DB;
    --glow: rgba(0, 153, 255, 0.15);
}

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

body {
    font-family: 'Fira Sans', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.7;
    font-size: 16px;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Pixel art rendering */
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    text-rendering: optimizeLegibility;
}

/* Enhanced Pixel Art Dithering - Similar to last9.io */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E"),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.02) 2px,
            rgba(255, 255, 255, 0.02) 4px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.02) 2px,
            rgba(255, 255, 255, 0.02) 4px
        );
    opacity: 0.12;
    pointer-events: none;
    z-index: 1;
    mix-blend-mode: overlay;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}


.terminal-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 20px;
    /* Dithering effect */
    image-rendering: -moz-crisp-edges;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

/* Boot Screen - Terminal Style */
.boot-screen {
    width: 100%;
    height: 100vh;
    background: var(--bg-primary);
    padding: 40px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.6s ease-out, visibility 0.6s ease-out;
}

.boot-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.boot-content {
    width: 100%;
    max-width: 600px;
    text-align: center;
}

.boot-line {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 16px;
}

.boot-prompt {
    color: var(--accent);
    margin-right: 12px;
    font-weight: 700;
    font-size: 18px;
}

.boot-text {
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 500;
}

.boot-logs {
    margin-top: 32px;
    opacity: 1;
    text-align: left;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.boot-log {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 12px;
    padding-left: 24px;
    opacity: 0;
    animation: fadeInLog 0.4s ease-out forwards;
}

@keyframes fadeInLog {
    from {
        opacity: 0;
        transform: translateX(-15px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Main Content */
.main-content {
    width: 100%;
    max-width: 900px;
    opacity: 0;
    position: relative;
    z-index: 200;
    display: block;
}

.main-content.hidden {
    display: none !important;
    opacity: 0;
}


.editor-container {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    /* Pixel art dithering pattern */
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 4px,
            rgba(255, 255, 255, 0.015) 4px,
            rgba(255, 255, 255, 0.015) 8px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 4px,
            rgba(255, 255, 255, 0.015) 4px,
            rgba(255, 255, 255, 0.015) 8px
        );
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}


/* Editor Header - Minimal */
.editor-header {
    background: var(--bg-tertiary);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

.editor-title {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* Editor Body */
.editor-body {
    padding: 30px;
    background: var(--bg-secondary);
    min-height: 200px;
    position: relative;
    z-index: 2;
    /* Dithering on code area */
    filter: contrast(1.05);
}

.code-lines {
    font-size: 14px;
    line-height: 1.8;
}

.code-line {
    display: flex;
    margin-bottom: 8px;
    opacity: 1;
}

.code-line-blank {
    height: 8px;
}

.line-number {
    color: var(--text-secondary);
    margin-right: 20px;
    min-width: 30px;
    text-align: right;
    font-size: 12px;
    opacity: 0.4;
    font-weight: 400;
    user-select: none;
    font-variant-numeric: tabular-nums;
}

.code-keyword {
    color: var(--code-keyword);
}

.code-variable {
    color: var(--code-variable);
}

.code-string {
    color: var(--code-string);
}

.code-type-annotation {
    color: var(--code-type);
}

.code-comment {
    color: var(--code-comment);
    font-style: italic;
}

.code-function {
    color: var(--code-variable);
}


/* Hero Section - Minimal */
/* Header Titlebar */
.header-titlebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    position: relative;
    z-index: 2;
    min-height: 56px;
}

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

.header-logo .logo-symbol {
    font-family: 'Fira Sans', sans-serif;
    font-size: 1.375rem;
    font-weight: 800;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 2px;
    line-height: 1;
}

.header-logo .logo-text {
    font-family: 'Fira Sans', sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-logo);
    letter-spacing: 0.04em;
}

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

.hero-section {
    padding: 40px 24px 48px;
    text-align: center;
    background: var(--bg-secondary);
    position: relative;
    z-index: 2;
}

/* Logo Container */
.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
}

.logo-symbol {
    font-family: 'Fira Sans', sans-serif;
    font-size: clamp(4rem, 10vw, 6.5rem);
    font-weight: 800;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 4px;
    line-height: 1;
}

.logo-bracket {
    display: inline-block;
}

.logo-slash {
    display: inline-block;
}

.logo-text {
    font-family: 'Fira Sans', sans-serif;
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 700;
    color: var(--text-logo);
    letter-spacing: 0.05em;
    position: relative;
}


.hero-title {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.title-line {
    display: block;
    font-family: 'Fira Sans', sans-serif;
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--text-primary);
    opacity: 1;
    line-height: 1.2;
}

.title-line.subtitle {
    font-family: 'Fira Sans', sans-serif;
    font-size: clamp(1.125rem, 3vw, 1.375rem);
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: 0.01em;
    margin-top: 16px;
    line-height: 1.65;
}

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

.mission-statement {
    margin-top: 32px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 1;
}

.mission-text {
    font-size: clamp(1rem, 2vw, 1.125rem);
    line-height: 1.75;
    line-height: 1.7;
    color: var(--text-secondary);
    font-weight: 400;
    text-align: left;
}


/* Content Grid - Newsletter and Events side by side */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
}

/* Form Container */
.form-container {
    padding: 32px 24px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border);
    position: relative;
    z-index: 2;
    /* Subtle dithering pattern */
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(255, 255, 255, 0.02) 10px,
            rgba(255, 255, 255, 0.02) 20px
        );
}

[data-theme="light"] .form-container {
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(0, 0, 0, 0.015) 10px,
            rgba(0, 0, 0, 0.015) 20px
        );
}

@media (max-width: 768px) {
    .header-titlebar {
        padding: 12px 16px;
        min-height: 48px;
    }
    
    .header-logo {
        gap: 6px;
    }
    
    .header-logo .logo-symbol {
        font-size: 1.125rem;
        gap: 1px;
    }
    
    .header-logo .logo-text {
        font-size: 0.9375rem;
        letter-spacing: 0.03em;
    }
    
    .header-actions {
        gap: 10px;
    }
    
    .cat-sprite {
        width: 28px;
        height: 28px;
    }
    
    .theme-toggle {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .form-container {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
}

.form-wrapper {
    max-width: 500px;
    margin: 0 auto;
}

.form-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.form-icon {
    color: var(--accent);
    font-size: 18px;
    font-weight: 400;
    display: inline-block;
}

.form-title {
    font-family: 'Fira Sans', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    margin-bottom: 4px;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 14px;
    color: var(--text-secondary);
    text-transform: lowercase;
    font-weight: 400;
    display: inline-block;
    letter-spacing: 0.02em;
}

.form-input {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-family: 'Fira Sans', sans-serif;
    font-size: 15px;
    line-height: 1.5;
    outline: none;
    transition: all 0.2s ease;
}

.form-input:hover {
    border-color: var(--accent);
}

.form-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 153, 255, 0.1);
}

    /* Pixel art dithering */
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 1px,
            rgba(255, 255, 255, 0.02) 1px,
            rgba(255, 255, 255, 0.02) 2px
        );
    image-rendering: pixelated;
}

[data-theme="light"] .form-input {
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 1px,
            rgba(0, 0, 0, 0.02) 1px,
            rgba(0, 0, 0, 0.02) 2px
        );
}

.form-input::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.1'/%3E%3C/svg%3E");
    pointer-events: none;
    opacity: 0.3;
    mix-blend-mode: overlay;
    border-radius: 4px;
}


.form-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.5;
}

.form-submit {
    background: var(--accent);
    color: #FFFFFF;
    border: none;
    border-radius: 4px;
    padding: 12px 20px;
    font-family: 'Fira Sans', sans-serif;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.02em;
    line-height: 1.5;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 4px;
    transition: all 0.2s ease;
    position: relative;
}

.form-submit::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.15'/%3E%3C/svg%3E");
    pointer-events: none;
    mix-blend-mode: overlay;
    opacity: 0.4;
}

.form-submit:hover:not(:disabled) {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 153, 255, 0.3);
    transition: all 0.2s ease;
}

.form-submit:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 153, 255, 0.2);
}

.form-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.submit-loader {
    display: inline-block;
}

.submit-loader.hidden {
    display: none;
}

.form-message {
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 13px;
    text-align: center;
    opacity: 0;
}

.form-message.show {
    opacity: 1;
}

.form-message.success {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid var(--success);
    color: var(--success);
}

.form-message.error {
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid var(--error);
    color: var(--error);
}

/* Blog Container */
.blog-container {
    padding: 32px 24px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 2;
}

.blog-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.blog-icon {
    color: var(--accent);
    font-size: 18px;
    font-weight: 400;
}

.blog-title {
    font-family: 'Fira Sans', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.blog-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.blog-item {
    display: block;
    padding: 18px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 4px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    /* Pixel art dithering */
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.015) 2px,
            rgba(255, 255, 255, 0.015) 4px
        );
    image-rendering: pixelated;
}

.blog-item:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .blog-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .blog-item {
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.03) 2px,
            rgba(0, 0, 0, 0.03) 4px
        );
}


.blog-item-title {
    font-family: 'Fira Sans', sans-serif;
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.blog-item-date {
    font-size: 13px;
    color: var(--accent);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
}

.blog-item-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.65;
    letter-spacing: 0.01em;
}

.blog-loading,
.blog-empty {
    padding: 20px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
}

/* Blog Skeleton Placeholder Cards - Similar to last9.io */
.blog-skeleton {
    pointer-events: none;
    cursor: default;
}

.blog-skeleton:hover {
    border-color: var(--border);
}

.skeleton-line {
    height: 12px;
    background: linear-gradient(
        90deg,
        var(--bg-tertiary) 0%,
        var(--border) 50%,
        var(--bg-tertiary) 100%
    );
    background-size: 200% 100%;
    border-radius: 2px;
    margin-bottom: 10px;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    image-rendering: pixelated;
}

.skeleton-title {
    height: 18px;
    width: 75%;
    margin-bottom: 12px;
}

.skeleton-date {
    height: 10px;
    width: 30%;
    margin-bottom: 12px;
}

.skeleton-text {
    height: 12px;
    width: 100%;
}

.skeleton-text.short {
    width: 60%;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Events Container */
.events-container {
    padding: 32px 24px;
    background: var(--bg-secondary);
    position: relative;
    z-index: 2;
    /* Subtle dithering pattern */
    background-image: 
        repeating-linear-gradient(
            135deg,
            transparent,
            transparent 10px,
            rgba(255, 255, 255, 0.02) 10px,
            rgba(255, 255, 255, 0.02) 20px
        );
}

[data-theme="light"] .events-container {
    background-image: 
        repeating-linear-gradient(
            135deg,
            transparent,
            transparent 10px,
            rgba(0, 0, 0, 0.015) 10px,
            rgba(0, 0, 0, 0.015) 20px
        );
}

.events-wrapper {
    max-width: 100%;
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.event-item {
    padding: 18px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 4px;
    transition: all 0.2s ease;
    /* Pixel art dithering */
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.015) 2px,
            rgba(255, 255, 255, 0.015) 4px
        );
    image-rendering: pixelated;
}

.event-item:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .event-item {
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.025) 2px,
            rgba(0, 0, 0, 0.025) 4px
        );
}

[data-theme="light"] .event-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}


.event-item-placeholder {
    opacity: 0.6;
}

.event-date {
    font-size: 13px;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.event-title {
    font-family: 'Fira Sans', sans-serif;
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.event-description {
    font-size: 14px;
    line-height: 1.65;
    letter-spacing: 0.01em;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Footer */
.footer {
    padding: 32px 24px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 2;
    margin-top: 32px;
    /* Dithering pattern */
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 1px,
            rgba(255, 255, 255, 0.02) 1px,
            rgba(255, 255, 255, 0.02) 2px
        );
}

[data-theme="light"] .footer {
    background: var(--bg-primary);
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 1px,
            rgba(0, 0, 0, 0.025) 1px,
            rgba(0, 0, 0, 0.025) 2px
        );
}

.footer-line {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    margin-bottom: 0;
    line-height: 1.7;
    letter-spacing: 0.01em;
}

.footer-prompt {
    color: var(--accent);
    font-weight: 500;
    display: inline-block;
    flex-shrink: 0;
}

.footer-text {
    color: var(--text-secondary);
    flex: 1;
    letter-spacing: 0.01em;
}

/* Cheese element */
.cheese {
    position: fixed;
    z-index: 999;
    cursor: pointer;
    opacity: 0.4;
    transition: opacity 0.3s ease;
    user-select: none;
    pointer-events: auto;
    font-size: 24px;
    line-height: 1;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cheese.hidden {
    display: none !important;
    opacity: 0;
}

.cheese:hover {
    opacity: 0.7;
}

.cheese-sprite {
    animation: cheeseBounce 0.8s ease-in-out infinite;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
    display: block;
}

@keyframes cheeseBounce {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-5px) rotate(5deg); }
}

/* Pixel Art Cat Easter Egg - Tamagotchi Style */
.pixel-cat {
    position: relative;
    z-index: 1;
    cursor: pointer;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    opacity: 0.6;
    transition: opacity 0.2s ease;
    user-select: none;
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pixel-cat:hover {
    opacity: 0.9;
    transform: scale(1.05);
    transition: all 0.2s ease;
}

.pixel-cat:active {
    transform: scale(0.95);
}

.pixel-cat.hidden {
    display: none !important;
    opacity: 0;
}

.cat-container {
    background: transparent;
    border: none;
    border-radius: 0;
    width: auto;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 0;
}

.cat-sprite {
    width: 32px;
    height: 32px;
    position: relative;
    margin: 0;
    image-rendering: pixelated;
    backface-visibility: hidden;
    transform: translateZ(0);
    flex-shrink: 0;
}

.cat-head {
    width: 28px;
    height: 22px;
    background: var(--text-primary);
    border-radius: 50% 50% 45% 45%;
    position: absolute;
    top: 6px;
    left: 8px;
    border: 1px solid var(--border);
    box-shadow: 
        inset -2px -2px 0 rgba(0, 0, 0, 0.3),
        inset 2px 2px 0 rgba(255, 255, 255, 0.1);
}

.cat-ears {
    position: absolute;
    top: 0;
    left: 6px;
    width: 32px;
    height: 14px;
}

.cat-ear {
    width: 10px;
    height: 10px;
    background: var(--text-primary);
    position: absolute;
    border: 1px solid var(--border);
    box-shadow: inset -1px -1px 0 rgba(0, 0, 0, 0.3);
}

.cat-ear-left {
    top: 0;
    left: 0;
    transform: rotate(-25deg);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.cat-ear-right {
    top: 0;
    right: 0;
    transform: rotate(25deg);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.cat-eyes {
    position: absolute;
    top: 12px;
    left: 13px;
    width: 16px;
    height: 6px;
}

.cat-eye {
    width: 4px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    position: absolute;
    border: 1px solid var(--border);
}

.cat-eye-left {
    left: 0;
}

.cat-eye-right {
    right: 0;
}

.cat-eye.blink {
    height: 2px;
    border-radius: 0;
}

.cat-mouth {
    width: 6px;
    height: 3px;
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 6px 6px;
    position: absolute;
    top: 18px;
    left: 19px;
    background: transparent;
}

.cat-body {
    width: 22px;
    height: 16px;
    background: var(--text-primary);
    border-radius: 50% 50% 40% 40%;
    position: absolute;
    bottom: 0;
    left: 10px;
    border: 1px solid var(--border);
    box-shadow: 
        inset -2px -2px 0 rgba(0, 0, 0, 0.3),
        inset 2px 2px 0 rgba(255, 255, 255, 0.1);
}

.cat-name {
    text-align: center;
    font-size: 10px;
    color: var(--text-secondary);
    text-transform: lowercase;
    letter-spacing: 0.08em;
    margin-top: 10px;
    line-height: 1.4;
    opacity: 0.8;
    width: 100%;
    font-weight: 400;
}

/* Cat states */
.cat-sprite.sleeping .cat-eye {
    height: 2px;
    border-radius: 0;
    background: var(--border);
}

.cat-sprite.happy .cat-mouth {
    width: 10px;
    height: 6px;
    border-radius: 0 0 10px 10px;
    border-top: 2px solid var(--accent);
}

.cat-sprite.excited {
    transform: scale(1.1);
}

.cat-sprite.running {
    animation: catRun 0.3s ease-in-out infinite;
}

@keyframes catRun {
    0%, 100% { transform: translateY(0) scaleX(1); }
    25% { transform: translateY(-2px) scaleX(1); }
    50% { transform: translateY(0) scaleX(1); }
    75% { transform: translateY(-2px) scaleX(1); }
}

.cat-sprite.running .cat-body {
    animation: bodyBounce 0.3s ease-in-out infinite;
}

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

/* Enhanced pixel art effects on elements */
.hero-section,
.blog-container,
.form-container,
.events-container {
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    position: relative;
}

.hero-section::after,
.blog-container::after,
.form-container::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 3px,
            rgba(255, 255, 255, 0.01) 3px,
            rgba(255, 255, 255, 0.01) 6px
        );
    pointer-events: none;
    opacity: 0.5;
    image-rendering: pixelated;
}

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

    .boot-screen {
        padding: 20px;
    }

    .hero-section {
        padding: 32px 20px 40px;
    }
    
    .blog-container,
    .form-container,
    .events-container,
    .footer {
        padding: 24px 20px;
    }

    .code-line {
        font-size: 12px;
    }

    .line-number {
        margin-right: 15px;
        min-width: 25px;
    }
}


/* Additional dithering effects */

/* Boot screen dithering */
.boot-screen {
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.02) 2px,
            rgba(255, 255, 255, 0.02) 4px
        );
}

.boot-text, .boot-log {
    text-rendering: optimizeSpeed;
    -webkit-font-smoothing: none;
    filter: contrast(1.05);
}


/* Form submit button dithering */
/* Additional dithering effects continue */


/* Dark mode toggle button */

.theme-toggle {
    position: relative;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.theme-toggle:hover {
    opacity: 0.8;
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.theme-toggle:active {
    transform: scale(0.95);
}

/* Enhanced dithering for light mode */
[data-theme="light"] body::before {
    opacity: 0.08;
    mix-blend-mode: multiply;
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.04) 2px,
            rgba(0, 0, 0, 0.04) 4px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.04) 2px,
            rgba(0, 0, 0, 0.04) 4px
        );
}

[data-theme="light"] .editor-container {
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 4px,
            rgba(0, 0, 0, 0.01) 4px,
            rgba(0, 0, 0, 0.01) 8px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 4px,
            rgba(0, 0, 0, 0.01) 4px,
            rgba(0, 0, 0, 0.01) 8px
        );
}

[data-theme="light"] .editor-container::after {
    opacity: 0.02;
}

/* Performance optimization for dithering */

