:root {
  --bg: #0f1115;
  --bg-alt: #151922;
  --card: #1b2130;
  --text: #e8ecf4;
  --muted: #9aa4b8;
  --primary: #4f7cff;
  --primary-hover: #6b90ff;
  --border: #2a3244;
  --radius: 14px;
  --maxw: 1100px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ===== NAVBAR ===== */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(15, 17, 21, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-weight: 800; font-size: 1.25rem; color: var(--text); text-decoration: none; }
.logo span { color: var(--primary); }
.nav-links { display: flex; gap: 24px; }
.nav-links a { color: var(--muted); text-decoration: none; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; }

/* ===== HERO ===== */
.hero { padding: 96px 0; }
.hero-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.hero-greeting { color: var(--muted); font-weight: 500; }
.hero-name { font-size: clamp(2.2rem, 6vw, 3.6rem); font-weight: 800; line-height: 1.1; margin: 6px 0; }
.hero-role { font-size: 1.15rem; color: var(--primary); font-weight: 600; margin-bottom: 16px; }
.hero-desc { color: var(--muted); max-width: 520px; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.avatar-wrap {
  width: 280px; height: 280px; margin: 0 auto;
  border-radius: 50%; overflow: hidden;
  border: 4px solid var(--border);
  background: var(--card);
  box-shadow: 0 20px 60px rgba(79, 124, 255, 0.25);
}
.avatar-wrap img { width: 100%; height: 100%; object-fit: cover; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-block; padding: 12px 24px; border-radius: 10px;
  font-weight: 600; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: all .2s; font-size: .95rem;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-2px); }
.btn-outline { border-color: var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

/* ===== SECTIONS ===== */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-title { font-size: 1.9rem; font-weight: 800; margin-bottom: 8px; }
.section-sub { color: var(--muted); margin-bottom: 32px; }

/* ===== ABOUT ===== */
.about-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; margin-top: 24px; }
.about-text p { color: var(--muted); font-size: 1.05rem; }
.skills h3 { margin-bottom: 16px; }
.skill-list { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.skill-list li {
  background: var(--card); border: 1px solid var(--border);
  padding: 8px 14px; border-radius: 999px; font-size: .9rem; color: var(--text);
}

/* ===== PROJECTS ===== */
.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.project-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .25s, border-color .25s;
  display: flex; flex-direction: column;
}
.project-card:hover { transform: translateY(-6px); border-color: var(--primary); }
.project-card img { width: 100%; height: 170px; object-fit: cover; background: var(--bg); }
.project-body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.project-body h3 { font-size: 1.1rem; margin-bottom: 8px; }
.project-body p { color: var(--muted); font-size: .92rem; flex: 1; }
.project-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.project-tags span {
  font-size: .75rem; background: rgba(79,124,255,.15); color: var(--primary);
  padding: 4px 10px; border-radius: 999px;
}

/* ===== CONTACT ===== */
.contact-inner { text-align: center; }
.contact-form { max-width: 520px; margin: 24px auto 0; display: flex; flex-direction: column; gap: 14px; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 14px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--card); color: var(--text);
  font-family: inherit; font-size: .95rem; resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--primary);
}
.socials { display: flex; gap: 20px; justify-content: center; margin-top: 32px; }
.socials a { color: var(--muted); text-decoration: none; font-weight: 500; }
.socials a:hover { color: var(--primary); }

/* ===== FOOTER ===== */
.footer { padding: 32px 0; border-top: 1px solid var(--border); text-align: center; color: var(--muted); font-size: .9rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-image { order: -1; }
  .avatar-wrap { width: 200px; height: 200px; }
  .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav-links {
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--bg-alt); flex-direction: column; gap: 0;
    padding: 0; max-height: 0; overflow: hidden; transition: max-height .3s;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { max-height: 300px; }
  .nav-links a { padding: 14px 20px; border-bottom: 1px solid var(--border); }
  .nav-toggle { display: flex; }
}

/* ===== HERO FLASH & GLOW ===== */

