:root {
  --page-start: #fffbd8;
  --page-end: #92d3ef;
  --accent: #4b8bbe;
  --accent-dark: #306998;
  --code-yellow: #ffd43b;
  --panel: #09142e;
  --card: #111e40;
  --card-soft: #101c3b;
  --border: #293655;
  --text: #f2f4fc;
  --muted: #9ca7c5;
  --shadow: rgba(2, 10, 28, 0.32);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
}
body {
  margin: 0;
  min-width: 0;
  overflow-x: hidden;
  background: var(--panel);
  color: var(--text);
  font-family: "Courier New", Courier, monospace;
  line-height: 1.5;
}
.landing-body { min-height: 100vh; overflow: hidden; background: #050d20; }
.landing { position: fixed; z-index: 100; inset: 0; min-height: 100svh; display: grid; place-items: center; padding: 2rem; background: #050d20; transition: opacity 2s ease, transform 2s ease, filter 2s ease; }
.landing[hidden] { display: none; }
.landing-body.is-leaving .landing { opacity: 0; filter: blur(4px); transform: scale(.985); }
.landing-body .page-frame { opacity: 0; }
.landing-body.is-leaving .page-frame { opacity: 1; }
.landing-body > .skip-link { display: none; }
.landing-terminal { width: min(760px, 100%); overflow: hidden; background: #0a1633; border: 1px solid #334363; border-radius: 8px; box-shadow: 0 28px 80px rgba(0, 0, 0, .45); }
.terminal-bar { min-height: 46px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 1rem; color: #8896b8; background: #101e3c; border-bottom: 1px solid #334363; font-size: .75rem; }
.terminal-bar p { grid-column: 2; margin: 0; }
.terminal-controls { display: flex; gap: .45rem; }
.terminal-controls span { width: 10px; height: 10px; border-radius: 50%; background: #3776ab; }
.terminal-controls span:nth-child(2) { background: var(--code-yellow); }
.terminal-controls span:nth-child(3) { background: #48a86f; }
.terminal-session { min-height: 280px; padding: clamp(1.4rem, 5vw, 3rem); color: #d8deee; font-size: clamp(.86rem, 2.1vw, 1.05rem); }
.terminal-command { min-height: 1.6em; margin-bottom: 2rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.terminal-prompt, .terminal-status { color: var(--code-yellow); }
.terminal-cursor { display: inline-block; width: .6em; height: 1.15em; margin-left: .18rem; background: #6daee6; vertical-align: -.18em; animation: terminal-blink .85s steps(1) infinite; }
.terminal-output { display: grid; gap: .6rem; color: #93a2c4; }
.terminal-output[hidden] { display: none; }
.terminal-output p { margin: 0; opacity: 0; transform: translateY(6px); transition: opacity .35s ease, transform .35s ease; }
.terminal-output p.is-visible { opacity: 1; transform: none; }
.landing-skip { grid-column: 3; justify-self: end; padding: .45rem .6rem; color: #9ca7c5; background: transparent; border: 1px solid transparent; border-radius: 4px; font-size: .72rem; cursor: pointer; }
.landing-skip:hover, .landing-skip:focus-visible { color: var(--code-yellow); border-color: var(--border); outline: none; }
@keyframes terminal-blink { 50% { opacity: 0; } }
button, input, textarea { font: inherit; }
a { color: inherit; }
.skip-link {
  position: fixed;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  padding: .7rem 1rem;
  background: var(--accent);
  color: #06162c;
  border-radius: .4rem;
}
.skip-link:focus { top: 1rem; }
.content-error {
  position: fixed;
  z-index: 30;
  top: 1rem;
  left: 50%;
  width: min(680px, calc(100% - 2rem));
  margin: 0;
  padding: .8rem 1rem;
  color: #fff;
  background: #a82c45;
  border-radius: 6px;
  box-shadow: 0 10px 30px var(--shadow);
  transform: translateX(-50%);
  text-align: center;
  font-size: .8rem;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-frame {
  width: 100%;
  margin: 0;
  padding: 0;
  background: var(--panel);
  transition: opacity 2s ease;
}
.site-shell {
  width: min(1140px, 100%);
  margin: 0 auto;
  padding: 0 clamp(28px, 6.5vw, 82px);
  overflow: hidden;
  background: var(--panel);
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.site-header {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.brand, .site-nav a, footer a { text-decoration: none; }
.brand { display: flex; align-items: center; gap: .55rem; font-weight: 700; letter-spacing: .02em; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 18px;
  height: 20px;
  background: var(--code-yellow);
  color: #08213a;
  font-size: 1.15rem;
}
.brand-first { color: var(--accent); }
.site-nav { display: flex; align-items: center; gap: clamp(1.2rem, 3vw, 2.3rem); color: #ced4e5; font-size: .86rem; }
.site-nav a { position: relative; padding: .6rem 0; }
.site-nav a:hover, .site-nav a.active { color: var(--code-yellow); }
.site-nav a::after {
  position: absolute;
  left: 50%; bottom: 2px;
  width: 0; height: 1px;
  content: "";
  background: var(--code-yellow);
  transition: width .2s ease, left .2s ease;
}
.site-nav a:hover::after, .site-nav a.active::after { width: 100%; left: 0; }
.menu-toggle { border: 0; color: var(--code-yellow); background: transparent; cursor: pointer; }
.menu-toggle { display: none; }

.section {
  scroll-margin-top: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.hero {
  min-height: 480px;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  padding: 58px 0 60px;
}
.eyebrow { margin: 0 0 .4rem; color: var(--text); font-size: 1.9rem; }
.eyebrow::first-letter { color: var(--accent); }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: .2rem; font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1.2; letter-spacing: -.06em; }
h1 span { color: #3776ab; text-shadow: none; }
.contact-details h2 span { color: var(--code-yellow); }
.role { margin-bottom: 1rem; font-size: clamp(1.05rem, 2.15vw, 1.8rem); white-space: nowrap; }
.role span { color: var(--text); }
.rotating-role { display: inline-block; color: var(--code-yellow) !important; transition: opacity .22s ease, transform .22s ease; }
.rotating-role.is-changing { opacity: 0; transform: translateY(-.3em); }
.intro { max-width: 520px; margin-bottom: 1.15rem; color: var(--muted); font-size: .9rem; }
.social-links { display: flex; gap: .65rem; margin: 1rem 0 1.25rem; }
.social-links a {
  display: grid; place-items: center;
  width: 24px; height: 24px;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 50%;
  text-decoration: none;
  font: 700 .64rem Arial, sans-serif;
}
.social-links a svg { width: 13px; height: 13px; fill: currentColor; }
.social-links a:hover { color: #052037; background: var(--code-yellow); border-color: var(--code-yellow); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; }
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 40px;
  padding: .65rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-dark)); box-shadow: 0 8px 22px rgba(55, 118, 171, .22); }
.button-secondary { color: var(--text); background: transparent; border-color: #66718c; }

.code-window { min-width: 0; background: var(--card); border: 1px solid var(--border); border-radius: 5px; box-shadow: 12px 15px 0 rgba(7, 14, 34, .22); }
.code-tabs {
  display: flex;
  align-items: end;
  min-height: 38px;
  padding: 8px .4rem 0;
  transform: translateY(-30px);
  margin-bottom: -30px;
}
.code-tabs button {
  flex: 1 1 0;
  min-width: 0;
  min-height: 30px;
  padding: .38rem .55rem;
  color: #909bb9;
  background: #152345;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 4px 4px 0 0;
  font-size: .65rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: flex .22s ease, transform .22s ease, color .22s ease, background-color .22s ease, box-shadow .22s ease;
}
.code-tabs button:hover { color: #d5dcef; background: #19294e; }
.code-tabs button.selected {
  z-index: 1;
  flex: 1.7 0 auto;
  min-width: max-content;
  color: var(--code-yellow);
  background: #1a2b51;
  border-bottom-color: var(--code-yellow);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .24);
  transform: translateY(-6px);
}
.code-tabs button:focus-visible { outline: 2px solid var(--code-yellow); outline-offset: -2px; }
pre { margin: 0; padding: 1.25rem; overflow: auto; color: #b7c1da; font-size: .72rem; line-height: 1.7; }
#code-panel { min-height: 250px; transition: opacity .14s ease, transform .14s ease; }
#code-panel.is-changing { opacity: 0; transform: translateY(4px); }
.code-line-row { display: flex; min-width: max-content; }
code .line { flex: 0 0 2.8em; color: #62718f; user-select: none; }
.code-source { white-space: pre; }
.code-token.comment { color: #8794b3; font-style: italic; }
.code-token.string { color: var(--code-yellow); }
.code-token.keyword { color: #6daee6; }
.code-token.decorator { color: #c39af3; }
.code-token.number { color: #ef9d72; }

.about { min-height: 310px; display: grid; grid-template-columns: 1fr 180px; align-items: center; gap: clamp(2rem, 8vw, 6rem); padding: 42px 0 68px; }
.terminal-copy { margin: 1rem 0; padding: 1.25rem 1.5rem; color: var(--muted); background: var(--card-soft); border: 1px solid rgba(41, 54, 85, .6); border-radius: 4px; font-size: .84rem; }
.specialties { color: #c4cae1; }
.specialties span { color: var(--accent); }
.portrait-placeholder {
  min-height: 210px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem;
  padding: 1rem;
  text-align: center;
  background: repeating-linear-gradient(135deg, #172544 0 12px, #121f3d 12px 24px);
  border: 1px solid #3a4764;
  border-radius: 6px;
  box-shadow: 14px 15px 0 #0b1530, 14px 15px 0 1px #22304c;
  transform: rotate(-4deg);
}
.portrait-placeholder img { width: 100%; height: 210px; object-fit: cover; border-radius: 4px; }
.portrait-fallback { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; }
.portrait-fallback[hidden] { display: none; }
.portrait-placeholder strong, .portrait-placeholder small { transform: rotate(4deg); }
.placeholder-icon { display: grid; place-items: center; width: 44px; height: 44px; color: var(--accent); border: 1px dashed var(--accent); border-radius: 50%; font-size: 1.8rem; }
.portrait-placeholder small { color: var(--muted); }

.skills { min-height: 770px; padding: 92px 0 82px; border-top: 1px solid rgba(41, 54, 85, .6); }
.section-heading { max-width: 650px; margin: 0 auto 3rem; text-align: center; }
.section-heading h2 { margin-bottom: .35rem; color: #6daee6; font-size: clamp(1.5rem, 3vw, 2rem); }
.section-heading > p:last-child { color: var(--muted); font-size: .86rem; }
.file-meters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1rem; }
.file-meter { padding: 1rem 1.15rem; background: var(--card); border: 1px solid var(--border); border-radius: 4px; }
.file-meter strong { display: flex; align-items: center; gap: .65rem; color: #adb6ce; font-weight: 400; }
.file-meter strong span { display: grid; place-items: center; width: 24px; height: 24px; color: #fff; font: 700 .7rem Arial, sans-serif; border-radius: 2px; }
.file-meter .meter-logo svg, .file-meter .meter-logo img { width: 16px; height: 16px; fill: currentColor; }
.file-meter .meter-logo img { filter: brightness(0) invert(1); }
.file-meter > div { height: 4px; margin-top: .75rem; background: #394764; }
.file-meter i { display: block; width: var(--progress); height: 100%; background: currentColor; }
.file-meter.orange { color: #f47a2a; }.file-meter.orange strong span { background: #e95c0b; }
.file-meter.blue { color: #2caef0; }.file-meter.blue strong span { background: #1a9ddb; }
.file-meter.yellow { color: #f4df27; }.file-meter.yellow strong span { color: #171717; background: #f4df27; }
.file-meter.purple-meter { color: #8c75e8; }.file-meter.purple-meter strong span { background: #7656c9; }
.file-meter.postgresql-meter { color: #6f8ff1; }.file-meter.postgresql-meter strong span { background: #4169e1; }
.skill-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.skill-card { min-width: 170px; min-height: 190px; flex: 0 1 calc((100% - 4rem) / 5); padding: 1.3rem 1rem; text-align: center; background: var(--card-soft); border: 1px solid var(--border); border-radius: 4px; }
.skill-icon { display: grid; place-items: center; width: 44px; height: 44px; margin: 0 auto .8rem; border-radius: 50%; color: #fff; font: 700 .7rem Arial, sans-serif; }
.skill-icon svg { width: 23px; height: 23px; fill: currentColor; }
.skill-card h3 { margin-bottom: .55rem; font-size: .9rem; font-weight: 400; }
.skill-card p { margin: 0; color: var(--muted); font-size: .69rem; line-height: 1.35; }
.purple{background:#6861e8}.blue-bg{background:#219be4}.green{background:#63a55a}.emerald{background:#12b96b}.slate{background:#64718d}.cyan{background:#1298c2}.multi{background:#40516f}.pink{background:#85136f}
.github{background:#24292f}.photoshop{background:#001e36;color:#31a8ff}.claude{background:#d97757}.chatgpt{background:#10a37f}
.aws-cdk{background:#232f3e;color:#ff9900}.postman{background:#ff6c37}
.salesforce{background:#00a1e0}

.roadmap { padding: 80px 0 48px; border-top: 1px solid rgba(41, 54, 85, .6); }
.stats-panel { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); padding: 2.1rem 1rem; background: var(--card-soft); border: 1px solid var(--border); border-radius: 4px; }
.stats-panel div { text-align: center; }
.stats-panel strong { display: block; margin-bottom: .5rem; color: var(--code-yellow); font-size: clamp(1.8rem, 3.5vw, 2.5rem); font-weight: 400; }
.stats-panel span { color: #b1bad0; font-size: .72rem; }

.contact { display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(2rem, 6vw, 5rem); padding: 58px 0 70px; }
.contact-details h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); line-height: 1.25; }
.contact-details ul { margin: 1.5rem 0; padding: 0; list-style: none; color: var(--muted); font-size: .86rem; }
.contact-details li { display: grid; grid-template-columns: 1.1rem minmax(0, 1fr); align-items: center; gap: .45rem; margin: .8rem 0; }
.contact-icon { display: grid; width: 1.1rem; place-items: center; color: var(--accent); }
.contact-icon svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact-details li a { color: inherit; text-decoration: none; }
.contact-details li a:hover { color: var(--accent); }
.contact-socials a { color: #fff; background: rgba(55, 118, 171, .7); border: 0; }
.contact-form { position: relative; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.15rem 1.25rem; padding: 2.2rem; background: var(--card-soft); border: 1px solid var(--border); border-radius: 4px; }
.form-field { display: flex; flex-direction: column; gap: .45rem; }
.form-field label { color: #aeb7ce; font-size: .9rem; }
.form-field input, .form-field textarea { width: 100%; padding: .75rem; color: var(--text); background: #142143; border: 1px solid transparent; border-radius: 3px; outline: none; }
.form-field input:focus, .form-field textarea:focus { border-color: var(--code-yellow); box-shadow: 0 0 0 3px rgba(255, 212, 59, .13); }
.form-field input:user-invalid { border-color: #ff8896; }
.form-field input::placeholder { color: #6f7c9d; opacity: 1; }
.form-hint { color: var(--muted); font-size: .7rem; }
.full-width { grid-column: 1 / -1; }
.honeypot { position: absolute; left: -9999px; }
.form-footer { display: flex; align-items: center; gap: 1rem; }
.form-footer .button { flex: 0 0 auto; }
.form-status { margin: 0; color: var(--muted); font-size: .72rem; }
.form-status.success { color: var(--accent); }.form-status.error { color: #ff8896; }

.experience-page { min-height: calc(100vh - 96px); padding: 72px 0 88px; }
.experience-heading { max-width: 720px; margin-bottom: 4rem; }
.experience-heading h1 { margin-bottom: .75rem; color: #3776ab; font-size: clamp(2.3rem, 6vw, 4.5rem); letter-spacing: -.05em; }
.experience-heading > p { margin: 0; color: var(--muted); font-size: .9rem; }
.experience-list { position: relative; display: grid; gap: 1.4rem; padding-left: 2.25rem; }
.experience-list::before { position: absolute; top: .75rem; bottom: .75rem; left: .45rem; width: 1px; content: ""; background: var(--border); }
.experience-card { position: relative; display: grid; grid-template-columns: 1fr; }
.experience-marker { position: absolute; top: 1.7rem; left: -2.25rem; width: .9rem; height: .9rem; background: var(--code-yellow); border: 3px solid var(--panel); box-shadow: 0 0 0 1px var(--code-yellow); transform: rotate(45deg); }
.experience-card-content { padding: 1.7rem 1.9rem; background: var(--card-soft); border: 1px solid var(--border); border-radius: 6px; box-shadow: 0 14px 30px rgba(2, 10, 28, .16); }
.experience-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 2rem; }
.experience-card h2 { margin-bottom: .2rem; color: #6daee6; font-size: clamp(1.2rem, 3vw, 1.6rem); }
.experience-company, .experience-period { color: var(--code-yellow); font-size: .78rem; }
.experience-period { flex: 0 0 auto; text-align: right; }
.experience-summary { margin: 1.25rem 0 1rem; color: var(--muted); font-size: .82rem; }
.experience-highlights { display: grid; gap: .55rem; margin: 0 0 1.25rem; padding-left: 1.3rem; color: #cbd2e5; font-size: .78rem; }
.experience-highlights li::marker { color: var(--code-yellow); }
.experience-technologies { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.experience-technologies li { padding: .35rem .65rem; color: #8bc2ed; background: #142143; border: 1px solid var(--border); border-radius: 999px; font-size: .7rem; }
.experience-empty { padding: 2rem; color: var(--muted); text-align: center; border: 1px dashed var(--border); }

footer { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; border-top: 1px solid var(--border); color: var(--muted); font-size: .72rem; }
footer p { margin: 0; }
footer span { color: var(--accent); }

@media (max-width: 900px) {
  .site-shell { padding: 0 34px; }
  .hero { grid-template-columns: 1fr; padding-top: 52px; }
  .code-window { max-width: 620px; }
  .contact { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .site-shell { width: 100%; padding: 0 22px; }
  .site-header { min-height: 74px; }
  .menu-toggle { display: flex; width: 44px; min-height: 44px; align-items: center; justify-content: center; flex-direction: column; gap: 5px; padding: 8px; }
  .menu-toggle span:not(.sr-only) { display: block; width: 22px; height: 2px; background: var(--accent); }
  .site-nav { position: absolute; z-index: 10; top: 72px; left: 22px; right: 22px; display: none; padding: .75rem; flex-direction: column; align-items: stretch; gap: .2rem; background: var(--card); border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 16px 30px var(--shadow); }
  .site-nav.open { display: flex; }
  .site-nav a { display: flex; min-height: 44px; align-items: center; padding: .65rem .75rem; }
  .site-nav a::after { display: none; }
  .hero { min-height: auto; gap: 1rem; padding: 48px 0 64px; }
  .hero-copy { order: 1; }
  .code-window { order: 2; width: 100%; margin-top: 2rem; }
  .role { font-size: clamp(.9rem, 4vw, 1.1rem); }
  .intro { font-size: .86rem; }
  .social-links a { width: 36px; height: 36px; }
  .social-links a svg { width: 16px; height: 16px; }
  .button { min-height: 44px; }
  .code-tabs button { min-height: 40px; }
  #code-panel { min-height: 235px; padding: 1rem; }
  .about { grid-template-columns: 1fr; }
  .portrait-placeholder { width: min(220px, 75%); margin: 0 auto; }
  .skills { padding-top: 70px; }
  .file-meters { grid-template-columns: 1fr; }
  .stats-panel { gap: 2rem 1rem; }
  .contact-form { grid-template-columns: 1fr; padding: 1.3rem; }
  .form-field { grid-column: 1 / -1; }
  .form-field input, .form-field textarea { min-height: 44px; font-size: 16px; }
  .experience-page { min-height: calc(100vh - 74px); padding: 54px 0 70px; }
  .experience-heading { margin-bottom: 2.5rem; }
  .experience-list { padding-left: 1.6rem; }
  .experience-list::before { left: .3rem; }
  .experience-marker { left: -1.65rem; }
  .experience-card-content { padding: 1.3rem; }
  .experience-card-heading { flex-direction: column; gap: .35rem; }
  .experience-period { text-align: left; }
}

@media (max-width: 460px) {
  .terminal-bar p { display: none; }
  .terminal-bar { grid-template-columns: 1fr auto; }
  .landing-skip { grid-column: 2; }
  .brand { font-size: .9rem; }
  h1 { font-size: 1.8rem; }
  .eyebrow { font-size: 1.5rem; }
  .role { font-size: clamp(.76rem, 3.8vw, .95rem); }
  .hero-actions { flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .skill-card { min-width: 0; flex-basis: 100%; }
  .form-footer, footer { align-items: flex-start; flex-direction: column; }
  .form-footer .button { width: 100%; }
  footer { padding: 1.2rem 0; }
  pre { font-size: .62rem; }
}

@media (max-width: 360px) {
  .site-shell { padding: 0 16px; }
  .site-nav { left: 16px; right: 16px; }
  h1 { font-size: 1.65rem; }
  .role { font-size: .72rem; }
  #code-panel { padding: .8rem; }
  .contact-form { padding: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
    scroll-snap-type: none;
  }
  *, *::before, *::after { transition: none !important; }
  .terminal-cursor { animation: none; }
}
