/* ==========================================================================
   Malik Adnan — Portfolio
   Visual language adapted from mitolu.dev (premier-portfolio):
   intro + color wipes, lens cursor, floating shapes, custom-script name.
   ========================================================================== */

@font-face {
  font-family: "The Historia Demo";
  src: url("../fonts/fontsfree-net-thehistoriademo-webfont.woff2") format("woff2"),
       url("../fonts/fontsfree-net-thehistoriademo-webfont.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --mainColor: #34a3a3;
  --secondColor: #bae8e8;
  --thirdColor: #27496d;
  --pink: #fb839e;
  --green-alt: #06d79c;
  --purple: #8a49ff;
  --bg: #000;
  --darkBlue: #0b0b0f;
  --white: #fff;
  --whiteLight: rgba(255, 255, 255, 0.8);
  --line: rgba(255, 255, 255, 0.22);
  --nameGrad: linear-gradient(to top, #34a3a3, #d9f7f7);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --wipe: cubic-bezier(0.76, 0, 0.24, 1);
  --max: 1200px;
}

html[data-theme="light"] {
  --mainColor: #1f7a7a;
  --secondColor: #1b5e8a;
  --thirdColor: #1b5e8a;
  --pink: #c53d75;
  --green-alt: #0a8f6b;
  --purple: #6b2fd0;
  --bg: #fff;
  --darkBlue: #fcfcfc;
  --white: #131313;
  --whiteLight: rgba(19, 19, 19, 0.75);
  --line: rgba(19, 19, 19, 0.24);
  --nameGrad: linear-gradient(to top, #1f7a7a, #6fc9c9);
}

*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: "Archivo", "Open Sans", system-ui, sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.7;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.45s ease, color 0.45s ease;
}

img { display: block; max-width: 100%; height: auto; vertical-align: middle; }
a { color: var(--secondColor); text-decoration: none; cursor: pointer; }
button { font: inherit; color: inherit; cursor: pointer; }
code {
  font-family: ui-monospace, monospace;
  font-size: 0.86em;
  color: var(--mainColor);
}
h1, h2, h3, h4, h5 { font-weight: 600; line-height: 1.2; }
h1, h2, h3, h4, h5 { font-family: "Space Grotesk", "Archivo", sans-serif; }
:focus-visible { outline: 2px solid var(--mainColor); outline-offset: 3px; }

::selection { background: var(--mainColor); color: #000; }
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--mainColor); border-radius: 10px; }

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 3000;
  background: var(--mainColor);
  color: #000;
  padding: 0.6rem 1rem;
}
.skip:focus { left: 1rem; top: 1rem; }

/* --------------------------------------------------------------------------
   Intro
   -------------------------------------------------------------------------- */
