*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}

:root {
  /* Palette — classic, clean, professional */
  --bg: #f8f9fa;
  --bg2: #ffffff;
  --bg3: #f1f3f5;
  --border: #dee2e6;
  --border2: #ced4da;

  /* Text — charcoal, never pure black */
  --navy: #212529;
  --slate: #343a40;
  --muted: #495057;
  --faint: #868e96;
  --xfaint: #ced4da;

  /* One accent — classic blue */
  --blue: #0056b3;
  --blue2: #004494;
  --blue-dim: rgba(0, 86, 179, 0.07);
  --blue-line: rgba(0, 86, 179, 0.16);
  --blue-glow: rgba(0, 86, 179, 0.22);

  /* Green for status only */
  --green: #2f9e44;
  --green-dim: rgba(47, 158, 68, 0.08);

  --sh: 0 1px 3px rgba(33, 37, 41, 0.06), 0 1px 2px rgba(33, 37, 41, 0.04);
  --sh-md: 0 4px 16px rgba(33, 37, 41, 0.08), 0 2px 6px rgba(33, 37, 41, 0.04);
  --sh-lg:
    0 12px 40px rgba(33, 37, 41, 0.12), 0 4px 12px rgba(33, 37, 41, 0.06);

  --sans: "Inter", sans-serif;
  --mono: "JetBrains Mono", monospace;
}

body {
  background: var(--bg);
  color: var(--slate);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── CURSOR ── */

/* ── CANVASES ── */

/* ── SCROLLBAR ── */
::-webkit-scrollbar {
  width: 3px;
}
::-webkit-scrollbar-track {
  background: var(--bg3);
}
::-webkit-scrollbar-thumb {
  background: var(--border2);
  border-radius: 2px;
}

/* ── PROGRESS ── */
#prog {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--blue);
  z-index: 6000;
  width: 0;
  transition: width 0.08s;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3000;
  height: 64px;
  padding: 0 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
nav.sd {
  box-shadow: var(--sh-md);
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  font-family: var(--sans);
}
.lm {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
}
.nav-links {
  display: flex;
  gap: 0.1rem;
}
.nl {
  padding: 0.38rem 0.85rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  font-family: var(--mono);
  transition:
    color 0.18s,
    background 0.18s;
}
.nl:hover,
.nl.on {
  color: var(--navy);
  background: var(--bg3);
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.resume-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.55rem 1.3rem;
  background: var(--blue);
  border: 1px solid var(--blue);
  border-radius: 10px;
  font-family: var(--mono);
  font-size: 0.82rem;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.3px;
  transition: all 0.2s;
  box-shadow: 0 2px 8px var(--blue-glow);
}
.resume-btn:hover {
  background: var(--navy);
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--blue-glow);
}
.status-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 13px;
  background: var(--green-dim);
  border: 1px solid rgba(22, 163, 74, 0.2);
  border-radius: 100px;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--green);
}
.sd-dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.3;
    transform: scale(1.5);
  }
}
.hire-btn {
  padding: 0.48rem 1.2rem;
  background: var(--navy);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 9px;
  text-decoration: none;
  border: 1.5px solid var(--navy);
  transition: all 0.2s;
}
.hire-btn:hover {
  background: var(--blue);
  border-color: var(--blue);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px var(--blue-glow);
}

/* HAMBURGER */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 3100;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ── MARQUEE ── */
.mq {
  background: #1e3a5f;
  overflow: hidden;
  padding: 0.55rem 0;
  margin-top: 64px;
  border-top: 1px solid rgba(37, 99, 235, 0.2);
  border-bottom: 1px solid rgba(37, 99, 235, 0.2);
}
.mq-track {
  display: flex;
  white-space: nowrap;
  animation: mqScroll 28s linear infinite;
}
.mq-track:hover {
  animation-play-state: paused;
}
@keyframes mqScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
.mq-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 2rem;
  font-family: var(--mono);
  font-size: 0.67rem;
  color: rgba(186, 218, 255, 0.82);
  letter-spacing: 1.8px;
  text-transform: uppercase;
}
.mq-dot {
  color: #60a5fa;
  font-size: 0.5rem;
}

