/* ══════════════════════════════════════
   DESIGN TOKENS
══════════════════════════════════════ */
:root {
  --bg: #080808;
  --bg2: #0f0f0f;
  --glass: rgba(255, 255, 255, 0.05);
  --glass-md: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.10);
  --glass-border-strong: rgba(255, 255, 255, 0.18);
  --glass-hover: rgba(255, 255, 255, 0.09);
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.45);
  --text-dim: #505050;
  --nav-bg: rgba(14, 14, 14, 0.55);
  --nav-inner-glow: rgba(255, 255, 255, 0.06);
  --nav-specular: rgba(255, 255, 255, 0.22);

  /* Projects-specific tokens */
  --proj-bg-from: #080808;
  --proj-bg-to: #0d0d0d;
  --proj-slide-bg: rgba(16, 16, 16, 0.78);
  --proj-slide-border-top: rgba(255, 255, 255, 0.24);
  --proj-slide-border-side: rgba(255, 255, 255, 0.09);
  --proj-slide-border-bot: rgba(255, 255, 255, 0.04);
  --proj-slide-shadow: 0 48px 96px rgba(0, 0, 0, 0.65), 0 12px 32px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.05);
  --proj-slide-inactive-bg: rgba(14, 14, 14, 0.60);
  --proj-small-bg: rgba(13, 13, 13, 0.75);
  --proj-small-border-top: rgba(255, 255, 255, 0.16);
  --proj-small-border-side: rgba(255, 255, 255, 0.07);
  --proj-arrow-bg: rgba(20, 20, 20, 0.75);
  --proj-arrow-border: rgba(255, 255, 255, 0.20);
  --proj-tag-bg: rgba(255, 255, 255, 0.06);
  --proj-tag-border: rgba(255, 255, 255, 0.10);
  --proj-preview-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(0, 0, 0, 0.12) 100%);
  --proj-mockup-bg: rgba(255, 255, 255, 0.04);
  --proj-mockup-border: rgba(255, 255, 255, 0.12);
  --proj-btn-bg: rgba(255, 255, 255, 0.09);
  --proj-btn-border: rgba(255, 255, 255, 0.22);
  --proj-btn-color: #ffffff;
  --proj-noise-opacity: 0.028;
  --proj-specular: rgba(255, 255, 255, 0.55);
  --proj-inner-glow: rgba(255, 255, 255, 0.18);
  --proj-rim-glow: rgba(255, 255, 255, 0.06);
}

.light-mode {
  --bg: #f0f2f7;
  --bg2: #e8ebf2;
  --glass: rgba(255, 255, 255, 0.52);
  --glass-md: rgba(255, 255, 255, 0.68);
  --glass-border: rgba(0, 0, 0, 0.10);
  --glass-border-strong: rgba(0, 0, 0, 0.18);
  --glass-hover: rgba(255, 255, 255, 0.72);
  --text: #0a0a0a;
  --text-muted: rgba(0, 0, 0, 0.45);
  --text-dim: #999;
  --nav-bg: rgba(220, 220, 220, 0.55);
  --nav-inner-glow: rgba(255, 255, 255, 0.7);
  --nav-specular: rgba(255, 255, 255, 0.9);

  /* Projects light mode tokens */
  --proj-bg-from: #f5f5f5;
  --proj-bg-to: #f0f0f0;
  --proj-slide-bg: rgba(255, 255, 255, 0.72);
  --proj-slide-border-top: rgba(255, 255, 255, 0.95);
  --proj-slide-border-side: rgba(0, 0, 0, 0.08);
  --proj-slide-border-bot: rgba(0, 0, 0, 0.04);
  --proj-slide-shadow: 0 40px 80px rgba(0, 0, 0, 0.10), 0 10px 30px rgba(0, 0, 0, 0.07), 0 0 0 1px rgba(255, 255, 255, 0.7);
  --proj-slide-inactive-bg: rgba(255, 255, 255, 0.42);
  --proj-small-bg: rgba(255, 255, 255, 0.68);
  --proj-small-border-top: rgba(255, 255, 255, 0.98);
  --proj-small-border-side: rgba(0, 0, 0, 0.07);
  --proj-arrow-bg: rgba(255, 255, 255, 0.75);
  --proj-arrow-border: rgba(0, 0, 0, 0.10);
  --proj-tag-bg: rgba(0, 0, 0, 0.05);
  --proj-tag-border: rgba(0, 0, 0, 0.09);
  --proj-preview-bg: linear-gradient(135deg, rgba(0, 0, 0, 0.03) 0%, rgba(0, 0, 0, 0.06) 100%);
  --proj-mockup-bg: rgba(0, 0, 0, 0.04);
  --proj-mockup-border: rgba(0, 0, 0, 0.09);
  --proj-btn-bg: rgba(255, 255, 255, 0.80);
  --proj-btn-border: rgba(0, 0, 0, 0.12);
  --proj-btn-color: #111111;
  --proj-noise-opacity: 0.015;
  --proj-specular: rgba(255, 255, 255, 0.98);
  --proj-inner-glow: rgba(255, 255, 255, 0.90);
  --proj-rim-glow: rgba(255, 255, 255, 0.60);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip; /* clip lebih kuat dari hidden, tidak menciptakan scroll container baru */
  max-width: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  cursor: none;
  transition: background 0.4s, color 0.4s;
  overflow-x: clip;
  max-width: 100%;
}

/* ══════════════════════════════════════
   CURSOR
══════════════════════════════════════ */
#cur {
  position: fixed;
  width: 9px;
  height: 9px;
  background: #fff;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  transition: width .18s, height .18s;
}

#cur-ring {
  position: fixed;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width .25s, height .25s, background .2s;
}

