/* ===== CSS VARIABLES ===== */
:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #0f0f1a;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.06);
  --text-primary: #e8e8f0;
  --text-secondary: #9090a8;
  --text-muted: #555568;
  --accent-purple: #6c63ff;
  --accent-cyan: #00d4ff;
  --accent-gradient: linear-gradient(135deg, #6c63ff, #00d4ff);
  --accent-gradient-hover: linear-gradient(135deg, #5a52e0, #00b8db);
  --border-color: rgba(108, 99, 255, 0.15);
  --border-color-hover: rgba(108, 99, 255, 0.4);
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.08);
  --shadow-glow: 0 0 40px rgba(108, 99, 255, 0.15);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;
  --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-mono: 'Fira Code', 'Cascadia Code', monospace;
  --navbar-height: 70px;
}

[data-theme="light"] {
  --bg-primary: #f5f5fa;
  --bg-secondary: #eeeef6;
  --bg-card: rgba(255, 255, 255, 0.7);
  --bg-card-hover: rgba(255, 255, 255, 0.9);
  --text-primary: #1a1a2e;
  --text-secondary: #44445a;
  --text-muted: #888899;
  --border-color: rgba(108, 99, 255, 0.2);
  --border-color-hover: rgba(108, 99, 255, 0.5);
  --glass-bg: rgba(255, 255, 255, 0.6);
  --glass-border: rgba(255, 255, 255, 0.8);
  --shadow-glow: 0 0 40px rgba(108, 99, 255, 0.1);
  --shadow-card: 0 8px 32px rgba(108, 99, 255, 0.1);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--navbar-height);
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
}

body.menu-open { overflow: hidden; }

::selection { background: rgba(108, 99, 255, 0.3); color: var(--text-primary); }

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea { font-family: inherit; }

/* ===== CUSTOM CURSOR ===== */
.cursor-dot,
.cursor-ring {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-cyan);
  top: 0; left: 0;
}

.cursor-ring {
  width: 36px;
  height: 36px;
  border: 2px solid rgba(108, 99, 255, 0.6);
  top: 0; left: 0;
  transition: width 0.2s ease, height 0.2s ease, border-color 0.2s ease;
}

.cursor-ring.hovered {
  width: 52px;
  height: 52px;
  border-color: var(--accent-cyan);
}

@media (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ===== SCROLL PROGRESS ===== */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--accent-gradient);
  z-index: 1000;
  transition: width 0.1s linear;
  box-shadow: 0 0 10px rgba(108, 99, 255, 0.5);
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--navbar-height);
  z-index: 900;
  transition: var(--transition);
  padding: 0 1.5rem;
}

.navbar.scrolled {
  background: rgba(10, 10, 15, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-glow);
}

[data-theme="light"] .navbar.scrolled {
  background: rgba(245, 245, 250, 0.9);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 600;
  white-space: nowrap;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-bracket { opacity: 0.7; }

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.25rem;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 2px;
  background: var(--accent-gradient);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 60%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.theme-toggle {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  transition: var(--transition-fast);
  background: var(--bg-card);
}

.theme-toggle:hover { color: var(--accent-purple); border-color: var(--accent-purple); }
.theme-toggle svg { width: 18px; height: 18px; }

[data-theme="dark"] .icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius-sm);
}

.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== UTILITY ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-purple);
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 500px;
  margin: 0 auto;
}

.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.highlight {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}

.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.925rem;
  transition: var(--transition);
  cursor: pointer;
  white-space: nowrap;
}

.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-primary {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 4px 20px rgba(108, 99, 255, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(108, 99, 255, 0.5);
}

.btn-outline {
  border: 2px solid var(--border-color-hover);
  color: var(--text-primary);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--accent-purple);
  background: rgba(108, 99, 255, 0.1);
  transform: translateY(-2px);
}

.btn-full { width: 100%; justify-content: center; }

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: calc(var(--navbar-height) + 2rem) 1.5rem 4rem;
}

#particleCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
}