/* ── HERO ── */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 64px - 30px);
  border-bottom: 1px solid var(--border);
}
.hero-left {
  padding: 5rem 3rem 5rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--border);
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  background: var(--blue-dim);
  border: 1px solid var(--blue-line);
  border-radius: 100px;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--blue);
  margin-bottom: 2rem;
  width: fit-content;
  animation: fadeUp 0.7s 0.1s both;
}
.badge-dot {
  width: 5px;
  height: 5px;
  background: var(--blue);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

/* HERO NAME */
.hero-name {
  font-size: clamp(2.8rem, 5.5vw, 5.5rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
  letter-spacing: -2.5px;
  margin-bottom: 0.8rem;
  animation: fadeUp 0.7s 0.2s both;
}
.hero-name .accent {
  color: var(--blue);
}

/* JAVA TYPEWRITER */
.java-tw {
  margin-bottom: 2rem;
  animation: fadeUp 0.7s 0.32s both;
}
.java-comment {
  color: #6b7280;
  font-style: italic;
  font-weight: 400;
}
.java-keyword {
  color: #7c3aed;
  font-weight: 600;
}
.java-type {
  color: #0369a1;
  font-weight: 600;
} /* teal-blue for type */
.java-var {
  color: var(--navy);
  font-weight: 500;
}
.java-op {
  color: var(--muted);
}
.java-str {
  color: #16a34a;
  font-weight: 500;
} /* green for string value */
.java-semi {
  color: var(--muted);
}
.java-line {
  font-family: var(--mono);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: nowrap;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.8rem 1.1rem;
  box-shadow: var(--sh);
  white-space: nowrap;
  overflow: hidden;
}
.tw-value {
  color: #16a34a;
  font-weight: 500;
}
.tw-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--blue);
  vertical-align: text-bottom;
  animation: blink 0.85s step-end infinite;
  margin-left: 1px;
}
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

/* Role text */
#tw-val {
  color: #16a34a;
  font-weight: 600;
}

.hero-desc {
  font-size: 0.97rem;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.8;
  max-width: 430px;
  margin-bottom: 2.5rem;
  animation: fadeUp 0.7s 0.44s both;
}
.hero-desc strong {
  color: var(--slate);
  font-weight: 600;
}
.hero-ctas {
  display: flex;
  gap: 0.85rem;
  animation: fadeUp 0.7s 0.56s both;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0.75rem 1.8rem;
  background: var(--blue);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 600;
  border-radius: 10px;
  text-decoration: none;
  border: none;
  transition: all 0.22s;
  font-family: var(--sans);
}
.btn-primary:hover {
  background: var(--blue2);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--blue-glow);
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0.75rem 1.8rem;
  background: transparent;
  color: var(--slate);
  font-size: 0.86rem;
  font-weight: 500;
  border-radius: 10px;
  text-decoration: none;
  border: 1.5px solid var(--border2);
  transition: all 0.22s;
  font-family: var(--sans);
}
.btn-ghost:hover {
  border-color: var(--navy);
  background: var(--bg3);
}

.hero-stats {
  display: flex;
  gap: 0;
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
  animation: fadeUp 0.7s 0.68s both;
}
.hstat {
  flex: 1;
}
.hstat:not(:last-child) {
  padding-right: 2rem;
  margin-right: 2rem;
  border-right: 1px solid var(--border);
}
.hstat-num {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
  letter-spacing: -1.5px;
}
.hstat-num sup {
  font-size: 1rem;
  color: var(--blue);
  font-weight: 700;
}
.hstat-lbl {
  font-size: 0.72rem;
  color: var(--faint);
  margin-top: 4px;
  font-family: var(--mono);
}