.light-mode #cur {
  background: #000;
  mix-blend-mode: normal;
}

.light-mode #cur-ring {
  border: 1px solid rgba(0, 0, 0, 0.35);
}

@media (pointer: coarse) {
  #cur, #cur-ring { display: none !important; }
  body { cursor: auto !important; }
}

/* ══════════════════════════════════════
   LIQUID GLASS NAVBAR
══════════════════════════════════════ */
nav {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0 8px 0 22px;
  height: 52px;
  border-radius: 999px;
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(32px);
  -webkit-backdrop-filter: saturate(180%) blur(32px);
  border: 1px solid transparent;
  border-color: rgba(255, 255, 255, 0.22) rgba(255, 255, 255, 0.08) rgba(255, 255, 255, 0.04) rgba(255, 255, 255, 0.08);
  box-shadow:
    0 1px 0 0 rgba(255, 255, 255, 0.18) inset,
    0 -1px 0 0 rgba(0, 0, 0, 0.3) inset,
    0 8px 32px rgba(0, 0, 0, 0.45),
    0 2px 8px rgba(0, 0, 0, 0.2),
    0 0 0 0.5px rgba(255, 255, 255, 0.06) inset;
  transition: background .35s, box-shadow .35s, border-color .35s;
}

nav::before {
  content: '';
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55) 30%, rgba(255, 255, 255, 0.7) 50%, rgba(255, 255, 255, 0.55) 70%, transparent);
  border-radius: 999px;
  pointer-events: none;
}

nav::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 10%;
  right: 10%;
  height: 20px;
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.light-mode nav {
  background: rgba(210, 210, 210, 0.52);
  border-color: rgba(255, 255, 255, 0.85) rgba(255, 255, 255, 0.3) rgba(255, 255, 255, 0.15) rgba(255, 255, 255, 0.3);
  box-shadow:
    0 1px 0 0 rgba(255, 255, 255, 0.95) inset,
    0 -1px 0 0 rgba(0, 0, 0, 0.08) inset,
    0 8px 32px rgba(0, 0, 0, 0.12),
    0 2px 8px rgba(0, 0, 0, 0.08),
    0 0 0 0.5px rgba(255, 255, 255, 0.4) inset;
}

nav.scrolled {
  background: rgba(8, 8, 8, 0.72);
  box-shadow:
    0 1px 0 0 rgba(255, 255, 255, 0.14) inset,
    0 -1px 0 0 rgba(0, 0, 0, 0.5) inset,
    0 12px 48px rgba(0, 0, 0, 0.6),
    0 0 0 0.5px rgba(255, 255, 255, 0.04) inset;
}

.light-mode nav.scrolled {
  background: rgba(200, 200, 200, 0.72)
}

.nav-brand {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 15.5px;
  color: var(--text);
  letter-spacing: -0.02em;
  text-decoration: none;
  margin-right: 28px;
  flex-shrink: 0;
}

.nav-logo {
  height: 28px;
  width: auto;
  display: block;
}

/* Logo swap for light mode is now handled in script.js (see toggleTheme),
   for reliable cross-browser behavior instead of the CSS content:url() trick. */

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-right: 16px
}

.nav-links a {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 400;
  text-decoration: none;
  padding: 6px 11px;
  border-radius: 999px;
  transition: color .2s, background .2s;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text)
}

.nav-links a.active {
  background: rgba(255, 255, 255, 0.10);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset, 0 1px 4px rgba(0, 0, 0, 0.2);
}

.light-mode .nav-links a.active {
  background: rgba(0, 0, 0, 0.07)
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 3px;
  background: var(--text);
  border-radius: 50%;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 6px
}

.theme-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1) inset;
  border-radius: 999px;
  padding: 5px 9px;
  cursor: pointer;
  font-size: 12px;
  color: var(--text-muted);
  transition: background .2s;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.12)
}

.light-mode .theme-toggle {
  border-color: rgba(0, 0, 0, 0.12);
  background: rgba(0, 0, 0, 0.05)
}

.toggle-track {
  width: 26px;
  height: 15px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  position: relative;
  transition: background .3s;
  flex-shrink: 0
}

.toggle-thumb {
  position: absolute;
  top: 1.5px;
  left: 1.5px;
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
  transition: transform .3s
}

.light-mode .toggle-thumb {
  transform: translateX(11px);
  background: #333
}

.light-mode .toggle-track {
  background: rgba(0, 0, 0, 0.12)
}

.btn-dl {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.20);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.18) inset,
    0 4px 12px rgba(0, 0, 0, 0.25);
  border-radius: 999px;
  padding: 8px 16px;
  color: var(--text);
  font-size: 12.5px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: background .2s, box-shadow .2s, transform .15s;
  font-family: 'DM Sans', sans-serif;
}

.light-mode .btn-dl {
  border-color: rgba(0, 0, 0, 0.15);
  background: rgba(0, 0, 0, 0.06);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 4px 12px rgba(0, 0, 0, 0.08);
}

.btn-dl:hover {
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 0 20px rgba(255, 255, 255, 0.1), 0 4px 16px rgba(0, 0, 0, 0.3);
  transform: translateY(-1px);
}

.btn-dl svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  flex-shrink: 0
}

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: 4px;
  flex-shrink: 0;
}

.nav-hamburger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text);
  margin: 4px 0;
  transition: all .3s;
  border-radius: 2px
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(8, 8, 8, 0.97);
  backdrop-filter: blur(20px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.mobile-menu.open {
  display: flex
}

.mobile-menu a {
  font-family: 'Syne', sans-serif;
  font-size: 30px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  opacity: 0.6;
  transition: opacity .2s
}

.mobile-menu a:hover {
  opacity: 1
}

/* ══════════════════════════════════════
   GLASS CARD (general)
══════════════════════════════════════ */
.glass-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset;
  transition: background .3s, box-shadow .3s, transform .3s, border-color .3s;
}

