@import url("https://fonts.googleapis.com/css2?family=Fira+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;600;700&display=swap");

:root {
  color: #e3e1f0;
  background: #12121d;
  font-family: "Fira Sans", Inter, ui-sans-serif, system-ui, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --background: #12121d;
  --surface: #1a1b25;
  --surface-high: #292934;
  --surface-highest: #34343f;
  --text: #f0eef8;
  --text-soft: #c9c7d6;
  --muted: #918f9f;
  --line: rgba(125, 131, 255, 0.22);
  --line-soft: rgba(125, 131, 255, 0.12);
  --primary: #0400ac;
  --primary-soft: #858aff;
  --primary-contrast: #ffffff;
  --primary-dim: rgba(4, 0, 172, 0.16);
  --tertiary: #d5b18f;
  --radius: 0;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    linear-gradient(to right, rgba(133, 147, 151, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(133, 147, 151, 0.05) 1px, transparent 1px),
    var(--background);
  background-size: 32px 32px, 32px 32px, auto;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at center 22%, rgba(4, 0, 172, 0.2), transparent 28%),
    linear-gradient(to bottom, transparent 0%, rgba(18, 18, 29, 0.62) 55%, #0d0d17 100%);
  pointer-events: none;
}

a {
  color: inherit;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 76px;
  padding: 16px max(24px, calc((100vw - 1200px) / 2));
  border-bottom: 1px solid var(--line-soft);
  background: rgba(18, 18, 29, 0.82);
  backdrop-filter: blur(18px);
}

.terminal-brand,
footer,
code,
.status-pill,
.tag-row span {
  font-family: var(--mono);
}

.terminal-brand {
  justify-self: start;
  color: var(--primary-soft);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.terminal-brand span,
.hero h1 span {
  color: var(--primary-soft);
}

nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
}

nav a {
  color: var(--text-soft);
  font-size: 14px;
  text-decoration: none;
  transition: color 200ms ease;
}

nav a:hover,
footer a:hover {
  color: var(--primary-soft);
}

.hire-button {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 24px;
  border-radius: var(--radius);
  color: var(--primary-contrast);
  background: var(--primary);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background 200ms ease, transform 200ms ease;
}

.hire-button:hover {
  background: #1110e7;
  transform: translateY(-1px);
}

main {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  padding-top: 76px;
}

.hero {
  position: relative;
  min-height: 820px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 128px 24px;
  text-align: center;
}

.hero-glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse at center, rgba(4, 0, 172, 0.18), transparent 45%);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 36px;
  padding: 7px 14px;
  border: 1px solid rgba(125, 131, 255, 0.38);
  border-radius: 0;
  color: var(--text);
  background: rgba(4, 0, 172, 0.12);
  font-size: 12px;
  line-height: 1;
  box-shadow: 0 0 32px rgba(4, 0, 172, 0.18);
  animation: riseIn 520ms ease both;
}

.status-pill span {
  color: var(--primary-soft);
}

.hero h1 {
  margin: 0 0 26px;
  color: var(--text);
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-shadow: 0 8px 0 rgba(0, 0, 0, 0.28);
  animation: riseIn 620ms ease 70ms both;
}

.hero h2 {
  max-width: 760px;
  margin: 0 auto 28px;
  color: var(--text-soft);
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.22;
  font-weight: 600;
  animation: riseIn 620ms ease 130ms both;
}

.hero h2 code {
  color: var(--primary-soft);
  font-size: 0.92em;
  font-weight: 700;
}

.hero p {
  max-width: 820px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
  animation: riseIn 620ms ease 190ms both;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 56px;
  animation: riseIn 620ms ease 260ms both;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 190px;
  min-height: 58px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: background 200ms ease, border-color 200ms ease, color 200ms ease, transform 200ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: var(--primary-contrast);
  background: var(--primary);
}

.button.primary:hover {
  background: #1110e7;
}

.button.ghost {
  color: var(--primary-soft);
  border: 1px solid rgba(125, 131, 255, 0.34);
  background: transparent;
}

.button.ghost:hover {
  background: rgba(4, 0, 172, 0.16);
}

.section {
  padding: 88px 0 128px;
}

.section.compact {
  padding-top: 20px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  color: var(--text);
}

.section-title svg {
  color: var(--primary-soft);
}

.section-title h2 {
  margin: 0;
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.2;
}