/* HERO RIGHT */
.hero-right {
  background: var(--bg2);
  padding: 4rem 3rem 4rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  animation: fadeUp 0.7s 0.3s both;
}

/* TERMINAL */
.terminal {
  background: #0d1117;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #21262d;
  box-shadow: 0 8px 36px rgba(0, 0, 0, 0.24);
}
.term-bar {
  background: #161b22;
  padding: 0.55rem 1rem;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid #21262d;
}
.tb {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.tbc-r {
  background: #ff5f57;
}
.tbc-y {
  background: #febc2e;
}
.tbc-g {
  background: #28c840;
}
.term-title {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: #484f58;
  margin-left: 0.4rem;
}
.term-body {
  padding: 1rem 1.1rem;
  min-height: 200px;
  font-family: var(--mono);
  font-size: 0.76rem;
  line-height: 1.75;
  color: #c9d1d9;
}
.tl {
  display: flex;
  gap: 0.45rem;
  margin-bottom: 0.05rem;
}
.tp {
  color: #2563eb;
}
.tc {
  color: #e6edf3;
}
.to {
  color: #3fb950;
}
.tco {
  color: #484f58;
  font-style: italic;
}
.t-cur {
  display: inline-block;
  width: 7px;
  height: 0.95em;
  background: #2563eb;
  vertical-align: text-bottom;
  animation: blink 0.85s step-end infinite;
}

/* SYSTEM CARD */
.sys-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.1rem 1.3rem;
  box-shadow: var(--sh);
}
.sys-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.9rem;
}
.sys-lbl {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--faint);
}
.sys-live {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--mono);
  font-size: 0.6rem;
  color: var(--green);
}
.live-dot {
  width: 5px;
  height: 5px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}
.metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}
.metric-lbl {
  font-family: var(--mono);
  font-size: 0.6rem;
  color: var(--faint);
  margin-bottom: 3px;
  letter-spacing: 0.5px;
}
.metric-bar {
  height: 4px;
  background: var(--bg3);
  border-radius: 2px;
  overflow: hidden;
}
.metric-fill {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blue), #60a5fa);
  transition: width 1.2s ease;
}
.metric-val {
  font-family: var(--mono);
  font-size: 0.63rem;
  color: var(--muted);
  margin-top: 2px;
}
.metric-val-big {
  font-family: var(--mono);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--blue);
  margin-top: 3px;
}

