/* ============================================================================
   PORTOFOLIO DIMAS PRALINGGA — style.css
   ----------------------------------------------------------------------------
   Daftar isi:
   1. Variabel warna & reset
   2. Utilitas (container, judul, tombol, badge, animasi reveal)
   3. Navbar
   4. Hero
   5. Tentang Saya
   6. Pendidikan & Organisasi
   7. Proyek
   8. Sertifikasi
   9. Kontak & Footer
   10. Elemen tambahan (toast, back to top)
   11. Media query & aksesibilitas
   ========================================================================== */

/* ---------------------------------------------------------------------------
   1. VARIABEL & RESET
   --------------------------------------------------------------------------- */
:root {
  --bg: #f6f8fc;
  --bg-tint: #eef3fa;
  --surface: #ffffff;

  --ink: #0b1220;
  --ink-2: #1e293b;
  --muted: #5b6b81;

  --line: #e2e8f2;
  --line-strong: #cfdaea;

  --accent: #4f46e5;
  --accent-dark: #4338ca;
  --accent-2: #0ea5e9;
  --accent-soft: #eef2ff;

  --success: #059669;
  --success-soft: #ecfdf5;

  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;

  --shadow-sm: 0 1px 2px rgba(11, 18, 32, 0.04), 0 10px 24px -20px rgba(11, 18, 32, 0.35);
  --shadow-md: 0 18px 40px -28px rgba(11, 18, 32, 0.4);
  --shadow-lg: 0 30px 60px -34px rgba(11, 18, 32, 0.45);

  --font-body: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Plus Jakarta Sans', 'Inter', ui-sans-serif, system-ui, sans-serif;

  --header-h: 76px;
  --container: 1120px;
  --ease: cubic-bezier(0.22, 0.68, 0.3, 1);

  color-scheme: light;
}

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

* {
  margin: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

ul,
ol {
  list-style: none;
  padding: 0;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}

::selection {
  background-color: rgba(79, 70, 229, 0.18);
  color: var(--ink);
}

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

/* ---------------------------------------------------------------------------
   2. UTILITAS
   --------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.15rem, 4vw, 2rem);
}

.section {
  position: relative;
  padding-block: clamp(4rem, 9vw, 7rem);
}

.section--tint {
  background-image: linear-gradient(180deg, var(--bg-tint) 0%, #f2f6fc 55%, var(--bg) 100%);
  border-block: 1px solid rgba(207, 218, 234, 0.5);
}

.grad {
  background-image: linear-gradient(105deg, var(--accent-dark) 0%, #4f46e5 42%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  border: 1px solid #dfe3ff;
  background-color: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  line-height: 1.4;
}

.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.section-title {
  margin-top: 1rem;
  font-size: clamp(1.65rem, 3.6vw, 2.5rem);
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.section-lead {
  margin-top: 1rem;
  max-width: 46rem;
  font-size: 1rem;
}

.section-head {
  max-width: 52rem;
  margin-bottom: clamp(2.2rem, 5vw, 3.4rem);
}

/* Tombol */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 46px;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease,
              background-color 0.25s ease, border-color 0.25s ease,
              color 0.25s ease, filter 0.25s ease;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
  transition: transform 0.25s var(--ease);
}

.btn--primary {
  color: #ffffff;
  background-image: linear-gradient(120deg, var(--accent-dark), var(--accent) 55%, var(--accent-2));
  box-shadow: 0 14px 30px -14px rgba(79, 70, 229, 0.65);
}

.btn--primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 20px 36px -16px rgba(79, 70, 229, 0.7);
}

.btn--ghost {
  color: var(--ink-2);
  background-color: var(--surface);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.btn--ghost:hover {
  transform: translateY(-2px);
  color: var(--accent-dark);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.btn--sm {
  min-height: 40px;
  padding: 0.65rem 1.1rem;
  font-size: 0.85rem;
}

.btn:hover svg {
  transform: translateX(2px);
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  line-height: 1.4;
}

.badge--indigo {
  color: var(--accent-dark);
  background-color: var(--accent-soft);
  border: 1px solid #dfe3ff;
}

.badge--success {
  color: #047857;
  background-color: var(--success-soft);
  border: 1px solid #c9f0dd;
}

/* Titik berdenyut */
.pulse {
  position: relative;
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background-color: var(--success);
}

.pulse::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background-color: var(--success);
  animation: pulse 2.2s ease-out infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.55;
  }
  70%,
  100% {
    transform: scale(2.6);
    opacity: 0;
  }
}