.intro {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  transition: transform 1s var(--wipe) 1.2s;
}
.intro-text {
  color: var(--secondColor);
  font-size: clamp(1.3rem, 3.4vw, 2.2rem);
  font-weight: 300;
  line-height: 1.35;
  letter-spacing: 0.02em;
  text-align: center;
  transition: transform 0.8s var(--ease), opacity 0.5s ease;
}
.hide { overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.hide span {
  display: inline-block;
  transform: translateY(105%);
  animation: line-up 0.9s var(--ease) both;
}
.hide:nth-child(1) span { animation-delay: 0.15s; }
.hide:nth-child(2) span { animation-delay: 0.35s; }
.hide:nth-child(3) span { animation-delay: 0.55s; }

@keyframes line-up { to { transform: translateY(0); } }
.intro-btn {
  margin-top: 2.2rem;
  padding: 14px 18px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 6px;
  text-transform: uppercase;
  background: none;
  border: 1px solid var(--white);
  color: var(--white);
  position: relative;
  overflow: hidden;
  transition: color 0.8s ease-out, opacity 0.6s ease, transform 0.6s var(--ease);
}
.intro-btn::before {
  content: "";
  position: absolute;
  inset: 100% 0 0 0;
  background: var(--white);
  transition: inset 0.8s ease-out;
  z-index: -1;
}
.intro-btn:hover { color: var(--bg); }
.intro-btn:hover::before { inset: 0 0 0 0; }

/* panel warna yang menyapu layar */
.slider {
  position: fixed;
  inset: 0;
  z-index: 1001;
  transform: translateY(100%);
  transition: transform 1.5s var(--wipe);
  pointer-events: none;
}
.slider--1 { background: var(--green-alt); }
.slider--2 { background: var(--purple); }

body.intro-done .intro-text { transform: translateY(-140%); opacity: 0; }
body.intro-done .intro-btn { opacity: 0; transform: translateY(-90px); }
body.intro-done .slider--1 { transform: translateY(-100%); transition-delay: 0.45s; }
body.intro-done .slider--2 { transform: translateY(-100%); transition-delay: 0.7s; }
body.intro-done .intro { transform: translateY(-101%); }
body.intro-active { overflow: hidden; }

/* --------------------------------------------------------------------------
   Kursor lensa
   -------------------------------------------------------------------------- */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  pointer-events: none;
  z-index: 999;
  opacity: 0;
  transform: translate(var(--x, 50vw), var(--y, 50vh)) translate(-50%, -50%) scale(var(--s, 1));
  -webkit-backdrop-filter: invert(1);
  backdrop-filter: invert(1);
  transition: opacity 0.25s ease, transform 0.18s ease-out;
}
.cursor.is-active { opacity: 1; }
.cursor.is-link { --s: 2.1; }
@media (hover: none) { .cursor { display: none; } }

/* --------------------------------------------------------------------------
   Topbar
   -------------------------------------------------------------------------- */
.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem clamp(1.25rem, 5vw, 3rem);
  border-bottom: 1px solid transparent;
  transition: background-color 0.35s ease, border-color 0.35s ease;
}
.topbar.is-stuck {
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.logo {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  color: var(--white);
  flex: 0 0 auto;
}
.logo span { color: var(--mainColor); }

.nav { display: flex; gap: clamp(0.9rem, 2.4vw, 2rem); }
.nav a {
  position: relative;
  padding: 0.35rem 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--whiteLight);
  transition: color 0.2s ease;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--mainColor);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav a:hover,
.nav a[aria-current="true"] { color: var(--white); }
.nav a:hover::after,
.nav a[aria-current="true"]::after { transform: scaleX(1); }

/* Kartu Halo — menempel di hero, bukan fixed */
.hello {
  position: absolute;
  top: 6.5rem;
  right: clamp(1.25rem, 4vw, 2.5rem);
  z-index: 5;
  width: 220px;
  min-height: 66px;
  padding: 1.4rem;
  background: var(--green-alt);
  color: #06231b;
  border-radius: 10px;
  cursor: pointer;
  clip-path: circle(27px at calc(100% - 33px) 33px);
  transition: clip-path 0.6s ease-in-out, background 0.6s ease-in-out;
  user-select: none;
}
.hello:hover,
.hello:focus-visible,
.hello.is-open {
  clip-path: circle(160%);
  background: linear-gradient(to bottom left, var(--green-alt), var(--mainColor));
}
.hello__trigger {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  z-index: 1;
}
.hello__trigger span {
  font: 700 0.72rem/1 "Space Grotesk", sans-serif;
  letter-spacing: 0.05em;
  color: #06231b;
}
.hello__content { padding-top: 0.8rem; }
.hello__content h2,
.hello__content p,
.hello__content a { opacity: 0; transition: opacity 0.2s ease 0s; }
.hello:hover .hello__content h2,
.hello:hover .hello__content p,
.hello:hover .hello__content a,
.hello:focus-within .hello__content h2,
.hello:focus-within .hello__content p,
.hello:focus-within .hello__content a,
.hello.is-open .hello__content h2,
.hello.is-open .hello__content p,
.hello.is-open .hello__content a { opacity: 1; transition-delay: 0.12s; }
.hello__content h2 { font-size: 1.15rem; margin-bottom: 0.35rem; }
.hello__content p { font-size: 0.78rem; line-height: 1.55; font-weight: 400; }
.hello__content a {
  display: inline-block;
  margin-top: 0.45rem;
  font-size: 0.76rem;
  font-weight: 600;
  color: #06231b;
  border-bottom: 2px dotted #06231b;
}