/* INFO CARDS */
.icard {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.15rem 1.3rem;
  box-shadow: var(--sh);
  transition:
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}
.icard:hover {
  transform: translateY(-4px) rotate(0.25deg);
  box-shadow: var(--sh-lg);
}
.icard::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2.5px;
  border-radius: 12px 12px 0 0;
}
.ic-blue::before {
  background: linear-gradient(90deg, var(--blue), #60a5fa);
}
.ic-purple::before {
  background: linear-gradient(90deg, #7c3aed, #a78bfa);
}
.ic-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.ic-lbl {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 0.35rem;
}
.ic-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
}
.ic-sub {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.2rem;
}
.ic-ico {
  font-size: 1.6rem;
  line-height: 1;
}
.ic-pills {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}
.icpill {
  padding: 2px 9px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 5px;
  font-family: var(--mono);
  font-size: 0.64rem;
  color: var(--muted);
}

/* ── SECTION BASE ── */
.sec {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 3rem;
  scroll-margin-top: 64px;
}
.sec-hd {
  margin-bottom: 3.5rem;
}
.kicker {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.kicker::before {
  content: "";
  width: 16px;
  height: 1.5px;
  background: var(--blue);
  border-radius: 1px;
}
.sec-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -1.5px;
  line-height: 1.1;
}
.sec-sub {
  font-size: 0.93rem;
  color: var(--muted);
  margin-top: 0.45rem;
  max-width: 480px;
}
.section-div {
  height: 1px;
  background: linear-gradient(90deg, var(--border), transparent);
  max-width: 1200px;
  margin: 0 auto;
}

/* ── ABOUT ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.about-p {
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--muted);
  margin-bottom: 0.9rem;
}
.about-p strong {
  color: var(--slate);
  font-weight: 600;
}
.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.4rem;
}
.pill {
  padding: 4px 13px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 7px;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--slate);
  transition: all 0.2s;
}
.pill:hover {
  background: var(--blue-dim);
  border-color: var(--blue-line);
  color: var(--blue);
  transform: translateY(-2px);
}

.bento {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.bcard {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.2rem;
  box-shadow: var(--sh);
  transition:
    transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.28s;
}
.bcard:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-md);
}
.bcard.wide {
  grid-column: span 2;
}
.bc-ico {
  font-size: 1.3rem;
  margin-bottom: 0.45rem;
}
.bc-lbl {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 0.2rem;
}
.bc-val {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
}
.bc-sub {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.18rem;
}
.bc-bar {
  height: 3px;
  background: var(--bg3);
  border-radius: 2px;
  margin-top: 0.7rem;
  overflow: hidden;
}
.bc-fill {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blue), #60a5fa);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.bc-fill.on {
  transform: scaleX(1);
}

/* ── EXPERIENCE ── */
.tl {
  position: relative;
  padding-left: 2.2rem;
}
.tl::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 0;
  width: 1.5px;
  background: linear-gradient(180deg, var(--blue), var(--border));
}
.tl-item {
  position: relative;
  margin-bottom: 3rem;
}
.tl-item::before {
  content: "";
  position: absolute;
  left: -2.2rem;
  top: 6px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--blue);
  box-shadow: 0 0 0 4px var(--blue-dim);
  transition: all 0.3s;
}
.tl-item:hover::before {
  background: var(--blue);
  box-shadow: 0 0 0 6px var(--blue-dim);
}
.tl-date {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--blue);
  letter-spacing: 0.5px;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.tl-badge {
  padding: 2px 8px;
  background: var(--blue-dim);
  border: 1px solid var(--blue-line);
  border-radius: 4px;
  font-size: 0.58rem;
  color: var(--blue);
}
.tl-role {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.3px;
  margin-bottom: 0.2rem;
}
.tl-co {
  font-size: 0.83rem;
  color: var(--muted);
  margin-bottom: 0.9rem;
}
.tl-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.3rem;
  box-shadow: var(--sh);
  transition: all 0.28s;
}
.tl-item:hover .tl-card {
  border-color: var(--blue-line);
  box-shadow: 0 4px 20px var(--blue-dim);
}
.tl-ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.tl-ul li {
  display: flex;
  gap: 10px;
  font-size: 0.86rem;
  line-height: 1.75;
  color: var(--muted);
}
.tl-ul li::before {
  content: "→";
  color: var(--blue);
  flex-shrink: 0;
  font-size: 0.68rem;
  margin-top: 4px;
}
.tl-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.85rem;
}
.tl-tag {
  font-family: var(--mono);
  font-size: 0.62rem;
  padding: 2px 9px;
  border-radius: 5px;
  background: var(--blue-dim);
  border: 1px solid var(--blue-line);
  color: var(--blue);
}

/* ── SKILLS — GROUPED TAGS ── */
.sk-groups {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.sk-group {
}
.sk-group-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 1.5px solid var(--border);
  letter-spacing: -0.1px;
}
.sk-tag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.sk-tag {
  padding: 4px 12px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 0.71rem;
  color: var(--muted);
  transition: all 0.18s;
}
.sk-tag:hover {
  background: var(--blue-dim);
  border-color: var(--blue-line);
  color: var(--blue);
  transform: translateY(-1px);
}

