/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #000;
  --surface: #111;
  --surface-2: #1a1a1a;
  --border: rgba(255,255,255,0.08);
  --text: #f5f5f7;
  --text-secondary: #86868b;
  --accent: #2997ff;
  --accent-hover: #0077ed;
  --gradient-1: #2997ff;
  --gradient-2: #bf5af2;
  --gradient-3: #ff6961;
  --radius: 18px;
  --radius-sm: 12px;
  --nav-h: 64px;
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =============================================
   CURSOR PARTICLES
   ============================================= */
.cursor-particle {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  will-change: transform, opacity;
  animation: particleFade 0.9s ease-out forwards;
}

@keyframes particleFade {
  0% {
    opacity: 0.9;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--px)), calc(-50% + var(--py))) scale(0.2);
  }
}

/* =============================================
   SCROLL PROGRESS
   ============================================= */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gradient-1), var(--gradient-2));
  z-index: 9999;
  width: 0%;
  transition: width 0.1s linear;
}

/* =============================================
   BACK TO TOP
   ============================================= */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 900;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.85);
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              visibility 0.3s ease, background 0.2s ease;
}
.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.back-to-top:hover {
  background: var(--accent-hover);
  transform: translateY(-3px) scale(1.05);
}

@media (max-width: 600px) {
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }
}

/* =============================================
   REVEAL ANIMATIONS
   ============================================= */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--transition), transform 0.8s var(--transition);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   NAVIGATION
   ============================================= */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  transition: background 0.4s ease, backdrop-filter 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom-color: var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-logo {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.nav-logo img {
  height: 38px;
  width: auto;
  display: block;
}
.footer-logo img {
  height: 40px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 32px;
  margin-left: auto;
}

.nav-links a {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

.nav-cta {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: 980px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--accent-hover); transform: scale(1.03); }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* =============================================
   LANG TOGGLE
   ============================================= */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 980px;
  padding: 3px 6px;
  flex-shrink: 0;
}

.lang-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  padding: 3px 8px;
  border-radius: 980px;
  transition: background 0.2s, color 0.2s;
  letter-spacing: 0.06em;
  font-family: inherit;
  line-height: 1;
}

.lang-btn.active {
  background: var(--accent);
  color: #fff;
}

.lang-btn:hover:not(.active) {
  color: var(--text);
}

.lang-sep {
  color: rgba(255, 255, 255, 0.15);
  font-size: 10px;
  user-select: none;
  line-height: 1;
}

/* =============================================
   THEME TOGGLE BUTTON
   ============================================= */
.theme-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  flex-shrink: 0;
  padding: 0;
}
.theme-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text);
}
.theme-icon {
  width: 15px;
  height: 15px;
}
.theme-icon-sun { display: block; }
.theme-icon-moon { display: none; }

/* =============================================
   LIGHT MODE
   ============================================= */
[data-theme="light"] {
  --bg: #f5f5f7;
  --surface: #ffffff;
  --surface-2: #e8e8ed;
  --border: rgba(0, 0, 0, 0.1);
  --text: #1d1d1f;
  --text-secondary: #6e6e73;
  --accent: #0066cc;
  --accent-hover: #004fa3;
}

[data-theme="light"] .theme-icon-sun { display: none; }
[data-theme="light"] .theme-icon-moon { display: block; }

