:root {
  --bg: #111111;
  --panel: #1c1f1d;
  --panel-soft: #252826;
  --text: #f0f1ed;
  --muted: #a7aaa4;
  --green: #25df39;
  --green-dark: #0d6a23;
  --purple: #5c35df;
  --line: rgba(37, 223, 57, 0.72);
  --shadow: rgba(37, 223, 57, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 24% 36%, rgba(69, 69, 180, 0.34), transparent 28rem),
    radial-gradient(circle at 64% 9%, rgba(31, 211, 57, 0.26), transparent 26rem),
    var(--bg);
  color: var(--text);
  font-family: "Space Mono", monospace;
}

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

.noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.26;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 26px 26px;
}

.site-shell {
  width: min(1180px, calc(100% - 44px));
  margin: 34px auto;
  overflow: hidden;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: rgba(18, 19, 18, 0.72);
  box-shadow: 0 0 44px rgba(37, 223, 57, 0.12);
}

.nav {
  position: sticky;
  top: 18px;
  z-index: 4;
  display: flex;
  width: max-content;
  margin: 48px auto 0;
  padding: 7px;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: rgba(26, 31, 28, 0.78);
  backdrop-filter: blur(18px);
}

.nav-link {
  padding: 10px 28px;
  border-radius: 14px;
  color: var(--muted);
  font-size: 14px;
  transition: 180ms ease;
}

.nav-link:hover,
.nav-link.active {
  background: var(--green);
  color: #071008;
}

.section {
  padding: 72px 110px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 620px) 220px;
  justify-content: start;
  gap: 44px;
  align-items: center;
  min-height: 520px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 30px;
  padding: 12px 24px;
  border-radius: 10px;
  background: var(--green);
  color: #081109;
  font-size: 15px;
  font-weight: 700;
}

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

h1,
h2 {
  color: var(--green);
  font-family: Inter, system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: 0;
}

h1 {
  max-width: 680px;
  margin-bottom: 22px;
  font-size: clamp(44px, 6vw, 74px);
  line-height: 0.98;
}

h2 {
  margin-bottom: 26px;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1;
}

p {
  max-width: 660px;
  color: #d7d9d4;
  font-size: 16px;
  line-height: 1.6;
}

.portrait-card {
  aspect-ratio: 0.78;
  width: 220px;
  justify-self: start;
  overflow: hidden;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent),
    #c9bdf4;
}

.portrait-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.ticker {
  overflow: hidden;
  background: var(--green);
  color: #071008;
  font-weight: 700;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 22s linear infinite;
}

.ticker span {
  padding: 18px 34px;
  white-space: nowrap;
}

.skills-section {
  text-align: center;
}

.experience-section {
  padding-top: 38px;
}

.experience-card {
  max-width: 860px;
  padding: 28px;
  border-radius: 16px;
  background: rgba(39, 42, 39, 0.92);
  box-shadow: inset 0 0 0 1px rgba(37, 223, 57, 0.16);
}

.experience-date {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
}

.experience-card h3 {
  margin-bottom: 12px;
  font-family: Inter, system-ui, sans-serif;
  font-size: 30px;
}

.skills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  max-width: 780px;
  margin: 0 auto;
}