.glass-card:hover {
  background: var(--glass-hover);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.10) inset, 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

/* ══════════════════════════════════════
   SECTION / REVEAL
══════════════════════════════════════ */
section {
  position: relative;
  overflow: hidden
}

.section-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px
}

.section-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -.03em;
  line-height: 1.05;
  margin-bottom: 24px
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease
}

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

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 5% 40px;
  position: relative;
  overflow: hidden; /* contain .glow-right { right: -180px } dan .glow-left { left: -80px } */
}

.hero-inner {
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: 60px;
  align-items: center;
  max-width: 1300px;
  margin: 0 auto;
  width: 100%
}

.hero-badge {
  margin-bottom: 26px
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  color: var(--text-muted);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset
}

.hero-name {
  font-family: 'Syne', sans-serif;
  font-size: clamp(52px, 8vw, 100px);
  font-weight: 800;
  line-height: .93;
  letter-spacing: -.04em;
  margin-bottom: 26px
}

.hero-name span.dim {
  color: var(--text-dim)
}

.hero-tagline {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 34px
}

.hero-tagline .tag {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 13px;
  color: var(--text-muted)
}

.hero-tagline p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 380px
}

.hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 30px
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--text);
  color: var(--bg);
  border: none;
  border-radius: 999px;
  padding: 13px 26px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
  transition: opacity .2s, box-shadow .2s, transform .2s;
}

.btn-primary:hover {
  opacity: .9;
  box-shadow: 0 0 28px rgba(255, 255, 255, 0.18);
  transform: translateY(-1px)
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--glass-md);
  border: 1px solid var(--glass-border);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset;
  border-radius: 999px;
  padding: 13px 26px;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
  transition: background .2s, box-shadow .2s, transform .2s;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset, 0 0 18px rgba(255, 255, 255, 0.07);
  transform: translateY(-1px)
}

.light-mode .btn-secondary {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.12)
}

.hero-social {
  display: flex;
  gap: 8px
}

.social-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset;
  border-radius: 50%;
  color: var(--text-muted);
  text-decoration: none;
  transition: background .2s, color .2s, transform .2s, border-color .2s;
}

.social-btn:hover {
  background: var(--glass-hover);
  color: var(--text);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2)
}

.social-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none
}

.hero-photo-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center
}

.photo-float {
  animation: heroFloat 6s ease-in-out infinite;
  position: relative;
}

@keyframes heroFloat {
  0% {
    transform: translateY(0px) rotate(0deg);
  }

  25% {
    transform: translateY(-10px) rotate(0.6deg);
  }

  50% {
    transform: translateY(-18px) rotate(0deg);
  }

  75% {
    transform: translateY(-10px) rotate(-0.6deg);
  }

  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

.photo-frame {
  width: min(360px, 88%);
  aspect-ratio: 3/4;
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  border: 1px solid transparent;
  border-color: rgba(255, 255, 255, 0.28) rgba(255, 255, 255, 0.10) rgba(255, 255, 255, 0.06) rgba(255, 255, 255, 0.10);
  background: var(--glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.22) inset,
    0 -1px 0 rgba(0, 0, 0, 0.25) inset,
    0 32px 80px rgba(0, 0, 0, 0.55),
    0 8px 24px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.04);
  perspective: 800px;
  transform-style: preserve-3d;
}

.photo-frame::before {
  content: '';
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 1px;
  z-index: 2;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6) 40%, rgba(255, 255, 255, 0.6) 60%, transparent);
  border-radius: 999px;
  pointer-events: none;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block
}

.photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
  gap: 10px;
}

.photo-placeholder .initials {
  font-family: 'Syne', sans-serif;
  font-size: 68px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.07);
  letter-spacing: -.04em
}

.photo-placeholder .hint {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.18);
  letter-spacing: .06em;
  text-transform: uppercase
}

.photo-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(55px);
  pointer-events: none
}

.orb1 {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(140, 140, 140, 0.16) 0%, transparent 70%);
  top: -50px;
  right: -50px
}

.orb2 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(100, 100, 100, 0.12) 0%, transparent 70%);
  bottom: -40px;
  left: -40px
}

.photo-chips {
  position: absolute;
  bottom: -32px;
  left: -28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.photo-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(12, 12, 12, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.10) inset, 0 8px 24px rgba(0, 0, 0, 0.4);
  border-radius: 16px;
  padding: 9px 14px;
  backdrop-filter: blur(20px);
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}

.light-mode .photo-chip {
  background: rgba(230, 230, 230, 0.88);
  border-color: rgba(255, 255, 255, 0.7)
}

.chip-icon {
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0
}

.chip-label {
  color: var(--text);
  font-weight: 500;
  font-size: 12px
}

.status-badge {
  position: absolute;
  top: -14px;
  right: 15%;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(12, 12, 12, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.10) inset, 0 6px 20px rgba(0, 0, 0, 0.4);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 11.5px;
  color: var(--text-muted);
  white-space: nowrap;
  backdrop-filter: blur(20px);
}

.light-mode .status-badge {
  background: rgba(235, 235, 235, 0.88);
  border-color: rgba(255, 255, 255, 0.8)
}

.status-dot {
  width: 7px;
  height: 7px;
  background: #22c55e;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: pulseDot 2s infinite
}

@keyframes pulseDot {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7)
  }

  70% {
    box-shadow: 0 0 0 8px rgba(34, 197, 94, 0)
  }

  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0)
  }
}

.side-icons {
  position: absolute;
  right: -54px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px
}

