:root {
  --navy: #fff6df;
  --light-navy: #ffffff;
  --lightest-navy: #141414;
  --slate: #2f2f35;
  --light-slate: #41414a;
  --lightest-slate: #101014;
  --white: #fffdf5;
  --green: #ff4f9a;
  --yellow: #ffe157;
  --cyan: #00c2ff;
  --mint: #1fe6a0;
  --purple: #8f5bff;
  --orange: #ff8a3d;
  --ink: #101014;
  --shadow: #101014;
  --font-sans: Inter, Calibre, "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "SF Mono", "Fira Code", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(135deg, rgba(16, 16, 20, 0.08) 0 2px, transparent 2px 18px),
    radial-gradient(circle, rgba(16, 16, 20, 0.15) 2px, transparent 2.8px) 12px 8px / 34px 34px,
    var(--navy);
  color: var(--slate);
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.55;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(90deg, transparent 0 48%, rgba(255, 79, 154, 0.58) 48% 52%, transparent 52%) 8% 14% / 92px 92px no-repeat,
    radial-gradient(circle at 16% 11%, var(--cyan) 0 42px, transparent 43px),
    radial-gradient(circle at 86% 17%, var(--yellow) 0 58px, transparent 59px),
    conic-gradient(from 45deg at 80% 78%, var(--mint) 0 25%, transparent 0 100%),
    linear-gradient(135deg, transparent 0 46%, var(--purple) 46% 54%, transparent 54%) 94% 42% / 130px 130px no-repeat;
  opacity: 0.42;
  pointer-events: none;
}

body::after {
  position: fixed;
  right: 5vw;
  bottom: 6vh;
  z-index: -1;
  width: 150px;
  height: 150px;
  border: 3px solid var(--ink);
  background:
    repeating-linear-gradient(0deg, transparent 0 12px, var(--ink) 12px 15px),
    var(--orange);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  content: "";
  opacity: 0.78;
  transform: rotate(10deg);
}

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

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  transform: translateY(-150%);
  border: 3px solid var(--ink);
  border-radius: 2px;
  background: var(--white);
  color: var(--green);
  padding: 0.7rem 1rem;
  box-shadow: 5px 5px 0 var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100px;
  padding: 0 42px;
  border-bottom: 3px solid var(--ink);
  background: rgba(255, 246, 223, 0.88);
  box-shadow: 0 8px 0 var(--shadow);
  backdrop-filter: blur(10px);
}

.logo {
  width: 44px;
  height: 44px;
  transition:
    transform 160ms ease,
    filter 160ms ease;
}

.logo:hover {
  transform: translateY(-2px);
  filter: drop-shadow(5px 5px 0 var(--cyan));
}

