/* ========================================
   CHRIS JACKSON - PIXEL ART PORTFOLIO
   Base Styles + Theme 1: Classic Retro
   ======================================== */

/* CSS Variables for theming */
:root {
    /* Theme 1: Classic Retro (Game Boy inspired) */
    --bg-primary: #0f380f;
    --bg-secondary: #306230;
    --bg-tertiary: #8bac0f;
    --text-primary: #9bbc0f;
    --text-secondary: #8bac0f;
    --text-highlight: #cadc9f;
    --accent-primary: #9bbc0f;
    --accent-secondary: #306230;
    --border-color: #9bbc0f;
    --shadow-color: rgba(15, 56, 15, 0.8);
    --glow-color: rgba(155, 188, 15, 0.5);

    /* Rarity Colors */
    --legendary: #ff8c00;
    --epic: #a855f7;
    --rare: #3b82f6;
    --common: #9bbc0f;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Press Start 2P', cursive;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-size: 14px;
    line-height: 2;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Scanlines Effect */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.1),
        rgba(0, 0, 0, 0.1) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 9999;
}

/* Floating Pixel Background */
.pixel-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.pixel-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent-primary);
    opacity: 0.3;
    animation: float-particle 15s infinite linear;
}

@keyframes float-particle {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-10vh) rotate(360deg);
        opacity: 0;
    }
}

/* Navigation */
.pixel-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--bg-primary);
    border-bottom: 4px solid var(--border-color);
    z-index: 1000;
    padding: 10px 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: 20px;
    color: var(--text-highlight);
    text-decoration: none;
    text-shadow: 4px 4px 0 var(--bg-secondary);
    transition: all 0.2s;
}

.nav-logo:hover {
    color: var(--accent-primary);
    text-shadow: 4px 4px 0 var(--accent-secondary);
}

.nav-logo.glitching {
    animation: logoGlitch 0.3s ease-in-out;
    color: var(--accent-primary);
}

@keyframes logoGlitch {
    0%, 100% {
        text-shadow: 4px 4px 0 var(--bg-secondary);
        transform: translate(0);
    }
    20% {
        text-shadow: -2px 0 var(--accent-primary), 2px 0 var(--accent-secondary);
        transform: translate(-2px, 1px);
    }
    40% {
        text-shadow: 2px 0 var(--accent-secondary), -2px 0 var(--accent-primary);
        transform: translate(2px, -1px);
    }
    60% {
        text-shadow: -1px 2px var(--accent-primary), 1px -2px var(--accent-secondary);
        transform: translate(1px, 2px);
    }
    80% {
        text-shadow: 1px -1px var(--accent-secondary), -1px 1px var(--accent-primary);
        transform: translate(-1px, -1px);
    }
}

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

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 10px;
    padding: 8px 12px;
    border: 2px solid transparent;
    transition: all 0.2s;
    position: relative;
}

.nav-link:hover {
    color: var(--text-highlight);
    border-color: var(--border-color);
    background: var(--bg-secondary);
}

.nav-link::before {
    content: '>';
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.2s, left 0.2s;
}

.nav-link:hover::before {
    opacity: 1;
    left: -10px;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: 2px solid var(--border-color);
    padding: 8px;
    cursor: pointer;
}

.menu-toggle span {
    width: 20px;
    height: 3px;
    background: var(--text-primary);
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 100px 20px 50px;
    position: relative;
}

.hero-content {
    display: flex;
    align-items: stretch;
    gap: 60px;
    max-width: 1400px;
    width: 100%;
    padding: 0 40px;
}

.hero-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    flex: 1;
}

.hero-right {
    flex: 1;
    display: flex;
    align-items: center;
}

.hero-dialog {
    max-width: none;
    width: 100%;
}

/* Pixel Avatar */
.pixel-avatar {
    width: 200px;
    height: 200px;
    position: relative;
}

.avatar-sprite {
    width: 100%;
    height: 100%;
    background: var(--bg-secondary);
    border: 4px solid var(--border-color);
    position: relative;
    image-rendering: pixelated;
    animation: bounce 1s ease-in-out infinite;
}