.side-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.07) inset;
  border-radius: 14px;
  backdrop-filter: blur(12px);
  color: var(--text-muted);
  transition: background .2s, transform .2s;
}

.side-icon:hover {
  background: var(--glass-hover);
  transform: scale(1.08)
}

.side-icon svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none
}

.hero-glow {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(100px)
}

.glow-right {
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(100, 100, 100, 0.12) 0%, transparent 65%);
  right: -180px;
  top: 50%;
  transform: translateY(-50%)
}

.glow-left {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(80, 80, 80, 0.07) 0%, transparent 65%);
  left: -80px;
  top: 30%
}

.stats-bar {
  max-width: 1000px;
  margin: 60px auto 0;
  width: 100%;
  display: flex;
  align-items: center;
  background: rgba(10, 10, 10, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.16) rgba(255, 255, 255, 0.08) rgba(255, 255, 255, 0.04) rgba(255, 255, 255, 0.08);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset, 0 8px 32px rgba(0, 0, 0, 0.4);
  border-radius: 999px;
  padding: 13px 22px;
  backdrop-filter: blur(28px);
}

.light-mode .stats-bar {
  background: rgba(210, 210, 210, 0.55);
  border-color: rgba(255, 255, 255, 0.7) rgba(255, 255, 255, 0.3) rgba(255, 255, 255, 0.15) rgba(255, 255, 255, 0.3)
}

.stat-item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 18px
}

.stat-item:not(:last-child) {
  border-right: 1px solid rgba(255, 255, 255, 0.07)
}

.stat-icon {
  width: 34px;
  height: 34px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0
}

.stat-label {
  font-size: 10.5px;
  color: var(--text-muted);
  margin-bottom: 1px;
  letter-spacing: .02em
}

.stat-val {
  font-family: 'Syne', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--text)
}

.stats-arrow {
  width: 42px;
  height: 42px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.07) inset;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  flex-shrink: 0;
  margin-left: 8px;
  cursor: pointer;
  transition: background .2s, transform .2s
}

.stats-arrow:hover {
  background: var(--glass-hover);
  transform: scale(1.06)
}

.stats-arrow svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none
}

/* ══════════════════════════════════════
   ABOUT
══════════════════════════════════════ */
#about {
  padding: 120px 5%
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto
}

.about-photo-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}

.about-frame {
  width: 70%;
  aspect-ratio: 4/5;
  border-radius: 20px;
  border: 1px solid transparent;
  border-color: rgba(255, 255, 255, 0.18) rgba(255, 255, 255, 0.08) rgba(255, 255, 255, 0.04) rgba(255, 255, 255, 0.08);
  background: var(--glass);
  overflow: hidden;
  transform: rotate(-2deg);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset, 0 40px 80px rgba(0, 0, 0, 0.4);
}

.about-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block
}

.about-badge {
  position: absolute;
  bottom: -22px;
  right: 5%;
  transform: rotate(2deg);
  background: rgba(10, 10, 10, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.10) inset, 0 8px 24px rgba(0, 0, 0, 0.4);
  border-radius: 14px;
  padding: 10px 16px;
  backdrop-filter: blur(20px);
}

.light-mode .about-badge {
  background: rgba(230, 230, 230, 0.9);
  border-color: rgba(255, 255, 255, 0.7)
}

.about-badge p:first-child {
  font-size: 10.5px;
  color: var(--text-muted);
  margin-bottom: 2px
}

.about-badge p:last-child {
  font-size: 13px;
  font-weight: 500;
  color: var(--text)
}

.about-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 24px
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px;
  color: var(--text-muted)
}

.about-text p {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 18px
}

/* ══════════════════════════════════════
   SKILLS
══════════════════════════════════════ */
#skills {
  padding: 120px 5%
}

/* ══════════════════════════════════════
   GITHUB ACTIVITY
══════════════════════════════════════ */
#github-activity {
  padding: 60px 5% 120px
}

.github-inner {
  max-width: 1000px;
  margin: 0 auto
}

.github-header {
  text-align: center;
  margin-bottom: 40px
}

.github-card {
  padding: 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 0 var(--proj-inner-glow) inset, 0 8px 40px rgba(0, 0, 0, 0.25)
}

.github-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--proj-specular) 50%, transparent);
  border-radius: 999px;
  pointer-events: none
}

/* Override github-calendar's default light-theme-only colors so it
   reads correctly on our dark glass card (and stays legible in light mode).
   The grid itself (squares, rounded corners, Less/More legend, month/day
   labels) is scraped straight from GitHub's own markup, so it already
   matches GitHub's real look — we're only recoloring text to fit our theme. */
.github-card .calendar {
  width: 100%;
  font-family: 'DM Sans', sans-serif;
  border: none;
  background: transparent;
  min-height: 0;
  color: var(--text)
}

.github-card .calendar-graph text.wday,
.github-card .calendar-graph text.month {
  fill: var(--text-muted)
}

.github-card .contrib-legend {
  color: var(--text-muted)
}

/* Contribution squares: GitHub's real SVG rects (already have data-level
   0-4), just re-skinned to fit our theme. rx/ry are CSS-overridable
   presentation attributes, same idea as fill. */
.github-card .ContributionCalendar-day {
  rx: 3px !important;
  ry: 3px !important
}

/* Empty-day squares default to GitHub's light-mode grey (#ebedf0),
   which looks fine on our light mode but too pale/flat on dark mode —
   swap them for a dark slate so they blend into the card.
   !important because GitHub likely sets fill via inline style="...",
   which otherwise beats any external stylesheet rule. */
body:not(.light-mode) .github-card .ContributionCalendar-day[data-level="0"] {
  fill: #2d333b !important
}

