/* =========================================================
   DESIGN TOKENS
========================================================= */
:root {
  --bg: #FAFAFF;
  --bg-alt: #F2EFFF;
  --surface: #FFFFFF;
  --border: #E7E2FA;
  --text: #16162B;
  --text-soft: #5A5A78;
  --text-faint: #8B8AA8;

  --primary: #6C5CE7;
  --primary-dark: #4834D4;
  --pink: #FF6B9D;
  --cyan: #00C2A8;
  --amber: #FFB020;

  --gradient-1: linear-gradient(135deg, var(--primary) 0%, var(--pink) 50%, var(--amber) 100%);
  --gradient-2: linear-gradient(135deg, var(--cyan) 0%, var(--primary) 100%);

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --shadow-sm: 0 2px 10px rgba(76, 52, 212, 0.06);
  --shadow-md: 0 12px 32px rgba(76, 52, 212, 0.12);
  --shadow-lg: 0 24px 60px rgba(76, 52, 212, 0.18);

  --nav-h: 76px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --bg: #100F1C;
  --bg-alt: #17162A;
  --surface: #1C1B31;
  --border: #2C2A48;
  --text: #F1EFFF;
  --text-soft: #B7B4D9;
  --text-faint: #7B7899;

  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.5);
}

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

html { scroll-behavior: smooth; }

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea { font: inherit; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.mono { font-family: var(--font-mono); }

.gradient-text {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--primary);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 8px 0;
  z-index: 999;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* =========================================================
   NAVBAR
========================================================= */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), background var(--transition);
}
.navbar.scrolled { border-bottom-color: var(--border); }

.nav-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--gradient-1);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: -0.02em;
}
.logo-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--text);
}

.nav-links {
  display: flex;
  gap: 2.2rem;
}
.nav-link {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-soft);
  padding: 6px 2px;
  position: relative;
  transition: color var(--transition);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--gradient-1);
  transition: right var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--primary); }
.nav-link:hover::after, .nav-link.active::after { right: 0; }

.nav-actions { display: flex; align-items: center; gap: 10px; }

.theme-toggle {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text);
  transition: background var(--transition), transform var(--transition);
}
.theme-toggle:hover { background: var(--bg-alt); transform: rotate(15deg); }
.icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: none; }
[data-theme="dark"] .icon-moon { display: block; }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   BUTTONS
========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--gradient-1);
  background-size: 200% auto;
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { background-position: right center; transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-outline {
  border: 1.5px solid var(--border);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.btn-full { width: 100%; }

/* =========================================================
   HERO
========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  z-index: 0;
  animation: float 12s ease-in-out infinite;
}
.blob-1 { width: 420px; height: 420px; background: var(--primary); top: -100px; right: -80px; }
.blob-2 { width: 320px; height: 320px; background: var(--pink); bottom: -60px; left: -60px; animation-delay: -4s; }
.blob-3 { width: 260px; height: 260px; background: var(--amber); top: 40%; right: 25%; animation-delay: -8s; opacity: 0.2; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-25px, 35px) scale(1.08); }
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
  padding-top: 2rem;
  padding-bottom: 4rem;
}

.eyebrow {
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 5.2vw, 3.6rem);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.2rem;
}

.hero-role {
  font-size: 1.05rem;
  color: var(--primary-dark);
  font-weight: 500;
  min-height: 1.6em;
  margin-bottom: 1.2rem;
}
[data-theme="dark"] .hero-role { color: var(--cyan); }
.cursor { animation: blink 1s step-end infinite; color: var(--pink); }
@keyframes blink { 50% { opacity: 0; } }

.hero-desc {
  color: var(--text-soft);
  font-size: 1.02rem;
  max-width: 48ch;
  margin-bottom: 0.9rem;
}
.hero-desc:last-of-type { margin-bottom: 2rem; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 2.2rem;
}

.hero-socials { display: flex; gap: 10px; }
.social-btn {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text-soft);
  transition: all var(--transition);
  position: relative;
}
.social-btn:hover {
  background: var(--gradient-1);
  color: #fff;
  border-color: transparent;
  transform: translateY(-3px);
}

/* Kartu foto profil (hero) */
.photo-card {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding: 2.6rem 2rem 2.2rem;
  text-align: center;
  overflow: hidden;
}
.photo-card-glow {
  position: absolute;
  top: -40%; left: 50%;
  transform: translateX(-50%);
  width: 260px; height: 260px;
  background: var(--gradient-1);
  filter: blur(60px);
  opacity: 0.25;
  border-radius: 50%;
  z-index: 0;
}

.avatar-frame {
  width: 180px; height: 180px;
  margin: 0 auto 1.4rem;
  border-radius: 50%;
  position: relative;
  padding: 5px;
  background: var(--gradient-1);
  z-index: 1;
}
.avatar-img, .avatar-fallback {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--surface);
}
.avatar-fallback {
  display: none;
  align-items: center; justify-content: center;
  background: var(--bg-alt);
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
}
.avatar-frame.show-fallback .avatar-img { display: none; }
.avatar-frame.show-fallback .avatar-fallback { display: flex; }

.avatar-name {
  position: relative; z-index: 1;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 6px;
}
.avatar-caption {
  position: relative; z-index: 1;
  font-size: 0.85rem;
  color: var(--text-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.status-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(0,194,168,0.6);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0,194,168,0.5); }
  70% { box-shadow: 0 0 0 8px rgba(0,194,168,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,194,168,0); }
}