/* Nama: efek flash muncul + glow berkedip */
.flash-text {
  background: linear-gradient(90deg, #e8ecf4 0%, #4f7cff 50%, #e8ecf4 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation:
    flashIn 0.9s ease forwards,
    glowPulse 3s ease-in-out infinite 0.9s,
    shine 4s linear infinite 0.9s;
}

/* Muncul berkedip seperti flash kamera */
@keyframes flashIn {
  0%   { opacity: 0; filter: brightness(3); transform: translateY(10px) scale(0.98); }
  30%  { opacity: 1; filter: brightness(2.2); }
  50%  { filter: brightness(0.6); }
  70%  { filter: brightness(1.8); }
  100% { opacity: 1; filter: brightness(1); transform: translateY(0) scale(1); }
}

/* Glow halus berkedip */
@keyframes glowPulse {
  0%, 100% { text-shadow: 0 0 0 rgba(79,124,255,0); }
  50%      { text-shadow: 0 0 24px rgba(79,124,255,0.65); }
}

/* Efek shine bergerak */
@keyframes shine {
  to { background-position: 200% center; }
}

/* Greeting fade-in tertunda */
.hero-greeting {
  animation: fadeUp 0.6s ease both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Role: cursor berkedip */
.hero-role { color: var(--primary); font-weight: 600; }
.hero-role .cursor {
  display: inline-block;
  margin-left: 2px;
  color: var(--primary);
  animation: blink 1s step-end infinite;
}
@keyframes blink {
  50% { opacity: 0; }
}

/* Deskripsi & tombol fade-in berurutan */
.hero-desc  { animation: fadeUp 0.6s ease both 0.9s; }
.hero-actions { animation: fadeUp 0.6s ease both 1.1s; }

/* ===== PROJECT CARD: BORDER FLASH KELILING ===== */

.project-card {
  position: relative;
  isolation: isolate;          /* agar z-index glow tetap rapi */
  border: 1px solid transparent;
  background: var(--card);
  overflow: hidden;
}

/* Lapisan border berputar (conic gradient) */
.project-card::before {
  content: "";
  position: absolute;
  inset: -2px;                 /* sedikit lebih besar dari kartu */
  border-radius: inherit;
  background: conic-gradient(
    from var(--angle),
    transparent 0%,
    var(--primary) 10%,
    #a78bfa 20%,
    transparent 30%
  );
  z-index: -2;
  animation: spinBorder 3s linear infinite;
}

/* Lapisan isi kartu agar hanya border yang terlihat bergerak */
.project-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: calc(var(--radius) - 1px);
  background: var(--card);
  z-index: -1;
}

/* Animasi berputar */
@keyframes spinBorder {
  from { --angle: 0deg; }
  to   { --angle: 360deg; }
}

/* Daftarkan properti custom agar bisa dianimasikan */
@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

/* Glow di sekitar kartu saat hover */
.project-card:hover {
  box-shadow: 0 0 30px rgba(79, 124, 255, 0.35),
              0 0 60px rgba(167, 139, 250, 0.2);
}

/* Gambar sedikit zoom saat hover */
.project-card img {
  transition: transform .5s ease;
}
.project-card:hover img {
  transform: scale(1.06);
}

/* Tag ikut berkedip ringan */
.project-tags span {
  animation: tagPulse 2.5s ease-in-out infinite;
}
.project-tags span:nth-child(2) { animation-delay: .4s; }
.project-tags span:nth-child(3) { animation-delay: .8s; }

@keyframes tagPulse {
  0%, 100% { box-shadow: 0 0 0 rgba(79,124,255,0); }
  50%      { box-shadow: 0 0 10px rgba(79,124,255,0.5); }
}

/* Hormati pengguna yang mematikan animasi */
@media (prefers-reduced-motion: reduce) {
  .project-card::before,
  .project-tags span { animation: none; }
}

/* ===== PENGALAMAN KERJA ===== */

.timeline {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding-left: 32px;
}

/* Garis vertikal timeline */
.timeline::before {
  content: "";
  position: absolute;
  left: 8px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), transparent);
}

.timeline-item { position: relative; margin-bottom: 32px; }

/* Titik di garis */
.timeline-dot {
  position: absolute;
  left: -32px; top: 22px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(79,124,255,.2);
  animation: dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse {
  0%,100% { box-shadow: 0 0 0 4px rgba(79,124,255,.2); }
  50%     { box-shadow: 0 0 0 9px rgba(79,124,255,.05); }
}

/* Kartu perusahaan */
.timeline-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: border-color .25s, transform .25s;
}
.timeline-card:hover { border-color: var(--primary); transform: translateX(4px); }