body:not(.light-mode) .github-card .contrib-legend .legend li:first-child {
  background: #2d333b !important
}

/* GitHub's own "Skip to contributions year list" a11y link — visually
   hidden (screen readers can still reach it), since we don't have
   GitHub's base stylesheet that normally hides it. */
.github-card .calendar a[href^="#year-link"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0
}

.github-profile-btn {
  margin-top: 24px
}

.github-profile-btn-icon {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  vertical-align: -3px;
  margin-right: 6px
}

.skills-inner {
  max-width: 1200px;
  margin: 0 auto
}

.skills-header {
  text-align: center;
  margin-bottom: 56px
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 18px;
  margin-bottom: 36px
}

.skill-card {
  padding: 26px;
  border-radius: 20px
}

.skill-card-top {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 18px
}

.skill-icon {
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px
}

.skill-card-title {
  font-family: 'Syne', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text)
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px
}

.skill-tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  padding: 4px 11px;
  font-size: 11.5px;
  color: var(--text-muted);
  transition: background .2s, color .2s
}

.light-mode .skill-tag {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.08)
}

.skill-tag:hover {
  background: rgba(255, 255, 255, 0.10);
  color: var(--text)
}

.tech-scroll {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none
}

.tech-scroll::-webkit-scrollbar {
  display: none
}

.tech-badge {
  flex-shrink: 0;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  padding: 6px 15px;
  font-size: 11.5px;
  color: var(--text-muted);
  white-space: nowrap
}

/* ══════════════════════════════════════
   PROJECTS — LIQUID GLASS CAROUSEL
   Fully adaptive dark / light mode
══════════════════════════════════════ */

/* ── SECTION BACKGROUND ── */
#projects {
  padding: 100px 0 120px;
  position: relative;
  overflow: visible;
  background: transparent
}

/* Ambient glow behind carousel (dark: faint warm glow, light: blue-purple) */
#projects::before {
  content: '';
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 900px;
  height: 600px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(120px);
  background: radial-gradient(ellipse, rgba(120, 120, 160, 0.08) 0%, transparent 70%);
  transition: background 0.4s;
}

.light-mode #projects::before {
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.04) 0%, transparent 65%);
}

/* noise texture overlay */
.carousel-noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: var(--proj-noise-opacity);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  transition: opacity 0.4s;
}

/* ── PROJECTS HEADER ── */
.projects-header-wrap {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 5%;
  max-width: 1400px;
  margin: 0 auto 56px;
  position: relative;
  z-index: 2;
}

.projects-header-left .section-eyebrow {
  margin-bottom: 8px
}

.projects-header-left h2 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -.04em;
  line-height: 1;
  margin: 0;
}

.projects-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0
}

.projects-header-desc {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 300px;
  line-height: 1.6;
  text-align: right
}

/* "All Projects" button — liquid glass pill */
.btn-all-projects {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--proj-btn-bg);
  border: 1px solid var(--proj-btn-border);
  box-shadow:
    0 1px 0 var(--proj-inner-glow) inset,
    0 4px 16px rgba(0, 0, 0, 0.15);
  border-radius: 14px;
  padding: 10px 20px;
  color: var(--proj-btn-color);
  font-size: 12.5px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: background .25s, box-shadow .25s, transform .2s;
  position: relative;
  overflow: hidden;
}

.btn-all-projects::before {
  content: '';
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--proj-specular) 50%, transparent);
  border-radius: 999px;
  pointer-events: none;
}

.btn-all-projects:hover {
  background: var(--glass-hover);
  transform: translateY(-2px);
  box-shadow: 0 1px 0 var(--proj-inner-glow) inset, 0 8px 28px rgba(0, 0, 0, 0.20);
}

.btn-all-projects svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none
}

/* ── CAROUSEL SECTION ── */
.carousel-section {
  position: relative;
  padding: 10px 0 40px;
  z-index: 2;
  overflow: hidden; /* contain carousel-track width: max-content */
}

.carousel-viewport {
  position: relative;
  overflow: visible;
  width: 100%;
  padding: 30px 0 80px;
}

/* Adaptive fade edges */
.carousel-viewport::before,
.carousel-viewport::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 12%;
  z-index: 10;
  pointer-events: none;
}

.carousel-viewport::before {
  left: 0;
  background: linear-gradient(90deg, var(--proj-bg-from) 0%, transparent 100%);
}

.carousel-viewport::after {
  right: 0;
  background: linear-gradient(270deg, var(--proj-bg-from) 0%, transparent 100%);
}

/* ── TRACK ── */
.carousel-track {
  display: flex;
  gap: 20px;
  width: max-content;
  will-change: transform;
  cursor: grab;
  user-select: none;
}