.divider {
  width: 100%;
  height: 1px;
  margin-bottom: 64px;
  background: rgba(143, 143, 163, 0.24);
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.glow-border {
  position: relative;
}

.glow-border::before {
  content: "";
  position: absolute;
  inset: -1px;
  border: 1px solid rgba(4, 0, 172, 0.36);
  border-radius: inherit;
  pointer-events: none;
  transition: border-color 240ms ease, box-shadow 240ms ease;
}

.glow-border:hover::before {
  border-color: rgba(125, 131, 255, 0.82);
  box-shadow: 0 0 18px rgba(4, 0, 172, 0.38);
}

.module-card {
  min-height: 280px;
  overflow: hidden;
  padding: 32px;
  border: 1px solid rgba(143, 143, 163, 0.3);
  border-radius: 0;
  background: rgba(41, 41, 52, 0.9);
  transition: transform 240ms ease, background 240ms ease;
}

.module-card:hover {
  transform: translateY(-4px);
  background: rgba(52, 52, 63, 0.94);
}

.module-icon {
  margin-bottom: 36px;
  color: var(--primary-soft);
}

.module-card h3 {
  margin: 0 0 18px;
  color: var(--text);
  font-size: 25px;
  line-height: 1.2;
}

.module-card p {
  margin: 0 0 28px;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.6;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border: 1px solid rgba(125, 131, 255, 0.28);
  border-radius: 0;
  color: var(--primary-soft);
  background: rgba(4, 0, 172, 0.16);
  font-size: 12px;
}

.repo-list {
  display: grid;
  gap: 14px;
}

.repo-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 28px;
  border: 1px solid rgba(143, 143, 163, 0.3);
  border-radius: 0;
  background: rgba(31, 31, 41, 0.72);
  color: inherit;
  text-decoration: none;
  transition: background 200ms ease, transform 200ms ease;
}

.repo-row:hover {
  background: rgba(41, 41, 52, 0.92);
  transform: translateY(-2px);
}

.repo-row code {
  display: block;
  margin-bottom: 10px;
  color: var(--primary-soft);
  font-size: 15px;
  font-weight: 700;
}

.repo-row h3 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 21px;
}

.repo-row p {
  margin: 0;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.55;
}

.repo-row svg {
  flex: 0 0 auto;
  color: var(--primary-soft);
}

.repo-row {
  flex-wrap: wrap;
}

.repo-info {
  flex: 1;
  min-width: 200px;
}

.repo-info .tag-row {
  margin-top: 12px;
  gap: 6px;
}

.repo-info .tag-row span {
  font-size: 12px;
  padding: 3px 8px;
}

.repo-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid rgba(125, 131, 255, 0.32);
  border-radius: 0;
  color: var(--primary-soft);
  background: rgba(4, 0, 172, 0.14);
  font-family: var(--mono);
  font-size: 12px;
  white-space: nowrap;
}

.status.soon {
  color: var(--tertiary);
  border-color: rgba(255, 180, 165, 0.32);
  background: rgba(255, 180, 165, 0.08);
}

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

.skill-category {
  padding: 20px;
  border: 1px solid rgba(143, 143, 163, 0.24);
  border-radius: 0;
  background: rgba(18, 18, 29, 0.7);
}

.skill-category h3 {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 17px;
}

.skill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-grid span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid rgba(125, 131, 255, 0.28);
  border-radius: 0;
  color: var(--text-soft);
  background: rgba(4, 0, 172, 0.12);
  font-family: var(--mono);
  font-size: 13px;
}

.contact-panel {
  width: 100%;
  margin: 80px 0 128px;
  padding: 72px 40px;
  border: 1px solid rgba(143, 143, 163, 0.34);
  border-radius: 0;
  background: rgba(52, 52, 63, 0.9);
  text-align: center;
}

.contact-panel > svg {
  color: var(--primary-soft);
  margin-bottom: 18px;
}