/* ── PROJECTS ── */
.pj-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.pj {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}
.pj:first-child {
  grid-column: span 2;
}
.pj:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-lg);
  border-color: var(--border2);
}
.pj-head {
  padding: 1.7rem 1.8rem 1.3rem;
  position: relative;
}
.pj:first-child .pj-head {
  background: linear-gradient(135deg, var(--blue-dim), transparent 70%);
}
.pj:nth-child(2) .pj-head {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.05), transparent);
}
.pj:nth-child(3) .pj-head {
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.05), transparent);
}
.pj:nth-child(4) .pj-head {
  background: linear-gradient(135deg, rgba(234, 88, 12, 0.05), transparent);
}
.pj-num {
  font-family: var(--mono);
  font-size: 0.58rem;
  color: var(--faint);
  margin-bottom: 0.4rem;
  letter-spacing: 1px;
}
.pj-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.3px;
}
.pj:first-child .pj-name {
  font-size: 1.45rem;
}

.pj:hover .pj-body {
  padding: 0.85rem 1.8rem 1.7rem;
}

.pj-img {
  width: 100%;
  height: 170px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 0.85rem;
  border: 1px solid var(--border);
}
.pj-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.pj-desc {
  font-size: 0.85rem;
  line-height: 1.75;
  color: var(--muted);
  margin-bottom: 0.85rem;
}
.pj-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.ptag {
  font-family: var(--mono);
  font-size: 0.63rem;
  padding: 2px 9px;
  border-radius: 5px;
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--muted);
  transition: all 0.22s;
}
.pj:hover .ptag {
  background: var(--blue-dim);
  border-color: var(--blue-line);
  color: var(--blue);
}

/* ── CONTACT ── */
.contact-wrap {
  background: var(--navy);
  border-radius: 20px;
  padding: 4.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4.5rem;
  position: relative;
  overflow: hidden;
}
.contact-wrap::before {
  content: "";
  position: absolute;
  top: -100px;
  left: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.2), transparent 70%);
  pointer-events: none;
}
.contact-wrap::after {
  content: "";
  position: absolute;
  bottom: -80px;
  right: -60px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(124, 58, 237, 0.12),
    transparent 70%
  );
  pointer-events: none;
}
.cl h3 {
  font-size: 2.1rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.18;
  letter-spacing: -1.2px;
  margin-bottom: 0.8rem;
}
.cl h3 span {
  color: #60a5fa;
}
.cl p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.8;
  margin-bottom: 1.8rem;
}
.c-links {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.clink {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.75rem 1.1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.83rem;
  transition: all 0.22s;
}
.clink:hover {
  background: rgba(37, 99, 235, 0.15);
  border-color: rgba(37, 99, 235, 0.35);
  color: #fff;
}
.ci {
  color: #60a5fa;
  width: 16px;
  text-align: center;
  font-size: 0.78rem;
  font-family: var(--mono);
}
.cv {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.64rem;
  color: rgba(255, 255, 255, 0.22);
}
.cf {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  position: relative;
  z-index: 1;
}
.f-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}
.fg {
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  transition: transform 0.2s ease;
}
.fg-focus {
  transform: translateY(-2px);
}
.fl {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  transition: color 0.2s;
}
.fg-focus .fl {
  color: rgba(96, 165, 250, 0.8);
}
.freq {
  color: #f87171;
  font-weight: 700;
}
.fi,
.fta {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9px;
  padding: 0.72rem 0.95rem;
  color: #fff;
  font-family: var(--sans);
  font-size: 0.87rem;
  outline: none;
  transition: all 0.25s ease;
}
.fi::placeholder,
.fta::placeholder {
  color: rgba(255, 255, 255, 0.2);
}
.fi:focus,
.fta:focus {
  border-color: rgba(37, 99, 235, 0.55);
  background: rgba(37, 99, 235, 0.06);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.fi-error {
  border-color: #f87171 !important;
  background: rgba(248, 113, 113, 0.06) !important;
}
.fi-error:focus {
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.15) !important;
}
.f-error {
  font-family: var(--sans);
  font-size: 0.72rem;
  color: #f87171;
  min-height: 1rem;
  margin-top: 2px;
  transition: all 0.2s;
}
.fta {
  resize: none;
  height: 108px;
}
.fsub {
  padding: 0.85rem;
  background: var(--blue);
  border: none;
  border-radius: 9px;
  color: #fff;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.fsub:hover {
  background: var(--blue2);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
}
.fsub:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}
.fsub:active {
  transform: scale(0.98);
}

