/* Terminal workspace — local fonts, readable content, optional command navigation. */
:root {
    color-scheme: dark;
    --ink: #edf1ed;
    --muted: #b0c2c2;
    --base: #0c1720;
    --surface: #11232a;
    --border: #36545e;
    --accent: #83eca2;
    --blue: #80c7e6;
    --mono: "IBM Plex Mono", Consolas, monospace;
    --sans: "IBM Plex Sans", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; color: var(--ink); background: radial-gradient(ellipse at 0% 0%, #174d3938, transparent 36%), radial-gradient(ellipse at 100% 0%, #1b436e55, transparent 36%), linear-gradient(135deg, #0a171b, #111c2c 62%, #0b191e); font: 16px/1.7 var(--sans); }
[hidden] { display: none !important; }
a { color: var(--accent); text-underline-offset: 4px; }
a:hover { color: #c2ffd5; }
button, input, textarea { font: inherit; }
button, summary { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
::selection { background: #83eca2; color: #0c1720; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2 { font-family: var(--mono); font-weight: 500; }
h3, h4 { line-height: 1.4; font-weight: 500; }
strong { font-weight: 600; color: #dbe9e4; }
ul { padding-left: 20px; }
li + li { margin-top: 6px; }
.container { width: calc(100% - 80px); max-width: 1160px; margin-inline: auto; }
.sr-only, .contact-honeypot { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: absolute; z-index: 20; left: 16px; top: -100px; padding: 12px 20px; background: var(--accent); color: var(--base); }
.skip-link:focus { top: 10px; }
.workspace-titlebar { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 36px; padding: 8px 24px; background: #172a32; border-bottom: 1px solid var(--border); color: #c0d0d0; font: 11px/1.5 var(--mono); }
.window-dots { display: flex; gap: 7px; flex-shrink: 0; }
.window-dots b { width: 8px; height: 8px; border-radius: 50%; background: #db8590; }
.window-dots b:nth-child(2) { background: #d9bd7d; }
.window-dots b:last-child { background: var(--accent); }
.titlebar-note { color: var(--blue); }
#navbar { border-bottom: 1px solid var(--border); background: #0e1b25e8; }
.nav-container { min-height: 74px; display: flex; justify-content: space-between; align-items: center; gap: 24px; position: relative; }
.nav-brand { display: flex; gap: 10px; align-items: center; color: var(--ink); font: 500 18px var(--mono); letter-spacing: -.7px; text-decoration: none; }
.nav-brand img { width: 34px; height: 34px; object-fit: contain; }
.brand-cursor { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 24px; list-style: none; padding: 0; margin: 0; font: 12px var(--mono); }
.nav-links li { margin: 0; }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); text-decoration: none; }
.nav-links a::before { content: './'; color: #80b6aa; }
.nav-links a:hover { color: var(--accent); }
.nav-links .nav-contact { padding: 0 16px; border: 1px solid #527d6d; border-radius: 4px; background: #83eca20d; color: var(--ink); }
.menu-toggle { padding: 10px 14px; background: var(--surface); color: var(--ink); border: 1px solid var(--border); border-radius: 4px; min-height: 44px; }
.hero-section { position: relative; isolation: isolate; display: grid; grid-template-columns: 1.08fr 1fr; align-items: center; gap: 48px; padding-block: 65px 52px; }
.hero-section::before { content: ''; position: absolute; inset: 0 -20px; z-index: -1; opacity: .6; background-image: linear-gradient(#6fbcad13 1px, transparent 1px), linear-gradient(90deg,#6fbcad13 1px, transparent 1px); background-size: 32px 32px; mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 75%, transparent); pointer-events: none; }
.prompt { color: var(--accent); font: 13px/1.7 var(--mono); margin-bottom: 22px; }
h1 { color: #ddf8e7; font-size: clamp(38px, 4.6vw, 64px); line-height: 1.12; letter-spacing: -2.5px; margin-bottom: 25px; text-shadow: 0 0 30px #83eca214; }
.hero-description { color: #c0cbc6; font-size: 18px; line-height: 1.7; max-width: 45ch; margin-bottom: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 10px; min-height: 48px; padding: 12px 18px; color: #0c1710; background: var(--accent); border: 1px solid var(--accent); border-radius: 4px; font: 600 14px/1.5 var(--sans); text-decoration: none; }
.btn:hover { color: #0c1710; background: #adffc4; }
.btn-secondary { color: var(--ink); background: transparent; border-color: #52776b; }
.btn-secondary:hover { background: #17372d; color: var(--ink); }
.hero-note { margin: 27px 0 0; font: 12px/1.8 var(--mono); color: #adc6c6; }
.hero-visual { position: relative; min-width: 0; }
.hero-emblem { position: absolute; width: 280px; height: 230px; object-fit: contain; right: 0; top: -62px; opacity: .14; mix-blend-mode: screen; transform: rotate(-12deg); pointer-events: none; }
.terminal { position: relative; background: #0c1b24f5; border: 1px solid #508576; border-radius: 5px; box-shadow: 0 0 0 5px #6ccca506, 0 24px 70px #0005, 0 0 55px #61a9d00b; }
.terminal::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: repeating-linear-gradient(transparent 0, transparent 3px, #89d4b90a 4px); opacity: .65; }
.terminal-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: #19303a; border-bottom: 1px solid #355159; padding: 12px 18px; border-radius: 5px 5px 0 0; color: #b6cccc; font: 11px/1.5 var(--mono); }
.terminal-body { padding: 24px; }
.command { font: 12px/1.6 var(--mono); color: #c0cbc6; margin-bottom: 15px; }
.command > span { color: var(--accent); margin-right: 7px; }
.profile { display: flex; align-items: center; gap: 16px; margin-bottom: 25px; }
.profile img { width: 80px; height: 80px; flex-shrink: 0; object-fit: cover; border-radius: 4px; border: 1px solid #495e5d; }
.profile strong { display: block; font-size: 17px; line-height: 1.4; margin-bottom: 5px; }
.profile p { color: var(--muted); font: 11px/1.8 var(--mono); margin: 0; }
.file-list { margin-bottom: 20px; }
.file-list a { display: grid; grid-template-columns: 46px minmax(0,1fr) auto; align-items: center; gap: 10px; min-height: 44px; padding: 10px 0; border-bottom: 1px solid #27434b; color: var(--ink); text-decoration: none; font: 12px/1.5 var(--mono); }
.file-list a span:first-child { color: var(--blue); }
.file-list a span:last-child { color: #8db8a9; }
.file-list a:hover { color: var(--accent); }
.terminal-cli { display: flex; align-items: center; gap: 8px; position: relative; z-index: 1; padding: 5px 8px 5px 10px; background: #08171e; border: 1px solid #3f655d; border-radius: 3px; }
.terminal-cli label { color: var(--accent); font: 13px var(--mono); }
.terminal-cli input { min-width: 0; width: 100%; flex: 1; padding: 5px 0; min-height: 36px; background: transparent; border: 0; color: #d6f4e2; font: 13px var(--mono); }
.terminal-cli input::placeholder { color: #a7bdb6; opacity: 1; }
.terminal-cli button { color: var(--accent); background: #17352b; font: 12px var(--mono); border: 1px solid #527a6c; border-radius: 3px; padding: 6px 10px; min-height: 36px; }
#terminal-output { color: #c0dbcc; font: 12px/1.9 var(--mono); margin: 12px 0 0; overflow-wrap: anywhere; }
#terminal-output:empty { display: none; }
.summary-line { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding: 16px; border-block: 1px solid #3a5b61; background: #17352f52; color: #acc5c6; font: 12px/1.7 var(--mono); }
.summary-line span:first-child { color: var(--blue); }
.summary-line span:first-child::before { content: '[ '; color: var(--accent); }
.summary-line span:first-child::after { content: ' ]'; color: var(--accent); }
.section { padding-block: 60px; border-bottom: 1px solid #2d464f; }
.section:nth-of-type(even) { background: linear-gradient(110deg, #17353427, #1830511f); }
.section-path { color: #99bcc7; font: 11px/1.7 var(--mono); margin-bottom: 8px; }
.section-title { margin-bottom: 26px; padding-bottom: 19px; border-bottom: 1px dashed #3b565c; font-size: 26px; line-height: 1.4; letter-spacing: -1px; }
.section-title::before { content: '> '; color: var(--accent); }
.section-subtitle { color: var(--muted); font-size: 15px; line-height: 1.7; max-width: 75ch; margin: -10px 0 28px; }
.blog-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.blog-card { position: relative; display: flex; flex-direction: column; min-width: 0; background: #10232d; border: 1px solid var(--border); border-radius: 4px; overflow: hidden; }
.blog-card::before { content: ''; position: absolute; top: 0; left: 0; width: 17px; height: 17px; border-top: 2px solid var(--accent); border-left: 2px solid var(--accent); pointer-events: none; z-index: 1; }
.case-top { display: flex; justify-content: space-between; gap: 8px; padding: 11px 16px; border-bottom: 1px solid var(--border); background: #1b3441; color: var(--muted); font: 11px/1.7 var(--mono); }
.case-top span:first-child { color: var(--blue); }
.blog-image { width: 100%; height: 145px; object-fit: cover; object-position: left center; border-bottom: 1px solid var(--border); opacity: .9; }
.case-body { display: flex; flex: 1; flex-direction: column; padding: 22px; }
.case-body h3 { font: 500 18px/1.5 var(--mono); margin-bottom: 12px; }
.case-body > p { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.case-body > p:first-of-type { color: var(--blue); font: 11px/1.8 var(--mono); }
details { border-top: 1px solid var(--border); margin-bottom: 18px; }
summary { color: #d3e2dc; font-size: 14px; padding-block: 12px; min-height: 44px; }
details p { color: var(--muted); font-size: 14px; margin: 0 0 12px; }
.read-more { display: inline-flex; align-items: center; min-height: 44px; padding-block: 8px; font-size: 14px; font-weight: 500; text-decoration: none; }
.read-more:hover { text-decoration: underline; }
.case-body > .read-more { margin-top: auto; align-self: flex-start; }
.skills-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 30px 44px; }
.skill-category { border-top: 1px solid #4a776b; padding-top: 18px; }
.skill-category h3 { font-size: 19px; margin-bottom: 10px; }
.skill-category h3::before { content: '$ '; color: var(--accent); font-family: var(--mono); }
.skill-category p { color: var(--blue); font: 12px/1.8 var(--mono); margin-bottom: 10px; }
.skill-category ul { color: var(--muted); font-size: 15px; margin: 0; }
.supporting-skills { border-top: 1px solid var(--border); padding-top: 22px; margin-top: 30px; }
.supporting-skills h3 { font-size: 17px; margin-bottom: 10px; }
.supporting-skills p { color: var(--muted); font-size: 14px; margin: 4px 0; }
.experience-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 52px; }
.experience-heading { font-size: 17px; margin-bottom: 25px; }
.experience-list { border-left: 1px solid #4e8c72; padding-left: 22px; }
.experience-entry { position: relative; padding-bottom: 28px; }
.experience-entry:last-child { padding-bottom: 0; }
.experience-entry::before { content: ''; position: absolute; left: -26px; top: 8px; width: 7px; height: 7px; background: var(--accent); box-shadow: 0 0 9px #83eca237; }
.experience-entry h4 { font-size: 19px; margin-bottom: 12px; }
.experience-meta { font: 12px/1.8 var(--mono); color: var(--muted); margin-bottom: 10px; }
.experience-entry ul { color: var(--muted); font-size: 15px; margin-block: 12px; }
.achievements-list { list-style: none; padding: 0; margin: 0; }
.achievements-list li { padding: 16px 0; margin: 0; border-bottom: 1px solid var(--border); font-size: 14px; color: var(--muted); }
.achievements-list strong { display: inline-block; margin-bottom: 5px; font-weight: 500; }
.project-card { display: grid; grid-template-columns: .8fr 1.6fr .6fr; gap: 28px; align-items: start; padding-block: 26px; border-top: 1px solid var(--border); }
.project-name h3 { font: 500 18px/1.5 var(--mono); color: #d3f4df; margin-bottom: 10px; }
.project-name h3::before { content: '▸ '; color: #83c5ac; }
.project-card p { color: var(--muted); font-size: 14px; margin-bottom: 10px; overflow-wrap: anywhere; }
.project-name p { font-size: 12px; line-height: 1.8; }
.project-description p:last-child { margin-bottom: 0; }
.project-description p:has(> strong) { font: 12px/1.8 var(--mono); color: var(--blue); }
.project-links { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 8px; }
.project-status p { display: inline-block; margin: 0; padding: 5px 8px; background: #18313c; border: 1px solid #3c5861; border-radius: 3px; font: 11px/1.8 var(--mono); }
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 52px; }
.about-text { color: #c0cbc6; font-size: 16px; line-height: 1.9; }
.education-block { padding-left: 24px; border-left: 1px solid #40564d; }
.education-block h3 { font-size: 21px; margin-bottom: 14px; }
.education-block h4 { margin: 24px 0 12px; }
.education-block p { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.education-block ul { font-size: 14px; line-height: 1.9; color: var(--muted); }
.learning-block { margin-top: 28px; }
.learning-block h3 { font: 500 15px/1.7 var(--mono); }
.learning-block ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.learning-block li { margin: 0; border: 1px solid var(--border); padding: 5px 10px; font: 12px/1.8 var(--mono); color: var(--blue); background: #132a3155; }
.certificates-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 30px; }
.credential-card { display: grid; grid-template-columns: 65px minmax(0,1fr); column-gap: 18px; align-items: start; border-top: 1px solid var(--border); padding-block: 24px; }
.certificate-image { width: 65px; height: 65px; object-fit: contain; margin-top: 3px; }
.credential-copy h3 { font-size: 16px; margin-bottom: 6px; }
.credential-copy p { font: 12px/1.8 var(--mono); color: var(--muted); margin-bottom: 2px; }
.credential-card > a { grid-column: 2; justify-self: start; }
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 68px; align-items: start; }
.contact-details > p { color: var(--muted); font-size: 16px; line-height: 1.8; max-width: 45ch; }
.contact-methods { margin: 24px 0 0; }
.contact-methods > div { margin-bottom: 20px; }
.contact-methods dt { color: var(--muted); font: 12px/1.8 var(--mono); margin-bottom: 5px; }
.contact-methods dd { margin: 0; overflow-wrap: anywhere; }
.contact-methods a { display: inline-block; padding-block: 6px; min-height: 36px; }
.contact-card { min-width: 0; background: #10232b; border: 1px solid #416b64; border-radius: 4px; overflow: hidden; }
.compose-bar { display: flex; align-items: center; gap: 16px; padding: 12px 24px; background: #1b3440; border-bottom: 1px solid var(--border); color: var(--blue); font: 11px/1.7 var(--mono); }
.contact-form { padding: 24px; }
.contact-field { margin-top: 20px; }
.contact-form label { display: block; font: 13px/1.7 var(--mono); margin-bottom: 8px; }
.contact-input, .contact-textarea { display: block; width: 100%; padding: 12px; background: #091a23; border: 1px solid #52747e; border-radius: 4px; color: var(--ink); font-size: 16px; }
.contact-input::placeholder, .contact-textarea::placeholder { color: #9cb0b2; opacity: 1; }
.contact-textarea { resize: vertical; min-height: 132px; max-height: 600px; }
.contact-guidance { color: var(--muted); font-size: 12px; line-height: 1.7; margin-bottom: 0; }
#message-guidance { margin-top: 9px; }
.form-error { color: #ffb4b7; font-size: 14px; line-height: 1.7; margin-block: 18px; overflow-wrap: anywhere; }
.form-error:empty { display: none; }
.form-error.success { color: var(--accent); }
.contact-submit { margin-top: 20px; }
.contact-verification { margin-top: 24px; }
#verification-label { font: 13px/1.7 var(--mono); margin-bottom: 12px; }
.contact-verification .contact-guidance { margin-top: 10px; }
[aria-invalid="true"] { border-color: #ff9caa; }
.footer { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-block: 26px; color: #9dbfbb; font: 12px/1.8 var(--mono); }
.footer p { margin: 0; }
.footer > div { display: flex; gap: 24px; flex-wrap: wrap; }
.footer a { display: inline-block; min-height: 36px; color: var(--muted); }
@media (min-width: 621px) { .menu-toggle { display: none; } }
@media (max-width: 1000px) {
    .container { width: calc(100% - 48px); }
    .hero-section { gap: 28px; }
    .hero-description { font-size: 16px; }
    .terminal-body { padding: 18px; }
    .profile strong { font-size: 15px; }
    .blog-grid { grid-template-columns: 1fr; }
    .blog-card { display: grid; grid-template-columns: 220px minmax(0,1fr); }
    .case-top { grid-column: 1/-1; }
    .blog-image { height: 100%; min-height: 210px; border: 0; }
    .experience-grid, .about-grid { gap: 30px; }
    .project-card { grid-template-columns: .8fr 1.6fr; gap: 16px 24px; }
    .project-status { grid-column: 2; }
    .contact-layout { gap: 35px; }
}
@media (max-width: 760px) {
    .hero-section { grid-template-columns: 1fr; }
    .hero-description { max-width: 55ch; }
    h1 { font-size: 54px; }
    .hero-visual { width: 100%; max-width: 600px; }
    .hero-emblem { opacity: .09; top: -25px; }
    .nav-links { gap: 16px; font-size: 11px; }
    .certificates-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
    .container { width: calc(100% - 40px); }
    .workspace-titlebar { padding-inline: 14px; font-size: 10px; gap: 10px; }
    .titlebar-note { display: none; }
    .nav-container { min-height: 68px; flex-wrap: wrap; gap: 0; }
    .nav-brand { font-size: 16px; }
    .nav-links { display: flex; width: 100%; flex-wrap: wrap; gap: 0 20px; padding-bottom: 15px; }
    .nav-links a { font-size: 12px; }
    .menu-ready .nav-links { display: none; }
    .menu-ready .nav-links[data-open="true"] { position: absolute; top: 67px; inset-inline: 0; z-index: 5; display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 18px; background: #172b35; border: 1px solid var(--border); border-radius: 4px; box-shadow: 0 12px 30px #0008; }
    .menu-ready .nav-links a { width: 100%; }
    .nav-links .nav-contact { margin-top: 7px; }
    .hero-section { padding-block: 38px 34px; gap: 32px; }
    h1 { font-size: clamp(30px,9.4vw,48px); letter-spacing: -1.6px; margin-bottom: 20px; }
    .prompt { font-size: 12px; margin-bottom: 18px; }
    .hero-note { margin-top: 20px; font-size: 11px; }
    .hero-emblem { width: 200px; right: 16px; }
    .hero-actions { gap: 10px; }
    .btn { padding-inline: 14px; }
    .terminal-header { padding-inline: 14px; font-size: 10px; }
    .terminal-cli input { font-size: 16px; min-height: 44px; }
    .terminal-cli button { min-height: 44px; }
    .summary-line { padding: 14px; gap: 10px; font-size: 11px; }
    .section { padding-block: 38px; }
    .section-title { font-size: 23px; letter-spacing: -.9px; margin-bottom: 24px; }
    .blog-card { display: flex; }
    .blog-image { height: 155px; min-height: 0; }
    .case-body { padding: 20px; }
    .skills-grid, .experience-grid, .about-grid, .contact-layout { grid-template-columns: 1fr; gap: 30px; }
    .project-card { grid-template-columns: 1fr; gap: 12px; }
    .project-status { grid-column: 1; }
    .project-name p { margin-bottom: 0; }
    .education-block { padding-left: 18px; }
    .credential-card { grid-template-columns: 53px minmax(0,1fr); gap: 0 13px; }
    .certificate-image { width: 53px; height: 53px; }
    .contact-form { padding: 20px; }
    .compose-bar { padding-inline: 20px; }
    .contact-methods a { min-height: 44px; }
    .footer { gap: 10px; }
    .footer a { min-height: 44px; }
}
@media (max-width: 350px) {
    .btn { font-size: 13px; padding-inline: 12px; }
    .profile { gap: 12px; }
    .profile img { width: 64px; height: 64px; }
    .profile strong { font-size: 14px; }
    .profile p { font-size: 10px; }
    .file-list a { gap: 6px; font-size: 11px; }
    .terminal-header { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .terminal::after { display: none; }
}
