:root {
  color-scheme: dark;
  --bg: #000000;
  --panel: rgba(0, 18, 8, 0.72);
  --panel-strong: rgba(0, 0, 0, 0.88);
  --green: #00ff66;
  --green-soft: #22c55e;
  --green-dim: rgba(0, 255, 102, 0.58);
  --green-faint: rgba(0, 255, 102, 0.12);
  --green-border: rgba(0, 255, 102, 0.55);
  --text: #c7ffd9;
  --muted: rgba(199, 255, 217, 0.62);
  --line: rgba(0, 255, 102, 0.16);
  --shadow: 0 0 36px rgba(0, 255, 102, 0.22);
  --max: 1120px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  background: #000;
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  background: linear-gradient(rgba(255,255,255,0.02) 50%, rgba(0,0,0,0.08) 50%);
  background-size: 100% 4px;
  mix-blend-mode: screen;
  opacity: .28;
}

a { color: inherit; text-decoration: none; }

img { display: block; max-width: 100%; }

button, input, textarea {
  font: inherit;
}

.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;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: .75rem;
  z-index: 100;
  transform: translateY(-150%);
  border: 1px solid var(--green);
  background: #000;
  color: var(--green);
  padding: .65rem .9rem;
}

.skip-link:focus { transform: translateY(0); }

.grid-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0,255,102,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,255,102,.035) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: linear-gradient(to bottom, #000 0%, #000 78%, transparent 100%);
}

.matrix-layer {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.matrix-token {
  position: absolute;
  top: -5rem;
  color: rgba(0,255,102,.45);
  font-size: .82rem;
  text-shadow: 0 0 12px rgba(0,255,102,.36);
  animation: matrixFall linear infinite;
}

@keyframes matrixFall {
  to { transform: translateY(calc(100vh + 8rem)); }
}

.green-orb {
  position: fixed;
  z-index: 0;
  width: 34rem;
  height: 34rem;
  border-radius: 999px;
  background: rgba(0, 255, 102, .11);
  filter: blur(80px);
  pointer-events: none;
  animation: orbFloat 6s ease-in-out infinite;
}

.green-orb-one { top: 18%; left: 18%; }
.green-orb-two { right: -12rem; bottom: 12%; animation-delay: -2.2s; opacity: .7; }

@keyframes orbFloat {
  50% { transform: translate3d(0, -26px, 0) scale(1.08); }
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.05rem clamp(1rem, 5vw, 7rem);
  border-bottom: 1px solid transparent;
  background: rgba(0, 0, 0, .72);
  transition: border-color .25s ease, box-shadow .25s ease, backdrop-filter .25s ease;
}

.site-header.scrolled {
  border-color: rgba(0,255,102,.22);
  box-shadow: 0 0 30px rgba(0,255,102,.14);
  backdrop-filter: blur(16px);
}

.brand {
  color: var(--green);
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  letter-spacing: .02em;
  white-space: nowrap;
}

.brand-bracket { color: #fff; }

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 3vw, 2.4rem);
}

.site-nav a {
  color: var(--green);
  font-weight: 700;
  transition: color .2s ease, text-shadow .2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: #9cffbc;
  text-shadow: 0 0 16px rgba(0,255,102,.65);
  outline: none;
}

.menu-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--green-border);
  background: #000;
  color: var(--green);
  place-items: center;
  padding: .55rem;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--green);
  margin: 4px 0;
}

.section-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  position: relative;
  isolation: isolate;
}

.hero {
  padding: 8rem 1.25rem 4rem;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(100%, 980px);
  margin: 0 auto;
  text-align: center;
}

.terminal-icon {
  width: 8rem;
  height: 8rem;
  margin: 0 auto 2rem;
  position: relative;
  border: 2px solid var(--green);
  border-radius: .65rem;
  box-shadow: var(--shadow);
  animation: pulseGlow 2s ease-in-out infinite;
}

.terminal-icon div {
  position: absolute;
  inset: .55rem;
  display: grid;
  place-items: center;
  background: #000;
  border-radius: .35rem;
}

.terminal-icon svg {
  width: 3.4rem;
  height: 3.4rem;
  color: var(--green);
  filter: drop-shadow(0 0 12px rgba(0,255,102,.5));
}

@keyframes pulseGlow {
  50% { box-shadow: 0 0 46px rgba(0,255,102,.44); }
}

.code-intro {
  width: min(100%, 450px);
  margin: 0 auto 2.1rem;
  text-align: left;
  color: var(--green);
  font-size: clamp(.95rem, 1.4vw, 1.05rem);
}

.code-intro p {
  margin: .15rem 0;
  white-space: nowrap;
}

.code-intro span {
  display: inline-block;
  width: 2.5rem;
  color: rgba(148, 163, 184, .58);
  text-align: right;
  margin-right: 1.1rem;
}