/* Spinner */
.btn-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: inline-block;
}
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Success message */
.contact-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 300px;
  animation: fadeScale 0.5s ease both;
}
@keyframes fadeScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1.2rem;
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.35);
  animation: bounceIn 0.6s ease 0.2s both;
}
@keyframes bounceIn {
  0% {
    transform: scale(0);
  }
  60% {
    transform: scale(1.15);
  }
  100% {
    transform: scale(1);
  }
}
.contact-success h4 {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 0.5rem;
}
.contact-success p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  max-width: 320px;
}

/* ── FOOTER ── */
footer {
  text-align: center;
  padding: 1.8rem;
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--faint);
  border-top: 1px solid var(--border);
}
footer a {
  color: var(--blue);
  text-decoration: none;
}
footer .easter-hint {
  opacity: 0.35;
}

/* ── KONAMI ── */
#konami {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  background: rgba(13, 17, 23, 0.97);
}
#konami.show {
  display: flex;
  animation: fadeIn 0.4s both;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
#konami h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #60a5fa;
  letter-spacing: -1.5px;
}
#konami p {
  font-family: var(--mono);
  font-size: 0.83rem;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  max-width: 420px;
  line-height: 1.8;
}
#konami code {
  color: #3fb950;
  background: rgba(63, 185, 80, 0.1);
  padding: 1px 7px;
  border-radius: 4px;
}
#konami-close {
  padding: 0.7rem 2rem;
  background: var(--blue);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 700;
}
#konami-close:hover {
  background: var(--blue2);
}

