:root {
  --ink: #eef7f1;
  --muted: #9bab9f;
  --line: rgba(220, 242, 226, 0.14);
  --surface: #0b1712;
  --surface-2: #0f1d17;
  --paper: #f0f2e9;
  --paper-ink: #102019;
  --accent: #b9ff66;
  --accent-dark: #69c817;
  --max: 1240px;
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #07110d;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 82% 8%, rgba(185, 255, 102, 0.08), transparent 25%),
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: auto, 56px 56px, 56px 56px;
}

::selection {
  color: #07110d;
  background: var(--accent);
}

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

img {
  display: block;
  max-width: 100%;
}

.shell {
  width: min(calc(100% - 48px), var(--max));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  color: #07110d;
  background: var(--accent);
  border-radius: 8px;
  transform: translateY(-150%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.site-header.scrolled {
  border-color: var(--line);
  background: rgba(7, 17, 13, 0.84);
  backdrop-filter: blur(18px);
}

.nav {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 760;
  letter-spacing: -0.04em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #07110d;
  background: var(--accent);
  border-radius: 50%;
  font-size: 15px;
  font-weight: 850;
}

.brand-dot {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  margin-left: auto;
}

.nav-links a {
  color: #c5d0c9;
  font-size: 14px;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--accent);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 650;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.nav-cta:hover {
  color: #07110d;
  border-color: var(--accent);
  background: var(--accent);
}

.hero {
  min-height: calc(100vh - 84px);
  padding-block: 74px 88px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.72fr);
  align-items: center;
  gap: clamp(64px, 8vw, 126px);
}

.eyebrow {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 12px;
  color: #c5d0c9;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.status-dot {
  width: 7px;
  height: 7px;
  display: inline-block;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(185, 255, 102, 0.12), 0 0 20px rgba(185, 255, 102, 0.65);
  animation: pulse 2.4s ease-in-out infinite;
}

.hero h1 {
  max-width: 780px;
  margin: 28px 0 24px;
  color: #f2f7f4;
  font-size: clamp(48px, 6.4vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.068em;
  text-wrap: balance;
}

.hero h1 span,
.section-title span,
.contact-main h2 span {
  color: transparent;
  -webkit-text-stroke: 1px rgba(238, 247, 241, 0.65);
}

.hero-lead {
  max-width: 620px;
  margin: 0;
  color: #aab8ae;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.7;
}

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

.button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 21px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 720;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

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

.button-primary {
  color: #07110d;
  background: var(--accent);
  box-shadow: 0 18px 50px rgba(105, 200, 23, 0.12);
}

.button-primary:hover {
  background: #cbff8d;
}

.button-ghost {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.button-ghost:hover {
  border-color: rgba(185, 255, 102, 0.45);
  background: rgba(185, 255, 102, 0.06);
}

.hero-facts {
  max-width: 660px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 58px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.hero-facts div {
  display: grid;
  gap: 2px;
  padding-right: 18px;
}

.hero-facts div + div {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.hero-facts strong {
  font-size: 14px;
  font-weight: 720;
}

.hero-facts span {
  color: #73847a;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  text-transform: uppercase;
}

.portrait-wrap {
  position: relative;
  max-width: 480px;
  margin-inline: auto;
}

.portrait-card {
  position: relative;
  z-index: 2;
  aspect-ratio: 0.77;
  overflow: hidden;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 42% 42% 24px 24px;
  box-shadow: 0 45px 120px rgba(0, 0, 0, 0.38);
}

.portrait-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: inherit;
  pointer-events: none;
}

.portrait-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  filter: contrast(1.02) saturate(0.96);
  transform: scale(2.15);
  transform-origin: 50% 63%;
}

.portrait-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 54%, rgba(4, 12, 8, 0.88) 100%);
}

.portrait-caption {
  position: absolute;
  right: 22px;
  bottom: 20px;
  left: 22px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.portrait-caption > div {
  display: grid;
  gap: 2px;
  text-align: right;
}

.portrait-caption strong {
  font-size: 14px;
}

.portrait-caption span {
  color: #aab8ae;
  font-size: 11px;
}

.code-label {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px !important;
  letter-spacing: 0.08em;
}

.portrait-orbit {
  position: absolute;
  z-index: 0;
  border: 1px solid rgba(185, 255, 102, 0.15);
  border-radius: 50%;
}

.portrait-orbit-one {
  inset: -9% -15%;
}

.portrait-orbit-two {
  inset: 8% -28%;
  border-style: dashed;
  transform: rotate(22deg);
}

.floating-tag,
.availability {
  position: absolute;
  z-index: 3;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9px;
  background: rgba(8, 19, 13, 0.78);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(12px);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
}

.tag-java {
  top: 21%;
  left: -11%;
  color: var(--accent);
}

.tag-api {
  top: 38%;
  right: -12%;
}

.availability {
  right: -6%;
  bottom: 13%;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #c8d5cc;
  letter-spacing: 0;
}

.tech-strip {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.018);
}

.tech-track {
  width: min(calc(100% - 48px), var(--max));
  min-height: 82px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  white-space: nowrap;
}

.tech-track span {
  color: #8d9d92;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tech-track i {
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
}

.section {
  padding-block: 132px;
}

.section-kicker {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 72px;
  color: #6f7e74;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-kicker::after {
  content: "";
  width: 86px;
  height: 1px;
  background: currentColor;
  opacity: 0.45;
}

.section-kicker span {
  color: var(--accent-dark);
}

.section-kicker p {
  margin: 0;
}

.section-kicker.light {
  color: #89998e;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(60px, 11vw, 150px);
  align-items: start;
}

.section-title {
  margin: 0;
  color: var(--paper-ink);
  font-size: clamp(42px, 5.2vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.06em;
  text-wrap: balance;
}

.section-title span {
  display: block;
  -webkit-text-stroke-color: rgba(16, 32, 25, 0.55);
}

#about,
.language-section {
  position: relative;
  color: var(--paper-ink);
  background: var(--paper);
}

#about::before,
.language-section::before {
  content: "";
  position: absolute;
  inset: 0 50% 0 auto;
  z-index: 0;
  width: 50vw;
  background: var(--paper);
}

#about > *,
.language-section > * {
  position: relative;
}

.about-copy {
  color: #516158;
  font-size: 16px;
}

.about-intro {
  margin: 0 0 24px;
  color: var(--paper-ink);
  font-size: clamp(21px, 2vw, 27px);
  font-weight: 560;
  line-height: 1.45;
  letter-spacing: -0.025em;
}

.education-card {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 22px;
  margin-top: 42px;
  padding: 24px 0;
  border-block: 1px solid rgba(16, 32, 25, 0.15);
}

.education-card div {
  display: grid;
  gap: 5px;
}

.education-card strong {
  color: var(--paper-ink);
  line-height: 1.35;
}

.education-card span {
  font-size: 13px;
}

.education-year {
  color: var(--accent-dark);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px !important;
}

.skills-section {
  background:
    radial-gradient(circle at 5% 12%, rgba(185, 255, 102, 0.065), transparent 22%),
    #07110d;
}

.skills-heading {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 70px;
  align-items: end;
  margin-bottom: 68px;
}

.skills-heading .section-title {
  max-width: 820px;
  color: var(--ink);
}

.skills-heading .section-title span {
  -webkit-text-stroke-color: rgba(238, 247, 241, 0.62);
}

.skills-heading > p {
  max-width: 420px;
  margin: 0 0 7px;
  color: var(--muted);
}

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

.skill-card {
  position: relative;
  min-height: 390px;
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
  transition: border-color 0.3s ease, transform 0.3s ease, background 0.3s ease;
}

.skill-card:hover {
  transform: translateY(-5px);
  border-color: rgba(185, 255, 102, 0.34);
  background: rgba(185, 255, 102, 0.035);
}

.skill-featured {
  grid-row: span 2;
  min-height: 796px;
  background:
    radial-gradient(circle at 76% 25%, rgba(185, 255, 102, 0.18), transparent 22%),
    linear-gradient(145deg, #15271d, #0c1711);
}

.skill-featured::after {
  content: "JAVA";
  position: absolute;
  right: -12px;
  bottom: 110px;
  color: transparent;
  opacity: 0.1;
  font-size: 128px;
  font-weight: 850;
  letter-spacing: -0.09em;
  -webkit-text-stroke: 1px var(--accent);
  transform: rotate(-90deg) translateX(100%);
  transform-origin: right bottom;
}

.skill-number {
  position: absolute;
  top: 30px;
  right: 30px;
  color: #53645a;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
}

.skill-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  color: var(--accent);
  border: 1px solid rgba(185, 255, 102, 0.25);
  border-radius: 16px;
  background: rgba(185, 255, 102, 0.07);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  font-weight: 700;
}

.skill-card h3 {
  margin: 8px 0 13px;
  font-size: clamp(26px, 2.4vw, 38px);
  line-height: 1.06;
  letter-spacing: -0.045em;
}

.skill-label {
  margin: 30px 0 0;
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.skill-card > div > p:last-child {
  max-width: 500px;
  margin: 0;
  color: var(--muted);
}

.chips {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
}

.chips span {
  padding: 7px 11px;
  color: #c4d1c8;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
}

.language-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 100px;
}

.language-list {
  border-top: 1px solid rgba(16, 32, 25, 0.17);
}

.language-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 30px;
  padding: 26px 0;
  border-bottom: 1px solid rgba(16, 32, 25, 0.17);
}

.language-row > span {
  font-size: 18px;
  font-weight: 680;
}

.language-row strong {
  color: #66766d;
  font-size: 12px;
  font-weight: 550;
}

.level {
  grid-column: 1 / -1;
  height: 3px;
  overflow: hidden;
  background: rgba(16, 32, 25, 0.1);
  border-radius: 20px;
}

.level i {
  width: var(--level);
  height: 100%;
  display: block;
  background: var(--accent-dark);
  border-radius: inherit;
}

.contact-section {
  position: relative;
  overflow: hidden;
  padding-block: 128px 110px;
  border-top: 1px solid var(--line);
  background: #08130e;
}

.contact-section::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -5%;
  width: 430px;
  height: 430px;
  border: 1px solid rgba(185, 255, 102, 0.1);
  border-radius: 50%;
  box-shadow: 0 0 0 80px rgba(185, 255, 102, 0.018), 0 0 0 160px rgba(185, 255, 102, 0.012);
}