/* Animasi muncul saat di-scroll.
   Kelas .js hanya ada jika JavaScript aktif, sehingga konten tetap terlihat
   ketika JavaScript dimatikan. */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.75s ease, transform 0.75s var(--ease);
  transition-delay: var(--delay, 0ms);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------------------------------------------------------------------------
   3. NAVBAR
   --------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease,
              box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

.site-header.is-scrolled {
  background-color: rgba(246, 248, 252, 0.82);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
  box-shadow: 0 12px 30px -26px rgba(11, 18, 32, 0.55);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-h);
}

/* Grup kanan navbar: navigasi + tombol tema + tombol menu */
.header-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
}

.brand__logo {
  position: relative;
  width: 40px;
  height: 40px;
  flex: none;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background-image: linear-gradient(135deg, var(--accent-dark), var(--accent-2));
  box-shadow: 0 6px 16px -8px rgba(79, 70, 229, 0.7);
}

.brand__logo span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand__logo img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand__logo.is-fallback img {
  display: none;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand__text strong {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
}

.brand__text small {
  margin-top: 2px;
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

.nav__link {
  position: relative;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--ink-2);
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav__link:hover {
  color: var(--accent-dark);
  background-color: rgba(79, 70, 229, 0.07);
}

.nav__link.is-active {
  color: var(--accent-dark);
  background-color: var(--accent-soft);
}

.menu-btn {
  display: grid;
  place-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background-color: var(--surface);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background-color: var(--ink-2);
  transition: transform 0.3s var(--ease), opacity 0.2s ease;
}

.menu-btn:hover {
  border-color: var(--accent);
}

.menu-btn.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-btn.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-btn.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Tombol ganti tema terang/gelap */
.theme-toggle {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background-color: var(--surface);
  color: var(--ink-2);
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.theme-toggle__icon {
  grid-area: 1 / 1;
  width: 20px;
  height: 20px;
  transition: opacity 0.25s ease, transform 0.4s var(--ease);
}

/* Bawaan: tampilkan matahari. Bulan muncul saat mode gelap aktif. */
.theme-toggle__icon--moon {
  opacity: 0;
  transform: rotate(-40deg) scale(0.6);
}

[data-theme="dark"] .theme-toggle__icon--sun {
  opacity: 0;
  transform: rotate(40deg) scale(0.6);
}

[data-theme="dark"] .theme-toggle__icon--moon {
  opacity: 1;
  transform: none;
}

.mobile-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 0;
  overflow: hidden;
  background-color: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  transition: max-height 0.35s var(--ease);
}

.mobile-nav.is-open {
  max-height: 24rem;
}

.mobile-nav ul {
  padding: 0.5rem clamp(1.15rem, 4vw, 2rem) 1.1rem;
}

.mobile-nav a {
  display: block;
  padding: 0.8rem 0.2rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line);
}

.mobile-nav li:last-child a {
  border-bottom: 0;
}

.mobile-nav a:hover {
  color: var(--accent-dark);
}

/* ---------------------------------------------------------------------------
   4. HERO
   --------------------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: calc(var(--header-h) + clamp(2.5rem, 7vw, 5rem));
  padding-bottom: clamp(3.5rem, 8vw, 6rem);
}

/* Grid halus di latar belakang */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgba(15, 23, 42, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.045) 1px, transparent 1px);
  background-size: 58px 58px;
  -webkit-mask-image: radial-gradient(ellipse 62% 60% at 42% 28%, #000 18%, transparent 76%);
  mask-image: radial-gradient(ellipse 62% 60% at 42% 28%, #000 18%, transparent 76%);
}

/* Cahaya lembut di sudut */
.hero::after {
  content: '';
  position: absolute;
  inset: -15% -5% auto;
  height: 560px;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(38% 55% at 22% 30%, rgba(79, 70, 229, 0.16), transparent 70%),
    radial-gradient(32% 50% at 82% 18%, rgba(14, 165, 233, 0.16), transparent 70%);
}

.hero__grid {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4rem);
  align-items: center;
}

/* Mencegah isi kolom grid melebar melebihi kolomnya */
.hero__copy {
  min-width: 0;
}