.hero-greeting {
  margin-bottom: 1rem;
}

.greeting-text {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--accent-cyan);
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.25);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  display: inline-block;
}

.hero-name {
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-purple) 60%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title {
  font-family: var(--font-mono);
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  min-height: 2rem;
}

.title-prefix { color: var(--accent-purple); opacity: 0.7; }

.typed-text {
  color: var(--accent-cyan);
  font-weight: 500;
}

.typed-cursor {
  display: inline-block;
  color: var(--accent-cyan);
  font-weight: 300;
  animation: blink 1s step-end infinite;
}

.hero-tagline {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-socials {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.social-link {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  transition: var(--transition);
}

.social-link svg { width: 20px; height: 20px; }

.social-link:hover {
  color: var(--accent-purple);
  border-color: var(--accent-purple);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(108, 99, 255, 0.3);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  z-index: 1;
  white-space: nowrap;
}

.scroll-arrow {
  width: 16px; height: 16px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
  animation: scrollBounce 1.5s ease-in-out infinite;
}

/* ===== ABOUT SECTION — PHOTO ===== */
.about { background: var(--bg-secondary); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: center;
}

/* Photo Frame */
.about-avatar-wrapper {
  display: flex;
  justify-content: center;
}

.avatar-container {
  position: relative;
  width: 300px;
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-frame {
  position: relative;
  width: 240px;
  height: 280px;
  z-index: 1;
}

/* Ambient glow behind photo */
.photo-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(ellipse at center, rgba(108,99,255,0.35) 0%, rgba(0,212,255,0.15) 50%, transparent 75%);
  border-radius: 50%;
  filter: blur(20px);
  z-index: 0;
  animation: glowPulse 3s ease-in-out infinite;
}

/* Photo wrapper — clip to shape */
.photo-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 30px 30px 30px 30px;
  overflow: hidden;
  border: 2px solid transparent;
  background: linear-gradient(var(--bg-secondary), var(--bg-secondary)) padding-box,
              linear-gradient(135deg, #6c63ff, #00d4ff, #6c63ff) border-box;
  box-shadow:
    0 25px 60px rgba(0,0,0,0.5),
    0 0 0 1px rgba(108,99,255,0.2),
    inset 0 1px 0 rgba(255,255,255,0.05);
  z-index: 1;
}

.profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: contrast(1.05) saturate(0.9) brightness(1.02);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), filter 0.5s ease;
}

.photo-wrapper:hover .profile-photo {
  transform: scale(1.04);
  filter: contrast(1.08) saturate(1.0) brightness(1.05);
}

/* Subtle gradient overlay — bottom fade untuk blend */
.photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 50%,
    rgba(10, 10, 15, 0.4) 100%
  );
  pointer-events: none;
}

/* Floating decoration dots */
.photo-decoration {
  position: absolute;
  border-radius: 50%;
  z-index: 2;
  animation: float 4s ease-in-out infinite;
}

.deco-1 {
  width: 14px; height: 14px;
  background: var(--accent-purple);
  top: 10px; right: -10px;
  box-shadow: 0 0 20px rgba(108,99,255,0.8);
  animation-delay: 0s;
}

.deco-2 {
  width: 10px; height: 10px;
  background: var(--accent-cyan);
  bottom: 40px; left: -12px;
  box-shadow: 0 0 15px rgba(0,212,255,0.8);
  animation-delay: 1.5s;
}

.deco-3 {
  width: 7px; height: 7px;
  background: #fff;
  bottom: 10px; right: 20px;
  opacity: 0.6;
  box-shadow: 0 0 10px rgba(255,255,255,0.6);
  animation-delay: 0.8s;
}

/* Rotating rings */
.avatar-ring {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 2px solid transparent;
}

.ring-1 {
  width: 290px; height: 290px;
  border-color: rgba(108, 99, 255, 0.2);
  animation: ringRotate 8s linear infinite;
  border-style: dashed;
}

.ring-2 {
  width: 320px; height: 320px;
  border-color: rgba(0, 212, 255, 0.12);
  animation: ringRotate 12s linear infinite reverse;
  border-style: dotted;
}