.code-intro code {
  color: #48ff91;
  text-shadow: 0 0 14px rgba(0,255,102,.25);
}

.hero h1 {
  margin: 0 0 .45rem;
  color: var(--green);
  font-size: clamp(2.6rem, 7vw, 5.7rem);
  line-height: 1.04;
  letter-spacing: -.055em;
  text-shadow: 0 0 28px rgba(0,255,102,.34);
}

.hero-title {
  white-space: nowrap;
}

.terminal-prefix {
  display: inline-block;
}

.typing-shell {
  display: inline-block;
  min-width: 16ch;
  text-align: left;
  white-space: nowrap;
  vertical-align: baseline;
}

.typing-name {
  display: inline;
}

.typing-caret {
  display: inline-block;
  margin-left: .02em;
  animation: cursorBlink .95s steps(1, end) infinite;
  will-change: opacity;
}

@keyframes cursorBlink {
  50% { opacity: .12; }
}

.hero-role {
  margin: 0 0 2rem;
  color: rgba(125, 255, 169, .73);
  font-size: clamp(1.1rem, 2.2vw, 1.7rem);
}

.hero-comments {
  margin: 0 auto 2.7rem;
  max-width: 680px;
  color: rgba(0,255,102,.52);
  font-size: clamp(.82rem, 1.4vw, .95rem);
}

.social-row {
  display: flex;
  justify-content: center;
  gap: 1.45rem;
  margin-bottom: 3rem;
}