.hero__title {
  margin-top: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.hero__greet {
  display: block;
  margin-bottom: 0.35rem;
  font-size: clamp(1rem, 2.4vw, 1.25rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink-2);
}

.hero__name {
  display: block;
  font-size: clamp(2.6rem, 7.4vw, 4.25rem);
  line-height: 1.04;
}

.hero__role {
  margin-top: 1.15rem;
  max-width: 36rem;
  font-size: clamp(0.95rem, 2.2vw, 1.1rem);
  font-weight: 600;
  line-height: 1.65;
  color: var(--ink-2);
}

.hero__role .sep {
  margin-inline: 0.35rem;
  font-weight: 700;
  color: var(--accent);
}

.hero__desc {
  margin-top: 1rem;
  max-width: 34rem;
  font-size: clamp(0.95rem, 1.8vw, 1.03rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.9rem;
}

/* Foto profil */
.hero__photo {
  position: relative;
  isolation: isolate;
  width: min(20rem, 82%);
  margin-inline: auto;
  aspect-ratio: 1;
}

.hero__photo::before {
  content: '';
  position: absolute;
  inset: -12%;
  z-index: -1;
  border-radius: 50%;
  background-image:
    radial-gradient(circle at 30% 25%, rgba(79, 70, 229, 0.32), transparent 58%),
    radial-gradient(circle at 72% 78%, rgba(14, 165, 233, 0.3), transparent 60%);
  filter: blur(26px);
}

.hero__photo::after {
  content: '';
  position: absolute;
  inset: -6%;
  z-index: -1;
  border-radius: 50%;
  border: 1px dashed rgba(79, 70, 229, 0.28);
  animation: spin 40s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.photo-frame {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 7px;
  border-radius: 50%;
  background-image: linear-gradient(150deg, #ffffff, #e8eff9 60%, #dfe9f7);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, 0.9);
}

.photo-frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  background-color: #e9eff8;
}

.photo-frame.is-fallback img {
  display: none;
}

.photo-fallback {
  position: absolute;
  inset: 7px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background-image: linear-gradient(140deg, var(--accent-dark), var(--accent) 55%, var(--accent-2));
  color: #ffffff;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 10vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

/* Badge status & organisasi di bawah tombol CTA */
.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background-color: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), border-color 0.25s ease, box-shadow 0.25s ease;
}

.hero-badge:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.hero-badge small {
  display: block;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-badge strong {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}

.badge-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 9px;
  background-color: var(--accent-soft);
  color: var(--accent-dark);
}

.badge-icon svg {
  width: 16px;
  height: 16px;
}

/* ---------------------------------------------------------------------------
   5. TENTANG SAYA
   --------------------------------------------------------------------------- */
.about {
  display: grid;
  gap: 2.5rem;
}

.about__story p {
  margin-top: 1.1rem;
  font-size: 1rem;
}

.values {
  display: grid;
  gap: 0.85rem;
  margin-top: 2rem;
}

.value {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease, border-color 0.25s ease;
}

.value:hover {
  transform: translateY(-3px);
  border-color: #c7d2fe;
  box-shadow: var(--shadow-md);
}

.value__icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 10px;
  background-color: var(--accent-soft);
  color: var(--accent-dark);
}

.value__icon svg {
  width: 18px;
  height: 18px;
}

.value strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}

.value p {
  margin-top: 0.2rem;
  font-size: 0.76rem;
  line-height: 1.55;
}

/* Kartu profil singkat */
.fact-card {
  position: relative;
  overflow: hidden;
  padding: clamp(1.4rem, 3vw, 1.9rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background-color: var(--surface);
  box-shadow: var(--shadow-md);
}

.fact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background-image: linear-gradient(90deg, var(--accent-dark), var(--accent-2));
}

.fact-card h3 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.fact-list {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.1rem;
}

.fact-list div {
  padding-bottom: 0.85rem;
  border-bottom: 1px dashed var(--line);
}

.fact-list div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.fact-list dt {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.fact-list dd {
  margin-top: 0.15rem;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink);
}

/* ---------------------------------------------------------------------------
   6. PENDIDIKAN & ORGANISASI
   --------------------------------------------------------------------------- */
.edu-grid {
  display: grid;
  gap: 1.25rem;
}

.card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background-color: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease, border-color 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: #c7d2fe;
  box-shadow: var(--shadow-lg);
}