/* Available badge */
.avatar-badge {
  position: absolute;
  bottom: -12px; right: -16px;
  background: rgba(10, 10, 15, 0.85);
  border: 1px solid rgba(74, 222, 128, 0.4);
  border-radius: 50px;
  padding: 0.45rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #4ade80;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4), 0 0 20px rgba(74,222,128,0.1);
  white-space: nowrap;
  z-index: 3;
  /* Pastikan tidak keluar layar */
  max-width: calc(100vw - 2rem);
}

.badge-dot {
  width: 8px; height: 8px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse-green 1.5s ease-in-out infinite;
  flex-shrink: 0;
}

.about-name {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.about-bio {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-size: 0.975rem;
}

.about-bio strong { color: var(--text-primary); font-weight: 600; }

.about-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.info-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.info-value {
  font-size: 0.9rem;
  color: var(--text-primary);
  font-weight: 500;
}

.status-available {
  color: #4ade80 !important;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.status-available::before {
  content: '';
  display: inline-block;
  width: 7px; height: 7px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse-green 1.5s ease-in-out infinite;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem 0.75rem;
  text-align: center;
  transition: var(--transition);
}

.stat-card:hover {
  border-color: var(--accent-purple);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(108, 99, 255, 0.15);
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat-suffix {
  font-size: 1.3rem;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.3rem;
}

/* ===== SKILLS SECTION ===== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.skills-category {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: var(--transition);
}

.skills-category:hover {
  border-color: var(--border-color-hover);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

.category-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.category-icon { font-size: 1.5rem; }
.category-header h3 { font-size: 1.1rem; font-weight: 700; }

.skill-list { display: flex; flex-direction: column; gap: 1rem; }

.skill-item {}

.skill-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.skill-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
}

.skill-percent {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-cyan);
  font-weight: 600;
}

.skill-bar {
  height: 6px;
  background: var(--border-color);
  border-radius: 6px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  width: 0;
  background: var(--accent-gradient);
  border-radius: 6px;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.skill-fill::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 6px; height: 6px;
  background: var(--accent-cyan);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-cyan);
}

.tech-icon-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

.tech-badge {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent-purple);
  background: rgba(108, 99, 255, 0.08);
  border: 1px solid rgba(108, 99, 255, 0.2);
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  transition: var(--transition);
}

.tech-badge:hover {
  background: rgba(108, 99, 255, 0.18);
  border-color: var(--accent-purple);
  transform: translateY(-2px);
}

/* ===== PROJECTS SECTION ===== */
.projects { background: var(--bg-secondary); }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.project-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.project-card:hover {
  border-color: var(--border-color-hover);
  transform: translateY(-6px);
}

.project-card:hover .project-card-glow {
  opacity: 1;
}

.project-card-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(108, 99, 255, 0.1) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.project-card-inner {
  padding: 1.75rem;
  position: relative;
  z-index: 1;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.project-icon { font-size: 2rem; }

.project-links {
  display: flex;
  gap: 0.5rem;
}

.project-link {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.project-link svg { width: 16px; height: 16px; }

.project-link:hover {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  background: rgba(0, 212, 255, 0.1);
}

.project-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  transition: color 0.2s;
}

.project-card:hover .project-title { color: var(--accent-cyan); }

.project-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent-purple);
  background: rgba(108, 99, 255, 0.1);
  border: 1px solid rgba(108, 99, 255, 0.2);
  padding: 0.25rem 0.65rem;
  border-radius: 50px;
}

.tech-tag.small { font-size: 0.7rem; padding: 0.2rem 0.55rem; }

/* project-card-arrow (ganti project-links) */
.project-card-arrow {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  transition: var(--transition-fast);
  flex-shrink: 0;
}
.project-card-arrow svg { width: 16px; height: 16px; }
.project-card:hover .project-card-arrow {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  background: rgba(0,212,255,0.1);
  transform: translateX(3px);
}

/* ===== PROJECT MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}
.modal-container {
  position: relative;
  width: 100%;
  max-width: 620px;
  max-height: 88vh;
  overflow-y: auto;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color-hover);
  border-radius: var(--radius-xl);
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(108,99,255,0.1);
  transform: translateY(24px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), opacity 0.3s ease;
  opacity: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--border-color) transparent;
}
.modal-overlay.active .modal-container {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.modal-close {
  position: sticky;
  top: 1rem;
  float: right;
  margin: 1rem 1rem 0 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition-fast);
  z-index: 1;
}
.modal-close svg { width: 16px; height: 16px; }
.modal-close:hover { color: #f87171; border-color: #f87171; background: rgba(248,113,113,0.1); }
.modal-body {
  padding: 1rem 2rem 2.5rem;
  clear: both;
}
.modal-icon { font-size: 3rem; margin-bottom: 0.75rem; }
.modal-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.modal-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 1.5rem;
}
.modal-section { margin-bottom: 1.5rem; }
.modal-section h4 {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--accent-purple);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}
.modal-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.modal-features li {
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding-left: 1.25rem;
  position: relative;
}
.modal-features li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent-cyan);
}
.modal-tech { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.modal-links { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 0.5rem; }

/* ===== EXPERIENCE / TIMELINE ===== */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 2.5rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--accent-purple), var(--accent-cyan), transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}

