* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  background: #dde2ea;
  color: #222;
}

svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Sidebar ---------- */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 240px;
  height: 100vh;
  background: #050b17;
  color: #cfd6e0;
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  z-index: 10;
}

.profile { text-align: center; padding: 0 20px 24px; }

.avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 4px solid #1a2438;
  margin: 0 auto 14px;
  display: block;
  object-fit: cover;
  background: #1a2438;
}

.profile-name { margin: 0 0 6px; font-size: 19px; line-height: 1.3; color: #fff; }
.avatar-link { display: block; width: 100px; margin: 0 auto 14px; border-radius: 50%; cursor: zoom-in; }
.avatar-link .avatar { margin: 0; transition: transform 0.2s, border-color 0.2s; }
.avatar-link:hover .avatar { transform: scale(1.04); border-color: #2a7de1; }
.profile-phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  font-size: 13px;
  color: #cfd6e0;
  text-decoration: none;
  transition: color 0.2s;
}
.profile-phone svg { width: 14px; height: 14px; }
.profile-phone:hover { color: #fff; }

.socials { display: flex; justify-content: center; gap: 8px; }

.socials a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #141c2c;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.socials a:hover { background: #2a7de1; }
.socials svg { width: 15px; height: 15px; }

/* ---------- Tombol bahasa ID | EN ---------- */
.lang-switch {
  display: inline-flex;
  margin-top: 16px;
  background: #141c2c;
  border-radius: 999px;
  padding: 3px;
}
.lang-switch button {
  border: 0;
  background: transparent;
  color: #cfd6e0;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: 0.2s;
}
.lang-switch button:hover { color: #fff; }
.lang-switch button.active { background: #2a7de1; color: #fff; }

nav ul { list-style: none; margin: 0; padding: 0 12px; }

nav a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 18px;
  border-radius: 8px;
  color: #cfd6e0;
  text-decoration: none;
  font-size: 15px;
  transition: 0.2s;
}
nav a:hover, nav a.active { color: #fff; background: #0e1626; }
nav a.active svg { color: #2a9df4; }

/* ---------- Konten ---------- */
.content { margin-left: 240px; }

section { padding: 72px 8%; }
section h2 { font-size: 30px; margin: 0 0 16px; }
section p { line-height: 1.7; color: #444; max-width: 640px; }
section a { color: #2a7de1; }

/* ---------- Kartu proyek (Portofolio) ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 28px;
}
.card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(5, 11, 23, 0.06);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(5, 11, 23, 0.1); }

.card-thumb {
  height: 140px;
  width: 100%;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-thumb svg { width: 48px; height: 48px; color: #fff; stroke-width: 1.5; }
.thumb-blue  { background: linear-gradient(135deg, #1e3a8a, #2a7de1); }
.thumb-green { background: linear-gradient(135deg, #065f46, #10b981); }
.thumb-amber { background: linear-gradient(135deg, #92400e, #f59e0b); }

.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.card-date { font-size: 12px; color: #888; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.card h3 { font-size: 17px; margin: 6px 0 8px; line-height: 1.35; }
.card p { font-size: 14px; line-height: 1.6; margin: 0 0 14px; }

.tags { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: 12px; background: #eef2f7; color: #334; padding: 4px 10px; border-radius: 999px; }

.card-btn {
  margin-top: auto;
  align-self: flex-start;
  background: #050b17;
  color: #fff !important;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 8px;
  transition: background 0.2s;
}
.card-btn:hover { background: #2a7de1; }

/* ---------- Sertifikasi ---------- */
.cert-list { display: grid; gap: 12px; max-width: 640px; }
.cert {
  background: #fff;
  border-radius: 10px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 2px 10px rgba(5, 11, 23, 0.05);
}
.cert h3 { font-size: 16px; margin: 0 0 2px; }
.cert p { margin: 0; font-size: 14px; color: #666; }
.badge {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  background: #e7f0fd;
  color: #1d5fb8;
}
.badge-progress { background: #fff4e0; color: #9a5b00; }

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 80% 20%, rgba(42, 125, 225, 0.35), transparent 45%),
    radial-gradient(circle at 15% 85%, rgba(42, 157, 244, 0.18), transparent 40%),
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(135deg, #0b1424, #12233d 55%, #0a1a33);
}

.hero-text { color: #fff; }
.hero-text h1 { font-size: 56px; margin: 0 0 8px; }
.typing { font-size: 22px; color: #fff !important; margin: 0; }
.cursor { animation: blink 1s infinite; color: #2a9df4; }

@keyframes blink { 50% { opacity: 0; } }

/* ---------- HP ---------- */
@media (max-width: 768px) {
  .sidebar {
    position: static;
    width: 100%;
    height: auto;
  }
  .sidebar { padding: 16px 0 8px; }
  .profile { padding: 0 16px 12px; }
  .avatar-link, .avatar { width: 72px; height: 72px; }
  .avatar-link { margin-bottom: 10px; }
  .lang-switch { margin-top: 10px; }
  nav ul {
    display: flex;
    overflow-x: auto;
    gap: 4px;
    padding: 0 12px 6px;
    scrollbar-width: none;
  }
  nav ul::-webkit-scrollbar { display: none; }
  nav a { padding: 9px 12px; gap: 8px; font-size: 14px; white-space: nowrap; }
  .content { margin-left: 0; }
  section { padding: 56px 20px; }
  .hero { min-height: 70vh; }
  .hero-text h1 { font-size: 36px; }
}

/* ---------- Kontak ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  margin: 24px 0;
  max-width: 760px;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border-radius: 10px;
  padding: 14px 16px;
  box-shadow: 0 2px 10px rgba(5, 11, 23, 0.05);
  color: #222 !important;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
a.contact-item:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(5, 11, 23, 0.1); }
.contact-item svg {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  padding: 9px;
  border-radius: 50%;
  background: #e7f0fd;
  color: #2a7de1;
}
.contact-item div { display: flex; flex-direction: column; min-width: 0; font-size: 14px; }
.contact-item div span:last-child { overflow-wrap: anywhere; }
.contact-label { font-size: 12px; font-weight: 600; color: #888; text-transform: uppercase; letter-spacing: 0.04em; }

.cv-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #050b17;
  color: #fff !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 20px;
  border-radius: 8px;
  transition: background 0.2s;
}
.cv-btn:hover { background: #2a7de1; }

/* ---------- Pengalaman (timeline) ---------- */
.timeline {
  border-left: 2px solid #d6dde7;
  margin: 20px 0 8px 6px;
  padding-left: 26px;
  max-width: 700px;
}
.tl-item { position: relative; padding-bottom: 28px; }
.tl-item:last-child { padding-bottom: 8px; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #2a7de1;
  border: 3px solid #dde2ea;
}
.tl-date { font-size: 12px; font-weight: 600; color: #888; text-transform: uppercase; letter-spacing: 0.04em; }
.tl-item h3 { font-size: 18px; margin: 4px 0 2px; }
.tl-place { margin: 0 0 8px !important; font-size: 14px; color: #2a7de1 !important; font-weight: 600; }
.tl-item ul { margin: 0; padding-left: 18px; color: #444; }
.tl-item li { line-height: 1.6; margin-bottom: 4px; font-size: 15px; }
.sub-title { font-size: 20px; margin: 28px 0 0; }
/* ---------- Foto pengalaman & link sertifikat ---------- */
.card-thumb.card-photo { height: 140px; object-position: center 55%; }
.tl-photos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tl-photos a { display: block; line-height: 0; }
.tl-photos img {
  width: 130px;
  height: 95px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(5, 11, 23, 0.12);
  transition: transform 0.2s;
}
.tl-photos img.wide { width: 270px; height: 150px; }
.tl-photos img:hover { transform: scale(1.03); }
.cert-link { display: inline-block; margin-top: 6px; font-size: 13px; font-weight: 600; text-decoration: none; }
.cert-link:hover { text-decoration: underline; }

.gallery-label { font-size: 12px; font-weight: 600; color: #888; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 8px; }
.slider { position: relative; }
.slides {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  border-radius: 8px;
}
.slides::-webkit-scrollbar { display: none; }
.slides img { flex: 0 0 100%; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; scroll-snap-align: start; }
.slide-btn {
  position: absolute;
  top: calc(50% - 14px);
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: rgba(5, 11, 23, 0.55);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.slide-btn:hover { background: rgba(5, 11, 23, 0.8); }
.slide-btn.prev { left: 8px; }
.slide-btn.next { right: 8px; }
.slide-btn:disabled { opacity: 0; pointer-events: none; }
.dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.dots span { width: 7px; height: 7px; border-radius: 50%; background: #c9d1dc; transition: background 0.2s; }
.dots span.active { background: #2a7de1; }

/* ---------- Lihat foto di halaman yang sama ---------- */
.slides img { cursor: zoom-in; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(5, 11, 23, 0.88);
  cursor: zoom-out;
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  cursor: default;
}
.lightbox-close {
  position: absolute;
  top: 14px;
  right: 18px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.3); }

/* ---------- Kunjungan perusahaan ---------- */
.visit-card .slides { border-radius: 0; }
.visit-card .slides img { aspect-ratio: 16 / 10; }
.visit-card .dots { margin-top: 8px; }
.visit-card .card-body { padding-top: 12px; }

/* ---------- Tombol di hero ---------- */
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-btn {
  display: inline-block;
  padding: 11px 20px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: background 0.2s, border-color 0.2s;
}
.hero-btn:hover { background: rgba(255, 255, 255, 0.1); border-color: #fff; }
.hero-btn.primary { background: #2a7de1; border-color: #2a7de1; }
.hero-btn.primary:hover { background: #1f6cc8; border-color: #1f6cc8; }