:root {
  --bg: #0b0714;
  --bg-2: #130b22;
  --card: rgba(255, 255, 255, 0.035);
  --card-border: rgba(168, 130, 255, 0.14);
  --text: #f2eefb;
  --muted: #a99dc7;
  --accent: #a78bfa;
  --accent-2: #c084fc;
  --accent-3: #8b5cf6;
  --radius: 18px;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

* { 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);
  background-image:
    radial-gradient(700px 500px at 90% -5%, rgba(139, 92, 246, 0.18), transparent 55%),
    radial-gradient(800px 600px at -10% 15%, rgba(192, 132, 252, 0.12), transparent 55%),
    radial-gradient(600px 400px at 50% 115%, rgba(167, 139, 250, 0.12), transparent 60%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(130px);
  opacity: 0.28;
  z-index: 0;
  pointer-events: none;
}
.bg-glow-1 { width: 520px; height: 520px; background: var(--accent-2); top: -160px; left: -120px; }

/* LANGUAGE SWITCHER */
.lang-switch {
  width: max-content;
  position: relative;
  margin: 0 auto 24px;
}
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  background: rgba(19, 11, 34, 0.75);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
  color: var(--text);
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .18s ease;
}
.lang-toggle:hover { border-color: var(--accent-2); }
.lang-globe { font-size: 14px; }
.lang-caret { color: var(--muted); transition: transform .2s ease; }
.lang-switch.open .lang-caret { transform: rotate(180deg); }

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 190px;
  list-style: none;
  padding: 6px;
  border-radius: 14px;
  background: rgba(19, 11, 34, 0.95);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-6px);
  transition: opacity .18s ease, visibility .18s ease, transform .18s ease;
  z-index: 60;
}
.lang-switch.open .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.lang-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 13.5px;
  color: var(--text);
  cursor: pointer;
  transition: background .15s ease;
}
.lang-opt:hover { background: rgba(139, 92, 246, 0.16); }
.lang-opt.selected {
  background: rgba(139, 92, 246, 0.22);
  color: #fff;
  font-weight: 600;
}
.bg-glow-2 { width: 460px; height: 460px; background: var(--accent-3); bottom: -140px; right: -90px; }

/* LAYOUT */
.layout {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px 20px 60px;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px;
  align-items: start;
}

/* SIDEBAR */
.sidebar {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 22px;
  padding: 28px 22px;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.profile { text-align: center; }
.avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 18px;
  border: 3px solid rgba(192, 132, 252, 0.55);
  box-shadow: 0 14px 44px rgba(139, 92, 246, 0.45);
  background: var(--bg-2);
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.profile h1 {
  font-family: 'Sora', sans-serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.2;
}
.dot { color: var(--accent-2); }
.degree {
  margin-top: 4px;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent-2);
}
.role {
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
}

.btn-download {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 18px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, var(--accent-3), var(--accent-2));
  box-shadow: 0 8px 26px rgba(139, 92, 246, 0.4);
  transition: transform .18s ease, box-shadow .18s ease;
}
.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(139, 92, 246, 0.55);
}

.side-block {
  border-top: 1px solid var(--card-border);
  padding-top: 16px;
}
.side-block h3 {
  font-family: 'Sora', sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 12px;
}
.side-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  text-decoration: none;
  color: var(--text);
  font-size: 13.5px;
  transition: color .15s ease;
}
.side-link:hover { color: var(--accent-2); }
.side-icon { flex: 0 0 auto; width: 18px; text-align: center; }
.side-val { word-break: break-word; }
.side-text { font-size: 13.5px; color: var(--muted); }
.side-text.small { margin-top: 8px; }

.lang {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 13.5px;
}
.lang-name { color: var(--text); }
.lang-level {
  font-size: 11px;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.14);
  border: 1px solid rgba(168, 130, 255, 0.22);
  color: #d8ccf5;
}

/* CONTENT */
.content { display: flex; flex-direction: column; gap: 20px; }

.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 26px;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}
.card h2 {
  font-family: 'Sora', sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  position: relative;
  padding-left: 18px;
}
.card h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  width: 6px;
  height: 22px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--accent-2), var(--accent-3));
}

.profile-text { font-size: 14.5px; color: #d6cdeb; }

/* EDU */
.edu { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.edu-title { font-weight: 700; font-size: 16px; }
.edu-meta { color: var(--muted); font-size: 13.5px; margin-top: 3px; }
.ipk { display: flex; align-items: baseline; gap: 4px; flex-shrink: 0; }
.ipk-num {
  font-family: 'Sora', sans-serif;
  font-size: 40px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.ipk-of { color: var(--muted); font-size: 15px; }

/* SKILLS */
.skill-group { margin-bottom: 18px; }
.skill-group:last-child { margin-bottom: 0; }
.skill-group h4 {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 10px;
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-size: 13px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(168, 130, 255, 0.24);
  color: #e4dcf6;
}
.soft-list { list-style: none; }
.soft-list li {
  padding: 8px 0;
  font-size: 14.5px;
  color: #d6cdeb;
}
.soft-list li::before { content: '✓ '; color: var(--accent-2); font-weight: 700; }

/* TIMELINE */
.timeline { position: relative; }
.tl-item {
  position: relative;
  padding: 0 0 18px 24px;
}
.tl-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 16px;
  bottom: 0;
  width: 1px;
  background: rgba(168, 130, 255, 0.25);
}
.tl-dot {
  position: absolute;
  left: 0;
  top: 5px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 2px solid var(--accent-2);
}
.tl-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.tl-title { font-weight: 600; font-size: 15px; }
.tl-year { font-size: 12px; font-weight: 700; color: var(--accent-2); white-space: nowrap; }
.tl-sub { color: var(--muted); font-size: 13px; margin-top: 2px; }

/* AWARDS */
.awards { list-style: none; }
.awards li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--card-border);
  font-size: 14px;
}
.awards li:last-child { border-bottom: none; }
.trophy { flex: 0 0 auto; }
.award-name { font-weight: 500; }
.award-when { margin-left: auto; color: var(--accent-2); font-size: 12.5px; white-space: nowrap; }

/* FOOTER */
.footer {
  margin-top: 4px;
  text-align: center;
  color: var(--muted);
  font-size: 12.5px;
}

/* RESPONSIVE */
@media (max-width: 840px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .avatar { width: 116px; height: 116px; }
}