.carousel-track.is-animating {
  transition: transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-track.dragging {
  cursor: grabbing
}

/* ══════════════════════════════════════
   LIQUID GLASS SLIDE — iOS 26 Multi-Layer
   Layer 1: tinted base + strong blur
   Layer 2: ::before = top specular strip
   Layer 3: ::after  = mouse glow
   Layer 4: border rim (top bright / sides dim)
   Layer 5: multi-stop box-shadow stack
══════════════════════════════════════ */
.carousel-slide {
  flex-shrink: 0;
  width: min(820px, 62vw);
  border-radius: 26px;
  position: relative;
  overflow: hidden;

  /* Dim/inactive state */
  opacity: 0.45;
  transform: scale(0.88);
  filter: brightness(0.6);
  transition:
    opacity 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    filter 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    box-shadow 0.55s,
    background 0.4s,
    border-color 0.4s;

  /* Layer 1: adaptive tinted glass base */
  background: var(--proj-slide-inactive-bg);
  backdrop-filter: saturate(180%) blur(32px);
  -webkit-backdrop-filter: saturate(180%) blur(32px);

  /* Layer 4: two-tone rim border */
  border: 1px solid transparent;
  border-color: var(--proj-slide-border-top) var(--proj-slide-border-side) var(--proj-slide-border-bot) var(--proj-slide-border-side);

  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

/* Active (center) slide — full liquid glass treatment */
.carousel-slide.is-active {
  opacity: 1;
  transform: scale(1);
  filter: brightness(1);

  background: var(--proj-slide-bg);

  /* Stronger rim on active */
  border-color:
    var(--proj-slide-border-top) var(--proj-slide-border-side) var(--proj-slide-border-bot) var(--proj-slide-border-side);

  /* Layer 5: shadow stack */
  box-shadow:
    /* top inner specular glow */
    0 1px 0 var(--proj-inner-glow) inset,
    /* bottom inner shadow */
    0 -1px 0 rgba(0, 0, 0, 0.20) inset,
    /* far depth shadow */
    var(--proj-slide-shadow),
    /* rim glow (outside) */
    0 0 40px -10px var(--proj-rim-glow);
}

/* Layer 2: Top specular highlight strip (active only) */
.carousel-slide.is-active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 1px;
  z-index: 4;
  background: linear-gradient(90deg,
      transparent,
      var(--proj-specular) 30%,
      var(--proj-specular) 70%,
      transparent);
  border-radius: 999px;
  pointer-events: none;
}

/* Layer 3: Mouse proximity glow */
.carousel-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(circle 300px at var(--mx, 50%) var(--my, 50%),
      rgba(255, 255, 255, 0.055) 0%,
      transparent 70%);
  opacity: 0;
  transition: opacity .3s;
}

.light-mode .carousel-slide::after {
  background: radial-gradient(circle 300px at var(--mx, 50%) var(--my, 50%),
      rgba(100, 140, 255, 0.07) 0%,
      transparent 70%);
}

.carousel-slide.is-active:hover::after {
  opacity: 1
}

/* ── SLIDE INNER LAYOUT ── */
.slide-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  height: 420px;
  position: relative;
  z-index: 2;
}

.slide-info {
  padding: 42px 34px 42px 42px;
  display: flex;
  flex-direction: column;
  justify-content: center
}

/* slide badge pill — liquid glass mini */
.slide-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--proj-tag-bg);
  border: 1px solid var(--proj-tag-border);
  box-shadow: 0 1px 0 var(--proj-inner-glow) inset;
  border-radius: 999px;
  padding: 5px 13px;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 18px;
  width: fit-content;
  backdrop-filter: blur(10px);
}

.slide-badge-dot {
  width: 5px;
  height: 5px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.6);
}

.slide-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.7rem, 2.8vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1;
  margin-bottom: 8px;
  color: var(--text);
}

.slide-sub {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 16px;
  font-style: italic
}

.slide-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.72;
  margin-bottom: 20px;
  flex: 1
}

.slide-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 24px
}

/* Tags — liquid glass pills */
.slide-tag {
  background: var(--proj-tag-bg);
  border: 1px solid var(--proj-tag-border);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 10.5px;
  color: var(--text-muted);
  backdrop-filter: blur(8px);
  transition: background 0.2s, color 0.2s;
}

.carousel-slide.is-active .slide-tag:hover {
  background: var(--glass-md);
  color: var(--text);
}

/* CTA Button — liquid glass */
.slide-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--proj-btn-bg);
  border: 1px solid var(--proj-btn-border);
  box-shadow:
    0 1px 0 var(--proj-inner-glow) inset,
    0 4px 16px rgba(0, 0, 0, 0.25);
  border-radius: 999px;
  padding: 11px 24px;
  color: var(--proj-btn-color);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  backdrop-filter: blur(16px);
  transition: background .2s, box-shadow .2s, transform .15s;
  width: fit-content;
  position: relative;
  overflow: hidden;
}

.slide-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--proj-specular) 50%, transparent);
  pointer-events: none;
}

.carousel-slide.is-active .slide-btn:hover {
  background: var(--glass-hover);
  box-shadow: 0 1px 0 var(--proj-inner-glow) inset, 0 0 22px rgba(255, 255, 255, 0.08), 0 6px 20px rgba(0, 0, 0, 0.25);
  transform: translateY(-1px);
}

.slide-btn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none
}

/* ── SLIDE PREVIEW PANEL ── */
.slide-preview {
  position: relative;
  overflow: hidden;
  border-left: 1px solid var(--proj-tag-border);
}

.slide-preview-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--proj-preview-bg);
  position: relative;
  overflow: hidden;
}

.preview-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  pointer-events: none
}

/* Phone/desktop mockup frame — liquid glass card */
.preview-mockup {
  width: 72%;
  aspect-ratio: 9/16;
  border-radius: 20px;
  background: var(--proj-mockup-bg);
  border: 1px solid var(--proj-mockup-border);
  box-shadow:
    0 1px 0 var(--proj-inner-glow) inset,
    0 24px 64px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  z-index: 2;
  backdrop-filter: blur(12px);
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow: hidden;
}

/* Specular on mockup too */
.preview-mockup::before {
  content: '';
  position: absolute;
  top: 0;
  left: 6%;
  right: 6%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--proj-specular) 50%, transparent);
  pointer-events: none;
}

.carousel-slide.is-active:hover .preview-mockup {
  transform: scale(1.04) translateY(-6px) rotate(1.5deg)
}

.preview-mockup-icon {
  font-size: 38px;
  opacity: .18
}

.preview-mockup-name {
  font-family: 'Syne', sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  opacity: 0.10;
  letter-spacing: -.03em
}

.preview-mockup-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 28px;
  background: var(--proj-tag-bg);
  border-bottom: 1px solid var(--proj-tag-border);
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 5px;
}