.timeline-head {
  display: flex; justify-content: space-between;
  align-items: flex-start; gap: 12px; flex-wrap: wrap;
  margin-bottom: 14px;
}
.timeline-head h3 { font-size: 1.1rem; }
.company { color: var(--primary); font-weight: 600; font-size: .9rem; }
.period {
  font-size: .8rem; color: var(--muted);
  background: var(--bg-alt); border: 1px solid var(--border);
  padding: 4px 12px; border-radius: 999px; white-space: nowrap;
}

/* Accordion posisi */
.role { border-top: 1px solid var(--border); padding: 12px 0; }
.role summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 600; color: var(--text);
  transition: color .2s;
}
.role summary::-webkit-details-marker { display: none; }
.role summary::after {
  content: "+";
  color: var(--primary); font-size: 1.3rem; line-height: 1;
  transition: transform .3s;
}
.role[open] summary::after { transform: rotate(45deg); }
.role summary:hover { color: var(--primary); }
.role summary small { color: var(--muted); font-weight: 400; font-size: .8rem; margin-left: auto; margin-right: 14px; }

.role ul {
  list-style: none;
  margin-top: 12px;
  display: flex; flex-direction: column; gap: 8px;
}
.role li {
  position: relative; padding-left: 18px;
  color: var(--muted); font-size: .92rem;
  animation: fadeUp .4s ease both;
}
.role li::before {
  content: "▹"; position: absolute; left: 0; color: var(--primary);
}
.role[open] li:nth-child(1) { animation-delay: .05s; }
.role[open] li:nth-child(2) { animation-delay: .12s; }
.role[open] li:nth-child(3) { animation-delay: .19s; }
.role[open] li:nth-child(4) { animation-delay: .26s; }
.role[open] li:nth-child(5) { animation-delay: .33s; }

/* Efek muncul saat di-scroll */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.show { opacity: 1; transform: translateY(0); }

@media (max-width: 640px) {
  .timeline { padding-left: 24px; }
  .timeline-dot { left: -24px; }
  .period { white-space: normal; }
}

/* ===== Tombol "Detail" pada accordion ===== */
.role summary::after {
  content: "Detail  ▾";
  font-size: .75rem;
  font-weight: 600;
  color: var(--primary);
  background: rgba(79, 124, 255, .12);
  border: 1px solid rgba(79, 124, 255, .35);
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background .25s, color .25s, transform .3s;
}

.role summary:hover::after {
  background: var(--primary);
  color: #fff;
}

/* Saat terbuka, label berubah jadi "Tutup" dan panah berputar */
.role[open] summary::after {
  content: "Tutup  ▴";
  transform: none;
}

/* Pastikan jarak antara judul posisi dan tombol rapi */
.role summary small {
  margin-left: auto;
  margin-right: 12px;
}

/* ===== CAROUSEL GAMBAR BERTUMPUK (BUKU) ===== */

.stack {
  position: relative;
  height: 170px;
  overflow: hidden;
  background: var(--bg);
  perspective: 1000px;
  cursor: grab;
  user-select: none;
  touch-action: pan-x;
}
.stack:active { cursor: grabbing; }

.stack-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  transform: translateY(calc(var(--i) * 6px)) scale(calc(1 - var(--i) * 0.03));
  transform-origin: center bottom;
  transition: transform .5s cubic-bezier(.22,.8,.3,1), opacity .4s ease, filter .4s ease;
  box-shadow: 0 6px 16px rgba(0,0,0,.35);
  pointer-events: none;
}

/* Gambar yang sudah dilewati: terangkat ke atas & memudar */
.stack-img.is-passed {
  transform: translateY(-120%) rotate(-6deg) scale(.92);
  opacity: 0;
}

/* Gambar aktif: tampil penuh */
.stack-img.is-active {
  transform: translateY(0) scale(1);
  opacity: 1;
  filter: none;
}

/* Gambar di bawah: sedikit redup */
.stack-img:not(.is-active):not(.is-passed) {
  filter: brightness(.6);
}

/* Tombol navigasi kecil di pojok kanan */
.stack-nav {
  position: absolute;
  right: 10px; top: 50%;
  transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 6px;
  z-index: 50;
}
.stack-btn {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(15,17,21,.7);
  color: #fff; font-size: .7rem; cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background .2s, transform .2s;
}
.stack-btn:hover { background: var(--primary); transform: scale(1.1); }

