:root {
    --bg-color: #1a1a1a;
    --text-color: #ffffff;
    --accent-color: #e0443e;
    --border-color: #333333;
    --grid-color: #2a2a2a;
    --icon-color: #cccccc;
}

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

html, body {
    cursor: none;
}

a, button, input, textarea, select {
    cursor: none;
}

body {
    font-family: 'Roboto Mono', 'Fira Code', 'Source Code Pro', 'Courier New', monospace;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-size: 0.875rem;
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    background-image: 
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: 0 0;
    transition: background-color 0.3s ease, color 0.3s ease, background-image 0.3s ease;
}

/* Custom Cursor - GIF Character */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 48px;
    height: 48px;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    will-change: transform;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

/* Hide cursor on mobile devices by default */
@media (hover: none) and (pointer: coarse) {
    .custom-cursor {
        display: none;
    }
    
    /* Show cursor when scrolling on mobile - makes it fun! */
    .custom-cursor.running {
        display: block;
        left: 50% !important;
        top: 20% !important;
        transform: translate(-50%, -50%);
    }
}

.cursor-gif {
    position: absolute;
    top: 0;
    left: 0;
    width: 48px;
    height: 48px;
    display: block;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

/* Show static frame by default, hide animated GIF */
.running-gif {
    display: none;
}

.static-frame {
    display: block;
}

/* When scrolling, show animated GIF and hide static frame */
.custom-cursor.running .running-gif {
    display: block;
}

.custom-cursor.running .static-frame {
    display: none;
}

/* Bookshelf Section */
.bookshelf-section {
    margin: 4rem 0;
    padding: 2rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bookshelf {
    max-width: 650px;
    width: 100%;
    position: relative;
    display: inline-block;
}

.bookshelf-image {
    max-width: 100%;
    height: auto;
    display: block;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    background: transparent;
    position: relative;
    z-index: 1;
}

/* Shelf items - positioned absolutely on top of the shelf */
.shelf-item {
    position: absolute;
    display: block;
    text-decoration: none;
    cursor: pointer;
    z-index: 2;
    transition: transform 0.3s ease, filter 0.3s ease;
    /* Position items to sit on the shelf surface */
    transform-origin: bottom center;
    border: none;
    outline: none;
}

.shelf-item:hover {
    transform: translateY(-12px);
    filter: brightness(1.1);
}

.shelf-item:focus {
    outline: none;
    border: none;
}

.item-image {
    display: block;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    max-width: 100%;
    height: auto;
    border: none;
    outline: none;
    margin: 0;
    padding: 0;
}

/* Books - first item, left side - bigger and proportional */
.books-item {
    left: 6%;
    bottom: 30px; /* Position on shelf surface - moved down to sit on shelf */
    overflow: hidden;
}

.books-item .item-image {
    width: auto;
    height: 140px;
    clip-path: inset(2px 2px 2px 2px); /* Crop 2px from all edges */
}

/* Mamiya camera - second item, left-center - bigger and proportional */
.mamiya-item {
    left: 26%;
    bottom: 42px; /* Position on shelf surface - moved down to sit on shelf */
    overflow: hidden;
}

.mamiya-item .item-image {
    width: auto;
    height: 130px;
    clip-path: inset(2px 2px 2px 2px); /* Crop 2px from all edges */
}

/* G7X camera - third item, right-center - bigger and proportional */
.g7x-item {
    left: 50%;
    bottom: 44px; /* Position on shelf surface - moved down to sit on shelf */
}

.g7x-item .item-image {
    width: auto;
    height: 100px;
}

/* Shoe - last item, right side - bigger and proportional */
.shoe-item {
    left: 70%;
    bottom: 33px; /* Position on shelf surface - moved down to sit on shelf */
}

.shoe-item .item-image {
    width: auto;
    height: 110px;
}

/* Pixel Art Items */
.pixel-book-standing,
.pixel-book-stacked,
.pixel-mamiya,
.pixel-digital-camera,
.pixel-globe {
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    position: relative;
}

/* Standing Books - Viewed from front showing spine */
.pixel-book-standing {
    width: 6px;
    height: 40px;
    border: 1px solid #000;
    position: relative;
}

.pixel-book-green {
    background: #228B22;
}

.pixel-book-green::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 0;
    right: 0;
    height: 2px;
    background: #32CD32;
    box-shadow: 0 8px 0 #32CD32;
}

.pixel-book-teal {
    background: #20B2AA;
    border-color: #008B8B;
}

.pixel-book-maroon {
    background: #800000;
    border-color: #5C0000;
}

/* Stacked Books - Viewed from top showing covers */
.pixel-book-stacked {
    width: 32px;
    height: 6px;
    border: 1px solid #000;
    position: relative;
}

.pixel-book-cream {
    background: #F5F5DC;
}

.pixel-book-cream::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: #DC143C;
    box-shadow: 
        0 1px 0 #DC143C,
        0 2px 0 #DC143C,
        0 3px 0 #DC143C,
        0 4px 0 #DC143C;
}

.pixel-book-maroon-dark {
    background: #8B0000;
    border-color: #5C0000;
}