.scroll-cue {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  color: var(--text-faint);
  animation: bob 2s ease-in-out infinite;
  z-index: 1;
}
@keyframes bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* =========================================================
   STATS STRIP
========================================================= */
.stats-strip {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 3rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.4rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.stat-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--gradient-1);
  color: #fff;
  margin-bottom: 0.9rem;
}
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.1rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}
.stat-label {
  font-size: 0.82rem;
  color: var(--text-soft);
  margin-top: 2px;
}

/* =========================================================
   SECTIONS
========================================================= */
.section { padding: 6.5rem 0; }
.section-alt { background: var(--bg-alt); }

.section-eyebrow {
  color: var(--primary);
  font-size: 0.85rem;
  margin-bottom: 0.8rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.section-lead {
  color: var(--text-soft);
  max-width: 65ch;
  margin-bottom: 3rem;
  font-size: 1.02rem;
}

.subsection-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin: 3rem 0 1.5rem;
}

/* =========================================================
   PROFIL
========================================================= */
.profil-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
  margin-top: 2.5rem;
}

.code-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.code-body {
  padding: 1.6rem 1.4rem;
  font-size: 0.88rem;
  line-height: 1.85;
  overflow-x: auto;
  color: var(--text-soft);
}
.code-key { color: var(--primary-dark); }
[data-theme="dark"] .code-key { color: #B79CFF; }
.code-string { color: var(--cyan); }
.code-number { color: var(--amber); }
.code-punct { color: var(--text-faint); }

/* Kartu biodata profesional */
.bio-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.bio-header {
  padding: 1.8rem 1.8rem 1.4rem;
  background: var(--gradient-1);
  color: #fff;
}
.bio-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 0.5rem;
}
.bio-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}
.bio-role { font-size: 0.9rem; opacity: 0.9; }

.bio-list { padding: 0.4rem 1.8rem 1.6rem; }
.bio-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
}
.bio-row:last-child { border-bottom: none; }
.bio-icon {
  flex-shrink: 0;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: var(--bg-alt);
  color: var(--primary);
}
.bio-text { min-width: 0; }
.bio-label {
  font-size: 0.74rem;
  color: var(--text-faint);
  margin-bottom: 3px;
}
.bio-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}
.bio-value-break { word-break: break-all; }

.bio-footer { padding: 0 1.8rem 1.8rem; }
.bio-footer-note {
  font-size: 0.74rem;
  color: var(--text-faint);
  text-align: center;
  margin-top: 8px;
}

.timeline-heading { font-family: var(--font-display); font-size: 1.2rem; margin-bottom: 1.5rem; }