.edu-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(1.4rem, 3vw, 1.9rem);
}

.edu-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.icon-square {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: none;
  border: 1px solid #dfe6fb;
  border-radius: 14px;
  background-image: linear-gradient(140deg, var(--accent-soft), #e6f4fd);
  color: var(--accent-dark);
}

.icon-square svg {
  width: 22px;
  height: 22px;
}

.edu-card h3 {
  font-size: 1.22rem;
}

.edu-card__sub {
  margin-top: 0.15rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-2);
}

.edu-card__status {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.edu-card__desc {
  font-size: 0.92rem;
}

.edu-list {
  display: grid;
  gap: 0.55rem;
  margin-top: auto;
  padding-top: 0.35rem;
}

.edu-list li {
  display: flex;
  gap: 0.6rem;
  font-size: 0.86rem;
  color: var(--ink-2);
}

.edu-list svg {
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 0.28rem;
  color: var(--accent);
}

/* Rentang tahun kuliah */
.edu-card__period {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.55rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background-color: var(--accent-soft);
  border: 1px solid var(--accent-line, #dfe3ff);
  color: var(--accent-dark);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

/* ---------------------------------------------------------------------------
   6b. JEJAK PENDIDIKAN (STEPPER SD - SMP - SMA)
   --------------------------------------------------------------------------- */
.edu-history {
  margin-top: clamp(2.4rem, 5vw, 3.6rem);
  padding-top: clamp(2rem, 4vw, 2.6rem);
  border-top: 1px solid var(--line);
}

.edu-history__head {
  margin-bottom: 1.6rem;
}

.edu-history__title {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
}

.edu-history__note {
  margin-top: 0.35rem;
  font-size: 0.88rem;
}

.stepper {
  display: grid;
  gap: 1.4rem;
}

.stepper__item {
  position: relative;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 1rem;
}

.stepper__dot {
  position: relative;
  z-index: 1;
  justify-self: center;
  width: 16px;
  height: 16px;
  margin-top: 3px;
  border-radius: 50%;
  background-image: linear-gradient(140deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 4px var(--accent-soft);
}

/* Garis penghubung (vertikal di layar kecil) */
.stepper__item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 9px;
  top: 21px;
  bottom: -1.6rem;
  width: 2px;
  background-color: var(--line-strong);
}

.stepper__body {
  min-width: 0;
}

.stepper__school {
  margin-top: 0.55rem;
  font-size: 0.95rem;
  line-height: 1.35;
}

.stepper__years {
  margin-top: 0.2rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}

/* Muncul bergantian saat di-scroll */
.stepper__item:nth-child(1) {
  --delay: 0ms;
}

.stepper__item:nth-child(2) {
  --delay: 90ms;
}

.stepper__item:nth-child(3) {
  --delay: 180ms;
}

/* Desktop: stepper berjajar horizontal dengan garis mendatar */
@media (min-width: 720px) {
  .stepper {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }

  .stepper__item {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
  }

  .stepper__dot {
    justify-self: start;
    margin-top: 0;
  }

  .stepper__item:not(:last-child)::before {
    left: 20px;
    right: -1.5rem;
    top: 7px;
    bottom: auto;
    width: auto;
    height: 2px;
  }
}

/* ---------------------------------------------------------------------------
   7. PROYEK
   --------------------------------------------------------------------------- */
.project-card {
  position: relative;
  display: grid;
  gap: 2rem;
  overflow: hidden;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background-image: linear-gradient(145deg, #ffffff 0%, #f9fbff 60%, #f3f7ff 100%);
  box-shadow: var(--shadow-md);
}

.project-card__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.project-card__visual {
  min-width: 0;
}

.project-card h3 {
  font-size: clamp(1.35rem, 2.6vw, 1.7rem);
}

.project-card p {
  font-size: 0.95rem;
}

.checks {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.2rem;
}

.checks li {
  display: flex;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--ink-2);
}

.checks svg {
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 0.3rem;
  color: var(--success);
}

.tech-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.tech {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background-color: var(--surface);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-2);
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.tech:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  color: var(--accent-dark);
}

.tech i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background-image: linear-gradient(140deg, var(--accent), var(--accent-2));
}

/* Ilustrasi jendela browser */
.mock {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background-color: #ffffff;
  box-shadow: var(--shadow-lg);
  transform: rotate(-1.2deg);
  transition: transform 0.4s var(--ease);
}

.project-card:hover .mock {
  transform: rotate(0deg) translateY(-4px);
}

.mock__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.55rem 0.8rem;
  border-bottom: 1px solid var(--line);
  background-color: #f3f6fb;
}

