/* ── Font (dihosting sendiri: tanpa permintaan ke server luar) ───────────── */
/* Plus Jakarta Sans (SIL OFL 1.1) — satu berkas variabel untuk semua bobot 300–800, subset latin */
@font-face {
  font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url("../assets/fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/*! Font Awesome Free 6.5.1 by @fontawesome - https://fontawesome.com | License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) | Copyright 2023 Fonticons, Inc.
   Subset: hanya ikon yang dipakai situs ini, dihosting sendiri agar ringan. */
@font-face { font-family: "Font Awesome 6 Free"; font-style: normal; font-weight: 900; font-display: block; src: url("../assets/fonts/fa-solid.woff2") format("woff2"); }
@font-face { font-family: "Font Awesome 6 Free"; font-style: normal; font-weight: 400; font-display: block; src: url("../assets/fonts/fa-regular.woff2") format("woff2"); }
@font-face { font-family: "Font Awesome 6 Brands"; font-style: normal; font-weight: 400; font-display: block; src: url("../assets/fonts/fa-brands.woff2") format("woff2"); }
.fa-solid, .fa-regular, .fa-brands { -moz-osx-font-smoothing: grayscale; -webkit-font-smoothing: antialiased; display: inline-block; font-style: normal; font-variant: normal; line-height: 1; text-rendering: auto; }
.fa-solid, .fa-regular { font-family: "Font Awesome 6 Free"; }
.fa-solid { font-weight: 900; }
.fa-regular { font-weight: 400; }
.fa-brands { font-family: "Font Awesome 6 Brands"; font-weight: 400; }
.fa-bag-shopping::before { content: "\f290"; }
.fa-briefcase::before { content: "\f0b1"; }
.fa-building::before { content: "\f1ad"; }
.fa-bullhorn::before { content: "\f0a1"; }
.fa-calendar::before { content: "\f133"; }
.fa-camera::before { content: "\f030"; }
.fa-chart-line::before { content: "\f201"; }
.fa-check::before { content: "\f00c"; }
.fa-chevron-down::before { content: "\f078"; }
.fa-chevron-left::before { content: "\f053"; }
.fa-chevron-right::before { content: "\f054"; }
.fa-circle-check::before { content: "\f058"; }
.fa-clapperboard::before { content: "\e131"; }
.fa-comments::before { content: "\f086"; }
.fa-film::before { content: "\f008"; }
.fa-folder-open::before { content: "\f07c"; }
.fa-font::before { content: "\f031"; }
.fa-hashtag::before { content: "\23"; }
.fa-house-laptop::before { content: "\e066"; }
.fa-images::before { content: "\f302"; }
.fa-instagram::before { content: "\f16d"; }
.fa-laptop-code::before { content: "\f5fc"; }
.fa-link::before { content: "\f0c1"; }
.fa-microphone::before { content: "\f130"; }
.fa-mobile-screen::before { content: "\f3cf"; }
.fa-palette::before { content: "\f53f"; }
.fa-pen-nib::before { content: "\f5ad"; }
.fa-pen-ruler::before { content: "\f5ae"; }
.fa-play::before { content: "\f04b"; }
.fa-ring::before { content: "\f70b"; }
.fa-robot::before { content: "\f544"; }
.fa-sliders::before { content: "\f1de"; }
.fa-star::before { content: "\f005"; }
.fa-tiktok::before { content: "\e07b"; }
.fa-user::before { content: "\f007"; }
.fa-volume-high::before { content: "\f028"; }
.fa-volume-xmark::before { content: "\f6a9"; }
.fa-wand-magic-sparkles::before { content: "\e2ca"; }
.fa-whatsapp::before { content: "\f232"; }
.fa-xmark::before { content: "\f00d"; }
.fa-youtube::before { content: "\f167"; }

/* =========================================================
   PERI HIDAYAT – MODERN PORTFOLIO v2.0
   ========================================================= */

:root {
  --primary: #60a5fa;
  --primary-hover: #3b82f6;
  --primary-light: #93c5fd;
  --primary-dark: #1d4ed8;
  --primary-glow: rgba(96, 165, 250, 0.3);
  --primary-subtle: rgba(96, 165, 250, 0.08);
  --primary-subtle-hover: rgba(96, 165, 250, 0.15);
  --border-primary: rgba(96, 165, 250, 0.25);
  --border-primary-strong: rgba(96, 165, 250, 0.5);

  --accent-purple: #a78bfa;
  --accent-cyan: #38bdf8;

  --bg-main: #060b18;
  --bg-card: rgba(12, 20, 40, 0.86);
  --bg-card-hover: rgba(18, 30, 58, 0.9);
  --bg-navbar: rgba(6, 11, 24, 0.95);

  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-medium: rgba(255, 255, 255, 0.12);

  --text-main: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-dark: #060b18;
  --text-strong: #ffffff;
  --chip-bg: #141d36; --chip-bg-hover: #1a2544; --chip-text: #e6edff; --chip-border: rgba(255, 255, 255, 0.14);
  --glass-bg: rgba(8, 13, 28, 0.55); --glass-border: rgba(255, 255, 255, 0.14);
  --overlay-bg: rgba(6, 11, 24, 0.97);
  --shadow-hover: 0 4px 14px rgba(0, 0, 0, 0.22);

  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --transition: all 0.3s var(--ease-spring);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
}

/* ── Light Mode ───────────────────────────────────────── */
[data-theme="light"] {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #3b82f6;
  --primary-glow: rgba(37, 99, 235, 0.2);
  --primary-subtle: rgba(37, 99, 235, 0.07);
  --primary-subtle-hover: rgba(37, 99, 235, 0.13);
  --border-primary: rgba(37, 99, 235, 0.2);
  --border-primary-strong: rgba(37, 99, 235, 0.4);

  --accent-purple: #7c3aed;
  --accent-cyan: #0284c7;

  --bg-main: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: rgba(255, 255, 255, 0.98);
  --bg-navbar: rgba(241, 245, 249, 0.97);

  --border-subtle: rgba(0, 0, 0, 0.07);
  --border-medium: rgba(0, 0, 0, 0.12);

  --text-main: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-dark: #f1f5f9;
  --text-strong: #0f172a;
  --chip-bg: #ffffff; --chip-bg-hover: #eef3fb; --chip-text: #1e293b; --chip-border: rgba(15, 23, 42, 0.16);
  --glass-bg: rgba(255, 255, 255, 0.72); --glass-border: rgba(15, 23, 42, 0.12);
  --overlay-bg: rgba(241, 245, 249, 0.98);
  --shadow-hover: 0 4px 14px rgba(15, 23, 42, 0.08);
}

[data-theme="light"] body { background: var(--bg-main); }
[data-theme="light"] .navbar { box-shadow: 0 1px 0 rgba(0,0,0,0.08); }
[data-theme="light"] .navbar.scrolled { background: rgba(241, 245, 249, 0.99); }
[data-theme="light"] .hero-section { background: none; }
[data-theme="light"] .timeline-card,
[data-theme="light"] .skill-box,
[data-theme="light"] .metric-card { box-shadow: 0 2px 16px rgba(0,0,0,0.08); }

/* Tombol tema (hanya ikon) */
.theme-toggle {
  width: 38px; height: 38px; padding: 0;
  border-radius: 50%; border: 0; background: transparent;
  color: var(--text-secondary); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background-color 0.25s ease, color 0.25s ease;
  flex-shrink: 0;
}
.theme-toggle svg { width: 19px; height: 19px; display: block; }
.theme-toggle:hover { background: var(--primary-subtle-hover); color: var(--text-main); }
.theme-toggle:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.theme-toggle .i-sun { display: none; }
[data-theme="light"] .theme-toggle .i-sun { display: block; }
[data-theme="light"] .theme-toggle .i-moon { display: none; }

/* Efek miring kartu: selama kursor di atas kartu, transform mengikuti gerakan tanpa mengulang transisi */
.timeline-card.tilting, .skill-box.tilting, .card-about.tilting {
  transition: transform 0.12s ease-out, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
}

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

img {
  -webkit-user-drag: none;
  user-drag: none;
  -webkit-user-select: none;
  user-select: none;
  pointer-events: none;
}

a img { pointer-events: none; }
html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }   /* html + body: iOS Safari hanya menahan geser kiri-kanan bila html ikut dikunci */
body {
  font-family: var(--font);
  background: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: clip;            /* clip: body tidak menjadi wadah scroll sendiri */
  -webkit-font-smoothing: antialiased;
}

/* ── Scroll Progress Bar ──────────────────────────────── */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent-purple), var(--accent-cyan));
  z-index: 1000;
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
  border-radius: 0 2px 2px 0;
}