.mockup-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%
}

.mockup-dot:nth-child(1) {
  background: rgba(255, 80, 80, 0.45)
}

.mockup-dot:nth-child(2) {
  background: rgba(255, 180, 0, 0.45)
}

.mockup-dot:nth-child(3) {
  background: rgba(50, 200, 100, 0.45)
}

/* ── CAROUSEL ARROWS — liquid glass ── */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--proj-arrow-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--proj-arrow-border);
  box-shadow:
    0 1px 0 var(--proj-inner-glow) inset,
    0 8px 32px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  cursor: pointer;
  transition: background .2s, box-shadow .2s, transform .2s;
  position: absolute;
  overflow: hidden;
}

.carousel-arrow::before {
  content: '';
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--proj-specular) 50%, transparent);
  pointer-events: none;
}

.carousel-arrow:hover {
  background: var(--glass-hover);
  box-shadow: 0 1px 0 var(--proj-inner-glow) inset, 0 0 24px rgba(255, 255, 255, 0.08), 0 8px 40px rgba(0, 0, 0, 0.3);
  transform: translateY(-50%) scale(1.08);
}

.carousel-arrow svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none
}

.arrow-prev {
  left: 3%
}

.arrow-next {
  right: 3%
}

/* ── DOTS ── */
.carousel-dots {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin-top: 28px;
  position: relative;
  z-index: 2;
}

.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  opacity: 0.35;
  transition: all .4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
}

.carousel-dot.active {
  width: 24px;
  border-radius: 3px;
  opacity: 1;
  background: var(--text);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.3)
}

.light-mode .carousel-dot.active {
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.15);
}

/* autoplay hint */
.carousel-hint {
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 14px;
  opacity: 0.5;
  letter-spacing: .04em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  position: relative;
  z-index: 2;
}

.carousel-hint svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

/* ══════════════════════════════════════
   SMALL PROJECTS — Liquid Glass Cards
══════════════════════════════════════ */
.small-projects-section {
  padding: 60px 5% 0;
  max-width: 1400px;
  margin: 0 auto;
  overflow: visible;
  position: relative;
  z-index: 2;
}

.small-projects-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.small-projects-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}

.small-projects-title span {
  font-size: 18px
}

.small-projects-desc {
  font-size: 12px;
  color: var(--text-muted)
}

.small-projects-nav {
  display: flex;
  gap: 6px
}

/* Liquid glass nav buttons */
.small-nav-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--proj-arrow-bg);
  border: 1px solid var(--proj-arrow-border);
  box-shadow: 0 1px 0 var(--proj-inner-glow) inset, 0 4px 12px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: background .2s, color .2s, transform .2s;
  position: relative;
  overflow: hidden;
}

.small-nav-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--proj-specular) 50%, transparent);
  pointer-events: none;
}

.small-nav-btn:hover {
  background: var(--glass-hover);
  color: var(--text);
  transform: scale(1.06)
}

.small-nav-btn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none
}

.small-projects-scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 8px 20px 32px;
  margin: -8px -20px -16px;
  scrollbar-width: none;
}

.small-projects-scroll::-webkit-scrollbar {
  display: none
}

/* ══════════════════════════════════════
   SMALL CARD — Liquid Glass iOS 26 style
══════════════════════════════════════ */
.small-card {
  flex-shrink: 0;
  width: 220px;
  background: var(--proj-small-bg);
  backdrop-filter: saturate(160%) blur(24px);
  -webkit-backdrop-filter: saturate(160%) blur(24px);
  border: 1px solid transparent;
  border-color: var(--proj-small-border-top) var(--proj-small-border-side) rgba(0, 0, 0, 0.04) var(--proj-small-border-side);
  box-shadow:
    0 1px 0 var(--proj-inner-glow) inset,
    0 -1px 0 rgba(0, 0, 0, 0.10) inset,
    0 10px 30px rgba(0, 0, 0, 0.20),
    0 2px 6px rgba(0, 0, 0, 0.10);
  border-radius: 22px;
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform .3s, box-shadow .3s, border-color .3s, background .3s;
  position: relative;
  overflow: hidden;
}

/* Top specular strip on small cards */
.small-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 5%;
  right: 5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--proj-specular) 50%, transparent);
  pointer-events: none;
}

.small-card:hover {
  transform: translateY(-7px);
  box-shadow:
    0 1px 0 var(--proj-inner-glow) inset,
    0 -1px 0 rgba(0, 0, 0, 0.08) inset,
    0 28px 60px rgba(0, 0, 0, 0.28),
    0 6px 18px rgba(0, 0, 0, 0.15);
  border-color: var(--proj-slide-border-top) var(--proj-slide-border-side) rgba(0, 0, 0, 0.03) var(--proj-slide-border-side);
}

.light-mode .small-card:hover {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 28px 60px rgba(80, 110, 180, 0.18),
    0 6px 18px rgba(80, 110, 180, 0.10);
}

.small-card-num {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: .12em;
  font-weight: 600;
  opacity: 0.55;
}

.small-card-title {
  font-family: 'Syne', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.2;
  color: var(--text);
}

.small-card-cat {
  font-size: 10.5px;
  color: var(--text-muted);
  letter-spacing: .04em
}

.small-card-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1
}

.small-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px
}

.small-card-tag {
  background: var(--proj-tag-bg);
  border: 1px solid var(--proj-tag-border);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 10px;
  color: var(--text-muted)
}

/* Arrow button on small card — liquid glass circle */
.small-card-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--proj-tag-bg);
  border: 1px solid var(--proj-tag-border);
  box-shadow: 0 1px 0 var(--proj-inner-glow) inset;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  align-self: flex-end;
  transition: background .2s, color .2s, transform .2s;
  overflow: hidden;
  position: relative;
  backdrop-filter: blur(8px);
}

