:root {
  color-scheme: dark;
  --bg: #0e1116;
  --bg-soft: #151a22;
  --panel: #171d26;
  --panel-strong: #1f2732;
  --text: #f2f5f8;
  --muted: #a8b3c2;
  --subtle: #738094;
  --line: rgba(255, 255, 255, 0.1);
  --accent: #22c55e;
  --accent-strong: #16a34a;
  --cyan: #38bdf8;
  --amber: #f59e0b;
  --rose: #fb7185;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
  --radius: 8px;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

:root.light {
  color-scheme: light;
  --bg: #f7f8fb;
  --bg-soft: #ffffff;
  --panel: #ffffff;
  --panel-strong: #eef2f6;
  --text: #111827;
  --muted: #4b5563;
  --subtle: #6b7280;
  --line: rgba(17, 24, 39, 0.12);
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(34, 197, 94, 0.16), transparent 30rem),
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.14), transparent 28rem),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 70%);
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  padding: 14px 0;
  backdrop-filter: blur(18px);
}

.brand,
.header-actions,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  color: #06110b;
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  box-shadow: 0 12px 30px rgba(34, 197, 94, 0.22);
}

.nav-links {
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--panel) 78%, transparent);
}

.nav-links a {
  min-height: 36px;
  padding: 9px 14px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.nav-links a:hover {
  background: var(--panel-strong);
  color: var(--text);
}

.header-actions {
  gap: 10px;
}

.icon-button,
.copy-button,
.filter-button {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
  font: inherit;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
}

.icon-button:hover,
.copy-button:hover {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 13px 18px;
  border: 1px solid color-mix(in srgb, var(--accent) 72%, transparent);
  border-radius: var(--radius);
  background: var(--accent);
  color: #06110b;
  font-weight: 900;
  box-shadow: 0 16px 42px rgba(34, 197, 94, 0.2);
}

.button:hover {
  background: var(--accent-strong);
}

.button-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
  box-shadow: none;
}

.button-secondary:hover {
  background: var(--panel-strong);
}

.button-small {
  min-height: 42px;
  padding: 10px 14px;
  font-size: 14px;
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(330px, 0.72fr);
  gap: 28px;
  align-items: stretch;
  min-height: calc(100vh - 90px);
  padding: 54px 0 42px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 900px;
  margin-bottom: 22px;
  font-size: clamp(44px, 7vw, 88px);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 700px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-panel {
  align-self: center;
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--panel) 88%, transparent);
  box-shadow: var(--shadow);
}

.availability-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  margin-bottom: 18px;
  padding: 10px 12px;
  border-radius: 6px;
  background: rgba(34, 197, 94, 0.1);
  color: color-mix(in srgb, var(--accent) 82%, var(--text));
  font-size: 14px;
  font-weight: 800;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.12);
  flex: 0 0 auto;
}

.profile-card {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.avatar {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(34, 197, 94, 0.92), rgba(56, 189, 248, 0.88)),
    var(--panel-strong);
  color: #07130c;
  font-family: "JetBrains Mono", monospace;
  font-size: 26px;
  font-weight: 900;
}

.profile-card h2 {
  margin-bottom: 5px;
  font-size: 22px;
}

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

.quick-stats {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}

.quick-stats div {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 64px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg-soft);
}

.quick-stats strong {
  color: var(--cyan);
  font-family: "JetBrains Mono", monospace;
  font-size: 22px;
}

.quick-stats span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.terminal-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #080b10;
}

.terminal-top {
  display: flex;
  gap: 7px;
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.terminal-top span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--rose);
}

.terminal-top span:nth-child(2) {
  background: var(--amber);
}

.terminal-top span:nth-child(3) {
  background: var(--accent);
}

pre {
  margin: 0;
  padding: 16px;
  white-space: pre-wrap;
  color: #d4f7df;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  line-height: 1.75;
}

.section {
  padding: 82px 0;
}

.section-tight {
  padding-top: 28px;
}

.section-heading {
  max-width: 750px;
  margin-bottom: 30px;
}