/* Pixel Art Character using CSS */
.avatar-sprite::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 80px;
    background:
        /* Hair */
        linear-gradient(var(--text-primary) 20px, transparent 20px),
        /* Face */
        linear-gradient(var(--text-highlight) 100%, transparent 100%);
    border-radius: 8px;
    box-shadow:
        /* Eyes */
        -15px 30px 0 0 var(--bg-primary),
        15px 30px 0 0 var(--bg-primary),
        /* Smile */
        0 50px 0 0 var(--bg-primary);
}

.avatar-sprite::after {
    content: '';
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 60px;
    background: var(--accent-primary);
    border-radius: 8px 8px 0 0;
}

.avatar-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border: 4px solid var(--accent-primary);
    border-radius: 8px;
}

.pixel-avatar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(74, 246, 38, 0.15);
    border-radius: 8px;
    pointer-events: none;
}

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

/* Hero Text */
.hero-text {
    flex: 1;
    text-align: center;
}

.text-box {
    background: var(--bg-secondary);
    border: 4px solid var(--border-color);
    padding: 30px;
    margin-bottom: 30px;
    position: relative;
    box-shadow: 8px 8px 0 var(--shadow-color);
}

.text-box::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    height: 20px;
    background: var(--bg-tertiary);
    border: 4px solid var(--border-color);
    border-bottom: none;
}

h1 {
    font-size: 28px;
    margin-bottom: 15px;
    margin-top: 15px;
    color: var(--text-highlight);
    text-shadow: 4px 4px 0 var(--bg-primary);
}

/* Glitch Effect */
.glitch {
    position: relative;
}

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

.glitch::before {
    animation: glitch-1 0.3s infinite linear alternate-reverse;
    color: var(--legendary);
    z-index: -1;
}

.glitch::after {
    animation: glitch-2 0.3s infinite linear alternate-reverse;
    color: var(--epic);
    z-index: -2;
}

@keyframes glitch-1 {
    0% { clip-path: inset(20% 0 60% 0); transform: translate(-2px, -2px); }
    100% { clip-path: inset(60% 0 20% 0); transform: translate(2px, 2px); }
}

@keyframes glitch-2 {
    0% { clip-path: inset(60% 0 20% 0); transform: translate(2px, 2px); }
    100% { clip-path: inset(20% 0 60% 0); transform: translate(-2px, -2px); }
}

/* Typewriter Effect */
.typewriter {
    font-size: 16px;
    margin-bottom: 15px;
    min-height: 32px;
}

.cursor {
    animation: blink 0.7s infinite;
}

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

.hero-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.hero-location {
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Buttons */
.hero-cta {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.hero-cta .pixel-btn {
    flex: 1;
    max-width: 200px;
}

.pixel-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 25px;
    font-family: 'Press Start 2P', cursive;
    font-size: 12px;
    text-decoration: none;
    text-align: center;
    border: 4px solid var(--border-color);
    position: relative;
    cursor: pointer;
    transition: all 0.1s;
    text-transform: uppercase;
}

.pixel-btn.primary {
    background: var(--accent-primary);
    color: var(--bg-primary);
    box-shadow: 4px 4px 0 var(--bg-secondary);
}

.pixel-btn.secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    box-shadow: 4px 4px 0 var(--bg-primary);
}

.pixel-btn.tertiary {
    background: transparent;
    color: var(--text-primary);
    border: 4px solid var(--border-color);
    box-shadow: 4px 4px 0 var(--bg-primary);
}

.pixel-btn.tertiary:hover {
    background: var(--bg-secondary);
    color: var(--accent-primary);
    border-color: var(--accent-primary);
}

.pixel-btn:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 var(--bg-primary);
}

.pixel-btn:active {
    transform: translate(4px, 4px);
    box-shadow: none;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 8px;
    animation: bounce-scroll 2s infinite;
}

.arrow-down {
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid var(--text-primary);
}

@keyframes bounce-scroll {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

/* Sections */
.section {
    padding: 100px 0;
    position: relative;
}

.section:nth-child(even) {
    background: var(--bg-secondary);
}

/* Section Titles */
.section-title {
    font-size: 24px;
    text-align: center;
    margin-bottom: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    color: var(--text-highlight);
}

.title-deco {
    width: 40px;
    height: 4px;
    background: var(--border-color);
    position: relative;
}

.title-deco::before,
.title-deco::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
}