/* Penghitung halaman */
.stack-count {
  position: absolute;
  left: 10px; bottom: 10px; z-index: 50;
  font-size: .72rem; font-weight: 600;
  background: rgba(15,17,21,.7); color: #fff;
  padding: 3px 10px; border-radius: 999px;
  backdrop-filter: blur(6px);
}

/* Ukuran stack dibuat sama dengan area gambar lama */
.project-card .stack { border-bottom: 1px solid var(--border); }


/* ===== SLIDER OTOMATIS: PERPINDAHAN LAMBAT ===== */

.stack-img {
  transform: translateY(calc(var(--i) * 6px)) scale(calc(1 - var(--i) * 0.03));
  transform-origin: center bottom;
  transition:
    transform 1.6s cubic-bezier(.45,.05,.25,1),
    opacity 1.6s ease,
    filter 1.6s ease;
  opacity: 1;
}

/* Gambar aktif: penuh & jelas */
.stack-img.is-active {
  opacity: 1;
  filter: none;
}

/* Gambar berikutnya: sedikit redup */
.stack-img.is-next {
  filter: brightness(.7);
}

/* Gambar di tumpukan belakang: lebih redup */
.stack-img:not(.is-active):not(.is-next) {
  filter: brightness(.5);
}

/* Gambar aktif berputar keluar ke bawah tumpukan secara halus */
.stack-img.is-active {
  box-shadow: 0 10px 28px rgba(0,0,0,.45);
}

/* ===== RIWAYAT PENDIDIKAN ===== */

.education {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.education h3 { margin-bottom: 16px; }

.edu-card {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color .25s, transform .25s;
}
.edu-card:hover { border-color: var(--primary); transform: translateY(-3px); }

.edu-icon {
  font-size: 1.5rem;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  background: rgba(79,124,255,.12);
  border-radius: 12px;
  flex-shrink: 0;
}

.edu-info h4 { font-size: 1.05rem; margin-bottom: 2px; }
.edu-degree { color: var(--primary); font-weight: 600; font-size: .92rem; }
.edu-meta { display: flex; gap: 8px; margin: 8px 0; flex-wrap: wrap; }
.edu-meta span {
  font-size: .78rem; color: var(--muted);
  background: var(--bg-alt); border: 1px solid var(--border);
  padding: 3px 10px; border-radius: 999px;
}
.edu-desc { color: var(--muted); font-size: .9rem; }

.edu-cta { margin-top: 16px; }

/* ===== RAPATKAN JARAK ANTAR BAGIAN ===== */
.section {
  padding: 56px 0;
}

.hero {
  min-height: auto;
  padding: 80px 0 48px;
}

.education {
  margin-top: 28px;
  padding-top: 20px;
}

.section-title { margin-bottom: 8px; }
.section-sub { margin-bottom: 24px; }

/* ===== UKURAN NAMA DI HERO ===== */
.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.2;
  max-width: 640px;
  margin: 0 auto 12px;
}

/* ===== MARGIN RIWAYAT PENDIDIKAN ===== */
.education {
  margin: 32px 16px 0;
  padding-top: 24px;
}
.education h3 { margin-bottom: 14px; }
.edu-card { padding: 22px 24px; }

.edu-link {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid #2a2f3a;
  border-radius: 8px;
  font-size: 0.85rem;
  color: inherit;
  text-decoration: none;
}
.edu-link:hover { border-color: #4f7cff; }

#education {
  padding: 4rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

#education h2 {
  margin-bottom: 1.5rem;
}

#education .edu-list,
#eduList {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.edu-card {
  padding: 1.5rem;
  margin: 0;
  border-radius: 12px;
}

.edu-link {
  margin-top: 1rem;
}

@media (max-width: 640px) {
  #education {
    padding: 3rem 1rem;
  }
  .edu-card {
    padding: 1.25rem;
  }
}