.social-row a {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border: 2px solid var(--green);
  border-radius: .25rem;
  color: var(--green);
  background: rgba(0,0,0,.42);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.social-row svg {
  width: 1.45rem;
  height: 1.45rem;
}

.social-row a:hover,
.social-row a:focus-visible {
  transform: translateY(-5px) scale(1.08);
  box-shadow: var(--shadow);
  background: var(--green-faint);
  outline: none;
}

.terminal-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 3.8rem;
  padding: .95rem 2rem;
  border: 2px solid var(--green);
  border-radius: .25rem;
  color: var(--green);
  background: rgba(0,0,0,.6);
  font-weight: 800;
  letter-spacing: .01em;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.terminal-button:hover,
.terminal-button:focus-visible {
  transform: scale(1.04);
  background: var(--green-faint);
  box-shadow: var(--shadow);
  outline: none;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1.75rem;
  z-index: 4;
  width: 2.1rem;
  height: 2.1rem;
  color: rgba(0,255,102,.55);
  transform: translateX(-50%);
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  50% { transform: translate(-50%, 10px); }
}

.section-pad {
  position: relative;
  z-index: 2;
  padding: clamp(5.5rem, 8vw, 8rem) clamp(1.25rem, 5vw, 4rem);
}

.section-pad > * {
  max-width: var(--max);
  margin-inline: auto;
}

.section-darker {
  background: rgba(0, 18, 8, .45);
  border-block: 1px solid var(--line);
}

.section-heading {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-heading p {
  margin: 0 0 .5rem;
  color: var(--green-dim);
  font-weight: 700;
}

.section-heading h2 {
  margin: 0;
  color: var(--green);
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.05;
  text-shadow: 0 0 24px rgba(0,255,102,.22);
}

.section-heading span {
  display: block;
  width: 6rem;
  height: 2px;
  margin: 1.2rem auto 0;
  background: var(--green);
  box-shadow: var(--shadow);
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr);
  gap: 1.6rem;
  align-items: stretch;
}

.terminal-panel,
.project-card,
.contact-form,
.profile-card,
.feature-card {
  border: 1px solid var(--green-border);
  background: var(--panel);
  box-shadow: 0 0 22px rgba(0,255,102,.08);
}

.window-bar {
  min-height: 2.8rem;
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .7rem .9rem;
  border-bottom: 1px solid var(--line);
  background: rgba(0,0,0,.72);
  color: rgba(0,255,102,.68);
}

.window-bar i {
  width: .7rem;
  height: .7rem;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px rgba(0,255,102,.45);
}

.window-bar span {
  margin-left: .35rem;
  font-size: .8rem;
}

.terminal-copy {
  padding: clamp(1.25rem, 3vw, 2rem);
}

.terminal-copy p {
  margin: .55rem 0;
  color: var(--green-dim);
}

.terminal-copy b { color: var(--green); font-weight: 800; }
.terminal-copy em { color: #d9ffe4; font-style: normal; }
.terminal-copy a { color: var(--green); border-bottom: 1px solid rgba(0,255,102,.45); }

.profile-card {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.portrait {
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  overflow: hidden;
  background: radial-gradient(circle, rgba(0,255,102,.22), transparent 60%);
  margin-bottom: 1rem;
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 17%;
  filter: grayscale(.18) contrast(1.05) brightness(.9);
}

.profile-card p {
  margin: 0;
  color: var(--green);
  font-size: 1.2rem;
  font-weight: 800;
}

.profile-card span {
  color: var(--green-dim);
  font-size: .88rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
  margin-top: 1.6rem;
}

.feature-card {
  padding: 1.35rem;
  transition: transform .2s ease, box-shadow .2s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.feature-card > span {
  color: var(--green);
  font-size: .85rem;
}

.feature-card h3 {
  margin: .5rem 0 .45rem;
  color: #ecfff2;
  font-size: 1.1rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.3rem;
}

.project-card {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}

.project-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow);
}

.card-body {
  padding: 1.35rem;
}

.date {
  margin: 0 0 .75rem;
  color: var(--green);
  font-size: .78rem;
}

.project-card h3 {
  margin: 0;
  color: #f1fff5;
  font-size: 1.2rem;
}

.project-card h4 {
  margin: .3rem 0 .95rem;
  color: var(--green-dim);
  font-size: .86rem;
}

.project-card p:not(.date) {
  color: var(--muted);
  margin: 0 0 1.2rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.tag-row span,
.tech-cloud span {
  border: 1px solid rgba(0,255,102,.38);
  background: rgba(0,255,102,.08);
  color: var(--green);
  padding: .35rem .6rem;
  font-size: .76rem;
}

.skills-layout {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 1.4rem;
}

.skill-bars {
  display: grid;
  gap: 1rem;
}

.skill-bars > div {
  border: 1px solid var(--green-border);
  background: var(--panel);
  padding: 1rem;
}

.skill-bars p {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 .75rem;
  color: #edfff2;
}

.skill-bars b { color: var(--green); }

.skill-bars i {
  display: block;
  height: .65rem;
  border: 1px solid var(--green-border);
  background: rgba(0,0,0,.72);
  position: relative;
  overflow: hidden;
}

.skill-bars i::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--level);
  background: linear-gradient(90deg, var(--green), rgba(0,255,102,.35));
  box-shadow: var(--shadow);
}

.tech-cloud {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: .75rem;
  border: 1px solid var(--green-border);
  background: var(--panel);
  padding: 1.2rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 1.4rem;
}

.contact-form {
  padding: 0 0 1.2rem;
}

.contact-form label {
  display: grid;
  gap: .45rem;
  color: var(--green-dim);
  margin: 1rem 1.2rem 0;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(0,255,102,.36);
  background: rgba(0,0,0,.78);
  color: #edfff2;
  padding: .85rem .9rem;
  resize: vertical;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(0,255,102,.1);
}

.contact-form .terminal-button {
  margin: 1.2rem 1.2rem 0;
  width: calc(100% - 2.4rem);
}

.honeypot {
  position: absolute !important;
  left: -9999px !important;
}

.form-status {
  min-height: 1.5rem;
  margin: .8rem 1.2rem 0;
  color: var(--green-dim);
}

.site-footer {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 2rem clamp(1rem, 5vw, 7rem);
  border-top: 1px solid var(--line);
  background: #000;
  color: var(--green-dim);
}

.site-footer p { margin: 0; text-align: center; }
.text-link { color: var(--green); }

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .65s ease, transform .65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

@media (max-width: 900px) {
  .site-header {
    padding: .9rem 1rem;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 4.45rem;
    left: 1rem;
    right: 1rem;
    display: grid;
    gap: .8rem;
    padding: 1rem;
    background: rgba(0,0,0,.95);
    border: 1px solid var(--green-border);
    box-shadow: var(--shadow);
    transform: translateY(-16px);
    opacity: 0;
    pointer-events: none;
  }

  .site-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .about-layout,
  .skills-layout,
  .contact-grid,
  .project-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .profile-card {
    max-width: 390px;
    width: 100%;
  }
}

@media (max-width: 560px) {
  .hero {
    padding-top: 6.5rem;
  }

  .terminal-icon {
    width: 5.7rem;
    height: 5.7rem;
    margin-bottom: 1.4rem;
  }

  .terminal-icon svg {
    width: 2.45rem;
    height: 2.45rem;
  }

  .code-intro {
    font-size: .78rem;
    width: min(100%, 340px);
  }

  .code-intro span {
    width: 1.4rem;
    margin-right: .55rem;
  }

  .hero h1 {
    font-size: clamp(1.75rem, 8.6vw, 3.4rem);
    letter-spacing: -.065em;
  }

  .hero-role {
    font-size: 1rem;
  }

  .hero-comments {
    font-size: .78rem;
  }

  .social-row {
    gap: .8rem;
    margin-bottom: 2rem;
  }

  .social-row a {
    width: 2.75rem;
    height: 2.75rem;
  }

  .terminal-button {
    width: 100%;
    max-width: 310px;
  }

  .site-footer {
    flex-direction: column;
    text-align: center;
  }
}