.small-card-arrow::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--proj-specular) 50%, transparent);
  pointer-events: none;
}

.small-card-arrow:hover {
  background: var(--glass-hover);
  color: var(--text);
  transform: scale(1.12) rotate(45deg)
}

.small-card-arrow svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none
}

/* ── MOBILE & TABLET ──
   Widened from 768px to 1024px: at tablet widths the 2-column desktop
   layout (text + preview side-by-side) was being squeezed into a card
   only ~50-60% of viewport width, causing text/image overlap. */
@media(max-width:1024px) {
  .slide-inner {
    grid-template-columns: 1fr;
    height: auto
  }

  .slide-preview {
    display: none
  }

  .slide-info {
    padding: 28px
  }

  .carousel-slide {
    width: 90vw
  }

  .projects-header-wrap {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start
  }

  .projects-header-right {
    flex-direction: column;
    align-items: flex-start
  }

  .projects-header-desc {
    text-align: left
  }

  #github-activity {
    padding: 40px 5% 80px
  }
}

/* ══════════════════════════════════════
   EXPERIENCE
══════════════════════════════════════ */
#experience {
  padding: 120px 5%
}

.experience-inner {
  max-width: 900px;
  margin: 0 auto
}

.timeline {
  margin-top: 44px;
  position: relative;
  padding-left: 26px
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 100%;
  background: var(--glass-border)
}

.timeline-item {
  position: relative;
  margin-bottom: 38px;
  padding-bottom: 38px;
  border-bottom: 1px solid var(--glass-border)
}

.timeline-item:last-child {
  border-bottom: none;
  margin-bottom: 0
}

.timeline-dot {
  position: absolute;
  left: -32px;
  top: 4px;
  width: 12px;
  height: 12px;
  background: var(--bg);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%
}

.light-mode .timeline::before {
  background: rgba(0, 0, 0, 0.18);
}

.light-mode .timeline-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.10);
}

.light-mode .timeline-dot {
  background: #ffffff;
  border: 2px solid rgba(0, 0, 0, 0.20);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.05),
    0 0 8px rgba(0, 0, 0, 0.08);
}

.timeline-date {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: .06em;
  margin-bottom: 7px;
  text-transform: uppercase
}

.timeline-role {
  font-family: 'Syne', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 3px
}

.timeline-org {
  font-size: 13px;
  color: var(--text-muted)
}

/* ══════════════════════════════════════
   CONTACT
══════════════════════════════════════ */
#contact {
  padding: 120px 5%
}

.contact-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center
}

.contact-card {
  padding: 60px 48px
}

.contact-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.9rem, 4vw, 3.3rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.05;
  margin-bottom: 14px
}

.contact-sub {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 38px;
  line-height: 1.6
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--text);
  color: var(--bg);
  border: none;
  border-radius: 999px;
  padding: 15px 34px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
  transition: opacity .2s, box-shadow .2s, transform .2s;
  margin-bottom: 44px
}

.contact-btn:hover {
  opacity: .9;
  box-shadow: 0 0 36px rgba(255, 255, 255, 0.14);
  transform: translateY(-2px)
}

.contact-icons {
  display: flex;
  justify-content: center;
  gap: 11px
}

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
footer {
  padding: 22px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--glass-border);
  flex-wrap: wrap;
  gap: 12px
}

.footer-brand {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: -.01em
}

.footer-copy {
  font-size: 11.5px;
  color: var(--text-muted)
}

.footer-icons {
  display: flex;
  gap: 9px
}

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
/* Desktop: nav boleh nowrap karena lebar cukup */
@media(min-width:901px) {
  nav { white-space: nowrap; }
}

@media(max-width:900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center
  }

  .hero-btns,
  .hero-social,
  .hero-badge,
  .hero-tagline {
    justify-content: center
  }

  .hero-tagline {
    text-align: center
  }

  .hero-photo-wrap {
    order: -1
  }

  .photo-frame {
    width: 240px;
    aspect-ratio: 1/1;
    border-radius: 50%
  }

  .side-icons,
  .photo-chips {
    display: none
  }

  .status-badge {
    top: auto;
    bottom: -14px;
    right: 50%;
    transform: translateX(50%)
  }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 36px
  }

  .about-photo-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .about-frame {
    width: 70%;
    max-width: 320px;
  }

  .about-badge {
    right: calc(50% - (90% / 2) + 8px);
  }

  .stats-bar {
    border-radius: 20px;
    flex-wrap: wrap;
    gap: 10px;
    padding: 18px
  }

  .stat-item {
    border-right: none !important;
    flex: 0 0 calc(50% - 5px);
    padding: 7px 10px
  }

  .nav-links {
    display: none
  }

  /* Keep theme toggle + CV button visible on mobile, hide CV text */
  .btn-dl-text {
    display: none;
  }

  .nav-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  /* Fix navbar: beri lebar eksplisit supaya centering bisa bekerja */
  nav {
    width: calc(100vw - 32px);
    max-width: 480px;
    left: 50%;
    transform: translateX(-50%);
    justify-content: space-between;
    padding: 0 10px 0 18px;
  }

  .nav-brand {
    margin-right: 0;
  }
}

@media(max-width:480px) {
  .hero-name {
    font-size: clamp(36px, 12vw, 58px)
  }

  nav {
    padding: 0 8px 0 14px;
  }

  .stat-item {
    flex: 0 0 100%
  }

  .contact-card {
    padding: 36px 20px
  }
}

@media(prefers-reduced-motion:reduce) {
  * {
    animation: none !important;
    transition: none !important
  }

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