.timeline-item:last-child { margin-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -2.85rem; top: 1.5rem;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--accent-gradient);
  border: 2px solid var(--bg-primary);
  box-shadow: 0 0 12px rgba(108, 99, 255, 0.6);
}

.timeline-content {
  padding: 1.5rem;
  transition: var(--transition);
}

.timeline-content:hover {
  border-color: var(--border-color-hover);
  box-shadow: var(--shadow-glow);
  transform: translateX(6px);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.timeline-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.timeline-company {
  font-size: 0.875rem;
  color: var(--accent-cyan);
  font-weight: 500;
}

.timeline-period {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
  white-space: nowrap;
  flex-shrink: 0;
}

.timeline-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.timeline-tech { display: flex; flex-wrap: wrap; gap: 0.4rem; }

/* ===== CONTACT SECTION ===== */
.contact { background: var(--bg-secondary); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3rem;
  align-items: start;
}

.contact-info h3 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.contact-info > p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: 0.95rem;
  line-height: 1.7;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.contact-item:hover {
  border-color: var(--accent-purple);
  transform: translateX(5px);
  box-shadow: 0 4px 20px rgba(108, 99, 255, 0.15);
}

.contact-icon {
  width: 42px; height: 42px;
  border-radius: var(--radius-sm);
  background: rgba(108, 99, 255, 0.1);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-purple);
  flex-shrink: 0;
}

.contact-icon svg { width: 20px; height: 20px; }

.contact-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.contact-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-mono);
}

.contact-value {
  font-size: 0.9rem;
  color: var(--text-primary);
  font-weight: 500;
}

.contact-socials {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.social-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  transition: var(--transition);
}

.social-btn svg { width: 16px; height: 16px; }

.social-btn:hover {
  color: var(--accent-purple);
  border-color: var(--accent-purple);
  background: rgba(108, 99, 255, 0.1);
  transform: translateY(-2px);
}

/* Contact Form */
.contact-form {
  padding: 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: var(--text-primary);
  transition: var(--transition-fast);
  resize: vertical;
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent-purple);
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.15);
}

.form-group input.error,
.form-group textarea.error {
  border-color: #f87171;
}

.form-error {
  font-size: 0.78rem;
  color: #f87171;
  min-height: 1rem;
}

.form-success {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.3);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  color: #4ade80;
  text-align: center;
}

/* ===== FOOTER ===== */
.footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border-color);
  background: var(--bg-primary);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-align: center;
}