.logo img {
  width: 100%;
  height: 100%;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  color: var(--lightest-slate);
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.top-nav a {
  transition: color 160ms ease;
}

.top-nav a:hover,
.top-nav a.active {
  color: var(--green);
}

.top-nav span,
.numbered-heading span {
  color: var(--green);
}

.resume-link,
.cta,
.lang-toggle {
  border: 3px solid var(--ink);
  border-radius: 2px;
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 5px 5px 0 var(--cyan);
  font-family: var(--font-mono);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.resume-link {
  padding: 0.75rem 1rem;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
}

.lang-toggle span {
  display: inline-flex;
  min-width: 38px;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 700;
}

.lang-toggle span:first-child {
  border-right: 3px solid var(--ink);
}

html[lang="id"] .lang-toggle [data-lang-option="id"],
html[lang="en"] .lang-toggle [data-lang-option="en"] {
  background: var(--green);
  color: var(--white);
}

.resume-link:hover,
.cta:hover,
.lang-toggle:hover {
  transform: translate(-3px, -3px);
  background: var(--mint);
  box-shadow: 8px 8px 0 var(--purple);
}

.social-rail,
.email-rail {
  position: fixed;
  bottom: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  color: var(--light-slate);
}

.social-rail {
  left: 42px;
  flex-direction: column;
  gap: 22px;
}

.email-rail {
  right: 42px;
  writing-mode: vertical-rl;
}

.social-rail::after,
.email-rail::after {
  width: 3px;
  height: 92px;
  margin-top: 24px;
  background: var(--ink);
  content: "";
}

.email-rail::after {
  margin: 24px 0 0;
}

.social-rail svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.social-rail a,
.email-rail a {
  transition:
    color 160ms ease,
    transform 160ms ease;
}

.social-rail a:hover,
.email-rail a:hover {
  color: var(--green);
  transform: translateY(-3px);
}

.email-rail a {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0;
}

main {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 110px;
}

.hero {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 0;
}

.hero::before {
  display: block;
  width: min(54vw, 560px);
  height: 18px;
  margin-bottom: 28px;
  border: 3px solid var(--ink);
  background: repeating-linear-gradient(90deg, var(--green) 0 24px, var(--yellow) 24px 48px, var(--cyan) 48px 72px, var(--mint) 72px 96px);
  box-shadow: 7px 7px 0 var(--ink);
  content: "";
}

.hero > * {
  max-width: 960px;
}

.intro,
.overline {
  margin: 0 0 22px 4px;
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
}

.hero h1,
.hero h2,
.contact h3 {
  margin: 0;
  font-weight: 800;
  letter-spacing: 0;
}

.hero h1 {
  color: var(--lightest-slate);
  font-size: clamp(48px, 6.6vw, 82px);
  line-height: 1.05;
  text-shadow: 5px 5px 0 var(--yellow), 9px 9px 0 var(--cyan);
}

.hero h2 {
  margin-top: 8px;
  color: var(--purple);
  font-size: clamp(38px, 5.6vw, 70px);
  line-height: 1.05;
}

.hero-copy {
  max-width: 720px;
  margin: 30px 0 0;
  padding: 22px 24px;
  border: 3px solid var(--ink);
  background: var(--white);
  box-shadow: 9px 9px 0 var(--green);
}

.hero-copy strong {
  color: var(--green);
  font-weight: 700;
}

.cta {
  display: inline-flex;
  margin-top: 48px;
  padding: 1rem 1.6rem;
  font-size: 0.9rem;
}

.content-section {
  padding: 100px 0;
  scroll-margin-top: 90px;
}

.numbered-heading {
  display: flex;
  align-items: center;
  position: relative;
  width: 100%;
  margin: 0 0 42px;
  color: var(--lightest-slate);
  font-size: clamp(24px, 5vw, 32px);
  white-space: nowrap;
}

.numbered-heading span {
  margin-right: 10px;
  font-family: var(--font-mono);
  font-size: clamp(16px, 3vw, 20px);
  font-weight: 700;
}

.numbered-heading::after {
  display: block;
  width: 300px;
  height: 8px;
  margin-left: 20px;
  border: 2px solid var(--ink);
  background: repeating-linear-gradient(90deg, var(--cyan) 0 18px, var(--yellow) 18px 36px, var(--green) 36px 54px);
  content: "";
}

.about-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 50px;
  align-items: start;
}

.prose p {
  margin: 0 0 16px;
}

.skills-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 240px));
  gap: 8px 18px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.skills-list li::before {
  color: var(--green);
  content: "> ";
  font-weight: 700;
}

.photo-wrap {
  position: relative;
  max-width: 300px;
  border: 3px solid var(--ink);
  border-radius: 2px;
  background: var(--yellow);
  box-shadow: -10px 10px 0 var(--cyan);
}

.photo-wrap::after {
  position: absolute;
  inset: 16px -16px -16px 16px;
  z-index: -1;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--green);
  content: "";
  transition: inset 160ms ease;
}

.photo-wrap:hover::after {
  inset: 11px -11px -11px 11px;
}

.photo-wrap img {
  width: 300px;
  aspect-ratio: 1 / 1;
  border-radius: 0;
  object-fit: cover;
  filter: saturate(1.1) contrast(1.05);
  mix-blend-mode: luminosity;
  transition: filter 160ms ease;
}

.photo-wrap:hover img {
  filter: none;
  mix-blend-mode: normal;
}

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

.service-card {
  position: relative;
  display: flex;
  min-height: 250px;
  flex-direction: column;
  padding: 24px;
  border: 3px solid var(--ink);
  border-radius: 2px;
  background:
    radial-gradient(circle, rgba(16, 16, 20, 0.12) 2px, transparent 3px) 18px 18px / 24px 24px,
    var(--white);
  box-shadow: 8px 8px 0 var(--cyan);
  overflow: hidden;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.service-card::after {
  position: absolute;
  right: -28px;
  bottom: -28px;
  width: 92px;
  height: 92px;
  border: 3px solid var(--ink);
  background: var(--yellow);
  content: "";
  transform: rotate(12deg);
}

.service-card:nth-child(2n) {
  box-shadow: 8px 8px 0 var(--green);
}

.service-card:nth-child(3n) {
  box-shadow: 8px 8px 0 var(--orange);
}

.service-card:hover {
  transform: translate(-4px, -4px);
  background:
    radial-gradient(circle, rgba(16, 16, 20, 0.14) 2px, transparent 3px) 18px 18px / 24px 24px,
    var(--white);
  box-shadow: 12px 12px 0 var(--purple);
}

.service-card h3 {
  position: relative;
  z-index: 1;
  margin: 22px 0 12px;
  color: var(--lightest-slate);
  font-size: 1.12rem;
  line-height: 1.25;
}

.service-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--light-slate);
  font-size: 0.92rem;
}