.section-heading.compact {
  margin-bottom: 0;
}

.section-heading h2,
.contact-section h2 {
  margin-bottom: 14px;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.02;
}

.section-heading p,
.contact-section p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.strength-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.strength-grid article,
.skill-card,
.timeline-item,
.project-card,
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--panel) 92%, transparent);
}

.strength-grid article {
  padding: 22px;
}

.strength-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  border-radius: 7px;
  background: var(--panel-strong);
  color: var(--accent);
}

.strength-grid h2 {
  margin-bottom: 10px;
  font-size: 18px;
}

.strength-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.filter-button {
  min-height: 38px;
  padding: 8px 13px;
  border-radius: 6px;
  color: var(--muted);
  font-weight: 800;
}

.filter-button.active,
.filter-button:hover {
  border-color: rgba(34, 197, 94, 0.55);
  background: rgba(34, 197, 94, 0.12);
  color: var(--text);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.project-card {
  overflow: hidden;
  min-width: 0;
}

.project-card.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
}

.project-card.hidden {
  display: none;
}

.project-visual {
  position: relative;
  min-height: 230px;
  background: var(--panel-strong);
  overflow: hidden;
}

.project-visual::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
}

.project-content {
  padding: 24px;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 16px;
}

.project-meta span,
.skill-pills span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.project-content h3 {
  margin-bottom: 10px;
  font-size: 25px;
}

.project-content p {
  color: var(--muted);
  line-height: 1.65;
}

.project-content ul,
.timeline-item ul {
  margin: 16px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.65;
}

.project-content li::marker,
.timeline-item li::marker {
  color: var(--accent);
}

.visual-outreach {
  background:
    linear-gradient(135deg, rgba(34, 197, 94, 0.24), transparent),
    #122018;
}

.visual-node,
.visual-mail,
.visual-line,
.phone-frame,
.caption-bar,
.pulse-ring,
.uptime-line,
.uptime-dot,
.builder-sidebar,
.builder-block,
.builder-cursor,
.page-sheet,
.page-check {
  position: absolute;
  display: block;
}

.visual-node {
  width: 88px;
  height: 88px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
}

.visual-node-a {
  left: 15%;
  top: 26%;
}

.visual-node-b {
  right: 14%;
  bottom: 22%;
}

.visual-line {
  left: 28%;
  top: 48%;
  width: 42%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
  transform: rotate(-10deg);
}

.visual-mail {
  left: 50%;
  top: 38%;
  width: 64px;
  height: 44px;
  border: 2px solid var(--accent);
  border-radius: 5px;
  background: rgba(34, 197, 94, 0.15);
  transform: translateX(-50%);
}

.visual-mail::before {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: 8px;
  height: 20px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

.visual-caption {
  background:
    linear-gradient(160deg, rgba(251, 113, 133, 0.26), transparent),
    #1c1420;
}

.phone-frame {
  left: 50%;
  top: 24px;
  width: 118px;
  height: 182px;
  border: 2px solid rgba(255, 255, 255, 0.24);
  border-radius: 18px;
  background: linear-gradient(180deg, #24273a, #111827);
  transform: translateX(-50%);
}

.caption-bar {
  left: 50%;
  height: 18px;
  border-radius: 4px;
  background: var(--amber);
  transform: translateX(-50%);
}

.caption-one {
  bottom: 64px;
  width: 126px;
}

.caption-two {
  bottom: 38px;
  width: 94px;
  background: var(--rose);
}

.visual-uptime {
  background:
    linear-gradient(135deg, rgba(56, 189, 248, 0.24), transparent),
    #101b2a;
}

.pulse-ring {
  left: 50%;
  top: 50%;
  width: 120px;
  height: 120px;
  border: 2px solid var(--cyan);
  border-radius: 999px;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 18px rgba(56, 189, 248, 0.08);
}

.uptime-line {
  left: 18%;
  right: 18%;
  top: 50%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--cyan), var(--accent));
}

