/* ============================================================
   Portfolio Juzy — "Developer Studio"
   Modern, animated, dark-first with light toggle
   ============================================================ */

/* ── Fonts loaded in HTML ── */
:root {
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Accent (tweakable via JS) */
  --accent: #5b8cff;
  --accent-2: #34e2ff;
  --accent-soft: rgba(91, 140, 255, 0.16);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --reveal-y: 34px;
}

/* ── Dark theme (default) ── */
:root,
:root[data-theme="dark"] {
  --bg: #05070f;
  --bg-grad-a: #070b18;
  --bg-grad-b: #05060e;
  --surface: rgba(255, 255, 255, 0.025);
  --surface-2: rgba(255, 255, 255, 0.04);
  --surface-solid: #0c1120;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #eaeefb;
  --text-dim: #9aa3bd;
  --text-faint: #5d6685;
  --shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.8);
  --aurora-op: 0.55;
  --grid-op: 0.4;
  color-scheme: dark;
}

/* ── Light theme ── */
:root[data-theme="light"] {
  --bg: #eef1f8;
  --bg-grad-a: #f4f6fc;
  --bg-grad-b: #e7ebf6;
  --surface: rgba(255, 255, 255, 0.7);
  --surface-2: rgba(255, 255, 255, 0.9);
  --surface-solid: #ffffff;
  --line: rgba(14, 22, 50, 0.1);
  --line-strong: rgba(14, 22, 50, 0.18);
  --text: #0c1430;
  --text-dim: #515d7e;
  --text-faint: #8b95b2;
  --shadow: 0 28px 60px -30px rgba(36, 56, 120, 0.4);
  --aurora-op: 0.5;
  --grid-op: 0.5;
  color-scheme: light;
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
  transition: background 0.5s var(--ease), color 0.5s var(--ease);
}

@media (hover: none) { body { cursor: auto; } }

::selection { background: var(--accent-soft); color: var(--text); }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--accent), var(--accent-2));
  border-radius: 20px;
  border: 3px solid var(--bg);
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }

.wrap { width: min(1180px, 100% - 48px); margin-inline: auto; }

/* ============================================================
   BACKGROUND LAYERS (aurora + grid) — fixed, behind everything
   ============================================================ */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% -10%, var(--bg-grad-a), var(--bg-grad-b) 60%);
}
.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: var(--aurora-op);
  mix-blend-mode: screen;
  will-change: transform;
}
:root[data-theme="light"] .aurora { mix-blend-mode: multiply; opacity: var(--aurora-op); }
.aurora.a1 {
  width: 46vw; height: 46vw; left: -8vw; top: -10vw;
  background: radial-gradient(circle, var(--accent), transparent 65%);
  animation: drift1 22s ease-in-out infinite;
}
.aurora.a2 {
  width: 40vw; height: 40vw; right: -6vw; top: 8vh;
  background: radial-gradient(circle, var(--accent-2), transparent 65%);
  animation: drift2 26s ease-in-out infinite;
}
.aurora.a3 {
  width: 38vw; height: 38vw; left: 30vw; top: 40vh;
  background: radial-gradient(circle, #8b5bff, transparent 65%);
  opacity: calc(var(--aurora-op) * 0.6);
  animation: drift3 30s ease-in-out infinite;
}
@keyframes drift1 {
  0%,100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(14vw, 10vh) scale(1.15); }
  66% { transform: translate(6vw, -6vh) scale(0.9); }
}
@keyframes drift2 {
  0%,100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(-12vw, 14vh) scale(1.2); }
}
@keyframes drift3 {
  0%,100% { transform: translate(0,0) scale(1); }
  40% { transform: translate(-14vw, -8vh) scale(1.1); }
  80% { transform: translate(10vw, 6vh) scale(0.95); }
}

/* dotted grid */
.grid-layer {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: var(--grid-op);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 78%);
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 78%);
}

/* cursor spotlight */
.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 460px; height: 460px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--accent-soft), transparent 60%);
  opacity: 0;
  transition: opacity 0.5s ease;
  will-change: left, top;
}
@media (hover: hover) and (pointer: fine) {
  body:hover .cursor-glow { opacity: 1; }
}

/* ============================================================
   NAVBAR
   ============================================================ */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding: 18px 24px;
  transition: padding 0.4s var(--ease);
}
header.shrink { padding: 10px 24px; }
nav {
  width: min(1180px, 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px 12px 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-solid) 55%, transparent);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