.service-tag {
  position: relative;
  z-index: 1;
  display: inline-flex;
  width: fit-content;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--ink);
  background: var(--yellow);
  color: var(--ink);
  padding: 0 10px;
  box-shadow: 4px 4px 0 var(--ink);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
}

.security-card {
  background:
    repeating-linear-gradient(135deg, rgba(255, 79, 154, 0.18) 0 14px, transparent 14px 28px),
    var(--white);
}

.security-card .service-tag {
  background: var(--green);
  color: var(--white);
}

.experience-list {
  display: grid;
  gap: 30px;
}

.experience-list article {
  border: 3px solid var(--ink);
  padding: 22px 24px;
  background: var(--white);
  box-shadow: 8px 8px 0 var(--yellow);
}

.experience-list article:nth-child(2n) {
  box-shadow: 8px 8px 0 var(--cyan);
}

.experience-list article:nth-child(3n) {
  box-shadow: 8px 8px 0 var(--mint);
}

.period {
  margin: 0 0 6px;
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
}

.experience-list h3,
.featured-project h3,
.archive-card h3 {
  margin: 0 0 10px;
  color: var(--lightest-slate);
  font-size: 1.35rem;
}

.experience-list h3 span {
  color: var(--green);
}

.experience-list p,
.featured-project p,
.archive-card p,
.contact p {
  margin-top: 0;
}

.featured-projects {
  display: grid;
  gap: 104px;
}

.featured-project {
  display: grid;
  position: relative;
  grid-template-columns: repeat(12, 1fr);
  align-items: center;
}

.project-image {
  grid-column: 1 / 8;
  grid-row: 1 / 2;
  overflow: hidden;
  border: 3px solid var(--ink);
  border-radius: 2px;
  background: var(--green);
  box-shadow: -10px 10px 0 var(--purple);
}

.project-image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
  opacity: 0.9;
  filter: saturate(1.25) contrast(1.05);
  mix-blend-mode: multiply;
  transition:
    filter 180ms ease,
    opacity 180ms ease,
    transform 180ms ease;
}

.project-image:hover img {
  transform: scale(1.025);
  opacity: 1;
  filter: none;
  mix-blend-mode: normal;
}

.project-content {
  z-index: 1;
  grid-column: 7 / -1;
  grid-row: 1 / 2;
  text-align: right;
}

.featured-project.reverse .project-image {
  grid-column: 6 / -1;
}

.featured-project.reverse .project-content {
  grid-column: 1 / 7;
  text-align: left;
}

.featured-project .overline,
.archive-card .overline {
  margin-bottom: 8px;
  font-size: 0.78rem;
}

.featured-project h3 {
  font-size: clamp(24px, 3.2vw, 30px);
}

.featured-project h3 a,
.archive-card h3 {
  transition: color 160ms ease;
}

.featured-project h3 a:hover,
.archive-card:hover h3 {
  color: var(--green);
}

.project-description {
  margin: 24px 0 0;
  padding: 26px;
  border: 3px solid var(--ink);
  border-radius: 2px;
  background:
    radial-gradient(circle, rgba(16, 16, 20, 0.12) 2px, transparent 3px) 10px 12px / 22px 22px,
    var(--white);
  box-shadow: 8px 8px 0 var(--orange);
  color: var(--light-slate);
}

.featured-project ul,
.archive-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  color: var(--light-slate);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.featured-project:not(.reverse) ul,
.featured-project:not(.reverse) .project-links {
  justify-content: flex-end;
}

.project-links,
.card-top {
  display: flex;
  align-items: center;
}

.project-links {
  gap: 16px;
  margin-top: 18px;
}

.project-links svg,
.card-top a svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.project-links a,
.card-top a {
  color: var(--light-slate);
  transition:
    color 160ms ease,
    transform 160ms ease;
}

.project-links a:hover,
.card-top a:hover {
  color: var(--green);
  transform: translateY(-2px);
}

.archive-heading {
  margin: 120px 0 46px;
  text-align: center;
}

.archive-heading h3 {
  margin: 0;
  color: var(--lightest-slate);
  font-size: clamp(24px, 4vw, 32px);
}

