:root {
  --bg-dark: #0f1115;
  --bg-card: #161a22;
  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
  --accent-blue: #1f3a5f;
}

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

body {
  background-color: var(--bg-dark);
  background-image: url("assets/bg-portofolio.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--text-main);
  font-family: 'Press Start 2P', monospace;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.container {
  background: rgba(31, 58, 95, 0.35); /* dark blue glass */
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 40px;
  width: 85%;
  max-width: 800px;
  border: 1px solid rgba(147, 197, 253, 0.35);
}

.name-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
}

.name {
  font-size: 20px;
  margin-bottom: 16px;
  color: #ffffff;
}

.role {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.section {
  margin-bottom: 32px;
}

.section h2 {
  font-size: 12px;
  margin-bottom: 12px;
  color: #93c5fd;
  user-select: none;
}

.section p,
.section li {
  font-size: 10px;
  line-height: 2;
  color: var(--text-main);
  text-align: justify;
}

.top-contact-btn {
  background: rgba(31, 58, 95, 0.4);
  border: 1px solid rgba(147, 197, 253, 0.35);
  color: #93c5fd;
  padding: 8px 16px;
  font-family: inherit;
  cursor: pointer;
  user-select: none;
  text-decoration: none;
  white-space: nowrap;
}

.top-contact-btn.inline {
  position: static;
}

.top-contact-btn:hover {
  opacity: 0.85;
}

/* .section ul {
  list-style: none;
} */

/* .section ul li::before {
  content: "• ";
  color: #60a5fa;
} */

.cursor {
  display: inline-block;
  margin-left: 4px;
  animation: blink 1s steps(2, start) infinite;
  color: #93c5fd;
}

@keyframes blink {
  to {
    visibility: hidden;
  }
}

.centered {
  text-align: center;
}

.lang-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 24px;
  text-align: center;
}

.lang-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  user-select: none;
}

.img-lang {
  width: 48px;
  height: 48px;
  image-rendering: pixelated;
}

.lang-name {
  font-size: 9px;
  color: var(--text-main);
}

.contact-link {
  cursor: pointer;
  color: #93c5fd;
  user-select: none;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.modal.show {
  display: flex;
}

.modal-content {
  background: rgba(31, 58, 95, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(147, 197, 253, 0.35);
  padding: 32px;
  width: 90%;
  max-width: 400px;
}

.modal-content h2 {
  font-size: 12px;
  margin-bottom: 20px;
  color: #93c5fd;
  user-select: none;
}

.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-list a:hover {
  color: #93c5fd;
}

.close-btn {
  background: transparent;
  border: 1px solid rgba(147, 197, 253, 0.4);
  color: #93c5fd;
  padding: 8px 16px;
  font-family: inherit;
  cursor: pointer;
  margin-top: 20px;
  user-select: none;
}

.contact-list a {
  font-size: 10px;
  color: var(--text-main);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
  user-select: none;
}

.contact-icon {
  width: 16px;
  height: 16px;
  image-rendering: pixelated;
  user-select: none;
}

.portfolio-list {
  list-style: none;
  padding-left: 0;   /* HAPUS indent bawaan */
  margin-left: 0;
}

.portfolio-item {
  cursor: pointer;
  margin-bottom: 10px;
  font-size: 12px;
  color: #93c5fd;
  user-select: none;
  transition: transform 0.2s ease, opacity 0.2s ease;

  display: grid;
  grid-template-columns: 1fr 14px; /* teks fleksibel + kolom panah kecil */
  align-items: center;

  max-width: 280px; /* ⬅️ PENTING: cegah narik ke kanan */
}

.portfolio-item::after {
  content: ">";
  font-size: 10px;
  opacity: 0.7;
  justify-self: end;
}

.portfolio-item:hover {
  transform: translateX(2px);
  opacity: 0.85;
}

.modal-content.wide {
  max-width: 700px;
}

.portfolio-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.portfolio-tabs {
  display: flex;
  gap: 16px;
}

.tab {
  cursor: pointer;
  font-size: 9px;
  color: var(--text-muted);
  user-select: none;
}

.tab.active {
  color: #93c5fd;
}

.portfolio-body {
  display: flex;
}

.portfolio-page {
  width: 100%;
  display: none;
}

.portfolio-page.active {
  display: block;
}

.roadmap {
  list-style: none;
  font-size: 9px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.roadmap-step span {
  display: none;
}

.roadmap-step p {
  color: #ffffff;
  font-size: 12px;
  line-height: 2;
  margin-top: 0;
  text-align: justify;
}

#about p {
  font-size: 12px;
  color: #ffffff;
  margin: 4px 0;
  line-height: 2;
  text-align: justify;
}

#about p.year {
  color: var(--text-muted);
  font-size: 8px;
  margin-top: 8px;
  user-select: none;
}

.project-photos {
  margin-top: 24px;
  display: flex;
  justify-content: center;
}

.project-photos img {
  width: 100%;
  max-width: 300px;
  border: 1px solid rgba(147,197,253,0.35);
  cursor: zoom-in;
}

.image-viewer-content img {
  max-width: 90vw;
  max-height: 90vh;
  cursor: zoom-out;
}

.image-viewer-content {
  background: rgba(0,0,0,0.8);
  padding: 20px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.project-card {
  border: 1px solid rgba(147,197,253,0.35);
  padding: 16px;
  cursor: pointer;
  transition: transform .2s ease, opacity .2s ease;
}

.project-card:hover {
  transform: translateY(-2px);
  opacity: .9;
}

.project-thumb {
  background: rgba(255,255,255,0.15);
  margin-bottom: 12px;
}

.project-thumb img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.project-title {
  font-size: 14px;
  color: #ffffff;
  margin-bottom: 6px;
}

.project-role {
  display: inline-block;
  font-size: 8px;
  color: #93c5fd;
  background: rgba(31, 58, 95, 0.5);  border: 1px solid rgba(147, 197, 253, 0.35);
  padding: 3px 6px;
  border-radius: 4px;
  user-select: none;
}