/* --------------------------------------------------------------------------
   Toggle tema
   -------------------------------------------------------------------------- */
.toggle {
  position: relative;
  flex: 0 0 auto;
  width: 52px;
  height: 27px;
  border: 0;
  border-radius: 100px;
  background: #d3d3d3;
  transition: background 0.3s ease;
}
.toggle__knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  transition: left 0.3s var(--ease);
}
.toggle[aria-pressed="true"] { background: var(--mainColor); }
.toggle[aria-pressed="true"] .toggle__knob { left: calc(100% - 24px); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
#hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 7rem clamp(1.25rem, 5vw, 3rem) 4.5rem;
  background: var(--darkBlue);
  overflow: hidden;
  text-align: left;
}

.effects { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.effect { position: absolute; }
.effect-1 {
  width: 20px;
  height: 20px;
  border: 3px solid var(--purple);
  right: 10%;
  bottom: 14%;
  animation: spin 10s linear infinite;
}
.effect-2 {
  left: 5%;
  bottom: 22%;
  width: 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  animation: bounce 3s ease-in-out infinite;
}
.effect-2 div {
  width: 3px;
  height: 3px;
  margin: 0 3px 8px;
  border-radius: 50%;
  background: var(--pink);
}
.effect-3 {
  border-top: 25px solid transparent;
  border-left: 25px solid var(--green-alt);
  left: 26%;
  top: 14%;
  animation: spin 15s linear infinite;
}
.effect-3::before {
  content: "";
  position: absolute;
  border-top: 30px solid transparent;
  border-left: 30px solid var(--mainColor);
  opacity: 0.5;
  right: 0;
  top: -25px;
}
.effect-4 {
  width: 54px;
  height: 54px;
  border: 1px solid var(--mainColor);
  border-radius: 50%;
  right: 22%;
  top: 20%;
  animation: spin 22s linear infinite reverse;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(25px); }
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(270px, 0.75fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  width: min(100%, 1120px);
  margin: 0 auto;
}
.landing-text { position: relative; z-index: 2; max-width: 720px; }
.hero-kicker {
  margin-bottom: 1rem;
  color: var(--mainColor);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.landing-text h1 {
  font-family: "The Historia Demo", Georgia, serif;
  font-weight: 400;
  font-size: clamp(5.2rem, 11.5vw, 10rem);
  line-height: 1.16;
  padding-block: 0.06em 0.12em;
  letter-spacing: -0.02em;
  background: var(--nameGrad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  user-select: none;
}
.role {
  margin-top: 1.35rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(0.72rem, 1.4vw, 0.82rem);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mainColor);
}
.lead {
  max-width: 45ch;
  margin: 1.15rem 0 0;
  font-size: clamp(0.95rem, 1.6vw, 1.06rem);
  font-weight: 300;
  color: var(--whiteLight);
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.9rem;
  margin-top: 1.7rem;
}

.hero-art {
  position: relative;
  width: min(100%, 350px);
  justify-self: end;
  margin: 0;
  transform: rotate(2.2deg);
  transition: transform 0.45s var(--ease);
}
.hero-art:hover { transform: rotate(0) translateY(-5px); }
.hero-art__frame {
  position: relative;
  padding: 0.65rem;
  background: var(--white);
  box-shadow: 16px 18px 0 color-mix(in srgb, var(--purple) 70%, transparent);
}
.hero-art__frame img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.hero-art__index {
  position: absolute;
  right: 1.25rem;
  bottom: 1.2rem;
  color: var(--white);
  font: 500 0.62rem/1 "Space Grotesk", sans-serif;
  letter-spacing: 0.14em;
  text-shadow: 0 1px 5px #000;
}
.hero-art figcaption {
  margin-top: 1rem;
  color: var(--whiteLight);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-align: right;
}
.hero-art figcaption span { color: var(--mainColor); }

/* hero muncul setelah panel warna menyapu */
html.js .landing-text h1,
html.js .role,
html.js .landing-text .lead,
html.js .hero-cta {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
html.js body.intro-done .landing-text h1,
html.js body.intro-done .role,
html.js body.intro-done .landing-text .lead,
html.js body.intro-done .hero-cta { opacity: 1; transform: none; }
html.js body.intro-done .landing-text h1 { transition-delay: 0.8s; }
html.js body.intro-done .role { transition-delay: 0.95s; }
html.js body.intro-done .landing-text .lead { transition-delay: 1.1s; }
html.js body.intro-done .hero-cta { transition-delay: 1.25s; }

.btn {
  display: inline-block;
  padding: 14px 22px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--white);
  border: 1px solid var(--white);
  position: relative;
  overflow: hidden;
  transition: color 0.5s ease-out;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 100% 0 0 0;
  background: var(--white);
  transition: inset 0.5s ease-out;
  z-index: -1;
}
.btn:hover { color: var(--bg); }
.btn:hover::before { inset: 0 0 0 0; }
.btn--ghost { border-color: var(--line); color: var(--whiteLight); }
.btn--ghost::before { background: var(--mainColor); }
.btn--ghost:hover { color: #000; border-color: var(--mainColor); }

/* --------------------------------------------------------------------------
   Section shell
   -------------------------------------------------------------------------- */
section:not(#hero) { padding: clamp(4rem, 8vw, 6.5rem) 0; }

.section-heading { margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-heading .eyebrow { text-align: left; margin-bottom: 0.45rem; }
.section-heading .section-title { text-align: left; margin-bottom: 0; }
.section-heading--row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
}
.work-count {
  padding-bottom: 0.3rem;
  color: var(--whiteLight);
  font: 500 0.62rem/1.4 "Space Grotesk", sans-serif;
  letter-spacing: 0.16em;
  white-space: nowrap;
}
.work-count i { color: var(--mainColor); font-style: normal; }

.about,
.experience,
.contact { background: var(--bg); }
.services,
.projects,
.skills { background: var(--darkBlue); }
.activities { background: var(--bg); }

.eyebrow {
  text-align: center;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--mainColor);
  margin-bottom: 0.9rem;
}
.section-title {
  text-align: center;
  text-transform: uppercase;
  font-family: "Space Grotesk", "Archivo", sans-serif;
  font-size: clamp(1.75rem, 3.6vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-title,
.mini-head,
.project-box__content h3,
.timeline h3,
.service h3,
.contact-lead {
  font-family: "Space Grotesk", "Archivo", sans-serif;
}
.note {
  margin-top: 2.2rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--whiteLight);
}

/* --------------------------------------------------------------------------
   Tentang
   -------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.profile img {
  width: 100%;
  border-radius: 10px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 42%;
  filter: grayscale(100%);
  transition: filter 0.35s ease, transform 0.35s ease;
}
.profile img:hover { filter: none; transform: scale(1.02); }
.about-text p { color: var(--whiteLight); margin-bottom: 1.1rem; }
.about-text .lead {
  margin: 0 0 1.2rem;
  max-width: none;
  color: var(--white);
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.6;
}
.stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.stats strong {
  display: block;
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  font-weight: 700;
  color: var(--mainColor);
  line-height: 1.1;
}
.stats span {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--whiteLight);
}

/* --------------------------------------------------------------------------
   Kegiatan
   -------------------------------------------------------------------------- */
.activities-intro {
  max-width: 32ch;
  color: var(--whiteLight);
  font-size: 0.9rem;
  line-height: 1.6;
}
.activity-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.4vw, 1.8rem);
}
.activity-card {
  min-width: 0;
  margin: 0;
  border: 1px solid var(--line);
  background: var(--darkBlue);
  overflow: hidden;
}
.activity-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 46%;
  transition: transform 0.5s var(--ease), filter 0.3s ease;
  filter: saturate(0.82);
}
.activity-card:hover img { transform: scale(1.025); filter: saturate(1); }
.activity-card figcaption {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 1rem;
  border-top: 1px solid var(--line);
}
.activity-index {
  color: var(--mainColor);
  font: 600 0.65rem/1.4 "Space Grotesk", sans-serif;
}
.activity-card figcaption strong {
  display: block;
  font: 600 0.9rem/1.35 "Space Grotesk", sans-serif;
}
.activity-card figcaption small {
  display: block;
  margin-top: 0.25rem;
  color: var(--whiteLight);
  font-size: 0.72rem;
  line-height: 1.45;
}

/* --------------------------------------------------------------------------
   Layanan
   -------------------------------------------------------------------------- */
.service-grid {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}
.service {
  width: min(100%, 320px);
  padding: 1.8rem 1.5rem;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s var(--ease);
}
.service:hover {
  box-shadow: inset 6px 6px 30px rgba(246, 246, 246, 0.18);
  border-color: var(--mainColor);
  transform: translateY(-4px);
}
.service svg {
  width: 44px;
  height: 44px;
  fill: none;
  stroke: var(--mainColor);
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 1.2rem;
}
.service h3 { font-size: 1.05rem; margin-bottom: 0.5rem; letter-spacing: 0.02em; }
.service p { font-size: 0.85rem; color: var(--whiteLight); line-height: 1.65; }

/* --------------------------------------------------------------------------
   Karya
   -------------------------------------------------------------------------- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
}
.project-box {
  position: relative;
  display: block;
  padding: 1rem;
  border: 1px solid var(--white);
  background: var(--bg);
  color: var(--white);
  transition: border-color 0.25s ease, background-color 0.25s ease, transform 0.3s var(--ease);
}
.project-box::after {
  content: "";
  position: absolute;
  width: 103%;
  height: 101%;
  top: 1rem;
  right: 0.5rem;
  z-index: -1;
  background: transparent;
  transition: background-color 0.25s ease;
}
.project-box:hover {
  border-color: var(--mainColor);
  background: var(--darkBlue);
  transform: translateY(-4px);
}
.project-box:nth-child(1):hover::after { background: #add8e6; }
.project-box:nth-child(2):hover::after { background: #f08080; }
.project-box:nth-child(3):hover::after { background: #e0ffff; }
.project-box:nth-child(4):hover::after { background: #d3d3d3; }
.project-box:nth-child(5):hover::after { background: #90ee90; }
.project-box:nth-child(6):hover::after { background: #ffffe0; }

.project-box__thumb { overflow: hidden; border-radius: 4px; }
.project-box__thumb img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.project-box:hover .project-box__thumb img { transform: scale(1.04); }
.project-box__content { padding: 1.1rem 0.3rem 0.4rem; }
.project-box__content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.project-box__content h5 {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mainColor);
}

/* --------------------------------------------------------------------------
   Pengalaman
   -------------------------------------------------------------------------- */
.timeline {
  list-style: none;
  max-width: 780px;
  margin-inline: auto;
  border-left: 1px solid var(--line);
  padding-left: clamp(1.4rem, 4vw, 2.4rem);
}
.timeline li { position: relative; padding-bottom: 2.4rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: calc(clamp(1.4rem, 4vw, 2.4rem) * -1 - 4.5px);
  top: 0.6rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mainColor);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--mainColor) 22%, transparent);
}
.when {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mainColor);
}
.timeline h3 { font-size: 1.05rem; margin: 0.4rem 0 0.4rem; }
.timeline p { font-size: 0.9rem; color: var(--whiteLight); }