.archive-heading a {
  display: inline-flex;
  margin-top: 10px;
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
}

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

.archive-card {
  display: flex;
  min-height: 320px;
  flex-direction: column;
  padding: 28px;
  border: 3px solid var(--ink);
  border-radius: 2px;
  background:
    linear-gradient(135deg, rgba(255, 225, 87, 0.28) 0 18px, transparent 18px 36px),
    var(--white);
  box-shadow: 8px 8px 0 var(--cyan);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.archive-card:nth-child(2n) {
  box-shadow: 8px 8px 0 var(--green);
}

.archive-card:nth-child(3n) {
  box-shadow: 8px 8px 0 var(--orange);
}

.archive-card:hover {
  transform: translate(-4px, -4px);
  background:
    linear-gradient(135deg, rgba(31, 230, 160, 0.26) 0 18px, transparent 18px 36px),
    var(--white);
  box-shadow: 12px 12px 0 var(--green);
}

.card-top {
  justify-content: space-between;
  min-height: 42px;
  margin-bottom: 28px;
}

.folder-icon {
  width: 42px;
  height: 42px;
  fill: none;
  stroke: var(--green);
  stroke-width: 2.2;
}

.archive-card h3 {
  font-size: 1.14rem;
  line-height: 1.35;
}

.archive-card p {
  margin-bottom: auto;
  color: var(--light-slate);
  font-size: 0.92rem;
}

.archive-card ul {
  margin-top: 24px;
  gap: 12px;
}

.status {
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
}

.contact {
  max-width: 640px;
  margin: 0 auto 100px;
  padding: 32px;
  border: 3px solid var(--ink);
  background: var(--white);
  box-shadow: 10px 10px 0 var(--purple);
  text-align: center;
}

.contact .numbered-heading {
  justify-content: center;
  margin-bottom: 18px;
}

.contact .numbered-heading::after {
  display: none;
}

.contact h3 {
  color: var(--lightest-slate);
  font-size: clamp(38px, 6vw, 56px);
}

.contact .cta {
  margin-top: 32px;
}

.reveal {
  transform: translateY(18px);
  opacity: 0;
  transition:
    opacity 520ms ease,
    transform 520ms ease;
}

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

@media (max-width: 1080px) {
  main {
    padding: 0 90px;
  }
}

@media (max-width: 940px) {
  .site-header {
    padding: 0 24px;
  }

  .top-nav {
    gap: 14px;
    font-size: 0.72rem;
  }

  .resume-link {
    padding: 0.7rem 0.86rem;
  }

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

@media (max-width: 768px) {
  body {
    font-size: 16px;
  }

  body::after {
    width: 92px;
    height: 92px;
    opacity: 0.5;
  }

  .site-header {
    height: 76px;
    padding: 0 24px;
  }

  .top-nav a:not(.resume-link) {
    display: none;
  }

  .top-nav {
    gap: 12px;
  }

  .social-rail,
  .email-rail {
    display: none;
  }

  main {
    padding: 0 28px;
  }

  .hero {
    min-height: 92vh;
    padding-top: 76px;
  }

  .hero h1 {
    font-size: clamp(40px, 12vw, 58px);
    text-shadow: 3px 3px 0 var(--yellow), 6px 6px 0 var(--cyan);
  }

  .hero h2 {
    font-size: clamp(34px, 10vw, 48px);
  }

  .content-section {
    padding: 78px 0;
  }

  .numbered-heading::after {
    width: 100%;
  }

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

  .photo-wrap {
    margin: 20px auto 0;
  }

  .featured-projects {
    gap: 64px;
  }

  .featured-project,
  .featured-project.reverse {
    display: block;
  }

  .project-image,
  .featured-project.reverse .project-image {
    display: block;
  }

  .project-content,
  .featured-project.reverse .project-content {
    margin-top: -48px;
    text-align: left;
  }

  .project-description {
    padding: 22px;
  }

  .featured-project:not(.reverse) ul,
  .featured-project:not(.reverse) .project-links {
    justify-content: flex-start;
  }

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

@media (max-width: 520px) {
  .resume-link {
    padding: 0.6rem 0.75rem;
  }

  main {
    padding: 0 22px;
  }

  .hero-copy,
  .project-description,
  .contact {
    box-shadow: 6px 6px 0 var(--green);
  }

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

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

  .service-card {
    min-height: 210px;
    padding: 22px;
  }

  .archive-card {
    padding: 22px;
  }

  .project-content,
  .featured-project.reverse .project-content {
    margin-top: -28px;
  }
}

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