.mock__bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.mock__bar span:nth-child(1) {
  background-color: #fda4af;
}

.mock__bar span:nth-child(2) {
  background-color: #fcd34d;
}

.mock__bar span:nth-child(3) {
  background-color: #86efac;
}

.mock__body {
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
}

.mock__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mock__logo {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background-image: linear-gradient(135deg, var(--accent-dark), var(--accent-2));
}

.mock__links {
  display: flex;
  gap: 6px;
}

.mock__links i {
  width: 26px;
  height: 6px;
  border-radius: 99px;
  background-color: #dbe4f1;
}

.mock__hero {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.8rem;
  padding: 0.9rem;
  border: 1px solid #e8eefb;
  border-radius: 12px;
  background-image: linear-gradient(120deg, #f7f9ff, #eef4ff);
}

.mock__lines {
  display: grid;
  gap: 7px;
}

.mock__lines i {
  height: 8px;
  border-radius: 99px;
  background-color: #c9d6ea;
}

.mock__lines i:nth-child(1) {
  width: 78%;
  background-color: #aab9d6;
}

.mock__lines i:nth-child(2) {
  width: 58%;
}

.mock__lines i:nth-child(3) {
  width: 66%;
  height: 5px;
  background-color: #dbe4f1;
}

.mock__avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background-image: linear-gradient(140deg, var(--accent), var(--accent-2));
}

.mock__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}

.mock__cards i {
  height: 40px;
  border: 1px solid #e6ecf7;
  border-radius: 9px;
  background-color: #ffffff;
  box-shadow: 0 6px 12px -10px rgba(11, 18, 32, 0.4);
}

/* ---------------------------------------------------------------------------
   8. SERTIFIKASI
   --------------------------------------------------------------------------- */
.cert-card {
  position: relative;
  display: grid;
  gap: 1.4rem;
  overflow: hidden;
  padding: clamp(1.5rem, 4vw, 2.2rem);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background-image: linear-gradient(135deg, #ffffff, #f6f9ff 70%, #eef4ff);
  box-shadow: var(--shadow-md);
}

.cert-card::after {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background-image: radial-gradient(circle, rgba(79, 70, 229, 0.14), transparent 70%);
  pointer-events: none;
}

.cert__seal {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
}

.cert__seal-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 22px;
  background-image: linear-gradient(140deg, var(--accent-dark), var(--accent) 50%, var(--accent-2));
  color: #ffffff;
  box-shadow: 0 16px 30px -16px rgba(79, 70, 229, 0.7);
}

.cert__seal-icon svg {
  width: 34px;
  height: 34px;
}

.cert__seal small {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.cert__body {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.cert__issuer {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.cert__issuer span {
  margin-inline: 0.25rem;
  color: var(--accent-2);
}

.cert__body h3 {
  margin-top: 0.45rem;
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  line-height: 1.3;
}

.cert__desc {
  margin-top: 0.55rem;
  max-width: 44rem;
  font-size: 0.9rem;
}

.cert__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.9rem;
  margin-top: 0.9rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-2);
}

.cert__meta li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.cert__meta li::before {
  content: '';
  width: 5px;
  height: 5px;
  flex: none;
  border-radius: 50%;
  background-color: var(--accent-2);
}

.cert__skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.9rem;
}

.cert__skills span {
  padding: 0.3rem 0.6rem;
  border: 1px solid rgba(79, 70, 229, 0.15);
  border-radius: 999px;
  background-color: rgba(79, 70, 229, 0.08);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent-dark);
}

.cert__actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.cert__actions small {
  font-size: 0.7rem;
  color: var(--muted);
}

/* ---------------------------------------------------------------------------
   9. KONTAK & FOOTER
   --------------------------------------------------------------------------- */
.contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.contact .section-title {
  max-width: 40rem;
}

.contact .section-lead {
  max-width: 42rem;
}

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 1.9rem;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  margin-top: 2rem;
}

.social {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background-color: var(--surface);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-2);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), border-color 0.25s ease,
              color 0.25s ease, box-shadow 0.25s ease;
}

.social:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  color: var(--accent-dark);
  box-shadow: var(--shadow-md);
}

