@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&family=Cinzel+Decorative:wght@700;900&family=EB+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,600&display=swap');

@font-face {
    font-family: 'Photograph Signature';
    src: url('Photograph-Signature.ttf') format('truetype');
    font-display: swap;
}

:root {
    --bg-primary: #0f0f0f;
    --bg-secondary: rgba(26, 26, 26, 0.85);
    --bg-terminal: rgba(22, 22, 22, 0.75);
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0a0;
    --accent-orange: #ff8c42;
    --accent-orange-dim: #cc7035;
    --accent-orange-bright: #ffaa6e;
    --prompt-color: #ff8c42;
    --highlight-color: #ff8c42;
    --shadow: rgba(0, 0, 0, 0.5);
}

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

body {
    font-family: 'JetBrains Mono', monospace;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow: hidden;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        transparent 50%,
        rgba(0, 0, 0, 0.05) 50%
    );
    background-size: 100% 4px;
    animation: scanline-move 16s linear infinite;
}

.scanline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(255, 140, 66, 0.02) 0%,
        transparent 5%,
        transparent 95%,
        rgba(255, 140, 66, 0.02) 100%
    );
    opacity: 0.7;
}

@keyframes scanline-move {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 0 100%;
    }
}

@keyframes scanline-flicker {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.97;
    }
}

.main-container {
    width: 100%;
    max-width: 1200px;
    height: calc(100vh - 40px);
    display: flex;
    gap: 20px;
    position: relative;
    z-index: 1;
    transition: max-width 0.5s ease;
    justify-content: center;
}

.main-container.split-view {
    max-width: 95vw;
    justify-content: flex-start;
}

.terminal-container {
    flex: 1;
    width: 100%;
    max-width: 1200px;
    height: 100%;
    background: var(--bg-terminal);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 140, 66, 0.1);
    border-radius: 12px;
    box-shadow: 0 20px 60px var(--shadow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: fadeIn 0.6s ease-out;
    position: relative;
    transition: max-width 0.5s ease, opacity 0.5s ease;
}

.project-details-container {
    flex: 0;
    width: 0;
    height: 100%;
    background: var(--bg-terminal);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 140, 66, 0.1);
    border-radius: 12px;
    box-shadow: 0 20px 60px var(--shadow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    opacity: 0;
    pointer-events: none;
    transition: flex 0.5s ease, width 0.5s ease, opacity 0.5s ease, transform 0.5s ease;
}

.main-container.split-view .project-details-container {
    flex: 1;
    width: 100%;
    opacity: 1;
    pointer-events: auto;
}

.project-details-content {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    scroll-behavior: smooth;
    line-height: 1.6;
}

.project-details-content::-webkit-scrollbar {
    width: 8px;
}

.project-details-content::-webkit-scrollbar-track {
    background: transparent;
}

.project-details-content::-webkit-scrollbar-thumb {
    background: var(--accent-orange-dim);
    border-radius: 4px;
    transition: background 0.3s ease;
}

.project-details-content::-webkit-scrollbar-thumb:hover {
    background: var(--accent-orange);
}

.project-detail {
    animation: slideUp 0.5s ease-out;
}

.project-shortcuts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
    color: var(--text-secondary);
    font-size: 13px;
}

.project-shortcuts span {
    border: 1px solid rgba(255, 140, 66, 0.18);
    border-radius: 6px;
    background: rgba(255, 140, 66, 0.08);
    padding: 6px 10px;
}

.project-shortcuts kbd {
    color: var(--accent-orange-bright);
    font-family: inherit;
    font-size: 12px;
    font-weight: 500;
}

.project-name {
    color: var(--accent-orange);
    font-size: 24px;
    margin-bottom: 16px;
    font-weight: 500;
}

.project-description {
    margin-bottom: 24px;
    line-height: 1.8;
    font-size: 15px;
}