.role-empty {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.project-card {
  background: #1b2030;
  border: 1px solid #2a2f3a;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.project-cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.project-body { padding: 1.1rem 1.25rem 1.25rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.project-body h3 { margin: 0; }
.project-desc {
  color: #9aa4b8;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.project-highlights { margin: 0; padding-left: 1.1rem; color: #c7cedd; font-size: 0.92rem; }
.project-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.project-tags span {
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: #232836;
  color: #9aa4b8;
}
.project-more { margin-top: auto; align-self: flex-start; }

.modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 1rem; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.7); }
.modal-box {
  position: relative;
  background: #1b2030;
  border: 1px solid #2a2f3a;
  border-radius: 14px;
  width: min(720px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  padding: 1.5rem;
}
.modal-close {
  position: absolute; top: 0.6rem; right: 0.8rem;
  background: none; border: none; color: #fff; font-size: 1.6rem; cursor: pointer;
}
.modal-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0.6rem; margin: 1rem 0; }
.modal-gallery img { width: 100%; border-radius: 8px; aspect-ratio: 16 / 9; object-fit: cover; }
.modal-desc { color: #c7cedd; line-height: 1.6; }

.img-preview { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
.img-thumb { position: relative; width: 90px; height: 60px; }
.img-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }
.img-remove {
  position: absolute; top: -6px; right: -6px;
  width: 22px; height: 22px; border-radius: 50%;
  border: none; background: #e5484d; color: #fff; cursor: pointer; line-height: 1;
}

.project-more {
  display: inline-block;
  padding: 0.55rem 1.1rem;
  border-radius: 10px;
  border: 1px solid #3b4a6b;
  background: #2a3550;
  color: #e6ebf5;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.project-more:hover {
  background: #3a4a70;
  border-color: #5b6f9e;
  color: #ffffff;
}

.contact-links { display: flex; gap: 16px; justify-content: center; }
.contact-links a, .contact-links button {
  font-size: 28px; color: inherit; background: none; border: 0; cursor: pointer;
}
.contact-dialog { border: 0; border-radius: 12px; padding: 24px; max-width: 360px; }
.contact-dialog::backdrop { background: rgba(0,0,0,.6); }
.dialog-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; }

/* ===== Ikon kontak ===== */
#contactLinks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
  margin: 36px 0 12px;
}

.contact-item {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: none;
  background: none;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.contact-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
  color: #e6e9f0;
  font-size: 1.2rem;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.contact-label {
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: #9aa3b2;
  transition: color 0.25s ease;
}

.contact-item:hover .contact-icon {
  transform: translateY(-4px);
  color: #fff;
  border-color: rgba(122, 162, 255, 0.6);
  box-shadow: 0 14px 28px rgba(90, 130, 255, 0.35);
}

.contact-item:hover .contact-label { color: #fff; }

.contact-item:focus-visible .contact-icon {
  outline: 2px solid #7aa2ff;
  outline-offset: 3px;
}

/* Warna khas tiap platform saat hover */
.contact-item[data-type="whatsapp"]:hover .contact-icon { color: #25d366; border-color: rgba(37, 211, 102, 0.6); box-shadow: 0 14px 28px rgba(37, 211, 102, 0.3); }
.contact-item[href*="linkedin"]:hover .contact-icon { color: #4da3ff; border-color: rgba(77, 163, 255, 0.6); }
.contact-item[href*="instagram"]:hover .contact-icon { color: #e1538a; border-color: rgba(225, 83, 138, 0.6); }

/* ===== Dialog kontak ===== */
#contactDialog {
  position: fixed;
  inset: 0;
  margin: auto;
  height: fit-content;
  width: min(90vw, 360px);
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: linear-gradient(160deg, #1d2230, #0e1117);
  color: #f2f4f8;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  animation: dialogIn 0.25s ease;
}

#contactDialog::backdrop {
  background: rgba(5, 7, 12, 0.65);
  backdrop-filter: blur(6px);
}

@keyframes dialogIn {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}

.dialog-body {
  position: relative;
  padding: 28px 24px 24px;
  text-align: center;
}

.dialog-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #cfd5e1;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.dialog-close:hover { background: rgba(255, 255, 255, 0.16); }

.dialog-title {
  margin: 0 0 10px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7aa2ff;
}

.dialog-value {
  margin: 0 0 22px;
  font-size: 1.05rem;
  word-break: break-all;
  color: #fff;
}

.dialog-copy {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #5b8cff, #7aa2ff);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.dialog-copy:hover { transform: translateY(-2px); filter: brightness(1.08); }

#kontak {
  padding: 88px 20px 72px;
  text-align: center;
}

#kontak h2 {
  max-width: 560px;
  margin: 0 auto 40px;
  font-size: clamp(1.5rem, 4vw, 2rem);
  line-height: 1.35;
}

#kontak #contactLinks {
  margin: 0 auto;
}