.pixel-book-blue-light {
    background: #87CEEB;
    border-color: #4682B4;
}

.pixel-book-blue-dark {
    background: #191970;
    border-color: #000080;
}

.stacked-book {
    margin-bottom: -1px;
}

/* Mamiya 645 Film Camera - Side view on shelf */
.pixel-mamiya {
    width: 32px;
    height: 20px;
    background: #2a2a2a;
    border: 1px solid #1a1a1a;
    position: relative;
    border-radius: 1px;
    margin-bottom: 20px;
}

.pixel-mamiya::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 6px;
    width: 20px;
    height: 12px;
    background: #1a1a1a;
    border: 1px solid #0a0a0a;
    border-radius: 1px;
}

.pixel-mamiya::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 8px;
    width: 16px;
    height: 8px;
    background: #4a4a4a;
    border: 1px solid #2a2a2a;
    border-radius: 1px;
}

/* Digital Camera - Side view on shelf */
.pixel-digital-camera {
    width: 28px;
    height: 18px;
    background: #3a3a3a;
    border: 1px solid #2a2a2a;
    position: relative;
    border-radius: 1px;
    margin-bottom: 22px;
}

.pixel-digital-camera::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 4px;
    width: 18px;
    height: 12px;
    background: #1a1a1a;
    border: 1px solid #0a0a0a;
    border-radius: 1px;
}

.pixel-digital-camera::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 6px;
    width: 14px;
    height: 8px;
    background: #5a5a5a;
    border: 1px solid #3a3a3a;
}

/* Globe - Side view on shelf */
.pixel-globe {
    width: 24px;
    height: 24px;
    background: #2a4a6a;
    border: 1px solid #1a3a5a;
    border-radius: 50%;
    position: relative;
    margin-bottom: 16px;
}

.pixel-globe::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    right: 3px;
    bottom: 3px;
    border: 1px solid #3a5a7a;
    border-radius: 50%;
}

.pixel-globe::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 4px;
    right: 4px;
    height: 1px;
    background: #3a5a7a;
    box-shadow: 
        0 3px 0 #3a5a7a,
        0 6px 0 #3a5a7a,
        0 9px 0 #3a5a7a;
}

header {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 10;
}

.logo {
    background-color: var(--accent-color);
    color: var(--text-color);
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 4px;
    display: inline-block;
}

.header-icons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.icon-button {
    background: none;
    border: 1px solid transparent;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--icon-color);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    position: relative;
}

.icon-button:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    position: relative;
    z-index: 1;
}

.hero {
    margin-bottom: 5rem;
}