.title-deco.left::before {
    left: -12px;
    top: -2px;
}

.title-deco.right::after {
    right: -12px;
    top: -2px;
}

/* Dialog Box */
.dialog-box {
    background: var(--bg-primary);
    border: 4px solid var(--border-color);
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 8px 8px 0 var(--shadow-color);
}

.dialog-header {
    background: var(--bg-tertiary);
    color: var(--bg-primary);
    padding: 10px 20px;
    border-bottom: 4px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
}

.dialog-icon {
    width: 16px;
    height: 16px;
    background: var(--bg-primary);
    border-radius: 50%;
}

.dialog-content {
    padding: 30px;
}

.dialog-content p {
    margin-bottom: 20px;
}

.dialog-content p:last-child {
    margin-bottom: 0;
}

.highlight {
    color: var(--text-highlight);
    background: var(--bg-secondary);
    padding: 2px 6px;
}

.dialog-footer {
    padding: 15px 20px;
    border-top: 4px solid var(--border-color);
    text-align: center;
    font-size: 10px;
}

.blink {
    animation: blink 1s infinite;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.stat-card {
    background: var(--bg-primary);
    border: 4px solid var(--border-color);
    padding: 20px;
    box-shadow: 4px 4px 0 var(--shadow-color);
}

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

.stat-icon {
    width: 24px;
    height: 24px;
    background: var(--accent-primary);
    border: 2px solid var(--border-color);
}

.stat-name {
    font-size: 12px;
    color: var(--text-highlight);
}

.stat-bar {
    height: 20px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
}

.stat-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--text-highlight));
    width: 0;
    transition: width 1s ease-out;
    position: relative;
}

.stat-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.stat-details {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.stat-details span {
    font-size: 8px;
    padding: 4px 8px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
}

/* Quest Timeline */
.quest-timeline {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    padding-left: 40px;
}

.quest-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--border-color);
}

.quest-item {
    margin-bottom: 30px;
    position: relative;
}

.quest-marker {
    position: absolute;
    left: -40px;
    top: 0;
    width: 34px;
    height: 34px;
    background: var(--bg-primary);
    border: 4px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.quest-item.active .quest-marker {
    background: var(--accent-primary);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 var(--glow-color); }
    50% { box-shadow: 0 0 20px 10px var(--glow-color); }
}

.quest-icon {
    width: 12px;
    height: 12px;
}

.quest-icon.active-quest {
    background: var(--bg-primary);
}

.quest-icon.completed-quest {
    background: var(--text-primary);
}

.quest-card {
    background: var(--bg-primary);
    border: 4px solid var(--border-color);
    padding: 20px;
    box-shadow: 4px 4px 0 var(--shadow-color);
}

.quest-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.quest-status {
    font-size: 8px;
    padding: 4px 8px;
    background: var(--accent-primary);
    color: var(--bg-primary);
}