.skills span,
.tags span {
  border-radius: 8px;
  background: #30322f;
  color: #d9dbd5;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.skills span {
  padding: 12px 22px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.button,
.ghost-button,
button {
  border: 0;
  border-radius: 10px;
  font: 700 14px "Space Mono", monospace;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.button {
  background: var(--green);
  color: #071008;
  padding: 16px 28px;
}

.ghost-button {
  padding: 15px 24px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(37, 223, 57, 0.6);
  color: var(--green);
}

.button:hover,
.ghost-button:hover,
button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px var(--shadow);
}

.icon-button {
  width: 52px;
  min-height: 52px;
  padding: 0;
}

.icon-button svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

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

.project-card {
  min-height: 380px;
  padding: 20px;
  border-radius: 16px;
  background: rgba(39, 42, 39, 0.92);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}

.project-image {
  height: 190px;
  margin-bottom: 22px;
  border-radius: 12px;
  background-color: #242624;
  background-size: cover;
  background-position: center;
}

.project-one {
  background-image:
    linear-gradient(rgba(79, 14, 14, 0.25), rgba(33, 11, 11, 0.55)),
    repeating-linear-gradient(160deg, rgba(255, 255, 255, 0.14) 0 2px, transparent 2px 18px),
    linear-gradient(135deg, #8a1d1d, #241313);
}

.project-two {
  background-image:
    radial-gradient(circle at 78% 24%, #ebe8ff 0 28px, transparent 29px),
    radial-gradient(circle at 28% 52%, #7d6eff 0 45px, transparent 46px),
    linear-gradient(135deg, #23213d, #f1f1f1);
}

.project-three {
  background-image:
    repeating-linear-gradient(25deg, transparent 0 20px, rgba(37, 223, 57, 0.36) 21px 22px),
    repeating-linear-gradient(115deg, transparent 0 20px, rgba(37, 223, 57, 0.28) 21px 22px),
    linear-gradient(135deg, #233225, #111);
}

.project-four {
  background-image:
    linear-gradient(90deg, rgba(37, 223, 57, 0.36) 0 18%, transparent 18% 100%),
    radial-gradient(circle at 72% 30%, #f5f5f0 0 36px, transparent 37px),
    linear-gradient(135deg, #303322, #171817);
}

.project-card h3 {
  margin-bottom: 10px;
  color: var(--green);
  font-family: Inter, system-ui, sans-serif;
  font-size: 28px;
}

.project-card p {
  font-size: 14px;
}

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

.tags span {
  padding: 8px 12px;
  font-size: 12px;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 70px;
  align-items: center;
}

.mailbox {
  position: relative;
  width: min(360px, 100%);
  height: 210px;
  margin-top: 62px;
  border-radius: 16px;
  background:
    linear-gradient(150deg, transparent 35%, rgba(0, 0, 0, 0.35) 36% 64%, transparent 65%),
    linear-gradient(145deg, var(--purple), #6532ea);
}

.mailbox::before {
  position: absolute;
  inset: -72px 26px 70px;
  border: 3px solid rgba(37, 223, 57, 0.42);
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
  transform: rotate(-27deg);
  content: "";
}

.mail-card {
  position: absolute;
  top: 32px;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 700;
}

.mail-card-left {
  left: 26px;
  background: #7140ff;
  transform: rotate(14deg);
}

.mail-card-right {
  right: 28px;
  background: var(--green);
  color: #071008;
  transform: rotate(-12deg);
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: 28px;
  border-radius: 16px;
  background: rgba(39, 42, 39, 0.94);
}

label span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 7px;
  background: #2f312f;
  color: var(--text);
  font: 700 14px "Space Mono", monospace;
  outline: none;
  padding: 16px;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(37, 223, 57, 0.16);
}

.form-note {
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 11px;
}

button {
  min-height: 58px;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 30px 110px;
  background: rgba(39, 42, 39, 0.86);
}

.footer-links,
.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.footer a {
  color: #d8dad5;
  font-size: 13px;
  font-weight: 700;
}

.socials a {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 6px;
  background: #eeeeea;
  color: #151515;
}

.socials svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 900px) {
  .site-shell {
    width: min(720px, calc(100% - 28px));
  }

  .section,
  .footer {
    padding-right: 34px;
    padding-left: 34px;
  }

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

  .hero {
    gap: 34px;
  }

  .portrait-card {
    width: min(100%, 260px);
  }

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

@media (max-width: 620px) {
  .site-shell {
    width: min(375px, calc(100% - 18px));
    margin-top: 14px;
    border-radius: 12px;
  }

  .nav {
    margin-top: 22px;
    gap: 4px;
  }

  .nav-link {
    padding: 9px 16px;
    font-size: 12px;
  }

  .section,
  .footer {
    padding: 44px 20px;
  }

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

  .eyebrow {
    margin-bottom: 22px;
    padding: 10px 14px;
    font-size: 12px;
  }

  h1 {
    font-size: 38px;
  }

  h2 {
    font-size: 34px;
  }

  p {
    font-size: 13px;
  }

  .portrait-card {
    width: 100%;
    justify-self: center;
  }

  .skills {
    gap: 10px;
  }

  .skills span {
    padding: 10px 12px;
    font-size: 12px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .button {
    width: 100%;
    text-align: center;
  }

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

  .contact-form {
    padding: 18px;
  }

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