header.shrink nav {
  box-shadow: var(--shadow);
  border-color: var(--line-strong);
}
.logo {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.logo .br { color: var(--accent); }
.logo:hover { transform: scale(1.04); }
.logo { transition: transform 0.3s var(--ease); }
.logo-img {
  height: 28px;
  width: auto;
  object-fit: contain;
}
.logo-text {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.logo-text .br { color: var(--accent); }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a {
  position: relative;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dim);
  padding: 8px 14px;
  border-radius: 999px;
  transition: color 0.25s var(--ease);
}
.nav-links a .n { font-family: var(--font-mono); font-size: 0.7rem; color: var(--accent); opacity: 0.7; margin-right: 4px; }
.nav-links a::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--surface-2);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  z-index: -1;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a:hover::before, .nav-links a.active::before { opacity: 1; transform: scale(1); }

.nav-ctrl { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 40px; height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-dim);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s var(--ease);
  overflow: hidden;
}
.icon-btn:hover { color: var(--text); border-color: var(--line-strong); transform: translateY(-2px); }
.icon-btn i { font-size: 0.95rem; }
#menuBtn { display: none; }

/* mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--text);
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.5s var(--ease);
}
.mobile-menu.open a { transform: translateY(0); opacity: 1; }
.mobile-menu.open a:nth-child(1) { transition-delay: 0.05s; }
.mobile-menu.open a:nth-child(2) { transition-delay: 0.1s; }
.mobile-menu.open a:nth-child(3) { transition-delay: 0.15s; }
.mobile-menu.open a:nth-child(4) { transition-delay: 0.2s; }
.mobile-menu a .n { font-family: var(--font-mono); font-size: 1rem; color: var(--accent); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  padding: 15px 26px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.35s var(--ease), background 0.3s var(--ease);
  will-change: transform;
}
.btn i { transition: transform 0.3s var(--ease); }
.btn-primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #050a18;
  box-shadow: 0 12px 36px -10px var(--accent);
}
.btn-primary:hover { box-shadow: 0 18px 50px -10px var(--accent); }
.btn-primary:hover i { transform: translateX(4px); }
.btn-ghost {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--text);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: var(--surface-2); }

/* ============================================================
   SECTION SCAFFOLD
   ============================================================ */
section { position: relative; padding: 120px 0; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); animation: pulseDot 2s ease-in-out infinite; }
@keyframes pulseDot { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.7); } }

.sec-head { margin-bottom: 56px; }
.sec-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  letter-spacing: -0.03em;
  line-height: 1.04;
  margin-top: 20px;
}
.sec-title .grad {
  background: linear-gradient(110deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.sec-sub { color: var(--text-dim); max-width: 52ch; margin-top: 16px; font-size: 1.02rem; }

/* ============================================================
   REVEAL (scroll)
   ============================================================ */
.js .reveal {
  opacity: 0;
  transform: translateY(var(--reveal-y));
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1 !important; transform: none !important; }
  .aurora, .marquee-track { animation: none !important; }
}

/* ============================================================
   HERO
   ============================================================ */
#hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
}
.hero-bg-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
#hero .wrap {
  position: relative;
  z-index: 1;
}
.hero-bg-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 1; /* Gambar tampil maksimal tanpa transparansi */
  transition: opacity 0.3s ease;
}

/* Desktop: tampilkan latar.webp, sembunyikan latar2.webp */
.desktop-bg { display: block; }
.mobile-bg { display: none; }

/* Mobile: tampilkan latar2.webp, sembunyikan latar.webp */
@media (max-width: 768px) {
  .desktop-bg { display: none; }
  .mobile-bg { display: block; }
}
#hero .wrap {
  position: relative;
  z-index: 1;
}
.hero-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
}
.hero-status {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-dim);
  padding: 8px 15px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface);
}
.hero-status .live { width: 8px; height: 8px; border-radius: 50%; background: #2ee6a0; box-shadow: 0 0 0 0 #2ee6a0aa; animation: live 1.8s ease-out infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 #2ee6a088; } 100% { box-shadow: 0 0 0 12px #2ee6a000; } }

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.4rem, 9vw, 6.4rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
  margin: 22px 0 8px;
}
.hero h1 .name {
  background: linear-gradient(120deg, var(--text) 30%, var(--accent) 70%, var(--accent-2));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-role {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.3rem, 3.4vw, 2rem);
  color: var(--text-dim);
  height: 1.3em;
  display: flex;
  align-items: center;
  gap: 4px;
}
#typingText { color: var(--accent); }
.cursor-bar { width: 3px; height: 1.05em; background: var(--accent); display: inline-block; animation: blink 1s steps(2) infinite; border-radius: 2px; }
@keyframes blink { 50% { opacity: 0; } }