.quest-status.completed {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.quest-date {
    font-size: 8px;
    color: var(--text-secondary);
}

.quest-title {
    font-size: 12px;
    margin-bottom: 5px;
    color: var(--text-highlight);
}

.quest-location {
    font-size: 8px;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.quest-description {
    font-size: 10px;
    margin-bottom: 15px;
}

.quest-rewards {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.reward-tag {
    font-size: 8px;
    padding: 4px 8px;
    background: var(--bg-secondary);
    border: 2px solid var(--accent-primary);
    color: var(--text-highlight);
}

/* Quest Tech Stack */
.quest-tech {
    font-size: 8px;
    color: var(--text-secondary);
    font-style: italic;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed var(--border-color);
    opacity: 0.8;
}

/* Legendary Quest */
.quest-item.legendary .quest-card {
    border-color: var(--legendary);
    box-shadow: 4px 4px 0 var(--shadow-color), 0 0 20px rgba(255, 140, 0, 0.3);
}

.quest-item.legendary .quest-status {
    background: linear-gradient(90deg, var(--legendary), #ffd700);
    color: #000;
    animation: legendary-pulse 2s ease-in-out infinite;
}

@keyframes legendary-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Side Quest styling */
.quest-item.side-quest .quest-card {
    border-style: dashed;
    opacity: 0.9;
}

/* Inventory Grid */
.inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.inventory-category {
    background: var(--bg-primary);
    border: 4px solid var(--border-color);
    padding: 20px;
    box-shadow: 4px 4px 0 var(--shadow-color);
}

.category-title {
    font-size: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-highlight);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}

.category-icon {
    width: 20px;
    height: 20px;
    background: var(--accent-primary);
}

.item-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.inventory-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    transition: all 0.2s;
}

.inventory-item:hover {
    transform: translateX(5px);
    border-color: var(--text-highlight);
}

.inventory-item.legendary {
    border-left: 4px solid var(--legendary);
}

.inventory-item.epic {
    border-left: 4px solid var(--epic);
}

.inventory-item.rare {
    border-left: 4px solid var(--rare);
}

.item-icon {
    width: 24px;
    height: 24px;
    background: var(--text-primary);
    flex-shrink: 0;
}

.item-name {
    flex: 1;
    font-size: 10px;
}

.item-rarity {
    font-size: 6px;
    padding: 2px 6px;
}

.inventory-item.legendary .item-rarity {
    background: var(--legendary);
    color: white;
}

.inventory-item.epic .item-rarity {
    background: var(--epic);
    color: white;
}

.inventory-item.rare .item-rarity {
    background: var(--rare);
    color: white;
}

/* Reviews Section */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.review-card {
    background: var(--bg-primary);
    border: 4px solid var(--border-color);
    padding: 25px;
    box-shadow: 4px 4px 0 var(--shadow-color);
}

.review-card.featured {
    border-color: var(--legendary);
    box-shadow: 4px 4px 0 var(--shadow-color), 0 0 20px rgba(255, 140, 0, 0.2);
}

.review-author {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px dashed var(--border-color);
}

.author-name {
    font-size: 14px;
    color: var(--text-highlight);
}

.author-title {
    font-size: 10px;
    color: var(--text-secondary);
}

.author-relation {
    font-size: 8px;
    color: var(--accent-primary);
    padding: 3px 8px;
    background: var(--bg-secondary);
    display: inline-block;
    width: fit-content;
    margin-top: 5px;
}

.review-quote {
    font-size: 11px;
    line-height: 2.2;
}

.review-quote p {
    margin-bottom: 15px;
}

.review-quote p:last-child {
    margin-bottom: 0;
}

.review-quote .highlight-quote {
    color: var(--text-highlight);
    font-size: 12px;
    padding: 10px 15px;
    border-left: 4px solid var(--accent-primary);
    background: rgba(155, 188, 15, 0.1);
    margin: 15px 0;
}

.review-card.featured .review-quote .highlight-quote {
    border-left-color: var(--legendary);
    background: rgba(255, 140, 0, 0.1);
}

/* Contact Section */
.contact-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.contact-box {
    background: var(--bg-primary);
    border: 4px solid var(--border-color);
    padding: 40px;
    text-align: center;
    box-shadow: 8px 8px 0 var(--shadow-color);
    max-width: 400px;
}

.mail-icon-container {
    margin-bottom: 20px;
}

.mail-icon {
    width: 60px;
    height: 40px;
    background: var(--accent-primary);
    margin: 0 auto;
    position: relative;
    border: 4px solid var(--border-color);
}

.mail-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-top: 20px solid var(--bg-tertiary);
}

.contact-text {
    margin-bottom: 10px;
    font-size: 10px;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.contact-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 20px;
    background: var(--bg-secondary);
    border: 4px solid var(--border-color);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 10px;
    transition: all 0.2s;
}

.contact-link:hover {
    background: var(--accent-primary);
    color: var(--bg-primary);
    transform: translateY(-2px);
}

.link-icon {
    width: 20px;
    height: 20px;
    position: relative;
    flex-shrink: 0;
}

/* GitHub Icon - Pixel Octocat */
.github-icon {
    background: transparent;
    position: relative;
}

.github-icon::before {
    content: '';
    position: absolute;
    top: 1px;
    left: 1px;
    width: 2px;
    height: 2px;
    background: var(--text-primary);
    box-shadow:
        /* Left ear */
        2px 0 0 var(--text-primary),
        0 2px 0 var(--text-primary),
        2px 2px 0 var(--text-primary),
        /* Right ear */
        14px 0 0 var(--text-primary),
        16px 0 0 var(--text-primary),
        14px 2px 0 var(--text-primary),
        16px 2px 0 var(--text-primary),
        /* Head top */
        4px 2px 0 var(--text-primary),
        6px 2px 0 var(--text-primary),
        8px 2px 0 var(--text-primary),
        10px 2px 0 var(--text-primary),
        12px 2px 0 var(--text-primary),
        /* Head row 2 */
        2px 4px 0 var(--text-primary),
        4px 4px 0 var(--text-primary),
        6px 4px 0 var(--text-primary),
        8px 4px 0 var(--text-primary),
        10px 4px 0 var(--text-primary),
        12px 4px 0 var(--text-primary),
        14px 4px 0 var(--text-primary),
        /* Head row 3 */
        2px 6px 0 var(--text-primary),
        4px 6px 0 var(--text-primary),
        6px 6px 0 var(--text-primary),
        8px 6px 0 var(--text-primary),
        10px 6px 0 var(--text-primary),
        12px 6px 0 var(--text-primary),
        14px 6px 0 var(--text-primary),
        /* Head row 4 */
        2px 8px 0 var(--text-primary),
        4px 8px 0 var(--text-primary),
        6px 8px 0 var(--text-primary),
        8px 8px 0 var(--text-primary),
        10px 8px 0 var(--text-primary),
        12px 8px 0 var(--text-primary),
        14px 8px 0 var(--text-primary),
        /* Head row 5 */
        4px 10px 0 var(--text-primary),
        6px 10px 0 var(--text-primary),
        8px 10px 0 var(--text-primary),
        10px 10px 0 var(--text-primary),
        12px 10px 0 var(--text-primary),
        /* Body/tentacle area */
        2px 12px 0 var(--text-primary),
        6px 12px 0 var(--text-primary),
        8px 12px 0 var(--text-primary),
        10px 12px 0 var(--text-primary),
        14px 12px 0 var(--text-primary),
        /* Bottom */
        4px 14px 0 var(--text-primary),
        6px 14px 0 var(--text-primary),
        10px 14px 0 var(--text-primary),
        12px 14px 0 var(--text-primary);
}

/* LinkedIn Icon - Pixel "in" */
.linkedin-icon {
    background: var(--text-primary);
    border-radius: 2px;
}

.linkedin-icon::before {
    content: 'in';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Press Start 2P', cursive;
    font-size: 8px;
    color: var(--bg-primary);
    font-weight: bold;
}

/* Email Icon - Pixel Envelope */
.email-icon {
    background: var(--text-primary);
    border: 2px solid var(--text-primary);
    position: relative;
}

.email-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 6px solid var(--bg-secondary);
}