.project-detail h3 {
    color: var(--accent-orange);
    font-size: 18px;
    margin-top: 24px;
    margin-bottom: 12px;
    font-weight: 500;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.tech-tag {
    background: rgba(255, 140, 66, 0.15);
    color: var(--accent-orange);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 400;
    border: 1px solid rgba(255, 140, 66, 0.3);
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: rgba(255, 140, 66, 0.25);
    transform: translateY(-2px);
}

.project-features {
    list-style: none;
    margin: 0;
    padding: 0;
}

.project-features li {
    margin: 8px 0;
    padding-left: 24px;
    position: relative;
    font-size: 14px;
}

.project-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-orange);
    font-weight: bold;
}

.project-links {
    display: flex;
    gap: 12px;
    margin-top: 32px;
}

.project-link {
    display: inline-block;
    padding: 10px 20px;
    background: rgba(255, 140, 66, 0.1);
    color: var(--accent-orange);
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid rgba(255, 140, 66, 0.3);
    font-weight: 400;
    transition: all 0.3s ease;
}

.project-link:hover {
    background: rgba(255, 140, 66, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 140, 66, 0.2);
}

/* Markdown Rendered Content Styles */
.project-detail p {
    margin-bottom: 16px;
    line-height: 1.7;
}

.project-detail strong {
    color: var(--accent-orange);
    font-weight: 500;
}

.project-detail em {
    font-style: italic;
    color: var(--text-secondary);
}

.project-detail .inline-code {
    background: rgba(255, 140, 66, 0.1);
    color: var(--accent-orange);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.9em;
    font-family: 'JetBrains Mono', monospace;
}

.project-detail .md-link {
    color: var(--accent-orange);
    text-decoration: underline;
    transition: opacity 0.3s ease;
}

.project-detail .md-link:hover {
    opacity: 0.7;
}

.project-detail .md-list {
    list-style: none;
    margin: 12px 0;
    padding: 0;
}

.project-detail .md-list li {
    margin: 8px 0;
    padding-left: 24px;
    position: relative;
}

.project-detail .md-list li:before {
    content: "•";
    position: absolute;
    left: 8px;
    color: var(--accent-orange);
    font-weight: bold;
}

.project-detail .md-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
    border: 1px solid rgba(255, 140, 66, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-detail .md-image:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(255, 140, 66, 0.2);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.terminal-header {
    background: var(--bg-secondary);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 140, 66, 0.1);
}

.terminal-buttons {
    display: flex;
    gap: 8px;
}

.terminal-button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    transition: transform 0.2s ease;
}

.terminal-button:hover {
    transform: scale(1.1);
}