.footer-copy {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer-note {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.heart { animation: heartbeat 1.5s ease-in-out infinite; display: inline-block; }

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(108, 99, 255, 0.4);
  transition: var(--transition);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  z-index: 800;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(108, 99, 255, 0.5);
}

.back-to-top svg { width: 22px; height: 22px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 3rem; text-align: center; }
  .about-info-grid { max-width: 400px; margin-left: auto; margin-right: auto; }
  .about-stats { max-width: 400px; margin-left: auto; margin-right: auto; }
  .about-avatar-wrapper { order: -1; }
  /* Status badge center di tablet/mobile */
  .info-item { align-items: center; }
  .status-available { justify-content: center; }
  .avatar-badge { right: 10px; }
  .skills-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 70px 0; }

  /* Hero mobile */
  .hero {
    min-height: 100svh; /* svh = small viewport height, handles mobile browser chrome */
    padding: calc(var(--navbar-height) + 1.5rem) 1.25rem 3rem;
  }
  .hero-content { max-width: 100%; }
  .hero-name { letter-spacing: -0.02em; }
  .hero-tagline { font-size: 0.95rem; }
  .hero-cta { flex-direction: column; align-items: center; }
  .hero-cta .btn { width: 100%; max-width: 280px; justify-content: center; }

  /* Navbar mobile */
  .nav-links {
    position: fixed;
    top: var(--navbar-height); left: 0; right: 0;
    background: rgba(10, 10, 15, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 1rem 0 2rem;
    transform: translateY(-120%);
    opacity: 0;
    transition: var(--transition);
    border-bottom: 1px solid var(--border-color);
    z-index: 800;
  }
  [data-theme="light"] .nav-links { background: rgba(245, 245, 250, 0.97); }
  .nav-links.open { transform: translateY(0); opacity: 1; }
  .nav-link { padding: 0.85rem 2rem; font-size: 1rem; }
  .hamburger { display: flex; }

  /* Scroll indicator mobile — lebih kecil dan tidak nabrak konten */
  .hero-scroll-indicator {
    bottom: 0.75rem;
    font-size: 0.65rem;
    letter-spacing: 0.05em;
    gap: 0.35rem;
  }
  .scroll-arrow {
    width: 12px; height: 12px;
  }

  /* Avatar badge mobile — posisi di bawah tengah, tidak overflow */
  .avatar-badge {
    right: 50%;
    transform: translateX(50%);
    bottom: -18px;
    font-size: 0.72rem;
    padding: 0.4rem 0.85rem;
  }

  /* About section mobile */
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .avatar-container { width: 260px; height: 300px; }
  .photo-frame { width: 200px; height: 240px; }
  .ring-1 { width: 250px; height: 250px; }
  .ring-2 { width: 275px; height: 275px; }

  /* Timeline mobile */
  .timeline { padding-left: 1.75rem; }
  .timeline-header { flex-direction: column; }

  /* Modal mobile */
  .modal-container { max-height: 92vh; border-radius: var(--radius-lg); }
  .modal-body { padding: 0.75rem 1.25rem 2rem; }
  .modal-links { flex-direction: column; }
  .modal-links .btn { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  .hero { padding: calc(var(--navbar-height) + 1rem) 1rem 2.5rem; }
  .hero-socials { gap: 0.6rem; }
  .social-link { width: 38px; height: 38px; }

  /* Sembunyikan "Scroll Down" text, tapi tetap tampilkan arrow */
  .hero-scroll-indicator span:first-child { display: none; }
  .hero-scroll-indicator { bottom: 0.5rem; }

  /* Badge lebih compact */
  .avatar-badge { font-size: 0.68rem; padding: 0.35rem 0.7rem; gap: 0.35rem; }
  .badge-dot { width: 6px; height: 6px; }

  .about-info-grid { grid-template-columns: 1fr; }
  .skills-category { padding: 1.25rem; }
  .project-card-inner { padding: 1.25rem; }
  .contact-form { padding: 1.25rem; }
  .back-to-top { bottom: 1.25rem; right: 1.25rem; }
  .greeting-text { font-size: 0.85rem; }
  .hero-title { font-size: 1rem; }
}