.email-icon::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 2px;
    background: var(--bg-secondary);
    box-shadow: 0 -4px 0 var(--bg-secondary);
}

.contact-link:hover .linkedin-icon,
.contact-link:hover .email-icon {
    background: var(--bg-primary);
}

.contact-link:hover .github-icon::before {
    background: var(--bg-primary);
    box-shadow:
        /* Left ear */
        2px 0 0 var(--bg-primary),
        0 2px 0 var(--bg-primary),
        2px 2px 0 var(--bg-primary),
        /* Right ear */
        14px 0 0 var(--bg-primary),
        16px 0 0 var(--bg-primary),
        14px 2px 0 var(--bg-primary),
        16px 2px 0 var(--bg-primary),
        /* Head top */
        4px 2px 0 var(--bg-primary),
        6px 2px 0 var(--bg-primary),
        8px 2px 0 var(--bg-primary),
        10px 2px 0 var(--bg-primary),
        12px 2px 0 var(--bg-primary),
        /* Head row 2 */
        2px 4px 0 var(--bg-primary),
        4px 4px 0 var(--bg-primary),
        6px 4px 0 var(--bg-primary),
        8px 4px 0 var(--bg-primary),
        10px 4px 0 var(--bg-primary),
        12px 4px 0 var(--bg-primary),
        14px 4px 0 var(--bg-primary),
        /* Head row 3 */
        2px 6px 0 var(--bg-primary),
        4px 6px 0 var(--bg-primary),
        6px 6px 0 var(--bg-primary),
        8px 6px 0 var(--bg-primary),
        10px 6px 0 var(--bg-primary),
        12px 6px 0 var(--bg-primary),
        14px 6px 0 var(--bg-primary),
        /* Head row 4 */
        2px 8px 0 var(--bg-primary),
        4px 8px 0 var(--bg-primary),
        6px 8px 0 var(--bg-primary),
        8px 8px 0 var(--bg-primary),
        10px 8px 0 var(--bg-primary),
        12px 8px 0 var(--bg-primary),
        14px 8px 0 var(--bg-primary),
        /* Head row 5 */
        4px 10px 0 var(--bg-primary),
        6px 10px 0 var(--bg-primary),
        8px 10px 0 var(--bg-primary),
        10px 10px 0 var(--bg-primary),
        12px 10px 0 var(--bg-primary),
        /* Body/tentacle area */
        2px 12px 0 var(--bg-primary),
        6px 12px 0 var(--bg-primary),
        8px 12px 0 var(--bg-primary),
        10px 12px 0 var(--bg-primary),
        14px 12px 0 var(--bg-primary),
        /* Bottom */
        4px 14px 0 var(--bg-primary),
        6px 14px 0 var(--bg-primary),
        10px 14px 0 var(--bg-primary),
        12px 14px 0 var(--bg-primary);
}