.hero p.lead { color: var(--text-dim); font-size: 1.08rem; max-width: 48ch; margin: 26px 0 34px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-meta { display: flex; gap: 30px; margin-top: 40px; }
.hero-meta .m-num { font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; color: var(--text); }
.hero-meta .m-num .plus { color: var(--accent); }
.hero-meta .m-lbl { font-size: 0.78rem; color: var(--text-faint); font-family: var(--font-mono); }

/* hero visual — code card */
.hero-visual { position: relative; perspective: 1200px; }
.code-card {
  position: relative;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.2s var(--ease);
}
.code-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(120% 120% at 0% 0%, var(--accent-soft), transparent 50%);
  pointer-events: none;
}
.code-top { display: flex; align-items: center; gap: 7px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.code-top .dot { width: 11px; height: 11px; border-radius: 50%; }
.code-top .dot.r { background: #ff5f57; } .code-top .dot.y { background: #febc2e; } .code-top .dot.g { background: #28c840; }
.code-top .file { margin-left: 10px; font-family: var(--font-mono); font-size: 0.74rem; color: var(--text-faint); }
.code-body { padding: 20px; font-family: var(--font-mono); font-size: 0.82rem; line-height: 1.85; }
.code-body .ln { display: block; white-space: pre; }
.code-body .k { color: #c98bff; } .code-body .s { color: #5ce0a8; } .code-body .p { color: var(--accent-2); } .code-body .c { color: var(--text-faint); } .code-body .f { color: var(--accent); }
.cc-badge {
  position: absolute;
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600;
  padding: 9px 14px; border-radius: 12px;
  background: var(--surface-solid); border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 8px;
}
.cc-badge i { color: var(--accent); }
.cc-badge.b1 { top: -18px; right: 16px; animation: floaty 5s ease-in-out infinite; }
.cc-badge.b2 { bottom: 28px; left: -26px; animation: floaty 6s ease-in-out infinite 0.6s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.scroll-cue {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 0.68rem; color: var(--text-faint);
  letter-spacing: 0.2em; text-transform: uppercase;
}
.scroll-cue .bar { width: 1px; height: 38px; background: linear-gradient(var(--accent), transparent); animation: scrollBar 2s ease-in-out infinite; transform-origin: top; }
@keyframes scrollBar { 0%,100% { transform: scaleY(0.4); opacity: 0.4; } 50% { transform: scaleY(1); opacity: 1; } }

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  position: relative;
  padding: 30px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; gap: 56px; width: max-content; animation: scrollX 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.8rem; color: var(--text-dim);
  display: inline-flex; align-items: center; gap: 56px;
  white-space: nowrap;
}
.marquee-track span::after { content: '✦'; color: var(--accent); font-size: 0.8rem; }
@keyframes scrollX { to { transform: translateX(-50%); } }

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.profile-card {
  position: relative;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(165deg, var(--surface-2), var(--surface));
  padding: 30px;
  box-shadow: var(--shadow);
  transform-style: preserve-3d;
  transition: transform 0.2s var(--ease);
}
.profile-card .glow-edge { position: absolute; top: 0; left: 24px; right: 24px; height: 1px; background: linear-gradient(90deg, transparent, var(--accent), transparent); }
.pc-head { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.pc-avatar {
  width: 64px; height: 64px; border-radius: 18px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex; align-items: center; justify-content: center;
  color: #050a18; font-size: 1.6rem;
  box-shadow: 0 10px 30px -8px var(--accent);
}
.pc-head h3 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; }
.pc-head .role { font-family: var(--font-mono); font-size: 0.9rem; color: var(--text); font-weight: 600; }
.pc-info { display: flex; flex-direction: column; gap: 12px; }
.pc-info .row { display: flex; align-items: center; gap: 12px; font-size: 0.95rem; color: var(--text); font-weight: 500; }
.pc-info .ic { width: 32px; height: 32px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--accent); font-size: 0.8rem; flex-shrink: 0; }
.pc-info .row.ok { color: #16a34a; text-shadow: none; }
.pc-info .row.ok .ic { color: #16a34a; }
.pc-info .live2 { width: 8px; height: 8px; border-radius: 50%; background: #16a34a; animation: pulseDot 1.6s infinite; }

.about-body h3 { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 20px; }
.about-body p { color: var(--text-dim); margin-bottom: 14px; }
.about-body strong { color: var(--text); font-weight: 600; }
.about-body .hl { border-left: 2px solid var(--accent); padding-left: 16px; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 30px; }
.stat {
  border-radius: 16px; border: 1px solid var(--line);
  background: var(--surface); padding: 20px 16px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.stat:hover { transform: translateY(-5px); border-color: var(--line-strong); }
.stat .num { font-family: var(--font-display); font-weight: 700; font-size: 2.1rem; line-height: 1; }
.stat .num .grad { background: linear-gradient(120deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat .lbl { font-size: 0.74rem; color: var(--text-faint); margin-top: 8px; font-family: var(--font-mono); }

/* ============================================================
   SKILLS
   ============================================================ */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.skill {
  position: relative;
  display: flex; align-items: center; gap: 13px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.skill::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(140% 120% at var(--mx, 50%) var(--my, 50%), var(--accent-soft), transparent 55%);
  opacity: 0; transition: opacity 0.4s var(--ease);
}
.skill:hover { transform: translateY(-5px); border-color: var(--line-strong); }
.skill:hover::before { opacity: 1; }
.skill .s-ic {
  position: relative; z-index: 1;
  width: 42px; height: 42px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
  background: var(--surface-2); border: 1px solid var(--line);
  transition: transform 0.4s var(--ease);
}
.skill:hover .s-ic { transform: scale(1.1) rotate(-6deg); }
.skill .s-name { position: relative; z-index: 1; font-weight: 600; font-size: 0.92rem; }
.skill svg { width: 22px; height: 22px; }

/* ============================================================
   PROJECTS
   ============================================================ */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filter-btn {
  font-family: var(--font-mono);
  font-size: 0.8rem; font-weight: 500;
  white-space: nowrap;
  padding: 9px 18px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text-dim);
  transition: all 0.3s var(--ease);
}
.filter-btn:hover { color: var(--text); border-color: var(--line-strong); }
.filter-btn.active { background: var(--text); color: var(--bg); border-color: var(--text); }

.proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.proj {
  position: relative;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.4s var(--ease), opacity 0.4s var(--ease);
  will-change: transform;
}
.proj:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.proj.hide { display: none; }
.proj-thumb { position: relative; height: 168px; overflow: hidden; transform: translateZ(20px); }
.proj-thumb .ph {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; color: rgba(255,255,255,0.85);
}
.proj-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.proj:hover .proj-thumb img { transform: scale(1.08); }
.proj-thumb::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(5,7,15,0.5)); opacity: 0; transition: opacity 0.4s var(--ease); }
.proj:hover .proj-thumb::after { opacity: 1; }
.proj-num { position: absolute; top: 12px; left: 14px; font-family: var(--font-mono); font-size: 0.72rem; color: rgba(255,255,255,0.9); z-index: 2; text-shadow: 0 1px 6px rgba(0,0,0,0.5); }
.proj-arrow {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 36px; height: 36px; border-radius: 11px;
  background: rgba(255,255,255,0.16); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center; color: #fff;
  opacity: 0; transform: translate(-6px, 6px) scale(0.8);
  transition: all 0.4s var(--ease);
}
.proj:hover .proj-arrow { opacity: 1; transform: none; }
.proj-body { padding: 20px; transform: translateZ(30px); }
.proj-body .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.proj-title { font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; }
.proj-badge { font-family: var(--font-mono); font-size: 0.64rem; font-weight: 600; padding: 4px 9px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.05em; background: var(--accent-soft); color: var(--accent); border: 1px solid var(--line); flex-shrink: 0; }
.proj-badge.umkm { background: rgba(255,184,77,0.14); color: #f5b14d; }
.proj-desc { font-size: 0.86rem; color: var(--text-dim); margin-bottom: 14px; }
.proj-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.proj-tags span { font-family: var(--font-mono); font-size: 0.68rem; padding: 3px 9px; border-radius: 7px; background: var(--surface-2); color: var(--text-dim); border: 1px solid var(--line); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-card {
  position: relative;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  overflow: hidden;
  padding: 64px 48px;
  text-align: center;
}
.contact-card .c-aurora { position: absolute; width: 60%; height: 200%; left: 50%; top: -50%; transform: translateX(-50%); background: radial-gradient(circle, var(--accent-soft), transparent 60%); pointer-events: none; }
.contact-card h2 { position: relative; font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -0.03em; line-height: 1.05; }
.contact-card h2 .grad { background: linear-gradient(110deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.contact-card p.cp { position: relative; color: var(--text-dim); max-width: 46ch; margin: 18px auto 36px; }
.contact-links { position: relative; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-bottom: 40px; }
.c-link { display: inline-flex; align-items: center; gap: 12px; padding: 16px 22px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); transition: all 0.3s var(--ease); text-align: left; }
.c-link:hover { transform: translateY(-4px); border-color: var(--line-strong); background: var(--surface-2); }
.c-link .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.c-link .meta small { display: block; font-family: var(--font-mono); font-size: 0.68rem; color: var(--text-faint); }
.c-link .meta strong { font-weight: 600; font-size: 0.9rem; }
.socials { position: relative; display: flex; gap: 12px; justify-content: center; }
.soc { width: 48px; height: 48px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--text-dim); display: flex; align-items: center; justify-content: center; transition: all 0.3s var(--ease); }
.soc:hover { color: var(--text); transform: translateY(-4px) rotate(-6deg); border-color: var(--accent); box-shadow: 0 12px 30px -10px var(--accent); }

/* ============================================================
   FOOTER
   ============================================================ */
footer { border-top: 1px solid var(--line); padding: 36px 0; }
.footer-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; font-size: 0.82rem; color: var(--text-faint); }
.footer-in .accent { color: var(--accent); font-weight: 600; }
footer .heart { color: #ff5f7e; }

/* back to top */
#backTop {
  position: fixed; bottom: 26px; right: 26px; z-index: 90;
  width: 50px; height: 50px; border-radius: 14px;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #050a18; border: none;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 36px -10px var(--accent);
  opacity: 0; transform: translateY(16px) scale(0.8); pointer-events: none;
  transition: all 0.4s var(--ease);
}
#backTop.show { opacity: 1; transform: none; pointer-events: auto; }
#backTop:hover { transform: translateY(-4px); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-visual { max-width: 440px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .proj-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  section { padding: 88px 0; }
  .nav-links { display: none; }
  #menuBtn { display: flex; }
  .proj-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .hero-meta { gap: 22px; }
  .contact-card { padding: 48px 24px; }
  .cursor-glow { display: none; }
}

/* ============================================================
   CSP FIXES - replaced inline styles with CSS classes
   ============================================================ */

/* Logo fallback handling */
.logo-text-hidden { display: none; }
.logo-text-visible { display: inline-flex; }
.logo-img-hidden { display: none; }

/* Contact section eyebrow */
.contact-eyebrow { position: relative; }

/* Reveal animation delays - replaces --i inline styles */
.reveal-1 { --i: 1; }
.reveal-2 { --i: 2; }

/* Skill icon colors - replaces inline style colors */
.skill-react { color: #61dafb; }
.skill-js { color: #f7df1e; }
.skill-php { color: #787cb5; }
.skill-laravel { color: #ff2d20; }
.skill-mysql { color: #4479a1; }
.skill-tailwind { color: #38bdf8; }
.skill-vite { color: #bd34fe; }
.skill-css3 { color: #264de4; }
.skill-html5 { color: #e34f26; }
.skill-git { color: #f05032; }
.skill-docker { color: #2496ed; }
.skill-nodejs { color: #83cd29; }
.skill-ts { color: #3178c6; }
.skill-restapi { color: #5ce0a8; }
.skill-linux { color: #fcc624; background: #1a1a1a; border-color: #1a1a1a; }

/* Project thumb gradients - replaces inline gradient styles */
.proj-1 { background: linear-gradient(135deg,#3b6dff,#5a3bff); }
.proj-2 { background: linear-gradient(135deg,#0fb37d,#0d9488); }
.proj-3 { background: linear-gradient(135deg,#06b6d4,#3b6dff); }
.proj-4 { background: linear-gradient(135deg,#8b5cf6,#6d28d9); }
.proj-5 { background: linear-gradient(135deg,#ec4899,#be185d); }

/* Proj img hidden class for onerror fallback */
.proj-img-hidden { display: none; }