.contact-inner {
  position: relative;
  z-index: 1;
}

.contact-main {
  max-width: 960px;
}

.contact-eyebrow {
  margin-bottom: 28px;
}

.contact-main h2 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(52px, 7.5vw, 104px);
  line-height: 0.95;
  letter-spacing: -0.075em;
}

.contact-main > p:not(.eyebrow) {
  max-width: 650px;
  margin: 32px 0;
  color: var(--muted);
  font-size: 18px;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 8px;
  color: var(--accent);
  border-bottom: 1px solid rgba(185, 255, 102, 0.42);
  font-size: clamp(17px, 2.2vw, 26px);
  font-weight: 680;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.contact-email:hover {
  color: #d1ff9d;
  border-color: #d1ff9d;
}

.social-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 90px;
  border-block: 1px solid var(--line);
}

.social-links a {
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px 15px;
  padding: 23px 24px;
  transition: background 0.2s ease;
}

.social-links a + a {
  border-left: 1px solid var(--line);
}

.social-links a:hover {
  background: rgba(185, 255, 102, 0.05);
}

.social-links span {
  color: #7f9085;
  font-size: 11px;
  text-transform: uppercase;
}

.social-links strong {
  overflow: hidden;
  font-size: 14px;
  font-weight: 620;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.social-links i {
  grid-row: 1 / span 2;
  grid-column: 2;
  align-self: center;
  color: var(--accent);
  font-style: normal;
}

footer {
  border-top: 1px solid var(--line);
  background: #050c08;
}

.footer-inner {
  min-height: 116px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.footer-inner p,
.footer-inner > a:last-child {
  color: #66776c;
  font-size: 11px;
}

.footer-inner > a:last-child {
  transition: color 0.2s ease;
}

.footer-inner > a:last-child:hover {
  color: var(--accent);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.75, 0.25, 1);
}

.reveal-delay {
  transition-delay: 0.12s;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr 0.72fr;
    gap: 42px;
  }

  .hero h1 {
    font-size: clamp(45px, 7vw, 68px);
  }

  .portrait-wrap {
    width: 100%;
  }

  .tag-api {
    right: -4%;
  }

  .tag-java {
    left: -4%;
  }

  .about-grid,
  .language-grid {
    gap: 65px;
  }

  .skills-heading {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .skill-featured {
    grid-row: auto;
    min-height: 460px;
  }
}

@media (max-width: 760px) {
  .shell {
    width: min(calc(100% - 32px), var(--max));
  }

  .nav {
    min-height: 70px;
  }

  .nav-links {
    display: none;
  }

  .nav-cta {
    padding: 8px 13px;
  }

  .hero {
    min-height: auto;
    padding-block: 48px 76px;
    grid-template-columns: 1fr;
    gap: 70px;
  }

  .hero h1 {
    margin-top: 24px;
    font-size: clamp(44px, 13vw, 68px);
  }

  .hero-lead {
    font-size: 16px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-facts {
    margin-top: 44px;
    gap: 15px;
  }

  .hero-facts div {
    padding-right: 6px;
  }

  .hero-facts div + div {
    padding-left: 12px;
  }

  .hero-facts strong {
    font-size: 12px;
  }

  .hero-facts span {
    font-size: 8px;
  }

  .portrait-wrap {
    width: min(88%, 430px);
  }

  .tech-track {
    width: max-content;
    min-height: 70px;
    padding-inline: 24px;
    animation: marquee 22s linear infinite;
  }

  .section {
    padding-block: 90px;
  }

  .section-kicker {
    margin-bottom: 44px;
  }

  .about-grid,
  .language-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

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

  .skill-card,
  .skill-featured {
    min-height: 420px;
    padding: 28px;
  }

  .skill-featured::after {
    font-size: 90px;
  }

  .education-card {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .contact-section {
    padding-block: 90px 70px;
  }

  .contact-main h2 {
    font-size: clamp(48px, 15vw, 72px);
  }

  .contact-main > p:not(.eyebrow) {
    font-size: 16px;
  }

  .social-links {
    grid-template-columns: 1fr;
    margin-top: 65px;
  }

  .social-links a + a {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .footer-inner {
    padding-block: 34px;
    align-items: flex-start;
    flex-direction: column;
  }

  @keyframes marquee {
    to { transform: translateX(-45%); }
  }
}

@media (max-width: 420px) {
  .nav-cta {
    font-size: 12px;
  }

  .brand {
    font-size: 17px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .portrait-caption {
    right: 15px;
    bottom: 14px;
    left: 15px;
  }

  .floating-tag {
    font-size: 8px;
  }

  .availability {
    right: -3%;
    bottom: 11%;
    font-size: 9px;
  }

  .tag-java {
    left: -6%;
  }

  .tag-api {
    right: -6%;
  }

  .section-title {
    font-size: 40px;
  }

  .contact-email {
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