.timeline { position: relative; padding-left: 28px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 6px; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(var(--primary), var(--pink), var(--amber));
  opacity: 0.35;
}
.timeline-item { position: relative; margin-bottom: 2rem; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: -28px; top: 4px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--primary);
}
.timeline-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.timeline-pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--bg-alt);
  color: var(--primary-dark);
}
[data-theme="dark"] .timeline-pill { color: #C9B8FF; }
.timeline-pill-muted {
  background: transparent;
  border: 1px dashed var(--border);
  color: var(--text-faint);
  font-weight: 500;
}
.timeline-content h4 { font-size: 1.05rem; margin-bottom: 4px; }
.timeline-content p { font-size: 0.92rem; color: var(--text-soft); }

.timeline-alt { max-width: 760px; }
.timeline-footnote {
  font-size: 0.8rem;
  color: var(--text-faint);
  margin-top: 0.4rem;
}

/* =========================================================
   SKILLS
========================================================= */
.skills-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 1rem;
}
.skill-group-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.3rem;
}
.skill-group-title::before {
  content: "";
  width: 4px;
  height: 1.1rem;
  border-radius: 3px;
  background: var(--gradient-1);
}
.skill-group-title-spaced { margin-top: 2.2rem; }

.skill-item { margin-bottom: 1.1rem; }
.skill-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  margin-bottom: 6px;
  color: var(--text-soft);
}
.skill-bar {
  height: 8px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
}
.skill-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: var(--c, var(--primary));
  transition: width 1.1s cubic-bezier(0.4, 0, 0.2, 1);
}

.chip-group { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-soft);
  transition: all var(--transition);
}
.chip:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.chip-alt:hover { border-color: var(--pink); color: var(--pink); }
.chip-learning {
  background: var(--bg-alt);
  border-style: dashed;
  color: var(--primary-dark);
}
[data-theme="dark"] .chip-learning { color: #C9B8FF; }
.chip-learning:hover { border-color: var(--cyan); color: var(--cyan); }

.learning-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: 2.5rem;
  padding: 1.4rem 1.6rem;
  border-radius: var(--radius-md);
  border: 1px dashed var(--border);
  background: var(--surface);
}
.learning-icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--gradient-2);
  color: #fff;
}
.learning-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.section-lead-sm {
  font-size: 0.92rem;
  color: var(--text-soft);
  margin: -0.8rem 0 1.6rem;
  max-width: 60ch;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-bottom: 1rem;
}
.cert-card {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}
.cert-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.cert-img {
  position: relative;
  z-index: 1;
  width: 100%; height: 100%;
  object-fit: cover;
}
.cert-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-faint);
  font-size: 0.82rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
}
.cert-card.has-image .cert-placeholder { display: none; }
.cert-card:not(.has-image) { cursor: default; }
.cert-card:not(.has-image):hover { transform: none; box-shadow: none; }

/* Galeri Kegiatan — tata letak bento/masonry */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 130px;
  gap: 1rem;
  margin-bottom: 1rem;
}
.gallery-grid .cert-card { aspect-ratio: auto; }
.gallery-card-lg { grid-column: span 2; grid-row: span 2; }

/* =========================================================
   LIGHTBOX
========================================================= */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 8, 20, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
  z-index: 1000;
}
.lightbox.show { opacity: 1; pointer-events: auto; }
.lightbox img {
  max-width: min(90vw, 800px);
  max-height: 85vh;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}
.lightbox-close {
  position: absolute;
  top: 24px; right: 24px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.lightbox-close:hover { background: rgba(255,255,255,0.25); }

/* =========================================================
   PROJECT CARDS
========================================================= */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.8rem;
}
.project-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.project-card::before {
  content: "";
  display: block;
  height: 5px;
  background: var(--gradient-1);
}
.project-card:nth-child(3n+2)::before { background: var(--gradient-2); }
.project-card:nth-child(3n)::before { background: linear-gradient(135deg, var(--pink), var(--amber)); }
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.project-card-featured { grid-column: 1 / -1; }
.project-card-featured .project-body { padding: 2.2rem 2.4rem; }
.project-card-featured h4 { font-size: 1.3rem; }
.project-card-featured p { max-width: 65ch; }
.featured-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #fff;
  background: var(--gradient-1);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 0.8rem;
}
.project-body { padding: 1.8rem 1.6rem 1.6rem; }
.project-body h4 { font-size: 1.1rem; margin-bottom: 8px; }
.project-body p { font-size: 0.9rem; color: var(--text-soft); margin-bottom: 1rem; }