.hero-title {
    font-size: clamp(1.75rem, 4.5vw, 2.75rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-transform: lowercase;
    min-height: 1.2em; /* Prevent layout shift */
}

.hero-description {
    font-size: clamp(0.875rem, 2vw, 1.125rem);
    font-weight: 400;
    line-height: 1.5;
    opacity: 0.9;
    max-width: 800px;
}

.tagline {
    margin-bottom: 4rem;
}

.tagline-text {
    font-size: clamp(1.125rem, 2.5vw, 1.625rem);
    font-weight: 700;
    text-transform: lowercase;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.content-section {
    margin-bottom: 0;
}

.section-title {
    font-size: clamp(0.875rem, 1.5vw, 1.125rem);
    font-weight: 700;
    margin-bottom: 2rem;
    text-transform: lowercase;
}

.experience-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.experience-company {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.experience-company-name {
    font-size: 0.9rem;
    font-weight: 600;
}

.experience-company-tenure {
    font-size: 0.75rem;
    opacity: 0.7;
}

.experience-timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-left: 1rem;
}

.experience-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 6px;
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.experience-item {
    display: flex;
    gap: 1rem;
    opacity: 0.55;
    transition: opacity 0.3s ease;
}

.experience-item.current {
    opacity: 1;
}

.experience-marker {
    position: relative;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
    margin-top: 4px;
    display: grid;
    place-items: center;
}

.experience-item.current .experience-marker {
    background: radial-gradient(circle at center, #2dd36f 0%, #1c9f4d 100%);
    border-color: rgba(45, 211, 111, 0.3);
    animation: pulse 2.2s ease-in-out infinite;
}

.experience-content {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.experience-role {
    font-size: 0.875rem;
    font-weight: 600;
}

.experience-type {
    font-size: 0.65rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-left: 0.5rem;
    opacity: 0.6;
}

.experience-dates,
.experience-location {
    font-size: 0.75rem;
    opacity: 0.7;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(45, 211, 111, 0.35);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(45, 211, 111, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(45, 211, 111, 0);
    }
}

.content-list {
    list-style: none;
    padding: 0;
}

.content-list li {
    margin-bottom: 1.5rem;
    font-size: clamp(0.75rem, 1.25vw, 0.875rem);
    line-height: 1.6;
    padding-left: 1.5rem;
    position: relative;
    font-weight: 400;
}

.content-list li::before {
    content: '*';
    position: absolute;
    left: 0;
    color: var(--text-color);
}

.testimonials {
    margin-bottom: 4rem;
}

.testimonial {
    border: 1px solid var(--border-color);
    padding: 2rem;
    margin-top: 2rem;
    background-color: rgba(255, 255, 255, 0.02);
}

.testimonial-logo {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.testimonial-quote {
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-style: normal;
    font-weight: 400;
}

.testimonial-author {
    display: block;
    margin-top: 1rem;
    font-size: 0.8rem;
    font-style: normal;
    color: var(--text-color);
    opacity: 0.7;
}

.testimonial-nav {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.nav-button {
    background: none;
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    cursor: pointer;
    color: var(--text-color);
    transition: all 0.3s ease;
    font-family: inherit;
}

.nav-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--text-color);
}

.cta {
    margin-bottom: 4rem;
    text-align: center;
}

.cta-title {
    font-size: clamp(1rem, 2.25vw, 1.5rem);
    font-weight: 400;
    line-height: 1.4;
    text-transform: lowercase;
}

/* Interactive Terminal */
.interactive-terminal {
    margin-top: 2rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    font-family: 'Courier New', monospace;
    min-height: 300px;
    max-width: 800px;
}

.terminal-output {
    min-height: 200px;
    margin-bottom: 1rem;
    color: var(--text-color);
    font-size: clamp(0.75rem, 1.25vw, 0.875rem);
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.terminal-output .command-line {
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

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

.terminal-output .response {
    color: var(--text-color);
    opacity: 0.9;
    margin-bottom: 1rem;
}

.terminal-output .response .project-item,
.terminal-output .response .random-item {
    margin-left: 1rem;
    margin-top: 0.5rem;
    padding-left: 0.5rem;
    border-left: 2px solid var(--accent-color);
}

.terminal-output .response .hint {
    color: var(--accent-color);
    opacity: 0.7;
    font-style: italic;
    margin-top: 0.5rem;
}

.terminal-output .response .error {
    color: #ff6b6b;
    opacity: 0.9;
}

.terminal-output .project-logo {
    width: 20px;
    height: auto;
    max-height: 20px;
    vertical-align: middle;
    margin-right: 8px;
    display: inline-block;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    object-fit: contain;
}

.terminal-output .project-link {
    color: var(--accent-color);
    text-decoration: underline;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.terminal-output .project-link:hover {
    opacity: 0.7;
}

.terminal-output .status-badge {
    font-size: 0.7em;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: bold;
    margin-left: 8px;
    display: inline-block;
}

.terminal-output .status-current {
    background: rgba(0, 255, 0, 0.2);
    color: #00ff00;
    border: 1px solid #00ff00;
}

.terminal-output .status-past {
    background: rgba(128, 128, 128, 0.2);
    color: #888;
    border: 1px solid #888;
}

.terminal-output .lessons-learned {
    color: var(--accent-color);
    opacity: 0.8;
    font-style: italic;
    font-size: 0.9em;
}

.terminal-input-line {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.terminal-prompt {
    color: var(--accent-color);
    font-weight: bold;
    font-size: clamp(0.75rem, 1.25vw, 0.875rem);
}

.terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-color);
    font-family: 'Courier New', monospace;
    font-size: clamp(0.75rem, 1.25vw, 0.875rem);
    caret-color: var(--accent-color);
}

.terminal-input::placeholder {
    color: var(--text-color);
    opacity: 0.4;
}

footer {
    border-top: 1px solid var(--border-color);
    padding: 2rem;
    margin-top: 4rem;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-link {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.75rem;
    transition: opacity 0.3s ease;
    text-transform: lowercase;
}

.footer-link:hover {
    opacity: 0.6;
}

/* Theme color variations - keeping for theme toggle */
body[data-theme="light"] {
    --bg-color: #ffffff;
    --text-color: #000000;
    --accent-color: #e0443e;
    --border-color: #e0e0e0;
    --grid-color: #f5f5f5;
    --icon-color: #666666;
}

body[data-theme="blue"] {
    --bg-color: #0a1a2e;
    --text-color: #e0f0ff;
    --accent-color: #0066ff;
    --border-color: #1a2a3e;
    --grid-color: #1a2a3e;
    --icon-color: #a0c0ff;
}

body[data-theme="green"] {
    --bg-color: #0a1e0f;
    --text-color: #e0ffe0;
    --accent-color: #00cc66;
    --border-color: #1a2e1f;
    --grid-color: #1a2e1f;
    --icon-color: #a0ffa0;
}

body[data-theme="purple"] {
    --bg-color: #1a0a2e;
    --text-color: #f0e0ff;
    --accent-color: #9966ff;
    --border-color: #2a1a3e;
    --grid-color: #2a1a3e;
    --icon-color: #d0a0ff;
}

/* Responsive design */
@media (max-width: 768px) {
    header {
        padding: 1rem;
    }

    main {
        padding: 2rem 1rem;
    }

    .hero {
        margin-bottom: 3rem;
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .content-section {
        margin-bottom: 3rem;
    }

    .testimonial {
        padding: 1.5rem;
    }

    .footer-nav {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
}