.social svg {
  width: 17px;
  height: 17px;
  flex: none;
}

.site-footer {
  padding-block: 2.2rem;
  border-top: 1px solid var(--line);
  background-image: linear-gradient(180deg, transparent, rgba(238, 243, 250, 0.7));
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
}

.footer__brand .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-image: linear-gradient(140deg, var(--accent), var(--accent-2));
}

.footer-note {
  max-width: 40rem;
  font-size: 0.8rem;
}

/* ---------------------------------------------------------------------------
   10. TOAST & BACK TO TOP
   --------------------------------------------------------------------------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 1.6rem;
  z-index: 90;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  background-color: var(--ink);
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translate(-50%, 1.2rem);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s var(--ease);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.to-top {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 80;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background-color: var(--surface);
  color: var(--ink-2);
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s var(--ease),
              border-color 0.2s ease, color 0.2s ease;
}

.to-top.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.to-top:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.to-top svg {
  width: 20px;
  height: 20px;
}

.skip-link {
  position: fixed;
  top: -4rem;
  left: 1rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  background-color: var(--ink);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  transition: top 0.25s ease;
}

.skip-link:focus {
  top: 1rem;
}

/* ---------------------------------------------------------------------------
   11. MEDIA QUERY
   --------------------------------------------------------------------------- */

/* Tablet & desktop: tampilkan navigasi utama */
@media (min-width: 820px) {
  .nav {
    display: flex;
  }

  .menu-btn,
  .mobile-nav {
    display: none;
  }
}