/* ── Latar belakang ───────────────────────────────────── */
/* Statis (tanpa canvas/animasi): dua cahaya lembut + grid tipis yang memudar ke tepi + grain halus */
.bg-fx {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  --grid: rgba(148, 197, 253, 0.055);
  background:
    radial-gradient(900px 560px at 12% -8%, rgba(59, 130, 246, 0.17), transparent 70%),
    radial-gradient(760px 520px at 95% 42%, rgba(124, 92, 246, 0.11), transparent 70%),
    radial-gradient(700px 500px at 30% 108%, rgba(56, 189, 248, 0.08), transparent 70%);
}
.bg-fx::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 35%, #000 20%, transparent 78%);
          mask-image: radial-gradient(ellipse 85% 75% at 50% 35%, #000 20%, transparent 78%);
}
.bg-fx::after {
  content: ""; position: absolute; inset: 0; opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
[data-theme="light"] .bg-fx {
  --grid: rgba(30, 64, 175, 0.06);
  background:
    radial-gradient(900px 560px at 12% -8%, rgba(59, 130, 246, 0.12), transparent 70%),
    radial-gradient(760px 520px at 95% 42%, rgba(124, 92, 246, 0.08), transparent 70%);
}
[data-theme="light"] .bg-fx::after { opacity: 0.035; filter: invert(1); }

/* ── Container ────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* ── Navbar ───────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
    background: var(--bg-navbar);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 200;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.navbar.scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
  border-bottom-color: var(--border-primary);
}
.nav-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo { text-decoration: none; display: inline-flex; align-items: center; }
.logo-stack { display: flex; flex-direction: column; gap: 0.28rem; line-height: 1.2; }
.logo-text {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.logo-sub {
  font-size: 0.62rem;
  font-weight: 500;
  color: var(--primary);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.logo-accent { color: var(--primary); }

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  padding-bottom: 2px;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: width 0.3s var(--ease-spring);
}
.nav-link:hover, .nav-link.active { color: var(--primary); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.nav-right { display: flex; align-items: center; gap: 0.75rem; }

/* ── Hamburger ────────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: var(--primary-subtle);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0;
  transition: var(--transition);
}
.hamburger:hover { background: var(--primary-subtle-hover); }
.hamburger span {
  display: block;
  width: 20px; height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-spring), opacity 0.3s ease;
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile Nav ───────────────────────────────────────── */
.mobile-nav {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: var(--overlay-bg);
  z-index: 180;            /* di atas bilah filter foto yang melayang (150) dan tombol WhatsApp (140), di bawah navbar (200) */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.mobile-nav.open { opacity: 1; pointer-events: all; }
.mobile-nav-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem;
  transform: translateY(20px);
  transition: transform 0.4s var(--ease-spring);
}
.mobile-nav.open .mobile-nav-inner { transform: translateY(0); }
.mobile-nav-links { list-style: none; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.mobile-nav-link {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.5rem 1rem;
  transition: var(--transition);
  letter-spacing: -0.02em;
}
.mobile-nav-link:hover { color: var(--primary); }
.mobile-cta { width: 100%; max-width: 280px; justify-content: center; margin-top: 1rem; }

/* ── Buttons ──────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font);
  font-size: clamp(0.82rem, 2vw, 0.92rem);
  font-weight: 600;
  padding: clamp(0.6rem, 1.5vw, 0.75rem) clamp(1rem, 2.5vw, 1.4rem);
  border-radius: 12px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
  line-height: 1.25;
  position: relative;
  overflow: hidden;
}
.btn i { font-size: 1em; }
.btn-sm { font-size: 0.82rem; padding: 0.42rem 1rem; }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: #fff;
  box-shadow: 0 4px 15px var(--primary-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--primary-glow);
  filter: brightness(1.1);
}
.btn-glow::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.15) 100%);
  border-radius: inherit;
}

.btn-glass {
  background: rgba(255,255,255,0.06);
  color: var(--text-main);
  border-color: var(--border-medium);
 }
.btn-glass:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--border-primary);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--border-primary);
}
.btn-outline:hover {
  background: var(--primary-subtle);
  border-color: var(--primary);
  color: #fff;
}

/* ── Hero Section ─────────────────────────────────────── */
.hero-section {
  min-height: 100svh;
  padding: 8rem 0 2rem;
  display: flex;
  align-items: center;
  position: relative;
}
.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
}
.hero-content { display: flex; flex-direction: column; align-items: center; }

/* Avatar */
.avatar-box {
  position: relative;
  width: 130px; height: 130px;
  margin-bottom: 1.5rem;
  flex-shrink: 0;
}
.avatar-img {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  position: relative;
  z-index: 3;
  border: 3px solid rgba(96, 165, 250, 0.6);
  box-shadow: 0 0 0 6px rgba(96, 165, 250, 0.12), 0 16px 40px rgba(0,0,0,0.5);
  animation: float 6s ease-in-out infinite;
}
.avatar-ring {
  position: absolute;
  border-radius: 50%;
  animation: spin-ring linear infinite;
}
.ring-1 {
  inset: -8px;
  border: 2px dashed rgba(96, 165, 250, 0.35);
  animation-duration: 15s;
}
.ring-2 {
  inset: -16px;
  border: 1px dashed rgba(167, 139, 250, 0.2);
  animation-duration: 25s;
  animation-direction: reverse;
}
@keyframes spin-ring { to { transform: rotate(360deg); } }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Badge */
/* Baris status: Open to Work */
.status-row {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 0.5rem; margin-bottom: 1.5rem;
}
.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary-subtle);
  border: 1px solid var(--border-primary);
  padding: 0.35rem 1rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.3px;
}
.dot-online {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

/* Hero Typography */
.hero-title {
  font-size: clamp(1.7rem, 5.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}
.highlight-name {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 50%, var(--accent-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-role {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 1rem;
  margin-bottom: 1.5rem;
  font-size: clamp(1.1rem, 2.8vw, 1.4rem); font-weight: 700; letter-spacing: 0.01em; color: var(--text-strong);
}
.role-bar { width: 1px; height: 1.1em; background: rgba(147, 180, 255, 0.5); }
@media (max-width: 640px) { .hero-role { gap: 0.7rem; font-size: 1rem; } }

.hero-bio {
  font-size: clamp(0.95rem, 1.8vw, 1.05rem);
  color: var(--text-secondary);
  max-width: 620px;
  margin-bottom: 2rem;
  line-height: 1.75;
}
.hero-bio strong { color: var(--text-strong); font-weight: 600; }

.hero-btn-group {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 1.6rem;
}

/* Cuplikan video unggulan di hero */
.hero-reel { display: flex; align-items: center; gap: 0.7rem; justify-content: center; width: 100%; max-width: 760px; margin-bottom: 3rem; }
.reel-item {
  position: relative; flex: 1 1 0; max-width: 112px; cursor: pointer; aspect-ratio: 9 / 16; overflow: hidden; border-radius: 10px;
  border: 1px solid var(--border-subtle); background: var(--bg-card);
  transition: transform 0.3s var(--ease-out), border-color 0.3s ease, flex-grow 0.45s var(--ease-out), max-width 0.45s var(--ease-out);
}
.reel-item img { display: block; width: 100%; height: 100%; object-fit: cover; }
.reel-play {
  position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 34px; height: 34px; margin: -17px 0 0 -17px;
  border-radius: 50%; color: #fff; font-size: 0.72rem; padding-left: 2px; background: rgba(6, 11, 24, 0.55); border: 1px solid rgba(255, 255, 255, 0.35);
  transition: background 0.25s ease, transform 0.25s ease;
}
.reel-item:hover { transform: translateY(-2px); border-color: var(--primary); }
/* Cuplikan yang sedang diputar: membesar di tempat, yang lain mengecil */
.reel-item.is-playing { flex-grow: 3; max-width: 250px; border-color: var(--primary); cursor: default; }
.reel-item.is-playing:hover { transform: none; }
.reel-item video { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; display: block; background: #000; opacity: 0; transition: opacity 0.3s ease; cursor: pointer; }
.reel-item.is-live video { opacity: 1; }
.reel-item.is-playing .reel-play { opacity: 0; pointer-events: none; z-index: 2; }
.reel-item.is-playing.is-paused .reel-play { opacity: 1; }
.reel-ctl {
  position: absolute; z-index: 3; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: #fff; font-size: 0.7rem;
  background: rgba(6, 11, 24, 0.62); border: 1px solid rgba(255, 255, 255, 0.3); cursor: pointer; transition: background 0.2s ease;
}
.reel-ctl:hover { background: rgba(30, 45, 85, 0.9); }
.reel-ctl.close { top: 8px; left: 8px; }
.reel-ctl.mute { top: 8px; right: 8px; }
.reel-bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; height: 3px; background: rgba(255, 255, 255, 0.22); }
.reel-bar span { display: block; height: 100%; width: 0; background: var(--primary); }
@media (prefers-reduced-motion: reduce) { .reel-item { transition: none; } }
.reel-item:hover .reel-play { background: var(--primary); transform: scale(1.08); }
.reel-item:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
@media (max-width: 640px) { .hero-reel { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-flow: dense; align-items: start; max-width: 340px; gap: 0.5rem; } .reel-item { max-width: none; } .reel-item.is-playing { grid-column: 1 / -1; justify-self: center; width: min(300px, 100%); max-width: none; } .hero-reel .reel-item:last-child:nth-child(3n+1):not(.is-playing) { grid-column: 2; } .reel-play { width: 28px; height: 28px; margin: -14px 0 0 -14px; } .hero-btn-group { margin-bottom: 1.3rem; } }

/* Metrics */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  width: 100%;
  max-width: 680px;
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1rem;
   box-shadow: 0 20px 50px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.05);
}
.metric-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 0.5rem;
  position: relative;
}
.metric-item + .metric-item::before {
  content: '';
  position: absolute;
  left: 0; top: 15%; bottom: 15%;
  width: 1px;
  background: var(--border-subtle);
}
.metric-val {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: 0.25rem;
  letter-spacing: -0.02em;
}
.metric-title { font-size: 0.72rem; color: var(--text-muted); font-weight: 500; }
.metric-sm { font-size: clamp(0.95rem, 2vw, 1.2rem) !important; white-space: nowrap; }

/* Scroll hint */
.scroll-hint {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  transition: opacity 0.4s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  animation: fade-in-up 1s ease 1.5s both;
}
.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--text-muted), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}
@keyframes scroll-pulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.1); }
}
@keyframes fade-in-up {
  from { opacity: 0; transform: translateX(-50%) translateY(10px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ── Sections ─────────────────────────────────────────── */
.section {
  padding: 3rem 0;
  position: relative;
  scroll-margin-top: 5rem;
}
.section-title-wrap { text-align: center; margin-bottom: 3rem; }
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--text-strong) 60%, var(--text-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-subtitle { font-size: 0.95rem; color: var(--text-muted); max-width: 480px; margin: 0 auto; }

/* ── About Card ───────────────────────────────────────── */
.card-about {
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  padding: 2rem 2rem;
   box-shadow: 0 16px 40px rgba(0,0,0,0.3), inset 0 1px 0 rgba(96,165,250,0.08);
  position: relative;
  overflow: hidden;
}
.card-about::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--accent-purple), transparent);
}
.about-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.15rem;
}
.icon-circle {
  width: 46px; height: 46px;
  border-radius: var(--radius-sm);
  background: var(--primary-subtle);
  border: 1px solid var(--border-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.15rem;
  flex-shrink: 0;
}
.card-heading { font-size: 1.3rem; font-weight: 700; color: var(--text-strong); }
.about-body p { color: var(--text-secondary); font-size: 0.98rem; line-height: 1.8; margin-bottom: 1.5rem; }
.about-body strong { color: var(--text-strong); }

.about-tags { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-medium);
  padding: 0.3rem 0.75rem;
  border-radius: 8px;
  transition: var(--transition);
}
.tag-chip:hover { color: var(--primary); border-color: var(--border-primary); background: var(--primary-subtle); }
.tag-chip i { color: var(--primary); font-size: 0.8em; }