[data-theme="light"] .theme-btn {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.12);
}
[data-theme="light"] .theme-btn:hover {
  background: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .nav.scrolled {
  background: rgba(245, 245, 247, 0.9);
  border-bottom-color: rgba(0, 0, 0, 0.1);
}
[data-theme="light"] .nav-mobile {
  background: rgba(245, 245, 247, 0.98);
  border-bottom-color: rgba(0, 0, 0, 0.1);
}
[data-theme="light"] .nav-burger span {
  background: var(--text);
}
[data-theme="light"] .lang-toggle {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.12);
}
[data-theme="light"] .lang-sep {
  color: rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .about-floating {
  background: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .project-card:hover {
  border-color: rgba(0, 0, 0, 0.15);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.1);
}
[data-theme="light"] .project-img {
  background: #e2e2e7;
}
[data-theme="light"] .project-link-ghost {
  border-color: rgba(0, 0, 0, 0.25);
  color: #fff;
}
[data-theme="light"] .project-link-ghost:hover {
  background: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .hero-device-img {
  box-shadow: none;
}
/* glow biru di belakang laptop juga dimatikan saat light agar bersih */
[data-theme="light"] .hero-device::before {
  display: none;
}

[data-theme="light"] .form-group input::placeholder,
[data-theme="light"] .form-group textarea::placeholder {
  color: rgba(110, 110, 115, 0.55);
}

.nav-mobile {
  display: none;
  flex-direction: column;
  background: rgba(0,0,0,0.95);
  backdrop-filter: blur(20px);
  padding: 0 24px;
  border-bottom: 1px solid var(--border);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}
.nav-mobile.open {
  max-height: 300px;
  padding: 16px 24px 24px;
}
.nav-mobile-link {
  display: block;
  padding: 14px 0;
  font-size: 17px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}
.nav-mobile-link:last-child { border: none; }

/* =============================================
   HERO
   ============================================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: calc(var(--nav-h) + 60px) 24px 100px;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  animation: orbFloat 8s ease-in-out infinite;
}
.hero-orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #2997ff 0%, transparent 70%);
  top: -200px;
  right: -100px;
  animation-delay: 0s;
}
.hero-orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #bf5af2 0%, transparent 70%);
  bottom: -150px;
  left: -100px;
  animation-delay: 3s;
}
.hero-orb-3 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, #ff6961 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: 6s;
}

@keyframes orbFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-eyebrow {
  font-size: 17px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}

.hero-name {
  font-size: clamp(64px, 12vw, 120px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -4px;
  color: var(--text);
  margin-bottom: 20px;
}

.hero-name-accent {
  background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2), var(--gradient-3), var(--gradient-1));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 6s ease infinite;
}

.hero-role {
  font-size: 20px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.hero-desc {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 14px 32px;
  border-radius: 980px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  display: inline-block;
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: scale(1.03);
  box-shadow: 0 8px 30px rgba(41, 151, 255, 0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid rgba(41,151,255,0.4);
  padding: 14px 32px;
  border-radius: 980px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.btn-ghost:hover {
  background: rgba(41,151,255,0.08);
  border-color: var(--accent);
  transform: scale(1.03);
}

.btn-full { width: 100%; }

.hero-device {
  margin-top: 56px;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  perspective: 1100px;
}
.hero-device::before {
  content: '';
  position: absolute;
  inset: -20px;
  background: radial-gradient(ellipse at 50% 60%, rgba(41,151,255,0.22) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
  animation: glowPulse 4s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.1); }
}

.hero-device-open {
  transform-origin: 50% 92%;
  transform: rotateX(-72deg) scale(0.88);
  /* smoothing ditangani via rAF lerp di JS */
  will-change: transform;
  backface-visibility: hidden;
}

.hero-device-float {
  animation: deviceFloat 6s ease-in-out infinite;
}
@keyframes deviceFloat {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-12px); }
}

.hero-device-img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 40px 120px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.06);
  display: block;
}