/* Tablet ke atas: nilai dalam satu baris */
@media (min-width: 640px) {
  .values {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Desktop: dua kolom untuk beberapa bagian */
@media (min-width: 900px) {
  .about {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 3.5rem;
    align-items: start;
  }

  .cert-card {
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 2rem;
  }

  .cert__actions {
    align-items: flex-end;
  }
}

@media (min-width: 860px) {
  .edu-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 960px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    gap: 3rem;
  }

  .hero__photo {
    width: 100%;
    max-width: 23rem;
  }

  .project-card {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: 2.5rem;
  }
}

/* Footer sejajar di layar lebar */
@media (min-width: 760px) {
  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* Layar sangat kecil */
@media (max-width: 420px) {
  .brand__text {
    display: none;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .hero__badges {
    gap: 0.5rem;
  }

  .hero-badge {
    padding: 0.5rem 0.7rem;
  }

  .hero-badge strong {
    font-size: 0.74rem;
  }

  .cert__meta {
    flex-direction: column;
    gap: 0.35rem;
  }
}

/* ---------------------------------------------------------------------------
   AKSESIBILITAS: hormati preferensi pengguna yang mengurangi animasi
   --------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

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

  .mock {
    transform: none;
  }
}

/* ---------------------------------------------------------------------------
   12. MODE GELAP (dipicu oleh atribut data-theme="dark" pada <html>)
   --------------------------------------------------------------------------- */
[data-theme="dark"] {
  --bg: #080d18;
  --bg-tint: #0c1322;
  --surface: #111a2c;

  --ink: #eef2f9;
  --ink-2: #cbd5e1;
  --muted: #94a3b8;

  --line: #1e2a44;
  --line-strong: #2b3a58;

  --accent: #818cf8;
  --accent-dark: #a5b4fc;
  --accent-2: #38bdf8;
  --accent-soft: rgba(129, 140, 248, 0.14);
  --accent-line: rgba(129, 140, 248, 0.3);

  --success: #34d399;
  --success-soft: rgba(52, 211, 153, 0.14);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5), 0 10px 24px -20px rgba(0, 0, 0, 0.9);
  --shadow-md: 0 18px 40px -28px rgba(0, 0, 0, 0.9);
  --shadow-lg: 0 30px 60px -34px rgba(0, 0, 0, 0.95);

  color-scheme: dark;
}

/* Bagian berlatar tint */
[data-theme="dark"] .section--tint {
  background-image: linear-gradient(180deg, var(--bg-tint) 0%, #0a1120 55%, var(--bg) 100%);
  border-block-color: var(--line);
}

/* Aksen teks & garis */
[data-theme="dark"] .grad {
  background-image: linear-gradient(105deg, #a5b4fc 0%, #818cf8 45%, #38bdf8 100%);
}

[data-theme="dark"] .eyebrow,
[data-theme="dark"] .badge--indigo {
  border-color: var(--accent-line);
}

[data-theme="dark"] .badge--success {
  color: #6ee7b7;
  border-color: rgba(52, 211, 153, 0.3);
}

/* Tombol utama & elemen bergradasi tetap pekat agar teks putih terbaca */
[data-theme="dark"] .btn--primary {
  background-image: linear-gradient(120deg, #4f46e5, #6366f1 55%, #0ea5e9);
}

[data-theme="dark"] .brand__logo,
[data-theme="dark"] .cert__seal-icon,
[data-theme="dark"] .photo-fallback,
[data-theme="dark"] .mock__logo,
[data-theme="dark"] .mock__avatar,
[data-theme="dark"] .footer__brand .dot {
  background-image: linear-gradient(140deg, #4f46e5, #6366f1 50%, #0ea5e9);
}

/* Navbar */
[data-theme="dark"] .site-header.is-scrolled {
  background-color: rgba(8, 13, 24, 0.82);
}

[data-theme="dark"] .nav__link:hover {
  background-color: rgba(129, 140, 248, 0.12);
}

/* Hero */
[data-theme="dark"] .hero::before {
  background-image:
    linear-gradient(to right, rgba(148, 163, 184, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.08) 1px, transparent 1px);
}

[data-theme="dark"] .hero::after {
  background-image:
    radial-gradient(38% 55% at 22% 30%, rgba(79, 70, 229, 0.3), transparent 70%),
    radial-gradient(32% 50% at 82% 18%, rgba(14, 165, 233, 0.24), transparent 70%);
}

[data-theme="dark"] .hero__photo::before {
  background-image:
    radial-gradient(circle at 30% 25%, rgba(79, 70, 229, 0.5), transparent 58%),
    radial-gradient(circle at 72% 78%, rgba(14, 165, 233, 0.42), transparent 60%);
}

[data-theme="dark"] .hero__photo::after {
  border-color: rgba(129, 140, 248, 0.35);
}

[data-theme="dark"] .photo-frame {
  background-image: linear-gradient(150deg, #1c2740, #141d31 60%, #101828);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(148, 163, 184, 0.14);
}

[data-theme="dark"] .photo-frame img {
  background-color: #101828;
}

/* Kartu & ilustrasi */
[data-theme="dark"] .value:hover,
[data-theme="dark"] .card:hover {
  border-color: rgba(129, 140, 248, 0.45);
}

[data-theme="dark"] .icon-square {
  border-color: rgba(129, 140, 248, 0.25);
  background-image: linear-gradient(140deg, rgba(129, 140, 248, 0.16), rgba(56, 189, 248, 0.12));
}

[data-theme="dark"] .project-card {
  background-image: linear-gradient(145deg, #131d33 0%, #111a2c 60%, #0f1728 100%);
}

[data-theme="dark"] .cert-card {
  background-image: linear-gradient(135deg, #131d33, #111a2c 70%, #0f1728);
}

[data-theme="dark"] .cert__skills span {
  border-color: rgba(129, 140, 248, 0.25);
  background-color: rgba(129, 140, 248, 0.12);
}

/* Ilustrasi jendela browser */
[data-theme="dark"] .mock {
  background-color: #0f1728;
}

[data-theme="dark"] .mock__bar {
  background-color: #16203a;
}

[data-theme="dark"] .mock__links i {
  background-color: #2b3a58;
}

[data-theme="dark"] .mock__hero {
  border-color: #22304d;
  background-image: linear-gradient(120deg, #131d33, #16203a);
}

[data-theme="dark"] .mock__lines i {
  background-color: #3a4a6d;
}

[data-theme="dark"] .mock__lines i:nth-child(1) {
  background-color: #4b5c82;
}

[data-theme="dark"] .mock__lines i:nth-child(3) {
  background-color: #2b3a58;
}

[data-theme="dark"] .mock__cards i {
  border-color: #22304d;
  background-color: #16203a;
}

/* Footer */
[data-theme="dark"] .site-footer {
  background-image: linear-gradient(180deg, transparent, rgba(12, 19, 34, 0.85));
}

/* Toast & skip-link dibalik agar tetap terbaca */
[data-theme="dark"] .toast,
[data-theme="dark"] .skip-link {
  background-color: #eef2f9;
  color: #0b1220;
}