/* ── REVEAL ── */
.reveal {
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.reveal.will-animate {
  opacity: 0;
  transform: translateY(18px);
}
.reveal.vis {
  opacity: 1 !important;
  transform: none !important;
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ── TABLET (max 960px) ── */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-right {
    display: flex;
    padding: 2rem 1.5rem;
    border-right: none;
    border-top: 1px solid var(--border);
  }
  .hero-left {
    padding: 3rem 1.5rem;
    border-right: none;
  }
  .hero-name {
    font-size: clamp(2.2rem, 7vw, 3.5rem);
    letter-spacing: -1.5px;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .sk-groups {
    grid-template-columns: 1fr 1fr;
  }
  .contact-wrap {
    grid-template-columns: 1fr;
    padding: 2.5rem 1.8rem;
    gap: 2rem;
  }
  nav {
    padding: 0 1.25rem;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--sh-lg);
    z-index: 2999;
    gap: 0.2rem;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links .nl {
    padding: 0.65rem 1rem;
    font-size: 0.85rem;
    border-radius: 8px;
  }
  .hamburger {
    display: flex;
  }
  .resume-btn {
    display: none;
  }
  .sec {
    padding: 4rem 1.5rem;
  }
  .pj-grid {
    grid-template-columns: 1fr;
  }
  .pj:first-child {
    grid-column: span 1;
  }
  .hero-stats {
    flex-wrap: wrap;
    gap: 1.5rem;
  }
  .hstat:not(:last-child) {
    border-right: none;
    padding-right: 0;
    margin-right: 0;
  }
  .bento {
    grid-template-columns: 1fr;
  }
  .bcard.wide {
    grid-column: span 1;
  }
  #engineering .bento,
  div[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  .f-row {
    grid-template-columns: 1fr;
  }
}

/* ── MOBILE (max 600px) ── */
@media (max-width: 600px) {
  .hero-left {
    padding: 2rem 1rem;
  }
  .hero-right {
    padding: 1.5rem 1rem;
    flex-direction: column;
  }
  .hero-name {
    font-size: clamp(1.8rem, 9vw, 2.8rem);
    letter-spacing: -1px;
  }
  .hero-badge {
    font-size: 0.6rem;
    padding: 4px 10px;
  }
  .hero-desc {
    font-size: 0.88rem;
    max-width: 100%;
  }
  .hero-ctas {
    flex-direction: column;
    gap: 0.6rem;
  }
  .btn-primary,
  .btn-ghost {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
  .hero-stats {
    flex-direction: column;
    gap: 1rem;
  }
  .hstat {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
  }
  .hstat-num {
    font-size: 1.8rem;
  }

  nav {
    height: 56px;
    padding: 0 1rem;
  }
  .nav-links {
    top: 56px;
  }
  .logo {
    font-size: 0.85rem;
  }
  .lm {
    width: 26px;
    height: 26px;
    font-size: 0.6rem;
  }
  .hire-btn {
    font-size: 0.7rem;
    padding: 0.4rem 0.9rem;
  }
  .status-badge {
    font-size: 0.6rem;
    padding: 3px 10px;
  }

  .mq {
    margin-top: 56px;
  }
  .mq-item {
    padding: 0 1.2rem;
    font-size: 0.58rem;
  }

  .sec {
    padding: 3rem 1rem;
  }
  .sec-title {
    font-size: clamp(1.4rem, 6vw, 2rem);
  }
  .sk-groups {
    grid-template-columns: 1fr;
  }

  .contact-wrap {
    padding: 1.8rem 1.2rem;
    border-radius: 14px;
  }
  .cl h3 {
    font-size: 1.5rem;
  }
  .fsub {
    padding: 0.75rem;
  }

  .hero-contact {
    padding: 20px 18px 16px;
  }
  .hero-contact h3 {
    font-size: 17px;
  }
  .contact-item {
    padding: 10px 12px;
  }
  .contact-link {
    font-size: 0.82rem;
  }
  .copy-hint {
    font-size: 0.58rem;
  }

  .sys-card {
    padding: 0.9rem 1rem;
  }
  .icard {
    padding: 0.9rem 1rem;
  }
  .ic-pills {
    gap: 0.25rem;
  }
  .icpill {
    font-size: 0.58rem;
    padding: 1px 7px;
  }

  .tl-card {
    padding: 1rem;
  }
  .tl-ul li {
    font-size: 0.8rem;
  }
  .tl-role {
    font-size: 1rem;
  }

  .pj-head {
    padding: 1.2rem 1.3rem 1rem;
  }
  .pj-body {
    padding: 0.7rem 1.3rem 1.3rem;
  }

  footer {
    font-size: 0.58rem;
    padding: 1.4rem 0.8rem;
  }
}

/* HERO CONTACT — dark card, sits in hero-right */
.hero-contact {
  background: linear-gradient(145deg, #0b1220, #111a30);
  padding: 28px 28px 20px;
  border-radius: 16px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35);
  color: white;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}
.hero-contact::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #60a5fa, #93c5fd);
}
.hero-contact:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
}
.hero-contact h3 {
  margin-bottom: 18px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.contact-item {
  margin-bottom: 10px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.25s ease;
  cursor: pointer;
  position: relative;
}
.contact-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(96, 165, 250, 0.3);
  transform: translateX(4px);
}
.contact-item:active {
  transform: scale(0.98);
}

.contact-label {
  font-size: 12px;
  opacity: 0.55;
  margin-bottom: 4px;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-link {
  font-weight: 600;
  color: white;
  text-decoration: none;
  font-size: 0.92rem;
}
.contact-link:hover {
  color: #60a5fa;
}

.copy-hint {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.3);
  font-family: var(--mono);
  transition: color 0.2s;
}
.contact-item:hover .copy-hint {
  color: rgba(255, 255, 255, 0.6);
}

.copy-toast {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.72rem;
  color: #3fb950;
  font-family: var(--mono);
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.2s;
}
.copy-toast.show {
  opacity: 1;
}