.hero-scroll-hint {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  pointer-events: none;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
/* sembunyikan begitu mulai scroll */
.hero-scroll-hint.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.hero-scroll-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* mouse icon */
.hero-scroll-mouse {
  width: 24px;
  height: 38px;
  border: 2px solid currentColor;
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
  opacity: 0.85;
}
.hero-scroll-wheel {
  width: 3px;
  height: 7px;
  background: currentColor;
  border-radius: 2px;
  animation: scrollWheel 1.8s ease-in-out infinite;
}
@keyframes scrollWheel {
  0%   { transform: translateY(0); opacity: 1; }
  60%  { transform: translateY(10px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

.hero-scroll-chevron {
  animation: bounce 2s ease-in-out infinite;
  opacity: 0.7;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); opacity: 0.7; }
  50% { transform: translateY(6px); opacity: 0.3; }
}

/* Hero: staggered entrance */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}
.hero-content > * {
  animation: heroFadeUp 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero-content > *:nth-child(1) { animation-delay: 0.05s; }
.hero-content > *:nth-child(2) { animation-delay: 0.18s; }
.hero-content > *:nth-child(3) { animation-delay: 0.31s; }
.hero-content > *:nth-child(4) { animation-delay: 0.44s; }
.hero-content > *:nth-child(5) { animation-delay: 0.57s; }
.hero-content > *:nth-child(6) { animation-delay: 0.70s; }

/* Hero: name override — child spans handle entrance, h1 is just a container */
.hero-name {
  animation: none;
}

.name-line {
  display: inline-block;
  padding-bottom: 0.12em;
}

@keyframes nameSlideUp {
  from {
    opacity: 0;
    transform: translateY(70px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-name .name-line:first-child {
  animation: nameSlideUp 1s cubic-bezier(0.16, 1, 0.3, 1) both 0.2s;
}

/* Gradient line: combine slide-up + gradient shift */
.hero-name .name-line:last-child {
  animation: nameSlideUp 1s cubic-bezier(0.16, 1, 0.3, 1) both 0.38s,
             gradientShift 6s ease 0.38s infinite;
}

/* Hero: animated gradient on name */
@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Hero: blinking cursor on role */
.hero-role::after {
  content: '|';
  margin-left: 3px;
  color: var(--accent);
  font-weight: 300;
  animation: cursorBlink 1.1s step-end infinite;
}
.hero-role.typing::after {
  animation: none;
  opacity: 1;
}
@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* Hero: subtle dot grid overlay */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 40%, black 20%, transparent 80%);
  mask-image: radial-gradient(ellipse 80% 80% at 50% 40%, black 20%, transparent 80%);
  pointer-events: none;
  animation: dotsFade 5s ease-in-out infinite alternate;
}
[data-theme="light"] .hero-bg::after {
  background-image: radial-gradient(circle, rgba(0,0,0,0.05) 1px, transparent 1px);
}
@keyframes dotsFade {
  from { opacity: 0.4; }
  to   { opacity: 1; }
}

/* Hero: CTA button ambient glow pulse */
.hero-actions .btn-primary {
  animation: btnGlow 3s ease-in-out infinite;
}
@keyframes btnGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(41, 151, 255, 0.35); }
  50%       { box-shadow: 0 0 0 10px rgba(41, 151, 255, 0); }
}

/* =============================================
   STATS
   ============================================= */
.stats {
  padding: 80px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.stat-item {
  background: var(--bg);
  padding: 40px 32px;
  text-align: center;
}

.stat-num {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -2px;
  background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-unit {
  font-size: 32px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 8px;
  font-weight: 400;
}

/* =============================================
   SECTION COMMON
   ============================================= */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-eyebrow {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -2px;
  color: var(--text);
  line-height: 1.05;
}

.section-desc {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 16px auto 0;
  line-height: 1.7;
}

/* =============================================
   ABOUT
   ============================================= */
.about {
  padding: 120px 0;
  border-top: 1px solid var(--border);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-visual {
  position: relative;
  height: 480px;
}

.about-card-main {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.about-card-main::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(41,151,255,0.05) 0%, rgba(191,90,242,0.05) 100%);
}

.about-avatar {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  z-index: 1;
}
.avatar-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* fokus ke wajah */
  transform: scale(1.7);
  transform-origin: 46% 17%;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* animasi foto profil: mengambang + glow berdenyut */
.about-avatar {
  animation: avatarFloat 5s ease-in-out infinite,
             avatarGlow 6s ease-in-out infinite;
}
@keyframes avatarFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
@keyframes avatarGlow {
  0%, 100% { box-shadow: 0 14px 40px rgba(41, 151, 255, 0.30); }
  50%      { box-shadow: 0 16px 50px rgba(191, 90, 242, 0.40); }
}
/* zoom halus ke wajah saat hover */
.about-avatar:hover .avatar-photo {
  transform: scale(1.9);
}

.about-tag {
  position: absolute;
  top: 24px;
  right: 24px;
  background: rgba(52, 199, 89, 0.12);
  border: 1px solid rgba(52, 199, 89, 0.3);
  color: #34c759;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 980px;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 2;
}
.about-tag-dot {
  width: 6px;
  height: 6px;
  background: #34c759;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.about-floating {
  position: absolute;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  padding: 8px 16px;
  border-radius: 980px;
  font-size: 13px;
  font-weight: 500;
  z-index: 2;
  animation: floatAnim 4s ease-in-out infinite;
}
.about-floating-1 { bottom: 80px; left: 24px; animation-delay: 0s; }
.about-floating-2 { bottom: 40px; right: 24px; animation-delay: 1.5s; }
.about-floating-3 { top: 60px; left: 24px; animation-delay: 3s; }

@keyframes floatAnim {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.about-lead {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 20px;
}
.about-lead strong { color: var(--accent); font-weight: 600; }

.about-body {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

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

/* =============================================
   SKILLS
   ============================================= */
.skills {
  padding: 120px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.skill-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.skill-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255,255,255,0.16);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.skill-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.skill-icon svg { width: 24px; height: 24px; }

.skill-icon-blue   { background: rgba(41,151,255,0.12);  color: #2997ff; }
.skill-icon-green  { background: rgba(52,199,89,0.12);   color: #34c759; }
.skill-icon-purple { background: rgba(191,90,242,0.12);  color: #bf5af2; }
.skill-icon-orange { background: rgba(255,159,10,0.12);  color: #ff9f0a; }
.skill-icon-pink   { background: rgba(255,55,95,0.12);   color: #ff375f; }
.skill-icon-cyan   { background: rgba(100,210,255,0.12); color: #64d2ff; }
.skill-icon-teal   { background: rgba(48,209,88,0.12);   color: #30d158; }
.skill-icon-yellow { background: rgba(255,214,10,0.12);  color: #ffd60a; }

.skill-name {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.skill-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.skill-bar {
  height: 4px;
  background: var(--surface-2);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 6px;
}
.skill-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gradient-1), var(--gradient-2));
  border-radius: 2px;
  width: 0%;
  transition: width 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.skill-pct {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* =============================================
   EXPERIENCE
   ============================================= */
.experience {
  padding: 120px 0;
  border-top: 1px solid var(--border);
}

.timeline {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  padding-left: 60px;
  margin-bottom: 32px;
}
.timeline-item:last-child { margin-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: 11px;
  top: 28px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 2px solid var(--border);
  z-index: 1;
}
.timeline-dot-active {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(41, 151, 255, 0.15);
}

.timeline-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.timeline-card:hover {
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.25);
}
[data-theme="light"] .timeline-card:hover {
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.timeline-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: #34c759;
  background: rgba(52, 199, 89, 0.1);
  border: 1px solid rgba(52, 199, 89, 0.25);
  padding: 3px 10px;
  border-radius: 980px;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  display: block;
  width: fit-content;
}
.timeline-badge::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  background: #34c759;
  border-radius: 50%;
  margin-right: 5px;
  animation: pulse 2s ease-in-out infinite;
}

.timeline-role {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.3px;
  margin-bottom: 4px;
  line-height: 1.3;
}

/* header pengalaman: avatar perusahaan + nama + periode */
.timeline-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.timeline-company {
  display: flex;
  align-items: center;
  gap: 14px;
}
.company-mark {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
  box-shadow: 0 6px 18px rgba(41, 151, 255, 0.3);
  overflow: hidden;
}
/* varian logo: latar putih supaya logo berwarna tetap terlihat */
.company-mark-logo {
  background: #fff;
  padding: 6px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}
.company-mark-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.company-name {
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.3px;
  line-height: 1.2;
}
.company-meta {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}
.period-live {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34c759;
  margin-right: 6px;
  vertical-align: middle;
  animation: pulse 2s ease-in-out infinite;
}

/* blok peran + poin */
.role-block {
  padding: 16px 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}
.role-block:last-of-type { margin-bottom: 16px; }
.role-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.role-label::before {
  content: '';
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}
.role-points {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.role-points li {
  position: relative;
  padding-left: 20px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-secondary);
}
.role-points li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.6;
}

.timeline-period {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
  white-space: nowrap;
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 5px 14px;
  border-radius: 980px;
  flex-shrink: 0;
  align-self: flex-start;
}

.timeline-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 18px;
}

.timeline-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* sub-peran + poin-poin dalam satu pengalaman */
.timeline-subrole { margin-top: 18px; }
.timeline-subrole:first-of-type { margin-top: 6px; }
.subrole-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 10px;
}
.subrole-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.subrole-list li {
  position: relative;
  padding-left: 20px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-secondary);
}
.subrole-list li::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.65;
}

@media (max-width: 600px) {
  .timeline-card { padding: 20px; }
  .timeline-header { flex-direction: column; gap: 8px; }
  .timeline-period { align-self: flex-start; }
}

/* =============================================
   SHOWCASE (sticky scrollytelling)
   ============================================= */
.showcase {
  border-top: 1px solid var(--border);
}
.showcase-track {
  /* tinggi mengatur durasi scroll — makin kecil makin pendek */
  height: 200vh;
  position: relative;
}
.showcase-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.showcase-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
  width: 100%;
}

/* kolom teks */
.showcase-text { position: relative; }
.showcase-steps {
  position: relative;
  min-height: 220px;
}
.showcase-step {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.showcase-step.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.showcase-num {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 16px;
}
.showcase-step-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  color: var(--text);
  margin-bottom: 18px;
}
.showcase-step-desc {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 460px;
}

/* indikator titik */
.showcase-dots {
  display: flex;
  gap: 10px;
  margin-top: 36px;
}
.showcase-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: background 0.3s ease, width 0.3s ease;
}
.showcase-dot.is-active {
  background: var(--accent);
  width: 26px;
  border-radius: 6px;
}

/* visual laptop */
.showcase-visual {
  display: flex;
  justify-content: center;
  perspective: 1500px;
}
.showcase-laptop {
  position: relative;
  width: 100%;
  max-width: 620px;
  aspect-ratio: 640 / 440;
  transform-style: preserve-3d;
  will-change: transform;
}
.showcase-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 16px;
  box-shadow: 0 40px 120px rgba(0,0,0,0.6);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.showcase-img.is-active {
  opacity: 1;
}
[data-theme="light"] .showcase-img {
  box-shadow: 0 30px 80px rgba(0,0,0,0.15);
}

@media (max-width: 900px) {
  /* matikan pinning: jadikan tumpukan normal */
  .showcase-track { height: auto; }
  .showcase-sticky { position: static; height: auto; padding: 80px 0; overflow: visible; }
  .showcase-inner { grid-template-columns: 1fr; gap: 40px; }
  .showcase-visual { order: -1; }
  .showcase-steps { min-height: 0; display: flex; flex-direction: column; gap: 40px; }
  .showcase-step { position: static; opacity: 1; transform: none; pointer-events: auto; }
  .showcase-dots { display: none; }
}

/* =============================================
   PROJECTS
   ============================================= */
.projects {
  padding: 120px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* Portfolio grid (gambar proyek nyata) — 3 kolom seragam */
.projects-grid-portfolio {
  grid-template-columns: repeat(3, 1fr);
}
.projects-grid-portfolio .project-img {
  height: 200px;
}
.projects-grid-portfolio .project-info {
  padding: 20px 22px 24px;
}
.projects-grid-portfolio .project-title {
  font-size: 18px;
}
/* kartu full-width (featured) di dalam grid portfolio */
.projects-grid-portfolio .project-card-wide {
  grid-column: 1 / -1;
}
.projects-grid-portfolio .project-card-wide .project-img {
  height: 420px;
}
@media (max-width: 980px) {
  .projects-grid-portfolio { grid-template-columns: repeat(2, 1fr); }
  .projects-grid-portfolio .project-card-wide .project-img { height: 320px; }
}
@media (max-width: 620px) {
  .projects-grid-portfolio { grid-template-columns: 1fr; }
  .projects-grid-portfolio .project-card-wide .project-img { height: 200px; }
}

/* Karya Pilihan homepage — layout 1-2-2 (2 kolom, PatraData full-width) */
.projects-grid-featured {
  grid-template-columns: repeat(2, 1fr);
}
.projects-grid-featured .project-img {
  height: 240px;
}
.projects-grid-featured .project-card-wide .project-img {
  height: 400px;
}
@media (max-width: 620px) {
  .projects-grid-featured { grid-template-columns: 1fr; }
  .projects-grid-featured .project-img { height: 200px; }
  .projects-grid-featured .project-card-wide .project-img { height: 200px; }
}

.project-card-featured {
  grid-column: 1 / -1;
}

.project-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}
.project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255,255,255,0.16);
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
}

.project-img {
  position: relative;
  height: 260px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0d0d0d;
}
.project-card-featured .project-img { height: 360px; }

.project-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.project-card:hover .project-screenshot {
  transform: scale(1.04);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  backdrop-filter: blur(4px);
  z-index: 2;
}
.project-card:hover .project-overlay { opacity: 1; }

.project-links {
  display: flex;
  gap: 12px;
}

.project-link {
  background: var(--accent);
  color: #fff;
  padding: 10px 24px;
  border-radius: 980px;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s, transform 0.2s;
}
.project-link:hover { background: var(--accent-hover); transform: scale(1.05); }

.project-link-ghost {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
}
.project-link-ghost:hover { background: rgba(255,255,255,0.1); }


.project-info {
  padding: 28px 32px 32px;
}

.project-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.tag {
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  background: rgba(41,151,255,0.1);
  border: 1px solid rgba(41,151,255,0.2);
  padding: 4px 12px;
  border-radius: 980px;
}

/* badge peran — warna hijau, dibedakan dari tag kategori */
.tag-role {
  color: #30d158;
  background: rgba(48, 209, 88, 0.1);
  border-color: rgba(48, 209, 88, 0.25);
}

.project-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

.project-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* =============================================
   TESTIMONIALS
   ============================================= */
.testimonials {
  padding: 120px 0;
  background: var(--surface);
  overflow: hidden;
}

.testimonials-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  transition: transform 0.5s var(--transition);
}

.testimonial-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  position: relative;
}
.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 20px;
  right: 28px;
  font-size: 80px;
  line-height: 1;
  color: var(--border);
  font-family: Georgia, serif;
}