.uptime-dot {
  left: 50%;
  top: 50%;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--accent);
  transform: translate(-50%, -50%);
}

.visual-builder {
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.22), transparent),
    #231b10;
}

.builder-sidebar {
  left: 13%;
  top: 18%;
  width: 70px;
  height: 144px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.11);
}

.builder-block {
  left: 42%;
  height: 46px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.18);
}

.builder-one {
  top: 25%;
  width: 128px;
}

.builder-two {
  top: 52%;
  width: 94px;
}

.builder-cursor {
  right: 18%;
  bottom: 24%;
  width: 0;
  height: 0;
  border-left: 18px solid var(--amber);
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  transform: rotate(42deg);
}

.visual-tuition {
  background:
    linear-gradient(135deg, rgba(34, 197, 94, 0.2), transparent),
    #102018;
}

.page-sheet {
  left: 28%;
  top: 22%;
  width: 104px;
  height: 142px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-two {
  left: 44%;
  top: 30%;
  background: rgba(255, 255, 255, 0.1);
}

.page-check {
  right: 24%;
  bottom: 25%;
  width: 54px;
  height: 28px;
  border-left: 6px solid var(--accent);
  border-bottom: 6px solid var(--accent);
  transform: rotate(-45deg);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 34px;
  align-items: start;
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 18px;
  padding: 22px;
}

.timeline-date {
  color: var(--accent);
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  font-weight: 900;
}

.timeline-item h3 {
  margin-bottom: 8px;
  font-size: 21px;
}

.timeline-item p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

.skills-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.skill-card {
  padding: 22px;
}

.skill-card h3 {
  margin-bottom: 14px;
  font-size: 19px;
}

.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
  gap: 26px;
  align-items: start;
  margin: 58px 0 42px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(34, 197, 94, 0.12), transparent),
    color-mix(in srgb, var(--panel) 92%, transparent);
  box-shadow: var(--shadow);
}

.contact-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.contact-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  min-height: 132px;
  padding: 18px;
}

.contact-card:hover {
  border-color: rgba(34, 197, 94, 0.55);
  background: color-mix(in srgb, var(--panel-strong) 82%, transparent);
}

.contact-card span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 7px;
  background: var(--panel-strong);
  color: var(--accent);
}

.contact-card strong {
  font-size: 17px;
}

.contact-card small {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 14px;
}

.muted-link {
  opacity: 0.72;
}

.copy-button {
  grid-column: 1 / -1;
  justify-self: start;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: var(--radius);
  font-weight: 800;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 26px 0 34px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.site-footer a {
  color: var(--text);
}

@media (max-width: 980px) {
  .nav-links {
    display: none;
  }

  .hero,
  .split-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 42px;
  }

  .project-card.featured {
    grid-template-columns: 1fr;
  }

  .strength-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-header,
  main,
  .site-footer {
    width: min(100% - 24px, 1180px);
  }

  .brand span:last-child {
    display: none;
  }

  .hero {
    padding-top: 28px;
  }

  h1 {
    font-size: clamp(40px, 14vw, 62px);
  }

  .hero-copy,
  .section-heading p,
  .contact-section p {
    font-size: 16px;
  }

  .hero-actions,
  .button,
  .button-secondary {
    width: 100%;
  }

  .button {
    min-height: 50px;
  }

  .hero-panel,
  .contact-section {
    padding: 16px;
  }

  .quick-stats div,
  .timeline-item,
  .skills-layout,
  .project-grid,
  .contact-actions {
    grid-template-columns: 1fr;
  }

  .quick-stats div {
    gap: 4px;
  }

  .project-content {
    padding: 20px;
  }

  .project-visual {
    min-height: 205px;
  }

  .section {
    padding: 58px 0;
  }

  .site-footer {
    flex-direction: column;
    gap: 12px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .button,
  .project-card,
  .contact-card,
  .filter-button,
  .icon-button {
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
  }

  .project-card:hover,
  .contact-card:hover {
    transform: translateY(-3px);
  }
}