/* ── Timeline / Experience ────────────────────────────── */
.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 24px; top: 28px; bottom: 28px;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--accent-purple), transparent);
  border-radius: 2px;
}

.timeline-item {
  display: flex;
  gap: 1.5rem;
  padding-bottom: 1.75rem;
  position: relative;
}
.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
  width: 48px; height: 48px;
  min-width: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  border: 3px solid var(--bg-main);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.85rem;
  z-index: 1;
  box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.15), 0 4px 12px var(--primary-glow);
  flex-shrink: 0;
  position: relative;
  top: 4px;
}

.timeline-card {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.65rem 1.75rem;
  transition: var(--transition);
   position: relative;
  overflow: hidden;
}
.timeline-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: transparent;
  transition: var(--transition);
  border-radius: 0 2px 2px 0;
}
.timeline-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.timeline-card:hover::before { background: linear-gradient(to bottom, var(--primary), var(--accent-purple)); }
.highlight-card {
  border-color: var(--border-primary);
  background: linear-gradient(135deg, rgba(96,165,250,0.06) 0%, var(--bg-card) 100%);
}

.exp-role {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-strong);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}
.exp-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.exp-dot-sep { color: var(--border-medium); font-size: 0.9rem; }
.exp-company {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.exp-company i { color: var(--primary); font-size: 0.82rem; }
.exp-period {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.exp-period i { font-size: 0.75rem; }
.job-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 0.2rem 0.6rem;
  border-radius: 0.35rem;
  margin-bottom: 1rem;
}
.tag-primary { background: rgba(96,165,250,0.12); color: var(--primary); border: 1px solid var(--border-primary); }
.tag-cyan { background: rgba(56,189,248,0.1); color: var(--accent-cyan); border: 1px solid rgba(56,189,248,0.25); }
.tag-neutral { background: rgba(255,255,255,0.05); color: var(--text-muted); border: 1px solid var(--border-subtle); }
.tag-muted { background: rgba(255,255,255,0.06); color: #6b7280; border: 1px solid rgba(255,255,255,0.12); }
.exp-desc p { font-size: 0.92rem; color: var(--text-secondary); margin-bottom: 0.85rem; line-height: 1.65; }
.exp-bullets { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.exp-bullets li { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.88rem; color: var(--text-secondary); line-height: 1.55; }
.check-icon { color: var(--primary); font-size: 0.78rem; margin-top: 0.28rem; flex-shrink: 0; }
.exp-bullets strong { color: var(--text-strong); }
.exp-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px dashed var(--border-primary);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.exp-link:hover { color: var(--primary-light); border-bottom-color: var(--primary); }

/* ── Portfolio ────────────────────────────────────────── */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1.5rem 0.75rem;
  justify-items: center;
  align-items: start;
  padding: 0.5rem 0;
}
.portfolio-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  width: 100%;
  max-width: 110px;
  cursor: pointer;
  transition: var(--transition);
}
.portfolio-circle {
  width: 88px; height: 88px;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  border: 3px solid rgba(255,255,255,0.12);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s ease, border-color 0.35s ease;
}
.portfolio-overlay { display: none; }
.portfolio-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s var(--ease-spring);
}
.portfolio-label {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.35;
  transition: color 0.25s ease;
}
.portfolio-item:hover .portfolio-circle {
  transform: translateY(-10px) scale(1.06);
  box-shadow: 0 16px 35px var(--primary-glow), 0 0 0 3px var(--primary);
  border-color: var(--primary);
}
.portfolio-item:hover .portfolio-img { transform: scale(1.08); }
.portfolio-item:hover .portfolio-label { color: var(--primary); }