.testimonial-stars {
  color: #ff9f0a;
  font-size: 14px;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.testimonial-text {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.testimonial-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.testimonial-role {
  font-size: 13px;
  color: var(--text-secondary);
}

.testimonials-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 40px;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.dot.active {
  background: var(--accent);
  transform: scale(1.4);
}

/* =============================================
   CLIENTS
   ============================================= */
.clients {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}
.clients-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 24px;
}
.client-logo {
  flex: 0 0 calc((100% - 5 * 20px) / 6);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 110px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.3s ease, transform 0.3s ease, background 0.3s ease;
}
.client-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
/* logo dengan varian terang/gelap per tema */
.client-logo .logo-light { display: none; }
.client-logo .logo-dark { display: block; }
[data-theme="light"] .client-logo .logo-light { display: block; }
[data-theme="light"] .client-logo .logo-dark { display: none; }
.client-logo:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.16);
}
[data-theme="light"] .client-logo:hover { border-color: rgba(0, 0, 0, 0.14); }

@media (max-width: 900px) {
  .client-logo { flex-basis: calc((100% - 3 * 20px) / 4); }
}
@media (max-width: 560px) {
  .client-logo { flex-basis: calc((100% - 2 * 20px) / 3); height: 90px; padding: 14px; }
}

/* =============================================
   CONTACT
   ============================================= */