.contact-link:hover .linkedin-icon::before {
    color: var(--accent-primary);
}

.contact-link:hover .email-icon::before {
    border-top-color: var(--accent-primary);
}

.contact-link:hover .email-icon::after {
    background: var(--accent-primary);
    box-shadow: 0 -4px 0 var(--accent-primary);
}

/* Pixel Character */
.pixel-character {
    position: relative;
}

.speech-bubble {
    background: var(--bg-primary);
    border: 4px solid var(--border-color);
    padding: 20px;
    position: relative;
    max-width: 250px;
}

.speech-bubble::before {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 30px;
    border: 10px solid transparent;
    border-top-color: var(--border-color);
}

.speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 34px;
    border: 6px solid transparent;
    border-top-color: var(--bg-primary);
}

.speech-bubble p {
    font-size: 10px;
    margin-bottom: 10px;
}

.speech-bubble p:last-child {
    margin-bottom: 0;
}

/* Footer */
.pixel-footer {
    background: var(--bg-primary);
    border-top: 4px solid var(--border-color);
    padding: 40px 20px;
    text-align: center;
}

.footer-text {
    font-size: 8px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

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

.heart {
    color: #e74c3c;
    animation: heartbeat 1s infinite;
}

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

.footer-subtitle {
    font-size: 8px;
    color: var(--text-secondary);
    animation: blink 2s infinite;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        flex-direction: column;
        gap: 40px;
    }

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

    .hero-right {
        width: 100%;
        max-width: 600px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-primary);
        border-top: 4px solid var(--border-color);
        flex-direction: column;
        padding: 20px;
    }

    .nav-menu.active {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
        padding: 0 20px;
    }

    .hero-left {
        flex-direction: column;
    }

    .pixel-avatar {
        width: 150px;
        height: 150px;
    }

    h1 {
        font-size: 18px;
    }

    .typewriter {
        height: 52px;
    }

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

    .hero-cta .pixel-btn {
        width: 100%;
        max-width: 220px;
    }

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

    .quest-timeline {
        padding-left: 30px;
    }

    .quest-timeline::before {
        left: 10px;
    }

    .quest-marker {
        left: -30px;
        width: 24px;
        height: 24px;
    }

    .contact-content {
        flex-direction: column;
    }

    .container {
        padding: 0 20px;
    }

    .hero-dialog .dialog-content {
        text-align: left;
    }

    .hero-dialog .dialog-content p {
        margin-bottom: 16px;
    }
}

/* Selection Color */
::selection {
    background: var(--accent-primary);
    color: var(--bg-primary);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
    border-left: 4px solid var(--border-color);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border: 2px solid var(--border-color);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-highlight);
}