.profile-avatar {
  width: 74px;
  height: 74px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 18px;
  border: 1px solid rgba(125, 131, 255, 0.36);
  border-radius: 0;
  color: var(--primary-soft);
  background:
    radial-gradient(circle at 30% 20%, rgba(4, 0, 172, 0.58), transparent 35%),
    rgba(18, 18, 29, 0.9);
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 700;
  overflow: hidden;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-panel h2 {
  margin: 0 0 24px;
  color: var(--text);
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-shadow: 0 6px 0 rgba(0, 0, 0, 0.24);
}

.contact-panel p {
  max-width: 680px;
  margin: 0 auto 42px;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.6;
}

.contact-panel p a {
  color: var(--primary-soft);
  font-weight: 700;
  text-decoration: none;
}

.project-page {
  min-height: calc(100vh - 76px);
  display: grid;
  align-content: center;
  gap: 28px;
  padding: 140px 0 90px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  color: var(--primary-soft);
  font-family: var(--mono);
  font-size: 13px;
  text-decoration: none;
}

.project-detail {
  padding: clamp(30px, 6vw, 72px);
  border: 1px solid rgba(143, 143, 163, 0.34);
  border-radius: 0;
  background: rgba(41, 41, 52, 0.88);
}

.project-detail > code {
  display: block;
  margin: 28px 0 16px;
  color: var(--primary-soft);
  font-size: 15px;
  font-weight: 700;
}

.project-detail h1 {
  max-width: 900px;
  margin: 0 0 24px;
  color: var(--text);
  font-size: clamp(44px, 8vw, 84px);
  line-height: 1;
  letter-spacing: -0.02em;
  text-shadow: 0 8px 0 rgba(0, 0, 0, 0.28);
}

.project-detail p {
  max-width: 820px;
  margin: 0 0 28px;
  color: var(--text-soft);
  font-size: 18px;
  line-height: 1.65;
}

.project-screenshot {
  width: 100%;
  max-width: 900px;
  height: auto;
  margin: 0 0 28px;
  border: 1px solid rgba(143, 143, 163, 0.3);
  border-radius: 0;
}

.external-project {
  width: fit-content;
  margin-top: 34px;
  gap: 10px;
}

.soon-note {
  display: inline-flex;
  margin-top: 34px;
  color: var(--tertiary);
  font-family: var(--mono);
}

form {
  display: grid;
  gap: 16px;
  width: min(460px, 100%);
  margin: 0 auto;
}

label {
  position: relative;
  display: block;
}

label span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

input,
textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid rgba(143, 143, 163, 0.5);
  border-radius: var(--radius);
  color: var(--text);
  background: #12121d;
  font-family: var(--mono);
  font-size: 13px;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

input {
  min-height: 48px;
}

textarea {
  min-height: 132px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: var(--muted);
}

input:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: -4px 0 0 var(--primary);
}

.form-status {
  margin: 0;
  color: var(--primary-soft);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.5;
}

.form-status.error {
  color: var(--tertiary);
}

button:disabled {
  cursor: progress;
  opacity: 0.72;
  transform: none;
}

button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  border: 0;
  border-radius: var(--radius);
  color: var(--primary-contrast);
  background: var(--primary);
  font-family: "Fira Sans", sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease;
}

button:hover {
  background: #1110e7;
  transform: translateY(-1px);
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px max(24px, calc((100vw - 1200px) / 2));
  border-top: 1px solid rgba(143, 143, 163, 0.1);
  color: var(--primary-soft);
  background: #0d0d17;
  font-size: 12px;
}

footer div {
  display: flex;
  align-items: center;
  gap: 24px;
}

footer a {
  color: var(--tertiary);
  text-decoration: none;
  transition: color 200ms ease;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 860px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  nav {
    order: 3;
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .hire-button {
    grid-column: 2;
  }

  main {
    width: min(100% - 40px, 680px);
    padding-top: 116px;
  }

  .hero {
    min-height: 720px;
    padding-inline: 0;
  }

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

  .skill-categories {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .topbar {
    padding-inline: 20px;
  }

  .terminal-brand {
    font-size: 12px;
  }

  nav {
    gap: 20px;
  }

  .hire-button {
    padding-inline: 16px;
  }

  main {
    width: min(100% - 40px, 520px);
  }

  .hero {
    min-height: 640px;
    padding-block: 76px;
  }

  .hero-actions {
    width: 100%;
    flex-direction: column;
    gap: 14px;
  }

  .button {
    width: 100%;
  }

  .section {
    padding-block: 72px 96px;
  }

  .divider {
    margin-bottom: 40px;
  }

  .module-card,
  .repo-row {
    padding: 24px;
  }

  .repo-row {
    align-items: flex-start;
    display: grid;
  }

  .contact-panel {
    margin-block: 48px 96px;
    padding: 46px 22px;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  footer div {
    flex-wrap: wrap;
    gap: 14px 20px;
  }
}