/* --------------------------------------------------------------------------
   Keahlian
   -------------------------------------------------------------------------- */
.skills-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
}
.mini-head {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--whiteLight);
  margin-bottom: 1.2rem;
}
.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.chips li {
  padding: 0.42rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 0.82rem;
  transition: border-color 0.2s, color 0.2s;
}
.chips li:hover { border-color: var(--mainColor); color: var(--mainColor); }

.certs { list-style: none; }
.certs li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
}
.certs time { font-size: 0.72rem; color: var(--whiteLight); white-space: nowrap; }

/* --------------------------------------------------------------------------
   Kontak
   -------------------------------------------------------------------------- */
.contact-lead {
  max-width: 48ch;
  margin: -1.5rem auto 3rem;
  text-align: center;
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
  color: var(--whiteLight);
}
.contact-list {
  list-style: none;
  max-width: 760px;
  margin-inline: auto;
  border-top: 1px solid var(--line);
}
.contact-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}
.contact-list span {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--whiteLight);
}
.contact-list a {
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  font-weight: 400;
  color: var(--white);
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.contact-list a:hover { color: var(--mainColor); border-color: var(--mainColor); }
.contact-line {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}
.copy {
  padding: 0.3rem 0.8rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--whiteLight);
  background: none;
  border: 1px solid var(--line);
  border-radius: 100px;
  transition: color 0.2s, border-color 0.2s;
}
.copy:hover { color: var(--mainColor); border-color: var(--mainColor); }
.copy.is-done { color: var(--mainColor); border-color: var(--mainColor); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--bg);
  padding: clamp(4rem, 8vw, 6rem) 0 6rem;
}
.footer hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
.footer-head {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(3rem, 10vw, 9rem);
  margin-bottom: 3rem;
}
.footer-links h5 {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  color: var(--whiteLight);
}
.footer-links p { margin-bottom: 0.55rem; font-size: 0.9rem; }
.footer-links a { color: var(--mainColor); transition: color 0.2s; }
.footer-links a:hover { color: var(--white); }
.footer-copy {
  text-align: right;
  font-size: 0.8rem;
  color: var(--whiteLight);
}