.terminal-button.close {
    background: linear-gradient(135deg, #ff5f56 0%, #e0443e 100%);
}

.terminal-button.minimize {
    background: linear-gradient(135deg, #ffbd2e 0%, #dea123 100%);
}

.terminal-button.maximize {
    background: linear-gradient(135deg, #27c93f 0%, #1aab2e 100%);
}

.terminal-title {
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 400;
}

.terminal-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.terminal-control {
    position: relative;
    width: 28px;
    height: 28px;
    border: 1px solid rgba(255, 140, 66, 0.22);
    border-radius: 8px;
    background: rgba(255, 140, 66, 0.08);
    color: var(--accent-orange-bright);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.terminal-control:hover {
    border-color: rgba(255, 140, 66, 0.45);
    background: rgba(255, 140, 66, 0.14);
    transform: translateY(-1px);
}

.terminal-control.is-disabled {
    opacity: 0.42;
}

.terminal-control .icon {
    position: absolute;
    inset: 6px;
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.terminal-control .icon-off {
    display: none;
}

.terminal-control.is-disabled .icon-on {
    display: none;
}

.terminal-control.is-disabled .icon-off {
    display: block;
}

.terminal-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.simple-portfolio {
    display: none;
}

body.simple-view {
    display: block;
    height: auto;
    min-height: 100vh;
    overflow: hidden;
    padding: 0;
    background: #e8dab6;
    color: #2a1c0f;
    font-family: 'EB Garamond', Georgia, 'Times New Roman', serif;
    --p-bg: #e8dab6;
    --p-card: #f2e8cd;
    --p-card-deep: #ecdfb8;
    --p-ink: #2a1c0f;
    --p-ink-soft: #4a3620;
    --p-muted: #6e5a3a;
    --p-line: #c3aa76;
    --p-line-soft: #d9c79a;
    --p-leather: #5a3a1f;
    --p-leather-dark: #35210f;
    --p-gold: #a97d2e;
    --p-gold-bright: #cd9d3f;
    --p-wine: #7a1e1e;
    --p-wine-dark: #551313;
    --p-cream: #f7edd2;
}

body.simple-view::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 15% 0%, rgba(255, 249, 224, .55), transparent 55%),
        radial-gradient(ellipse at 85% 100%, rgba(90, 58, 31, .16), transparent 60%),
        repeating-linear-gradient(115deg, rgba(90, 58, 31, .035) 0px, rgba(90, 58, 31, .035) 1px, transparent 1px, transparent 4px),
        radial-gradient(ellipse at 50% 50%, transparent 55%, rgba(53, 33, 15, .18) 100%);
}

body.simple-view::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(circle 480px at 6% 10%, rgba(255, 170, 80, .55), transparent 70%),
        radial-gradient(circle 420px at 95% 90%, rgba(255, 150, 60, .48), transparent 70%),
        radial-gradient(circle 620px at 50% 0%, rgba(255, 195, 115, .28), transparent 75%);
    mix-blend-mode: screen;
    animation: torch-flicker 4.5s ease-in-out infinite;
}

@keyframes torch-flicker {
    0%   { opacity: .75; transform: scale(1); }
    6%   { opacity: .5;  transform: scale(.98); }
    13%  { opacity: 1;   transform: scale(1.02); }
    21%  { opacity: .6;  transform: scale(1); }
    29%  { opacity: .95; transform: scale(1.03); }
    38%  { opacity: .62; transform: scale(.99); }
    47%  { opacity: .9;  transform: scale(1.01); }
    55%  { opacity: .55; transform: scale(1); }
    64%  { opacity: .85; transform: scale(1.02); }
    73%  { opacity: .58; transform: scale(1); }
    82%  { opacity: .92; transform: scale(1.015); }
    91%  { opacity: .65; transform: scale(1); }
    100% { opacity: .75; transform: scale(1); }
}

body.simple-view #particle-canvas,
body.simple-view .terminal-container,
body.simple-view .project-details-container {
    display: none;
}

body.simple-view .main-container {
    display: block;
    max-width: none;
    height: auto;
}

body.simple-view .simple-portfolio {
    display: block;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.ember-field { display: none; }
body.simple-view .ember-field {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}
.ember {
    position: absolute;
    bottom: -20px;
    left: var(--left);
    width: var(--size);
    height: var(--size);
    border-radius: 50%;
    background: radial-gradient(circle, #fff8e0 0%, #ffbb55 30%, #ff7a20 62%, transparent 75%);
    box-shadow: 0 0 5px 1px rgba(255, 150, 60, .5), 0 0 11px 3px rgba(255, 90, 20, .2);
    animation: ember-rise var(--duration) linear var(--delay, 0s) infinite;
}
@keyframes ember-rise {
    0%   { transform: translate(0, 0) scale(.8); opacity: 0; }
    8%   { opacity: .85; transform: translate(calc(var(--drift) * .1), -8vh) scale(1); }
    22%  { opacity: .65; transform: translate(calc(var(--drift) * .35), -22vh) scale(.85); }
    38%  { opacity: .85; transform: translate(calc(var(--drift) * .15), -38vh) scale(1.05); }
    55%  { opacity: .6;  transform: translate(calc(var(--drift) * -.25), -55vh) scale(.8); }
    72%  { opacity: .8;  transform: translate(calc(var(--drift) * .5), -72vh) scale(1); }
    88%  { opacity: .5;  transform: translate(calc(var(--drift) * .8), -88vh) scale(.75); }
    100% { opacity: 0; transform: translate(var(--drift), -108vh) scale(.6); }
}

.simple-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px max(24px, calc((100vw - 1060px) / 2));
    border-bottom: 3px double var(--p-leather);
    background: linear-gradient(var(--p-cream), var(--p-card-deep));
    box-shadow: 0 2px 0 var(--p-gold), 0 8px 18px rgba(53, 33, 15, .12);
}

.simple-nav strong {
    font-family: 'Cinzel Decorative', 'Cinzel', serif;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: .01em;
    color: var(--p-leather-dark);
}

.simple-nav strong::before { content: '\2756\00A0'; color: var(--p-gold); font-size: 14px; }

.simple-nav div, .simple-links { display: flex; align-items: center; gap: 18px; }
.simple-nav a, .simple-links a, .simple-content footer a {
    color: var(--p-wine);
    text-decoration: none;
    font-family: 'Cinzel', serif;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: .05em;
    text-transform: uppercase;
}
.simple-nav a:hover, .simple-links a:hover { color: var(--p-wine-dark); text-decoration: underline wavy var(--p-gold) 1px; text-underline-offset: 4px; }

.simple-nav button {
    border: 1px solid var(--p-leather);
    border-radius: 3px;
    padding: 8px 16px;
    background: linear-gradient(180deg, var(--p-cream), var(--p-line-soft));
    color: var(--p-leather-dark);
    cursor: pointer;
    font: inherit;
    font-family: 'Cinzel', serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    box-shadow: inset 0 0 0 1px var(--p-gold), 1px 2px 0 rgba(53, 33, 15, .25);
    transition: transform .15s ease, box-shadow .15s ease;
}
.simple-nav button:hover { transform: translateY(-1px); box-shadow: inset 0 0 0 1px var(--p-gold-bright), 2px 3px 0 rgba(53, 33, 15, .3); }
.simple-nav button:active { transform: translateY(0); }

.simple-nav .simple-page-tabs { gap: 2px; }
.simple-nav .simple-page-tab {
    border: 1px solid transparent;
    border-bottom: 0;
    border-radius: 6px 6px 0 0;
    padding: 8px 13px;
    color: var(--p-muted);
    background: transparent;
    box-shadow: none;
}
.simple-nav .simple-page-tab.is-active {
    background: var(--p-bg);
    color: var(--p-wine);
    border-color: var(--p-line);
    box-shadow: inset 0 2px 0 var(--p-gold);
    transform: translateY(1px);
}

.simple-content { width: min(1120px, calc(100% - 48px)); height: calc(100dvh - 73px); min-height: 0; margin: 0 auto; display: flex; flex-direction: column; overflow: hidden; position: relative; z-index: 1; }
.simple-hero { padding: clamp(40px, 7vh, 80px) 0 26px; max-width: 850px; }
.simple-eyebrow {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 14px; color: var(--p-wine); font-family: 'Cinzel', serif; font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
}
.simple-eyebrow::before { content: ''; height: 1px; width: 26px; background: var(--p-gold); }
.simple-hero h1 {
    position: relative;
    max-width: 750px; margin-bottom: 18px; font-family: 'Photograph Signature', 'Scriptin', 'Cinzel Decorative', cursive, serif; font-weight: 400;
    font-size: clamp(48px, 6.4vw, 80px); line-height: 1.2; letter-spacing: .01em; color: var(--p-leather-dark);
    text-shadow: 1px 1px 0 rgba(255, 249, 224, .6);
}
.simple-hero h1 .quill-letter {
    display: inline-block;
    opacity: 0;
    animation: letter-ink-in .5s cubic-bezier(.3, .6, .3, 1) both;
}
@keyframes letter-ink-in {
    0%   { opacity: 0; transform: translateY(8px) scale(.9); filter: blur(3px); text-shadow: 0 0 12px rgba(205, 157, 63, .85); }
    60%  { filter: blur(.5px); }
    100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); text-shadow: 1px 1px 0 rgba(255, 249, 224, .6); }
}
.simple-lead { max-width: 780px; font-size: clamp(18px, 2vw, 24px); font-style: italic; line-height: 1.5; color: var(--p-ink-soft); }
.simple-location { margin: 16px 0; color: var(--p-muted); font-family: 'Cinzel', serif; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.simple-links a { border: 1px solid var(--p-line); border-radius: 3px; padding: 8px 14px; background: var(--p-card); }
.simple-links a:hover { border-color: var(--p-gold-bright); background: var(--p-cream); text-decoration: none; }
.simple-content section { padding: clamp(24px, 4.5vh, 46px) 0 16px; border: 0; overflow: hidden; }
.simple-page { position: relative; display: none; flex: 1; min-height: 0; animation: simple-page-in .3s ease; }
.simple-page.is-active { display: flex; flex-direction: column; }
@keyframes simple-page-in { from { opacity: 0; } to { opacity: 1; } }
.simple-pager { display: flex; align-items: center; justify-content: space-between; flex: none; gap: 20px; margin-top: auto; padding: 14px 0 18px; border-top: 1px double var(--p-line); }
.simple-pager button { border: 0; background: transparent; color: var(--p-wine); cursor: pointer; font: inherit; font-family: 'Cinzel', serif; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.simple-pager button:disabled { color: var(--p-line); cursor: default; }
.simple-page-status { color: var(--p-muted); font-family: 'Cinzel', serif; font-size: 12px; letter-spacing: .08em; }
.simple-content h2 { margin-bottom: 18px; font-family: 'Cinzel Decorative', 'Cinzel', serif; font-weight: 700; font-size: clamp(26px, 3.2vw, 38px); letter-spacing: 0; color: var(--p-leather-dark); }
.simple-skills { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 50px; overflow-y: auto; padding-right: 4px; }
.simple-skill-group { padding-left: 14px; border-left: 3px solid var(--p-gold); }
.simple-skill-group h3, .simple-entry h3, .simple-project h3 { margin-bottom: 6px; font-family: 'Cinzel', serif; font-size: 16px; letter-spacing: .01em; color: var(--p-leather-dark); }
.simple-skill-group p, .simple-entry p, .simple-project p { color: var(--p-muted); line-height: 1.6; }

.simple-projects {
    display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: min-content; align-content: start;
    gap: 18px; overflow-y: auto; padding: 4px 4px 8px;
    counter-reset: project;
}
.simple-project {
    counter-increment: project;
    position: relative;
    min-height: 0; padding: 18px 18px 16px; border: 1px solid var(--p-leather);
    border-radius: 4px; background: var(--p-card);
    box-shadow: inset 0 0 0 1px var(--p-gold), 3px 5px 0 rgba(53, 33, 15, .12);
    display: flex; flex-direction: column; justify-content: space-between; gap: 12px;
    transition: transform .18s ease, box-shadow .18s ease;
}
.simple-project::before, .simple-project::after {
    content: ''; position: absolute; width: 12px; height: 12px; border-color: var(--p-gold-bright); pointer-events: none;
}
.simple-project::before { top: 4px; left: 4px; border-top: 2px solid; border-left: 2px solid; }
.simple-project::after { bottom: 4px; right: 4px; border-bottom: 2px solid; border-right: 2px solid; }
.simple-project:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--p-gold-bright), 4px 8px 0 rgba(53, 33, 15, .16); }
.simple-project-label {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 8px; color: var(--p-wine) !important; font-family: 'Cinzel', serif; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.simple-project-label::after { content: 'No. ' counter(project, upper-roman); color: var(--p-gold); font-weight: 700; }
.simple-project h3 { max-width: 390px; font-size: 18px; line-height: 1.2; letter-spacing: 0; }
.simple-project p { font-size: 14px; line-height: 1.5; }
.simple-project > div:first-child > p:not(.simple-project-label) { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }
.simple-project-actions { display: flex; align-items: center; gap: 16px; margin-top: 2px; padding-top: 12px; border-top: 1px dashed var(--p-line); }
.simple-project-button {
    border: 1px solid var(--p-wine-dark); border-radius: 2px; padding: 9px 16px 9px 20px;
    background: linear-gradient(180deg, var(--p-wine), var(--p-wine-dark)); color: var(--p-cream); cursor: pointer;
    font: inherit; font-family: 'Cinzel', serif; font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
    box-shadow: inset 0 0 0 1px rgba(217, 172, 76, .55), 1px 2px 0 rgba(53, 33, 15, .3);
    clip-path: polygon(6% 0, 100% 0, 100% 100%, 6% 100%, 0 50%);
    transition: transform .15s ease, box-shadow .15s ease;
}
.simple-project-button:hover { transform: translateY(-1px); box-shadow: inset 0 0 0 1px var(--p-gold-bright), 2px 4px 0 rgba(53, 33, 15, .35); }
.simple-project-button span { margin-left: 6px; }
.simple-project-link { color: var(--p-wine); font-family: 'Cinzel', serif; font-size: 12px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; text-decoration: none; border-bottom: 1px dotted var(--p-gold); padding-bottom: 1px; }
.simple-project-link:hover { color: var(--p-wine-dark); border-bottom-style: solid; }
.simple-project-link span { margin-left: 3px; }

.simple-projects-footer {
    display: flex; align-items: center; justify-content: center; gap: 14px;
    margin-top: 16px; color: var(--p-muted); font-family: 'Cinzel', serif; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; flex: none;
}
.simple-projects-footer::before, .simple-projects-footer::after { content: ''; flex: 1; max-width: 160px; height: 1px; background: var(--p-line); }
.simple-projects-footer a { color: var(--p-wine); text-decoration: none; font-weight: 700; }
.simple-projects-footer a:hover { color: var(--p-wine-dark); text-decoration: underline; }

.simple-project-modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 28px; visibility: hidden; opacity: 0; transition: opacity .2s ease, visibility .2s ease; }
.simple-project-modal[aria-hidden="false"] { visibility: visible; opacity: 1; }
.simple-project-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(42, 28, 15, .6); backdrop-filter: blur(4px); cursor: default; }
.simple-project-panel { position: relative; width: min(860px, 100%); max-height: min(820px, calc(100vh - 56px)); overflow: hidden; border: 1px solid var(--p-leather); border-radius: 6px; background: var(--p-card); box-shadow: 0 30px 90px rgba(30, 18, 8, .35); }
.simple-project-panel > header { position: relative; padding: 28px 70px 22px 32px; border-bottom: 1px double var(--p-line); }
.simple-project-panel h2 { margin: 0; font-family: 'Cinzel Decorative', 'Cinzel', serif; font-size: clamp(26px, 3.6vw, 38px); color: var(--p-leather-dark); }
.simple-project-close { position: absolute; top: 22px; right: 26px; width: 38px; height: 38px; border: 1px solid var(--p-gold); border-radius: 50%; background: var(--p-cream); color: var(--p-wine); cursor: pointer; font-size: 24px; line-height: 1; }
.simple-project-detail { max-height: calc(min(820px, 100vh - 56px) - 130px); padding: 32px; overflow-y: auto; color: var(--p-ink-soft); line-height: 1.75; }
.simple-project-detail .project-name { display: none; }
.simple-project-detail h3 { margin: 26px 0 12px; font-family: 'Cinzel', serif; color: var(--p-leather-dark); font-size: 19px; }
.simple-project-detail p { margin-bottom: 15px; }
.simple-project-detail .md-list { margin: 0 0 18px 22px; }
.simple-project-detail .md-link { color: var(--p-wine); font-weight: 700; }
body.simple-project-open { overflow: hidden; }
.simple-project-view { display: none; width: min(900px, calc(100% - 48px)); margin: 0 auto; padding: 50px 0 90px; }
.simple-project-view[aria-hidden="false"] { display: block; }
.simple-project-view > header { padding-bottom: 26px; border-bottom: 1px double var(--p-line); }
.simple-project-view h1 { max-width: 760px; margin-top: 16px; font-family: 'Cinzel Decorative', 'Cinzel', serif; font-size: clamp(32px, 5vw, 52px); line-height: 1.08; color: var(--p-leather-dark); }
.simple-project-back { border: 0; padding: 0; margin-bottom: 44px; background: transparent; color: var(--p-wine); cursor: pointer; font: inherit; font-family: 'Cinzel', serif; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.simple-project-view .simple-project-detail { max-height: none; padding: 26px 0; overflow: visible; }
body.simple-project-open { overflow: auto; }
body.simple-project-open .simple-content { display: none; }
.simple-entry { display: flex; justify-content: space-between; gap: 30px; padding: 20px 0; border-top: 1px dashed var(--p-line); }
.simple-entry:first-child { border-top: 0; }
.simple-entry span { color: var(--p-muted); font-family: 'Cinzel', serif; font-size: 12px; letter-spacing: .05em; text-transform: uppercase; text-align: right; }
.simple-content footer { display: flex; justify-content: space-between; gap: 20px; padding: 60px 0 80px; font-size: 18px; }

@media (max-width: 980px) {
    body.simple-view { overflow: auto; }
    .simple-nav .simple-page-tabs { display: none; }
    .simple-content { width: min(100% - 40px, 760px); height: auto; min-height: calc(100dvh - 69px); overflow: visible; }
    .simple-content section { overflow: visible; }
    .simple-projects { grid-template-columns: repeat(2, 1fr); overflow: visible; }
}

@media (max-height: 700px) and (min-width: 981px) {
    .simple-nav { padding-top: 10px; padding-bottom: 10px; }
    .simple-content { height: calc(100dvh - 61px); }
    .simple-content section { padding-top: 20px; }
    .simple-content h2 { margin-bottom: 12px; font-size: 32px; }
    .simple-project { padding: 14px 16px; }
    .simple-project-label { margin-bottom: 6px; }
    .simple-project h3 { font-size: 17px; }
    .simple-project p { font-size: 12px; }
    .simple-project > div:first-child > p:not(.simple-project-label) { -webkit-line-clamp: 2; }
    .simple-project-actions { margin-top: 6px; padding-top: 8px; }
    .simple-project-button { padding: 8px 14px 8px 16px; font-size: 12px; }
    .simple-project-link { font-size: 12px; }
    .simple-pager { padding: 10px 0 12px; }
    .simple-projects-footer { display: none; }
}

@media (max-width: 700px) {
    .simple-nav { padding: 14px 20px; }
    .simple-nav strong { max-width: 110px; font-size: 13px; }
    .simple-nav .simple-page-tabs { display: none; }
    .simple-content { width: min(100% - 40px, 1060px); }
    .simple-hero { padding: 72px 0 60px; }
    .simple-skills, .simple-projects { grid-template-columns: 1fr; }
    .simple-project { min-height: 0; }
    .simple-project-modal { padding: 0; }
    .simple-project-panel { width: 100%; max-height: 100vh; height: 100vh; border-radius: 0; }
    .simple-project-panel > header { padding: 24px 66px 20px 22px; }
    .simple-project-close { top: 19px; right: 18px; }
    .simple-project-detail { max-height: calc(100vh - 112px); padding: 22px; }
    .simple-project-view { width: min(100% - 40px, 900px); padding: 30px 0 60px; }
    .simple-project-view .simple-project-detail { max-height: none; padding: 24px 0; }
    .simple-project-back { margin-bottom: 38px; }
    .simple-entry, .simple-content footer { flex-direction: column; }
    .simple-entry span { text-align: left; }
    .simple-links { flex-wrap: wrap; gap: 14px 20px; }
}

.terminal-output {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    scroll-behavior: smooth;
    line-height: 1.6;
}

.terminal-output::after {
    content: "";
    display: inline-block;
    width: 8px;
    height: 16px;
    margin-top: 10px;
    background: var(--accent-orange);
    animation: cursor-flicker 1.1s steps(2, start) infinite;
    opacity: 0.8;
}

@keyframes cursor-flicker {
    0%, 45% {
        opacity: 0.8;
    }
    46%, 100% {
        opacity: 0.18;
    }
}

.terminal-output::-webkit-scrollbar {
    width: 8px;
}

.terminal-output::-webkit-scrollbar-track {
    background: transparent;
}

.terminal-output::-webkit-scrollbar-thumb {
    background: var(--accent-orange-dim);
    border-radius: 4px;
    transition: background 0.3s ease;
}

.terminal-output::-webkit-scrollbar-thumb:hover {
    background: var(--accent-orange);
}

.welcome-message {
    animation: slideUp 0.6s ease-out;
}

.welcome-message h1 {
    color: var(--text-primary);
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 6px;
}

.welcome-role {
    color: var(--accent-orange-bright);
    font-size: 15px;
}

.welcome-intro {
    color: var(--text-secondary);
    margin-top: 18px;
}

.suggested-commands {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ascii-art {
    color: var(--accent-orange);
    font-size: 12px;
    margin-bottom: 16px;
    line-height: 1.2;
    font-weight: 300;
}

.terminal-output p {
    margin: 8px 0;
    font-size: 14px;
    font-weight: 300;
}

.command-line {
    margin: 16px 0 8px 0;
    color: var(--prompt-color);
    font-weight: 400;
    animation: slideUp 0.3s ease-out;
}

.command-output {
    margin-left: 0;
    margin-bottom: 16px;
    animation: slideUp 0.3s ease-out;
}

.command-output h3 {
    color: var(--accent-orange);
    font-size: 16px;
    margin-bottom: 12px;
    font-weight: 500;
}

.terminal-tip-panel {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 20;
    max-width: min(340px, calc(100vw - 48px));
    padding: 14px 16px;
    color: var(--text-primary);
    background: rgba(22, 22, 22, 0.92);
    border: 1px solid rgba(255, 140, 66, 0.22);
    border-radius: 10px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
    font-size: 13px;
    line-height: 1.5;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.terminal-tip-panel.visible {
    opacity: 1;
    transform: translateY(0);
}

.terminal-tip-panel span {
    display: inline-block;
    margin-right: 8px;
    color: var(--accent-orange-bright);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.command-output ul {
    list-style: none;
    margin-left: 0;
}

.command-output li {
    margin: 6px 0;
    padding-left: 20px;
    position: relative;
    font-size: 14px;
    font-weight: 300;
}

.command-output li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent-orange);
}

.highlight {
    color: var(--highlight-color);
    font-weight: 400;
    padding: 2px 6px;
    background: rgba(255, 140, 66, 0.15);
    border-radius: 3px;
}

.error {
    color: #ff6b6b;
    font-weight: 400;
}

.terminal-input-line {
    display: flex;
    align-items: center;
    padding: 20px 24px;
    background: var(--bg-secondary);
    border-top: 1px solid rgba(255, 140, 66, 0.1);
    gap: 12px;
}

.prompt {
    color: var(--prompt-color);
    white-space: nowrap;
    font-size: 14px;
    font-weight: 400;
}

.terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    font-weight: 300;
    caret-color: var(--accent-orange);
}

.terminal-input::selection {
    background: var(--accent-orange);
    color: var(--bg-terminal);
}

.cursor {
    display: inline-block;
    width: 8px;
    height: 16px;
    background: var(--accent-orange);
    animation: blink 1s infinite;
    margin-left: 2px;
}

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

/* Mobile Optimization */
@media (max-width: 768px) {
    body {
        padding: 0;
    }

    .main-container {
        max-width: 100%;
        height: 100vh;
        gap: 0;
        display: block;
    }

    .main-container.split-view {
        max-width: 100%;
    }

    .terminal-container {
        max-width: 100%;
        height: 100vh;
        border-radius: 0;
    }

    .project-details-container {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
        z-index: 12;
        transform: translateX(100%);
    }

    .main-container.split-view .project-details-container {
        transform: translateX(0);
    }

    .terminal-header {
        padding: 10px 16px;
    }

    .terminal-title {
        font-size: 12px;
    }

    .terminal-control {
        width: 26px;
        height: 26px;
    }

    .terminal-output {
        padding: 16px;
        -webkit-overflow-scrolling: touch;
    }

    .project-details-content {
        padding: 16px;
        -webkit-overflow-scrolling: touch;
    }

    .ascii-art {
        font-size: 10px;
    }

    .terminal-output p,
    .command-output li,
    .terminal-input,
    .prompt {
        font-size: 13px;
    }

    .terminal-input-line {
        padding: 16px;
        position: sticky;
        bottom: 0;
    }

    .terminal-tip-panel {
        right: 12px;
        bottom: 12px;
        max-width: calc(100vw - 24px);
    }
}

@media (max-width: 480px) {
    .terminal-buttons {
        gap: 6px;
    }

    .terminal-button {
        width: 10px;
        height: 10px;
    }

    .ascii-art {
        font-size: 8px;
    }

    .terminal-output p,
    .command-output li,
    .terminal-input,
    .prompt {
        font-size: 12px;
    }
}

/* Smooth transitions */
.terminal-output * {
    transition: color 0.3s ease;
}