.contact {
  padding: 120px 0;
  border-top: 1px solid var(--border);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

/* Kartu kontak (Telegram) */
.contact-card {
  position: relative;
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
  padding: 56px 40px 48px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}
[data-theme="light"] .contact-card { box-shadow: 0 24px 60px rgba(0, 0, 0, 0.1); }
.contact-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 50% 0%, rgba(41,151,255,0.16), transparent 60%),
    radial-gradient(ellipse 50% 50% at 80% 100%, rgba(191,90,242,0.12), transparent 60%);
  pointer-events: none;
}
.contact-card > * { position: relative; z-index: 1; }

.contact-tg-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  border-radius: 20px;
  margin-bottom: 24px;
  color: #fff;
  background: linear-gradient(135deg, #2aabee, #229ed9);
  box-shadow: 0 10px 30px rgba(41, 151, 255, 0.45);
  animation: floatAnim 4s ease-in-out infinite;
}
.contact-tg-badge svg { width: 34px; height: 34px; }

.contact-card .contact-desc {
  margin: 0 auto;
  max-width: 440px;
}

.contact-telegram {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  padding: 15px 34px;
  font-size: 16px;
}
.contact-telegram svg { width: 20px; height: 20px; }

.contact-availability {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}
.avail-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34c759;
  box-shadow: 0 0 0 3px rgba(52, 199, 89, 0.18);
  animation: pulse 2s ease-in-out infinite;
}