.tag-group { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 1.3rem; }
.tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--bg-alt);
  color: var(--primary-dark);
}
[data-theme="dark"] .tag { color: #C9B8FF; }

.project-card.hidden { display: none; }

.project-toggle-wrap {
  display: flex;
  justify-content: center;
  margin-top: 2.2rem;
}
#toggleProjectsIcon { transition: transform var(--transition); }

.timeline-note {
  font-size: 0.75rem;
  color: var(--text-faint);
  margin-top: 0.6rem;
}

.project-links { display: flex; gap: 1.2rem; }
.link-btn {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  transition: color var(--transition);
}
.link-btn:hover { color: var(--pink); }
.link-btn-ghost { color: var(--text-faint); }
.link-btn-ghost:hover { color: var(--text); }

/* =========================================================
   KONTAK
========================================================= */
.kontak-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3rem;
  align-items: start;
}

.kontak-info { display: flex; flex-direction: column; gap: 1.2rem; }
.info-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.3rem;
  box-shadow: var(--shadow-sm);
}
.info-icon {
  width: 40px; height: 40px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--gradient-2);
  color: #fff;
}
.info-label { font-size: 0.75rem; color: var(--text-faint); margin-bottom: 2px; }
.info-card a:hover { color: var(--primary); }

.kontak-socials {
  margin-top: 0.6rem;
  padding-top: 1.2rem;
  border-top: 1px dashed var(--border);
}
.kontak-socials .info-label { margin-bottom: 10px; }

.kontak-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  box-shadow: var(--shadow-md);
}
.form-row { margin-bottom: 1.3rem; }
.form-row label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.form-row input, .form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
  resize: vertical;
}
.form-row input:focus, .form-row textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.12);
}
.form-row.has-error input, .form-row.has-error textarea { border-color: var(--pink); }
.form-error {
  display: block;
  font-size: 0.78rem;
  color: var(--pink);
  margin-top: 6px;
  min-height: 1em;
}
.form-note { font-size: 0.78rem; color: var(--text-faint); text-align: center; margin-top: 1rem; }

/* =========================================================
   FOOTER
========================================================= */
.footer { padding: 2.4rem 0; border-top: 1px solid var(--border); }
.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-faint);
}
.back-to-top {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.back-to-top:hover { background: var(--gradient-1); color: #fff; border-color: transparent; transform: translateY(-3px); }

/* =========================================================
   TOAST
========================================================= */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--text);
  color: var(--bg);
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
  z-index: 999;
  max-width: 90vw;
  text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* =========================================================
   SCROLL REVEAL
========================================================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-reveal].in-view { opacity: 1; transform: translateY(0); }

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 340px; margin: 0 auto; }
  .profil-grid { grid-template-columns: 1fr; }
  .skills-wrap { grid-template-columns: 1fr; gap: 2rem; }
  .kontak-grid { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 110px; }
  .gallery-card-lg { grid-column: span 2; grid-row: span 2; }
}

@media (max-width: 760px) {
  .nav-links {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1.5rem 24px;
    gap: 1.2rem;
    transform: translateY(-140%);
    opacity: 0;
    transition: transform var(--transition), opacity var(--transition);
  }
  .nav-links.open { transform: translateY(0); opacity: 1; }
  .nav-toggle { display: flex; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
}

@media (max-width: 480px) {
  .section { padding: 4.5rem 0; }
  .terminal-body { padding: 1.8rem 1.2rem; }
  .avatar-frame { width: 140px; height: 140px; }
  .kontak-form { padding: 1.5rem; }
  .cert-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 130px; }
  .gallery-card-lg { grid-column: span 2; grid-row: span 1; }
}