/* --------------------------------------------------------------------------
   Reveal saat scroll
   -------------------------------------------------------------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   Responsif
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .profile { max-width: 380px; margin-inline: auto; }
  .skills-grid { grid-template-columns: 1fr; }
  .effect-3 { left: 12%; top: 18%; }
  .effect-4 { right: 12%; }
  .hello { top: 5.8rem; }
  .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(230px, 0.8fr); gap: 2rem; }
  .landing-text h1 { font-size: clamp(4rem, 10vw, 7.5rem); }
  .activity-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .hide-sm { display: none; }
  .nav { gap: 1.1rem; }
  .nav a { font-size: 0.72rem; }
}

@media (max-width: 480px) {
  .topbar { gap: 0.75rem; padding-inline: 0.9rem; }
  .nav { gap: 0.85rem; }
  .logo { font-size: 1rem; }
}

@media (max-width: 600px) {
  .hello {
    width: 200px;
    padding: 1.3rem;
    top: 4.8rem;
    right: 0.9rem;
    clip-path: circle(22% at 88% 14%);
  }
  .hello:hover, .hello:focus-within, .hello.is-open { clip-path: circle(160%); }
  #hero { min-height: auto; padding: 9rem 1.25rem 4rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 2.6rem; }
  .landing-text h1 { font-size: clamp(2.8rem, 14vw, 4.8rem); line-height: 1.18; }
  .hero-kicker { max-width: none; font-size: 0.58rem; letter-spacing: 0.12em; }
  .role { letter-spacing: 0.16em; }
  .hero-art { width: min(82%, 320px); justify-self: center; }
  .hero-art__frame { box-shadow: 11px 12px 0 color-mix(in srgb, var(--purple) 70%, transparent); }
  .hero-art figcaption { font-size: 0.52rem; }
  .activity-grid { grid-template-columns: 1fr; }
  .activity-card img { aspect-ratio: 4 / 3; }
  .hero-cta .btn { flex: 1 1 auto; text-align: center; padding-inline: 0.9rem; letter-spacing: 0.22em; }
  .section-heading--row { align-items: flex-start; flex-direction: column; gap: 0.8rem; }
  .work-count { padding: 0; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats li:last-child { grid-column: span 2; }
  .contact-list li { flex-direction: column; gap: 0.2rem; }
  .footer-copy { text-align: left; }
  .effect-2 { display: none; }
  .effect-3 { left: auto; right: 12%; top: 17%; }
  .effect-4 { right: 8%; top: 24%; width: 38px; height: 38px; }
}

/* --------------------------------------------------------------------------
   Motion off
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .intro, .slider { transition: none; }
  .cursor { display: none; }
  .effect { animation: none !important; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0s !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .hide span { transform: none; }
}