@media (max-width: 600px) {
  .contact-card { padding: 44px 24px 40px; }
}

.contact-title {
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -2px;
  color: var(--text);
  line-height: 1.05;
  margin-bottom: 20px;
}
.contact-title span {
  background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-desc {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.contact-item:hover { color: var(--text); }

.contact-icon {
  width: 36px;
  height: 36px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.social-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.social-btn {
  padding: 9px 18px;
  border: 1.5px solid var(--border);
  border-radius: 980px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.social-btn:hover {
  color: var(--text);
  border-color: rgba(255,255,255,0.3);
  background: var(--surface-2);
}
.social-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-size: 15px;
  color: var(--text);
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(134, 134, 139, 0.5);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(41,151,255,0.15);
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-logo {
  font-weight: 800;
  font-size: 20px;
  background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  font-size: 13px;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }

/* =============================================
   VIEW ALL BUTTON
   ============================================= */
.projects-viewall {
  text-align: center;
  margin-top: 48px;
}
.btn-viewall {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  padding: 14px 32px;
}

/* =============================================
   PROJECTS PAGE — PAGE HERO
   ============================================= */
.page-hero {
  padding: calc(var(--nav-h) + 80px) 0 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(41,151,255,0.1), transparent 70%);
  pointer-events: none;
}
.page-hero-title {
  font-size: clamp(48px, 7vw, 80px);
  font-weight: 800;
  letter-spacing: -3px;
  color: var(--text);
  line-height: 1;
  margin: 12px 0 16px;
}
.page-hero-title span {
  background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.page-hero-desc {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto 32px;
}
.page-hero-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.page-hero-back:hover { color: var(--text); }

/* =============================================
   PROJECTS PAGE — FILTER TABS
   ============================================= */
.projects-filter-wrap {
  padding: 0 0 48px;
}
.filter-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 9px 22px;
  border-radius: 980px;
  border: 1.5px solid var(--border);
  background: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.filter-btn:hover {
  color: var(--text);
  border-color: rgba(255,255,255,0.2);
}
.filter-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
[data-theme="light"] .filter-btn:hover {
  border-color: rgba(0,0,0,0.2);
}

/* =============================================
   PROJECTS PAGE — FULL GRID
   ============================================= */
.all-projects {
  padding: 0 0 120px;
}
.projects-grid-full {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.project-card-all {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}
.project-card-all:hover {
  transform: translateY(-6px);
  border-color: rgba(255,255,255,0.16);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
[data-theme="light"] .project-card-all:hover {
  border-color: rgba(0,0,0,0.12);
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

/* Gradient placeholder for cards without screenshots */
.project-img-gradient {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.project-img-gradient .project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  backdrop-filter: blur(4px);
  z-index: 2;
}
.project-card-all:hover .project-overlay { opacity: 1; }

.proj-bg-1  { background: linear-gradient(135deg, #0a192f, #1e3a5f); }
.proj-bg-2  { background: linear-gradient(135deg, #0a2a1a, #1a4a2e); }
.proj-bg-3  { background: linear-gradient(135deg, #1a0a2e, #3a1e5e); }
.proj-bg-4  { background: linear-gradient(135deg, #2a0a2e, #4e1a50); }
.proj-bg-5  { background: linear-gradient(135deg, #0a1a3a, #1a3a6a); }
.proj-bg-6  { background: linear-gradient(135deg, #2e1a0a, #5c3a1e); }
.proj-bg-7  { background: linear-gradient(135deg, #0a2a1e, #1a5040); }
.proj-bg-8  { background: linear-gradient(135deg, #1a1a0a, #3a3a1e); }

.proj-icon {
  width: 52px;
  height: 52px;
  opacity: 0.25;
  color: #fff;
  z-index: 1;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.97); }
  to   { opacity: 1; transform: scale(1); }
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .nav-links,
  .nav-cta { display: none; }
  .nav-inner { gap: 12px; }
  .lang-toggle { margin-left: auto; }
  .nav-burger { display: flex; margin-left: 0; }
  .nav-mobile { display: flex; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { height: 300px; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: 1fr; }
  .projects-grid-full { grid-template-columns: repeat(2, 1fr); }
  .project-card-featured { grid-column: auto; }
  .projects-grid-full { grid-template-columns: repeat(2, 1fr); }
  .testimonials-track { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 600px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .skills-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .hero-actions { flex-direction: column; align-items: center; }
  /* Nama hero: kecilkan agar tidak terpotong di layar sempit */
  .hero-name { font-size: clamp(40px, 13vw, 64px); letter-spacing: -1.5px; }
  .btn-primary, .btn-ghost { width: 100%; max-width: 280px; }
  /* Download CV: selebar isi, jangan ikut full-width */
  .about-cta .btn-primary { width: auto; max-width: none; }
  .contact-form { padding: 28px 20px; }
  .hero-device { margin-top: 40px; }
  .projects-grid-full { grid-template-columns: 1fr; }
  .btn-viewall { width: auto; }
}

/* =============================================
   PROJECT DETAIL PAGE
   ============================================= */
.nav-links-back {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.nav-links-back:hover { color: var(--text); }

.detail-main { padding-top: var(--nav-h); }

.detail-hero {
  position: relative;
  padding: 56px 0 48px;
  text-align: center;
  overflow: hidden;
}
.detail-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 50% -10%, rgba(41,151,255,0.18), transparent 62%),
    radial-gradient(ellipse 45% 50% at 82% 5%, rgba(191,90,242,0.14), transparent 60%),
    radial-gradient(ellipse 45% 50% at 18% 10%, rgba(255,105,97,0.10), transparent 60%);
  pointer-events: none;
}
.detail-hero .container { position: relative; z-index: 1; }

.detail-back {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 28px;
  transition: color 0.2s, transform 0.2s;
}
.detail-back:hover { color: var(--accent); transform: translateX(-3px); }

.detail-cat {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(41,151,255,0.12);
  border: 1px solid rgba(41,151,255,0.28);
  padding: 6px 16px;
  border-radius: 980px;
}

.detail-title {
  font-size: clamp(34px, 5.5vw, 58px);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.08;
  margin: 18px auto 16px;
  max-width: 16ch;
  background: linear-gradient(120deg, var(--gradient-1), var(--gradient-2), var(--gradient-3));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.detail-tagline {
  font-size: clamp(17px, 2.2vw, 20px);
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.65;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
}
.meta-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 26px;
  min-width: 130px;
}
.meta-card span {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.meta-card strong {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  text-align: center;
}

.detail-cover {
  padding: 8px 0 56px;
  position: relative;
}
.detail-cover-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 40px 100px rgba(0,0,0,0.5);
}
[data-theme="light"] .detail-cover-frame { box-shadow: 0 30px 70px rgba(0,0,0,0.14); }
.detail-cover-frame img { width: 100%; display: block; }

.detail-body {
  padding: 64px 0;
  border-top: 1px solid var(--border);
}
.detail-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 56px;
  align-items: start;
}
.detail-h2 {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
  color: var(--text);
}
.detail-h2::before {
  content: '';
  width: 4px;
  height: 22px;
  border-radius: 3px;
  background: linear-gradient(var(--gradient-1), var(--gradient-2));
}
.detail-about p {
  font-size: 17px;
  line-height: 1.85;
  color: var(--text-secondary);
}

.detail-features {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 30px;
}
.feature-list { display: flex; flex-direction: column; gap: 16px; }
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15.5px;
  color: var(--text);
  line-height: 1.5;
}
.feat-check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(48,209,88,0.14);
  color: #30d158;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  margin-top: 1px;
}

.detail-gallery {
  padding: 64px 0;
  border-top: 1px solid var(--border);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.gallery-item {
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface);
  cursor: pointer;
  display: block;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.gallery-item:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.18);
  box-shadow: 0 16px 50px rgba(0,0,0,0.4);
}
[data-theme="light"] .gallery-item:hover { border-color: rgba(0,0,0,0.15); box-shadow: 0 16px 40px rgba(0,0,0,0.1); }
.gallery-item img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
}

.detail-cta {
  padding: 88px 0;
  text-align: center;
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.detail-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 120% at 50% 120%, rgba(41,151,255,0.16), transparent 70%);
  pointer-events: none;
}
.detail-cta .container { position: relative; z-index: 1; }
.detail-cta h2 {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 28px;
  color: var(--text);
}

.detail-empty {
  padding: 160px 24px;
  text-align: center;
}
.detail-empty h1 { font-size: 36px; margin-bottom: 12px; color: var(--text); }
.detail-empty p { color: var(--text-secondary); margin-bottom: 28px; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 11000;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  cursor: zoom-out;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: 95vw;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 30px 100px rgba(0,0,0,0.7);
}
.lightbox-close {
  position: fixed;
  top: 24px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.22); }

@media (max-width: 820px) {
  .detail-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 600px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .detail-meta { gap: 24px; }
}
