:root {
  --bg: #08111f;
  --bg-soft: #0d1728;
  --paper: rgba(15, 23, 42, 0.78);
  --paper-strong: #111c31;
  --ink: #f8fafc;
  --muted: #94a3b8;
  --line: rgba(148, 163, 184, 0.18);
  --accent: #38bdf8;
  --accent-2: #a78bfa;
  --green: #5eead4;
  --gray: rgba(255,255,255,.045);
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
  --sans: 'Manrope', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --shadow: 0 24px 80px rgba(0, 0, 0, .32);
  --shadow-small: 0 14px 36px rgba(0, 0, 0, .22);
  --radius: 28px;
  --radius-sm: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(56, 189, 248, .18), transparent 34%),
    radial-gradient(circle at 82% 8%, rgba(167, 139, 250, .15), transparent 28%),
    linear-gradient(180deg, #08111f 0%, #0b1220 52%, #07101d 100%);
  color: var(--ink);
  font-family: var(--sans);
  overflow-x: hidden;
}
body::selection { background: var(--accent); color: #06101d; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
.container { width: min(1120px, calc(100% - 36px)); margin-inline: auto; }

.cursor-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(8, 17, 31, .74);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.nav { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand, .nav-links, .sound-button, .menu-button, .terminal-trigger, .to-top { font-family: var(--mono); font-weight: 700; letter-spacing: .03em; }
.brand {
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  color: #e0f2fe;
}
.nav-links { display: flex; align-items: center; gap: 14px; font-size: 13px; color: #b7c4d8; }
.nav-links span { color: rgba(148,163,184,.32); }
.nav-links a { transition: color .18s; }
.nav-links a:hover { color: var(--ink); }
.sound-button, .menu-button, .to-top {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  box-shadow: var(--shadow-small);
  padding: 9px 12px;
  cursor: pointer;
}
.menu-button { display: none; }
.to-top { position: fixed; right: 22px; bottom: 22px; z-index: 30; opacity: 0; pointer-events: none; transition: .2s; color: var(--accent); }
.to-top.show { opacity: 1; pointer-events: auto; }
.terminal-trigger {
  position: fixed;
  right: 18px;
  top: 120px;
  z-index: 15;
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, .82);
  box-shadow: var(--shadow-small);
  padding: 12px;
  cursor: pointer;
  color: var(--accent);
}
.terminal-trigger span { font-size: 10px; color: var(--muted); }
.terminal-trigger strong { font-size: 20px; }

.section-panel { position: relative; }
.hero { min-height: calc(100vh - 76px); padding: 62px 0 82px; display: grid; place-items: center; }
.code-comment {
  position: absolute;
  top: 54px;
  left: 0;
  font-family: var(--mono);
  font-size: 12px;
  color: rgba(148,163,184,.42);
  line-height: 1.65;
}
.code-comment p, .right-meta p { margin: 0; }
.line-numbers {
  position: absolute;
  top: 90px;
  right: 60px;
  display: grid;
  gap: 8px;
  font-family: var(--mono);
  color: rgba(148,163,184,.18);
  font-weight: 700;
}
.hero-center { text-align: center; max-width: 920px; padding-top: 72px; position: relative; z-index: 2; }
.availability, .status-line {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-weight: 700;
  color: var(--green);
  border: 1px solid rgba(94,234,212,.24);
  border-radius: 999px;
  padding: 9px 14px;
  background: rgba(20, 184, 166, .08);
}
.availability i, .status-line i { width: 8px; height: 8px; border-radius: 999px; background: var(--green); display: inline-block; box-shadow: 0 0 18px var(--green); }
h1 {
  position: relative;
  margin: 24px 0 14px;
  font-size: clamp(52px, 10vw, 124px);
  line-height: .9;
  letter-spacing: -.065em;
  font-weight: 800;
}
h1 span { display: block; }
h1 em {
  display: block;
  font-style: normal;
  color: transparent;
  background: linear-gradient(120deg, #e0f2fe, #a78bfa 58%, #5eead4);
  -webkit-background-clip: text;
  background-clip: text;
  opacity: .55;
  transform: translateY(.02em);
}
.jsx-role { font-family: var(--mono); font-size: clamp(14px, 2vw, 20px); margin: 0; color: #dbeafe; }
.jsx-role b { font-weight: 700; color: var(--accent); }
.tagline { font-family: var(--mono); margin: 16px auto 0; color: #b7c4d8; max-width: 760px; line-height: 1.7; }
.pill-row, .social-row, .hero-actions, .stack, .contact-cards { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.pill-row { margin-top: 28px; }
.pill-row span, .stack span {
  font-family: var(--mono);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.055);
  color: #cbd5e1;
  padding: 10px 13px;
  font-size: 12px;
  font-weight: 700;
}
.social-row { margin-top: 24px; }
.social-row a {
  min-width: 108px;
  min-height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.055);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  transition: transform .18s, background .18s, border-color .18s;
}
.social-row a:hover, .primary-cta:hover, .secondary-cta:hover, .contact-card:hover, .brand:hover, button:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, .42);
  background: rgba(56, 189, 248, .09);
}
.hero-actions { margin-top: 28px; }
.primary-cta, .secondary-cta {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 15px 20px;
  font-family: var(--mono);
  font-weight: 800;
  transition: transform .18s, background .18s, border-color .18s;
}
.primary-cta { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #04111f; border-color: transparent; }
.secondary-cta { background: rgba(255,255,255,.055); color: var(--ink); }
.hero-meta { position: absolute; font-family: var(--mono); color: rgba(148,163,184,.58); font-weight: 700; font-size: 12px; }
.left-meta { left: 0; bottom: 78px; writing-mode: vertical-rl; transform: rotate(180deg); }
.right-meta { right: 0; bottom: 56px; text-align: right; line-height: 1.8; opacity: .5; }

.content-section { padding: 72px 0; }
.section-title { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; border-bottom: 1px solid var(--line); padding-bottom: 18px; }
.section-title span, .terminal-label, .project-type, .timeline-date { font-family: var(--mono); font-weight: 700; color: var(--accent); font-size: 12px; letter-spacing: .08em; }
h2 { font-size: clamp(34px, 5vw, 60px); line-height: 1; margin: 0; letter-spacing: -.055em; font-weight: 800; }
.about-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 22px; }
.card-shadow { border: 1px solid var(--line); background: var(--paper); box-shadow: var(--shadow); border-radius: var(--radius); backdrop-filter: blur(18px); }
.about-copy { padding: 28px; font-size: 16px; line-height: 1.78; color: #d5deeb; }
.about-copy p:first-child { font-size: 21px; font-weight: 700; color: var(--ink); letter-spacing: -.025em; }
.stats-card { padding: 22px; display: grid; gap: 14px; }
.stats-card div { border: 1px solid var(--line); border-radius: 20px; padding: 18px; background: var(--gray); }
.stats-card strong { display: block; font-size: 42px; line-height: .95; letter-spacing: -.05em; color: #e0f2fe; }
.stats-card span { font-family: var(--mono); font-weight: 700; color: var(--muted); }

.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.single-project { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.featured-project { min-height: 320px; }
.project-card { position: relative; padding: 28px; min-height: 420px; display: flex; flex-direction: column; }
.project-index { position: absolute; top: 18px; right: 22px; font-family: var(--mono); font-size: 42px; font-weight: 800; color: rgba(56,189,248,.18); }
.project-card h3 { font-size: 30px; line-height: 1.05; letter-spacing: -.04em; margin: 22px 0 18px; max-width: 84%; }
.project-card p { color: #d5deeb; line-height: 1.7; }
.focus-box { margin: auto 0 18px; border: 1px solid rgba(56,189,248,.22); border-radius: 18px; padding: 13px; font-family: var(--mono); font-weight: 700; color: #bae6fd; background: rgba(56, 189, 248, .07); }
.stack { justify-content: flex-start; }
.stack span { font-size: 11px; padding: 8px 10px; }
.timeline { display: grid; gap: 18px; }
.timeline-item { padding: 26px; }
.timeline-item h3 { font-size: clamp(26px, 3vw, 40px); margin: 10px 0; letter-spacing: -.045em; line-height: 1.06; }
.timeline-item p { font-size: 16px; color: #d5deeb; line-height: 1.7; }
.timeline-item a { display: inline-block; margin-top: 10px; font-family: var(--mono); font-weight: 800; color: var(--accent); }
.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.skill-card { padding: 24px; min-height: 210px; }
.skill-card h3 { font-family: var(--mono); font-size: 16px; margin: 0 0 38px; color: var(--accent); }
.skill-card p { font-size: 19px; line-height: 1.45; font-weight: 700; letter-spacing: -.025em; }
.terminal-section { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 30px; }
.terminal-section h2 { font-size: clamp(28px, 4vw, 46px); }
pre { margin: 0; background: rgba(3, 7, 18, .72); color: #ccfbf1; border: 1px solid var(--line); border-radius: 20px; padding: 22px; overflow: auto; font: 700 14px/1.75 var(--mono); }
.marquee { margin: 72px 0 20px; overflow: hidden; background: rgba(255,255,255,.05); color: #cbd5e1; border-block: 1px solid var(--line); }
.marquee-track { display: flex; width: max-content; gap: 40px; padding: 18px 0; animation: marquee 24s linear infinite; font-family: var(--mono); font-weight: 800; white-space: nowrap; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.contact-section { position: relative; padding: 92px 0 84px; text-align: center; overflow: hidden; }
.thank-you { position: absolute; inset: 32px 0 auto; z-index: -1; font-weight: 900; font-size: clamp(76px, 16vw, 180px); line-height: .8; letter-spacing: -.11em; color: rgba(255,255,255,.025); }
.contact-section h2 {
  font-size: clamp(34px, 5vw, 58px);
  max-width: 920px;
  margin-inline: auto;
  line-height: 1.05;
  letter-spacing: -.055em;
}
mark {
  display: inline-block;
  background: linear-gradient(135deg, rgba(56,189,248,.95), rgba(167,139,250,.95));
  color: #07111f;
  padding: .01em .14em .055em;
  border-radius: 16px;
  transform: translateY(-.02em);
  box-shadow: 0 18px 50px rgba(56,189,248,.14);
}
.contact-section > p { font-size: 17px; color: var(--muted); max-width: 640px; margin: 22px auto 34px; line-height: 1.65; }
.contact-cards { margin-top: 26px; }
.contact-card {
  width: min(236px, 100%);
  min-height: 142px;
  display: grid;
  place-items: center;
  gap: 6px;
  padding: 20px;
  cursor: pointer;
  transition: transform .18s, background .18s, border-color .18s;
}
.contact-card strong { font-family: var(--mono); font-size: 16px; text-transform: uppercase; color: #e0f2fe; }
.contact-card span { color: var(--muted); font-size: 14px; }
.copy-email { appearance: none; }
.status-line { margin-top: 38px; }
.footer { display: flex; justify-content: space-between; gap: 20px; padding: 26px 0; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 12px; font-weight: 800; color: var(--muted); }

.command-modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: rgba(2,6,23,.68); padding: 20px; backdrop-filter: blur(10px); }
.command-modal[hidden] { display: none; }
.command-box { width: min(560px, 100%); background: var(--paper-strong); padding: 16px; display: grid; gap: 10px; border-radius: 24px; }
.command-head { display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.close-command { border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.07); font-family: var(--mono); font-weight: 800; cursor: pointer; padding: 7px 10px; }
.command-box a { padding: 14px; border: 1px solid var(--line); border-radius: 16px; font-family: var(--mono); font-weight: 800; color: #cbd5e1; }
.command-box a:hover { background: rgba(56, 189, 248, .09); color: var(--ink); }
.toast { position: fixed; right: 22px; bottom: 28px; transform: translateY(120px); background: #0f172a; color: var(--ink); padding: 13px 16px; font-family: var(--mono); font-weight: 800; z-index: 80; transition: .2s; border: 1px solid var(--line); border-radius: 999px; max-width: calc(100% - 44px); }
.toast.show { transform: translateY(0); }

.profile-visual {
  position: absolute;
  right: 34px;
  top: 108px;
  width: 162px;
  height: 162px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(56,189,248,.22), rgba(167,139,250,.18));
  z-index: 1;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 24px 70px rgba(0,0,0,.34), 0 0 0 8px rgba(255,255,255,.035);
}
.profile-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 24%, transparent 38%, rgba(8,17,31,.16) 100%);
  pointer-events: none;
}
.profile-label {
  display: none;
}
.profile-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 26%;
  transform: scale(1.08);
  filter: saturate(.88) contrast(1.04) brightness(.96);
  display: block;
}

@media (max-width: 980px) {
  .nav-links { display: none; position: absolute; left: 16px; right: 16px; top: 84px; flex-direction: column; align-items: flex-start; padding: 18px; border: 1px solid var(--line); border-radius: 22px; background: rgba(15,23,42,.96); box-shadow: var(--shadow-small); }
  .nav-links.open { display: flex; }
  .nav-links span { display: none; }
  .menu-button { display: block; }
  .sound-button { display: none; }
  .terminal-trigger { display: none; }
  .code-comment, .line-numbers, .hero-meta { display: none; }
  .hero { display: block; min-height: auto; padding: 42px 0 70px; }
  .hero-center { padding-top: 24px; }
  .about-grid, .project-grid, .skills-grid, .terminal-section { grid-template-columns: 1fr; }
  .project-card { min-height: auto; }
  .footer { flex-direction: column; }
  .profile-visual {
    position: relative;
    right: auto;
    top: auto;
    bottom: auto;
    width: 154px;
    height: 154px;
    margin: 6px auto 0;
  }
}
@media (max-width: 560px) {
  .container { width: min(100% - 22px, 1180px); }
  .brand { font-size: 13px; }
  .nav { height: 68px; }
  .availability, .status-line { font-size: 11px; padding: 8px 11px; }
  h1 { font-size: clamp(42px, 15vw, 64px); line-height: .98; letter-spacing: -.052em; margin-top: 18px; }
  .jsx-role { font-size: 12px; line-height: 1.6; }
  .tagline { font-size: 12px; line-height: 1.65; }
  .pill-row span, .stack span { font-size: 10px; padding: 8px 10px; }
  .primary-cta, .secondary-cta { width: 100%; text-align: center; padding: 13px 16px; }
  .content-section { padding: 50px 0; }
  .section-title { display: block; }
  .section-title h2 { margin-top: 10px; }
  h2 { font-size: clamp(30px, 10vw, 38px); line-height: 1.08; letter-spacing: -.04em; }
  .about-copy, .project-card, .timeline-item, .skill-card, .terminal-section { padding: 20px; border-radius: 22px; }
  .about-copy { font-size: 15px; }
  .about-copy p:first-child { font-size: 18px; }
  .project-card h3 { font-size: 26px; }
  .project-index { font-size: 34px; }
  .timeline-item h3 { font-size: 25px; }
  .skill-card { min-height: auto; }
  .skill-card h3 { margin-bottom: 20px; }
  .skill-card p { font-size: 17px; }
  pre { font-size: 12px; padding: 16px; }
  .contact-section { padding: 68px 0 64px; }
  .contact-section h2 { font-size: clamp(29px, 9vw, 36px); line-height: 1.12; letter-spacing: -.04em; }
  .thank-you { font-size: clamp(64px, 21vw, 108px); }
  .social-row a { width: 100%; }
  .contact-card { width: 100%; }
  .profile-visual { width: 132px; height: 132px; }
}