/* ── Portfolio Showcase (Video + Foto) ────────────────── */
.ph-1 { background: linear-gradient(160deg, #3b82f6, #1e3a8a); }
.ph-2 { background: linear-gradient(160deg, #a78bfa, #4c1d95); }
.ph-3 { background: linear-gradient(160deg, #38bdf8, #0c4a6e); }
.ph-4 { background: linear-gradient(160deg, #f472b6, #831843); }
.ph-5 { background: linear-gradient(160deg, #34d399, #064e3b); }
.ph-6 { background: linear-gradient(160deg, #fbbf24, #78350f); }

.showcase { margin-bottom: 3.5rem; }
.showcase-head {
  display: flex; align-items: center; gap: 1rem;
  max-width: 860px; margin: 0 auto 1.5rem;
}
.showcase-num {
  min-width: 1.8rem;           /* angka 1, 2, 3 selebar sama supaya judul di sebelahnya sejajar */
  font-size: 2.75rem; font-weight: 800; line-height: 1;
  background: linear-gradient(135deg, var(--primary), var(--accent-purple));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.showcase-title {
  margin: 0; font-size: 1.35rem; font-weight: 800; color: var(--text-main);
  display: flex; align-items: center; gap: 0.6rem;
}

/* — Video: pemutar adaptif + pemilih jenis editan — */
/* Warna aksen didaftarkan sebagai <color> supaya berpindah halus (bukan loncat) saat jenis diganti */
@property --vacc  { syntax: '<color>'; inherits: true; initial-value: #60a5fa; }
@property --vacc2 { syntax: '<color>'; inherits: true; initial-value: #1e3a8a; }

.video-stage {
  --vacc: #60a5fa;
  --vacc2: #1e3a8a;
  display: grid;
  grid-template-columns: minmax(0, 440px) 1fr;
  gap: 2.5rem;
  align-items: center;
  max-width: 860px;
  min-height: 540px;           /* tinggi tetap: tidak ada geseran layout saat kartu membuka/menutup */
  margin: 0 auto;
  transition: --vacc 0.7s var(--ease-out), --vacc2 0.7s var(--ease-out);
}
.video-stage > * { min-width: 0; }

/* Kartu muncul berurutan saat bagian ini masuk layar */
.video-reveal .vtype-list li {
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 70ms + 200ms);
}
.video-reveal.revealed .vtype-list li { opacity: 1; transform: none; }

/* Perangkat + aura warna */
.device-wrap {
  position: relative;
  min-height: 500px;
  display: flex; align-items: center; justify-content: center;
}
.device-wrap::before {
  content: "";
  position: absolute; left: 50%; top: 50%;
  width: 115%; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, color-mix(in srgb, var(--vacc) 34%, transparent), transparent);
  pointer-events: none;
}
.device {
  position: relative; z-index: 1;
  width: 260px; max-width: 100%;
  padding: 9px;
  border-radius: 2.4rem;
  background: #0b1224;
  border: 1px solid var(--border-medium);
  box-shadow: 0 20px 45px rgba(0,0,0,0.45);
  transition: width 0.6s var(--ease-out), padding 0.6s var(--ease-out), border-radius 0.6s var(--ease-out);
}
.device.is-landscape { width: 440px; padding: 8px; border-radius: 1.1rem; }
.phone-screen {
  position: relative;
  aspect-ratio: 9 / 18;
  border-radius: 1.9rem;
  overflow: hidden;
  background: var(--vacc2);
  transition: aspect-ratio 0.6s var(--ease-out), border-radius 0.6s var(--ease-out);
}
.device.is-landscape .phone-screen { aspect-ratio: 16 / 9; border-radius: 0.6rem; }

/* Lapisan layar: placeholder (dasar) -> video (fade-in saat siap) -> kontrol */
.vid-placeholder {
  position: absolute; inset: 0; z-index: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.7rem;
  padding: 1rem 1rem 4rem;
  color: rgba(255,255,255,0.92); font-size: 0.78rem; font-weight: 600; text-align: center;
  background: linear-gradient(160deg, var(--vacc), var(--vacc2));
}
.vid-placeholder i { font-size: 2.4rem; }
.vid-placeholder span { display: none; }
.phone-screen.no-media .vid-placeholder span { display: block; }
.phone-screen video {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%; object-fit: cover; display: block;
  opacity: 0; transition: opacity 0.5s ease;
}
.phone-screen.is-ready video { opacity: 1; }
.phone-screen.no-media video { display: none; }

.vid-toggle {
  position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%;
  border: 0; background: transparent; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.vid-play-icon {
  width: 58px; height: 58px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.15rem; padding-left: 3px;
  background: rgba(6, 11, 24, 0.6);
  border: 1px solid rgba(255,255,255,0.3);
  transition: transform 0.3s var(--ease-spring), opacity 0.3s ease;
}
.vid-toggle:hover .vid-play-icon { transform: scale(1.1); }
.phone-screen.is-playing .vid-play-icon { opacity: 0; }
.phone-screen.is-playing .vid-toggle:hover .vid-play-icon { opacity: 1; }
.phone-screen.no-media .vid-toggle { pointer-events: none; }
.phone-screen.no-media .vid-play-icon { display: none; }
.vid-mute {
  position: absolute; top: 2.4rem; right: 0.7rem; z-index: 4;
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.25);
  background: rgba(6, 11, 24, 0.6);
  color: #fff; font-size: 0.8rem; cursor: pointer;
}
.device.is-landscape .vid-mute { top: 0.7rem; }
.phone-screen.no-media .vid-mute { display: none; }
.vid-progress {
  position: absolute; left: 0; right: 0; bottom: 0; height: 4px; z-index: 4;
  background: rgba(255,255,255,0.2); cursor: pointer; touch-action: none;
  transition: height 0.2s ease;
}
.vid-progress::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; bottom: 0; }   /* area sentuh lebih besar dari garis yang terlihat */
.vid-progress span { display: block; position: relative; height: 100%; width: 0; background: var(--vacc); }
.vid-progress span::after {                                                                            /* titik penggeser, muncul saat disentuh */
  content: ""; position: absolute; right: -6px; top: 50%; width: 12px; height: 12px; border-radius: 50%;
  background: #fff; transform: translateY(-50%) scale(0); transition: transform 0.2s ease;
}
.vid-progress:hover, .vid-progress.is-drag, .vid-progress:focus-visible { height: 7px; outline: none; }
.vid-progress:hover span::after, .vid-progress.is-drag span::after, .vid-progress:focus-visible span::after { transform: translateY(-50%) scale(1); }
.phone-screen.no-media .vid-progress { display: none; }

/* Konten layar muncul halus setiap jenis diganti */
.device.is-switch .vid-placeholder i,
.device.is-switch .vid-placeholder span { animation: contentIn 0.55s var(--ease-out) both; }
@keyframes contentIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

/* Petunjuk "klik salah satu": satu baris horizontal tepat di atas daftar kartu */
.vtype-wrap { position: relative; }
.vtype-hint {
  display: flex; align-items: center; justify-content: center; gap: 0.7rem;
  margin: 0 0 0.6rem;
  color: var(--text-secondary); pointer-events: none;
  transition: opacity 0.6s ease;
}
.vtype-hint-line {
  flex: 1; height: 1px;
  background: linear-gradient(to right, transparent, color-mix(in srgb, var(--vacc) 55%, transparent));
}
.vtype-hint-line:last-child {
  background: linear-gradient(to left, transparent, color-mix(in srgb, var(--vacc) 55%, transparent));
}
.vtype-hint-text { white-space: nowrap; font-size: 0.82rem; font-weight: 300; letter-spacing: 0.06em; }
.vtype-hint-arrow { display: inline-flex; color: var(--vacc); transform: rotate(90deg); }   /* panah ke bawah, menunjuk kartu */
.vtype-hint-arrow svg { animation: hintNudge 1.8s ease-in-out infinite; }
@keyframes hintNudge { 0%, 100% { transform: translateX(-2px); } 50% { transform: translateX(3px); } }   /* setelah diputar 90deg: naik-turun */
.vtype-wrap.is-used .vtype-hint { opacity: 0.4; }           /* setelah pengunjung mencoba, petunjuk meredup */

/* Pemilih jenis editan */
.vtype-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 0.6rem;
}
.vtype {
  width: 100%;
  display: flex; align-items: flex-start; gap: 0.95rem; text-align: left;
  padding: 0.85rem 1rem;
  font-family: inherit; cursor: pointer;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: transform 0.35s var(--ease-out), border-color 0.35s ease, background-color 0.35s ease, box-shadow 0.35s ease;
}
.vtype:hover { transform: translateX(6px); border-color: color-mix(in srgb, var(--c) 55%, transparent); }
.vtype.active {
  border-color: var(--c);
  background: color-mix(in srgb, var(--c) 10%, var(--bg-card));
  box-shadow: 0 4px 14px color-mix(in srgb, var(--c) 16%, transparent);
}
.vtype-icon {
  flex: 0 0 44px; height: 44px; border-radius: 0.65rem;
  display: flex; align-items: center; justify-content: center; font-size: 1.05rem;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 16%, transparent);
  transition: transform 0.4s var(--ease-spring), background-color 0.35s ease, color 0.35s ease;
}
.vtype.active .vtype-icon { color: #fff; background: var(--c); transform: rotate(-6deg) scale(1.06); }
.vtype-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.vtype-main strong { font-size: 0.98rem; font-weight: 800; color: var(--text-main); }
.vtype-main small { font-size: 0.76rem; color: var(--text-muted); margin-top: 0.1rem; }

/* Tombol menuju halaman video lengkap */
.vtype-all {
  display: flex; align-items: center; justify-content: center; gap: 0.6rem; margin-top: 0.9rem; padding: 0.8rem 1.2rem;
  font-size: 0.95rem; font-weight: 700; color: #06101f; text-decoration: none;
  background: var(--vacc); border-radius: var(--radius-md);
  box-shadow: 0 8px 22px color-mix(in srgb, var(--vacc) 30%, transparent);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease, filter 0.3s ease;
}
.vtype-all svg { transition: transform 0.3s var(--ease-out); }
.vtype-all:hover { transform: translateY(-1px); filter: brightness(1.06); box-shadow: 0 10px 26px color-mix(in srgb, var(--vacc) 40%, transparent); }
.vtype-all:hover svg { transform: translateX(3px); }
.vtype-all:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (max-width: 720px) { .vtype-all { margin-top: 0.6rem; padding: 0.65rem 1rem; font-size: 0.88rem; } }

/* — Foto & Desain: masonry (proporsi asli terjaga) + filter kategori — */
.photo-filters {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem;
  margin: 0 auto 1.5rem;
}
.chip {
  --c: var(--primary);
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.55rem 1.15rem; font-family: inherit; font-size: 0.86rem; font-weight: 600;
  color: var(--chip-text); cursor: pointer;
  /* Tombol tidak aktif: semua seragam (netral), hanya ikon yang berwarna */
  background: var(--chip-bg); border: 1px solid var(--chip-border); border-radius: 10px;
  transition: transform 0.25s var(--ease-out), color 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
.chip i { color: var(--c); font-size: 0.82rem; transition: color 0.25s ease; }
.chip .fa-font { font-size: 0.78rem; }
.chip:hover { border-color: var(--border-primary-strong); background: var(--chip-bg-hover); color: var(--text-strong); }
.chip:focus-visible { outline: 2px solid var(--c); outline-offset: 3px; }
.chip.active { color: #06101f; font-weight: 700; background: var(--c); border-color: var(--c); }
.chip.active i { color: #06101f; }
.photo-filters { transition: opacity 0.2s ease !important; }
.photo-filters.is-covered { opacity: 0 !important; pointer-events: none; }

/* Filter melayang di bawah navbar (diisi skrip saat pengunjung menggulir di dalam galeri foto) */
.photo-sticky {
  position: fixed; left: 0; right: 0; top: 70px; z-index: 150;
  display: flex; justify-content: center; padding: 0 1rem; pointer-events: none;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity 0.3s ease, transform 0.35s var(--ease-out), visibility 0s linear 0.35s;
}
.photo-sticky.is-on { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition-delay: 0s; }
.photo-sticky-inner {
  display: flex; gap: 0.4rem; max-width: 100%; padding: 0.4rem;
  overflow-x: auto; scrollbar-width: none;
  /* Kaca: latar tembus pandang + blur, foto di belakangnya samar terlihat */
  background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 16px;
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 10px 30px rgba(2, 6, 18, 0.4);
}
.photo-sticky-inner::-webkit-scrollbar { display: none; }
.photo-sticky .chip { flex: 0 0 auto; padding: 0.45rem 1rem; font-size: 0.82rem; white-space: nowrap; }
/* HP: tombol turun ke baris berikutnya (tidak perlu digeser ke samping) */
@media (max-width: 640px) {
  .photo-sticky-inner { flex-wrap: wrap; justify-content: center; gap: 0.35rem; overflow: visible; border-radius: 14px; padding: 0.45rem; }
  .photo-sticky .chip { padding: 0.38rem 0.75rem; font-size: 0.76rem; gap: 0.4rem; }
  .photo-sticky .chip i { font-size: 0.74rem; }
}
@media (prefers-reduced-motion: reduce) { .photo-sticky { transition: none; } }


.photo-grid {
  columns: 3; column-gap: 0.75rem;
  max-width: 860px; margin: 0 auto;
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.photo-grid.is-changing { opacity: 0; transform: translateY(10px); }
/* Masonry berbasis JS: foto baru masuk ke kolom terpendek, yang sudah tampil tidak berpindah */
.photo-grid.is-masonry {
  columns: auto; column-gap: 0;
  display: flex; align-items: flex-start; gap: 0.75rem;
}
.photo-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.photo-grid.is-masonry .photo-tile { margin: 0; }
.photo-tile.tile-in { animation: tileIn 0.55s var(--ease-out) backwards; animation-delay: calc(var(--k, 0) * 45ms); }
@keyframes tileIn { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: none; } }

/* Load More: baris terakhir memudar jadi transparan, tombol kaca bergradasi di atasnya */
.photo-grid.has-more {
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 190px), transparent 100%);
          mask-image: linear-gradient(to bottom, #000 calc(100% - 190px), transparent 100%);
}
.photo-more {
  position: relative; z-index: 3; display: flex; justify-content: center;
  margin-top: -84px; padding-bottom: 0.25rem;
  transition: opacity 0.22s ease;
}
.photo-more[hidden] { display: none; }
.photo-more.is-changing { opacity: 0; }
.more-btn {
  --mc: var(--primary);
  display: inline-flex; align-items: center; gap: 0.75rem;
  padding: 0.6rem 0.6rem 0.6rem 1.4rem; font-family: inherit; font-size: 0.95rem; font-weight: 700; letter-spacing: 0.01em;
  color: #fff; cursor: pointer; border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--mc) 55%, transparent);
  /* Latar hampir solid supaya teks tetap terbaca di atas foto apa pun */
  background: linear-gradient(color-mix(in srgb, var(--mc) 12%, transparent), color-mix(in srgb, var(--mc) 12%, transparent)), #0b1224;
  box-shadow: 0 10px 28px rgba(2, 6, 18, 0.65);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease, border-color 0.3s ease;
}
/* Jumlah sisa foto: lencana kecil */
.more-btn em {
  font-style: normal; font-weight: 700; font-size: 0.74rem; letter-spacing: 0.02em; white-space: nowrap;
  padding: 0.22rem 0.6rem; border-radius: 99px;
  color: color-mix(in srgb, var(--mc) 35%, #fff);
  background: color-mix(in srgb, var(--mc) 22%, transparent);
}
.more-btn em:empty { display: none; }
/* Panah: lingkaran berisi warna kategori */
.more-btn i {
  display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%;
  font-size: 0.72rem; color: #06101f; background: var(--mc); transition: transform 0.3s var(--ease-out);
}
.more-btn:hover { transform: translateY(-1px); border-color: var(--mc); box-shadow: 0 12px 30px rgba(2, 6, 18, 0.7), 0 0 0 3px color-mix(in srgb, var(--mc) 18%, transparent); }
.more-btn:hover i { transform: translateY(2px); }
.more-btn:focus-visible { outline: 2px solid var(--mc); outline-offset: 3px; }
.photo-tile {
  --c: var(--primary); --c2: #1e3a8a;
  position: relative; display: block; width: 100%;
  margin: 0 0 0.75rem; padding: 0;
  break-inside: avoid;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md); overflow: hidden; cursor: zoom-in;
  background: var(--bg-card);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s ease, border-color 0.35s ease;
}
.photo-tile[hidden] { display: none; }
.photo-tile:hover {
  transform: translateY(-4px);
  border-color: var(--c);
  box-shadow: 0 14px 30px color-mix(in srgb, var(--c) 28%, transparent);
}
.photo-tile img { display: block; width: 100%; height: auto; transition: transform 0.5s var(--ease-out); }
.photo-ph {
  display: flex; align-items: center; justify-content: center; width: 100%;
  font-size: 1.8rem; color: rgba(255,255,255,0.88);
  background: linear-gradient(160deg, var(--c), var(--c2));
  transition: transform 0.5s var(--ease-out);
}
.ph-aa { font-size: 2.8rem; font-weight: 800; letter-spacing: -0.02em; }
.photo-tile:hover img, .photo-tile:hover .photo-ph { transform: scale(1.05); }


/* — Karya Lengkap: highlight Instagram — */
:root { --ig-grad: linear-gradient(45deg, #f9ce34 0%, #ee2a7b 50%, #6228d7 100%); }

/* Petunjuk di atas portofolio: satu baris sederhana menuju bagian Karya Lengkap */

/* Panel highlight: kartu profil Instagram + deretan story highlight */
@property --ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.highlights { margin-top: 7rem; margin-bottom: 0; scroll-margin-top: max(90px, calc((100vh - 400px) / 2)); }   /* jarak dari galeri di atasnya; saat dituju dari teaser, blok berhenti di tengah layar (minimal di bawah navbar) supaya tidak mepet ke atas */
.highlights-panel {
  position: relative; overflow: hidden; text-align: center;
  max-width: 860px; margin: 0 auto;
  padding: 1.75rem 1.5rem 1.5rem;
  background:
    radial-gradient(circle at 100% 0%, rgba(238, 42, 123, 0.14), transparent 46%),
    radial-gradient(circle at 0% 100%, rgba(249, 206, 52, 0.07), transparent 44%),
    var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}
.highlights-panel > * { position: relative; z-index: 1; }

/* Kartu profil */
.ig-profile { display: flex; align-items: center; justify-content: space-between; gap: 1rem; text-align: left; }
.ig-profile-main { display: flex; align-items: center; gap: 1rem; min-width: 0; text-decoration: none; color: inherit; }
.ig-avatar {
  flex: 0 0 auto; display: block; width: 64px; height: 64px; border-radius: 50%; overflow: hidden;
}
.ig-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ig-meta { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.ig-meta strong { font-size: 1.1rem; font-weight: 800; color: var(--text-main); }
.ig-meta small { font-size: 0.88rem; font-weight: 600; color: #f472b6; }
.ig-meta em { font-style: normal; font-size: 0.76rem; color: var(--text-muted); }
.ig-btn {
  flex: 0 0 auto; margin: 0; gap: 0.6rem; padding: 0.8rem 1.6rem;
  font-size: 0.92rem; font-weight: 700; letter-spacing: 0.01em; color: #fff;
  border: 0;                                                  /* tanpa border: sebelumnya gradasi bocor di tepi kiri-kanan */
  background: linear-gradient(100deg, #f58529 0%, #dd2a7b 52%, #8134af 100%) border-box;
  box-shadow: 0 6px 18px rgba(221, 42, 123, 0.28);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease, filter 0.3s ease;
}
.ig-btn i { font-size: 1.05rem; }
.ig-btn:hover { transform: translateY(-1px); filter: brightness(1.08); box-shadow: 0 8px 22px rgba(221, 42, 123, 0.38); }
.ig-btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.ig-divider {
  display: flex; align-items: center; gap: 0.9rem; margin: 1.35rem 0 0.5rem;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted);
}
.ig-divider::before, .ig-divider::after { content: ""; flex: 1; height: 1px; }
.ig-divider::before { background: linear-gradient(to right, transparent, var(--border-medium)); }
.ig-divider::after  { background: linear-gradient(to left, transparent, var(--border-medium)); }

/* Lingkaran highlight: cincin gradasi (berputar saat disentuh) + ikon Instagram sebagai penanda */
.highlights-panel .portfolio-item {
  opacity: 0; transform: translateY(14px) scale(0.95);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 60ms + 250ms);
}
.highlights-panel.revealed .portfolio-item { opacity: 1; transform: none; }
.highlights-panel .portfolio-circle {
  --ang: 0deg;
  width: 96px; height: 96px;
  padding: 3px;
  border: 3px solid transparent;
  background:
    linear-gradient(#0b1224, #0b1224) padding-box,
    conic-gradient(from var(--ang), #f9ce34, #ee2a7b, #6228d7, #ee2a7b, #f9ce34) border-box;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}
.highlights-panel .portfolio-img { border-radius: 50%; }
.highlights-panel .portfolio-overlay {
  display: flex; position: absolute; inset: 0; align-items: center; justify-content: center;
  border-radius: 50%; background: rgba(6, 11, 24, 0.5); color: #fff; font-size: 1.15rem;
  opacity: 0; transition: opacity 0.3s ease;
}
.highlights-panel .portfolio-item:hover .portfolio-circle,
.highlights-panel .portfolio-item:focus-visible .portfolio-circle {
  transform: translateY(-2px);            /* naik tipis saja, tanpa membesar */
  border-color: transparent;
  box-shadow: 0 8px 18px rgba(238, 42, 123, 0.28);
  animation: ringSpin 2.6s linear infinite;
}
.highlights-panel .portfolio-item:hover .portfolio-img { transform: none; }
@keyframes ringSpin { to { --ang: 360deg; } }
.highlights-panel .portfolio-item:hover .portfolio-overlay,
.highlights-panel .portfolio-item:focus-visible .portfolio-overlay { opacity: 1; }
.highlights-panel .portfolio-item:hover .portfolio-label { color: #f472b6; }

/* Tablet & HP: deretan jadi baris yang bisa digeser, seperti highlight di Instagram */
@media (max-width: 900px) {
  .highlights-panel .portfolio-grid {
    display: flex; justify-content: flex-start; gap: 1.1rem;
    max-width: none; margin: 0 -1.5rem; padding: 1rem 1.5rem 0.9rem;
    overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: 1.5rem; scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 18px, #000 calc(100% - 36px), transparent 100%);
            mask-image: linear-gradient(to right, transparent 0, #000 18px, #000 calc(100% - 36px), transparent 100%);
  }
  .highlights-panel .portfolio-grid::-webkit-scrollbar { display: none; }
  .highlights-panel .portfolio-item { flex: 0 0 96px; max-width: none; scroll-snap-align: start; }
}
@media (max-width: 640px) {
  .highlights-panel { padding: 1.4rem 1.1rem 1.25rem; }
  .highlights-panel .portfolio-grid { margin: 0 -1.1rem; padding: 1rem 1.1rem 0.9rem; scroll-padding-inline: 1.1rem; }
  .ig-profile { flex-wrap: wrap; }
  .ig-profile-main { flex: 1 1 100%; }
  .ig-profile .ig-btn { width: 100%; }
  .ig-avatar { width: 56px; height: 56px; }
  .highlights-panel .portfolio-circle { width: 82px; height: 82px; }
  .highlights-panel .portfolio-item { flex-basis: 86px; }
}

/* Petunjuk geser: hanya muncul saat deretan highlight bisa digeser (HP & tablet), hilang setelah pengunjung menggeser */
.swipe-hint { display: none; }
@media (max-width: 900px) {
  .swipe-hint {
    display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin-top: 0.35rem;
    font-size: 0.78rem; font-weight: 400; letter-spacing: 0.04em; color: var(--text-muted);
    transition: opacity 0.4s ease;
  }
  .swipe-hint i { font-size: 0.7rem; color: #f472b6; animation: swipeNudge 1.6s ease-in-out infinite; }
  .swipe-hint.is-done { opacity: 0; pointer-events: none; }
}
@keyframes swipeNudge { 0%, 100% { transform: translateX(-2px); } 50% { transform: translateX(4px); } }
@media (prefers-reduced-motion: reduce) { .swipe-hint i { animation: none; } }

/* — Lightbox — */
.lightbox {
  position: fixed; inset: 0; z-index: 2000;
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  padding: 1.5rem;
  background: rgba(3, 6, 14, 0.97); }
.lightbox[hidden] { display: none; }
.lb-figure { margin: 0; max-width: min(900px, 100%); display: flex; flex-direction: column; gap: 0.75rem; align-items: center; }
.lb-stage { display: flex; justify-content: center; }
.lb-stage img { max-width: 100%; max-height: 75vh; border-radius: var(--radius-md); display: block; }
.lb-ph {
  width: min(420px, 78vw); max-height: 75vh; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center; font-size: 3rem; color: rgba(255,255,255,0.88);
  background: linear-gradient(160deg, var(--c), var(--c2));
}
.lb-figure figcaption { color: #fff; font-size: 0.9rem; font-weight: 600; display: flex; gap: 0.75rem; align-items: baseline; }
.lb-figure figcaption em { font-style: normal; color: var(--text-muted); font-size: 0.8rem; }
.lb-btn {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--border-medium); background: rgba(255,255,255,0.08);
  color: #fff; font-size: 1rem; cursor: pointer; transition: var(--transition);
}
.lb-btn:hover { background: var(--primary); border-color: var(--primary); }
.lb-close { position: absolute; top: 1.25rem; right: 1.25rem; }

/* — Responsive showcase — */
@media (max-width: 720px) {
  .video-stage { grid-template-columns: minmax(0, 1fr); gap: 0.75rem; min-height: 0; }
  .device-wrap { min-height: 330px; }
  .device { width: 156px; padding: 5px; border-radius: 1.7rem; }
  .device .phone-screen { border-radius: 1.35rem; }
  .device .vid-placeholder { gap: 0.5rem; padding: 0.75rem 0.7rem 2.5rem; font-size: 0.64rem; }
  .device .vid-placeholder i { font-size: 1.7rem; }
  .device .vid-mute { top: 1.9rem; right: 0.5rem; width: 28px; height: 28px; font-size: 0.7rem; }
  .device.is-landscape { width: 100%; padding: 6px; border-radius: 1rem; }
  .device.is-landscape .phone-screen { border-radius: 0.5rem; }
  .vtype:hover { transform: none; }

  /* Kartu jenis video dibuat ringkas di HP supaya pratinjau dan pilihannya terlihat sekaligus tanpa menggulir */
  .vtype-list { gap: 0.4rem; }
  .vtype { align-items: center; gap: 0.65rem; padding: 0.4rem 0.7rem; border-radius: 0.6rem; }
  .vtype-icon { flex: 0 0 32px; height: 32px; border-radius: 0.5rem; font-size: 0.82rem; }
  .vtype-main strong { font-size: 0.86rem; line-height: 1.25; }
  .vtype-main small { font-size: 0.68rem; margin-top: 0; line-height: 1.25; }
  .vtype-hint { margin-bottom: 0.4rem; }
  .vtype-hint-text { font-size: 0.74rem; }
}
/* HP berlayar pendek (mis. iPhone SE): pratinjau diperkecil supaya tetap muat bersama pilihannya */
@media (max-width: 720px) and (max-height: 720px) {
  .device-wrap { min-height: 260px; }
  .device { width: 124px; }
  .device.is-landscape { width: 100%; }
}
}
@media (max-width: 640px) {
  .showcase { margin-bottom: 2.5rem; }
  .highlights { margin-top: 5.5rem; }
  .photo-grid { columns: 2; column-gap: 0.5rem; }
  .photo-grid.is-masonry { gap: 0.5rem; }
  .photo-col { gap: 0.5rem; }
  .photo-more { margin-top: -76px; }
  .photo-tile { margin-bottom: 0.5rem; }
  .photo-filters { gap: 0.4rem; }
  .highlights-panel { padding: 1.5rem 0.75rem 1.25rem; }
  .chip { padding: 0.45rem 0.85rem; font-size: 0.78rem; }
  .lb-prev, .lb-next { position: absolute; bottom: 1.25rem; }
  .lb-prev { left: 1.25rem; }
  .lb-next { right: 1.25rem; }
}

/* ── Skills ───────────────────────────────────────────── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.1rem;
}
.skill-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 1.2rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: var(--transition);
   position: relative;
  overflow: hidden;
}
.skill-box::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(96,165,250,0.03) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.skill-box:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.skill-box:hover::after { opacity: 1; }

.skill-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  background: var(--primary-subtle);
  border: 1px solid var(--border-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.25rem;
  flex-shrink: 0;
  transition: var(--transition);
}
.skill-box:hover .skill-icon { transform: scale(1.1) rotate(-3deg); }
.icon-pr { background: #00005b; border-color: #9999ff; box-shadow: 0 4px 12px rgba(153,153,255,0.2); }
.icon-pr .adobe-badge { color: #ea77ff; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.5px; }
.icon-ps { background: #001e36; border-color: #31a8ff; box-shadow: 0 4px 12px rgba(49,168,255,0.2); }
.icon-ps .adobe-badge { color: #31a8ff; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.5px; }
.icon-capcut { background: #0b111e; border-color: #38bdf8; color: #fff; box-shadow: 0 4px 12px rgba(56,189,248,0.2); }
.capcut-svg { display: block; color: #fff; transition: transform 0.25s var(--ease-spring); }
.skill-box:hover .capcut-svg, .skill-box:hover .adobe-badge { transform: scale(1.08); }

.skill-info { flex: 1; min-width: 0; }
.skill-name { font-size: 1rem; font-weight: 700; color: var(--text-strong); margin-bottom: 0.25rem; }
.skill-text { font-size: 0.83rem; color: var(--text-muted); line-height: 1.5; margin-bottom: 0.85rem; }

.skill-bar {
  height: 4px;
  background: rgba(255,255,255,0.07);
  border-radius: 9999px;
  overflow: hidden;
}
.skill-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--accent-purple));
  border-radius: 9999px;
  transition: width 1.2s var(--ease-out);
}

/* ── Devices ──────────────────────────────────────────── */
.devices-wrap {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.devices-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.devices-label i { color: var(--primary); }
.devices-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.device-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.25rem;
  flex: 1;
  min-width: 200px;
  transition: var(--transition);
 }
.device-card:hover {
  border-color: var(--border-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.device-icon {
  font-size: 1.8rem;
  color: var(--primary);
  flex-shrink: 0;
}
.device-info { display: flex; flex-direction: column; gap: 0.15rem; }
.device-name { font-size: 0.95rem; font-weight: 700; color: var(--text-strong); }
.device-desc { font-size: 0.78rem; color: var(--text-muted); }

/* ── Footer ───────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 2.5rem 0;
  position: relative;
  z-index: 1;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
}
.footer-logo { font-size: 1.25rem; font-weight: 800; color: var(--text-main); letter-spacing: -0.03em; }
.footer-copy { font-size: 0.85rem; color: var(--text-muted); }
.footer-copy strong { color: var(--text-main); }

.footer-social { display: flex; gap: 0.6rem; }
.social-btn {
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  background: var(--primary-subtle);
  border: 1px solid var(--border-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  text-decoration: none;
  font-size: 0.95rem;
  transition: var(--transition);
}
.social-btn:hover { background: var(--primary); color: #fff; transform: translateY(-3px); box-shadow: 0 6px 16px var(--primary-glow); }

/* ── Toast ────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 2rem; right: 2rem;
  background: #1e293b;
  color: var(--text-main);
  border: 1px solid var(--primary);
  box-shadow: 0 8px 24px rgba(0,0,0,0.5), 0 0 16px var(--primary-glow);
  padding: 0.75rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transform: translateY(80px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s var(--ease-spring), opacity 0.35s ease;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast i { color: #4ade80; }

/* ── Scroll Reveal Animations ─────────────────────────── */
[data-reveal] {
  opacity: 0;
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
[data-reveal="fade-up"] { transform: translateY(30px); }
[data-reveal="fade-left"] { transform: translateX(-30px); }
[data-reveal="zoom-in"] { transform: scale(0.9); }
[data-reveal].revealed { opacity: 1; transform: none; }

/* ── Responsive: Tablet (≤900px) ─────────────────────── */
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }

  .portfolio-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.75rem 1rem;
  }
}

/* ── Responsive: Mobile (≤640px) ─────────────────────── */
@media (max-width: 640px) {
  .badge-status { font-size: 0.72rem; padding: 0.3rem 0.8rem; }
  .status-row { gap: 0.4rem; }
  .section { padding: 2.5rem 0; }
  .section-title-wrap { margin-bottom: 1.75rem; }
  .hero-section { padding: 7rem 0 2.5rem; }

  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 1.15rem;
  }
  .metric-item + .metric-item::before { display: none; }
  .metric-item:nth-child(1), .metric-item:nth-child(2) { padding-bottom: 1rem; border-bottom: 1px solid var(--border-subtle); }
  .metric-item:nth-child(2), .metric-item:nth-child(4) {
    border-left: 1px solid var(--border-subtle);
    padding-left: 1rem;
  }

  .timeline::before { display: none; }
  .timeline-dot { display: none; }
  .timeline-item { gap: 0; padding-bottom: 1rem; }
  .timeline-card {
    padding: 1.1rem 1.15rem;
    border-radius: var(--radius-sm);
  }
  .exp-role { font-size: 1.05rem; }
  .exp-meta { flex-direction: column; gap: 0.25rem; align-items: flex-start; }
  .exp-dot-sep { display: none; }
  .exp-period { font-size: 0.78rem; }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem 0.75rem;
    max-width: 340px;
    margin: 0 auto;
  }
  .portfolio-item:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
  }
  .portfolio-circle { width: 80px; height: 80px; }

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

  .hero-btn-group { flex-direction: column; width: 100%; max-width: 340px; }
  .hero-btn-group .btn { width: 100%; justify-content: center; }

  .footer-inner { flex-direction: column; text-align: center; }

  .toast { left: 1rem; right: 1rem; bottom: 1.25rem; justify-content: center; }
  .scroll-hint { display: none; }
}

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

/* ── Tombol WhatsApp melayang ─────────────────────────── */
.wa-float {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 140;     /* di bawah menu mobile (150) & lightbox (2000) */
  display: flex; align-items: center; height: 54px; min-width: 54px; padding: 0 1.05rem; justify-content: center;
  border-radius: 99px; color: #fff; font-size: 0.88rem; font-weight: 700; text-decoration: none;
  background: linear-gradient(135deg, #25d366, #128c7e);
  box-shadow: 0 10px 26px rgba(18, 140, 126, 0.45);
  opacity: 0; visibility: hidden; transform: translateY(14px) scale(0.92);
  transition: opacity 0.35s ease, transform 0.35s var(--ease-out), visibility 0.35s, box-shadow 0.3s ease;
}
.wa-float.show { opacity: 1; visibility: visible; transform: none; }
.wa-float i { font-size: 1.55rem; }
.wa-float-label {
  max-width: 0; margin-left: 0; overflow: hidden; white-space: nowrap; opacity: 0;
  transition: max-width 0.35s var(--ease-out), margin 0.35s var(--ease-out), opacity 0.25s ease;
}
.wa-float:hover { box-shadow: 0 14px 32px rgba(18, 140, 126, 0.6); }
.wa-float:hover .wa-float-label, .wa-float:focus-visible .wa-float-label { max-width: 150px; margin-left: 0.6rem; opacity: 1; }

@media (max-width: 640px) {
  .wa-float { right: 1rem; bottom: 1rem; height: 52px; min-width: 52px; padding: 0 0.95rem; }
}
