/* Variabel Warna & Tema */
:root {
  --bg-color: #0f172a;
  --surface-color: #1e293b;
  --surface-card: #26334d;
  --primary: #38bdf8;
  --primary-hover: #0ea5e9;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border-color: #334155;
  --radius: 12px;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'SN Pro', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

section {
  scroll-margin-top: 90px;
}

/* Header & Navigasi */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
}

.navbar {
  max-width: 1000px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-brand h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--primary);
}

/* Main Content Layout */
.main-content {
  max-width: 900px;
  width: 100%;
  margin: 2.5rem auto;
  padding: 0 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* Common Section Styling */
section {
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}

/* Profil Singkat */
.profile-card {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.img-container {
  flex-shrink: 0;
}

.profile-img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--primary);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.2);
}

.profile-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.badge {
  align-self: flex-start;
  background-color: rgba(56, 189, 248, 0.1);
  color: var(--primary);
  padding: 0.3rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 20px;
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.profile-info h1 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.lead-text {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Section Header */
.section-header {
  margin-bottom: 1.5rem;
}

.section-header h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-main);
}

.section-header p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Style Biodata Tanpa Emoji (Format Label : Nilai) */
.biodata-card-wrapper {
  background-color: var(--surface-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.biodata-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.biodata-list li {
  display: flex;
  align-items: center;
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.biodata-list li:last-child {
  border-bottom: none;
}

.biodata-list li:hover {
  background-color: rgba(56, 189, 248, 0.04);
}

.bio-label {
  width: 120px;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

.bio-separator {
  width: 20px;
  color: var(--text-muted);
  font-weight: 500;
  text-align: center;
}

.bio-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
}

.active-status {
  color: #34d399;
}

.action-container {
  margin-top: 1rem;
}

.btn-github {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background-color: #0f172a;
  color: var(--text-main);
  border: 1px solid var(--border-color);
  padding: 0.7rem 1.2rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
}

/* Membuat ikon GitHub otomatis muncul di sebelah kiri teks menggunakan CSS */
.btn-github::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  background-color: currentColor; /* Mengikuti warna teks */
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 0c4.42 0 8 3.58 8 8a8.013 8.013 0 0 1-5.45 7.59c-.4.08-.55-.17-.55-.38 0-.27.01-1.13.01-2.2 0-.75-.25-1.23-.54-1.48 1.78-.2 3.65-.88 3.65-3.95 0-.88-.31-1.59-.82-2.15.08-.2.36-1.02-.08-2.12 0 0-.67-.22-2.2.82-.64-.18-1.32-.27-2-.27-.68 0-1.36.09-2 .27-1.53-1.03-2.2-.82-2.2-.82-.44 1.1-.16 1.92-.08 2.12-.51.56-.82 1.28-.82 2.15 0 3.06 1.86 3.75 3.64 3.95-.23.2-.44.55-.51 1.07-.46.21-1.61.55-2.33-.66-.15-.24-.6-.83-1.23-.82-.67.01-.27.38.01.53.34.19.73.9.82 1.13.16.45.68 1.31 2.69.94 0 .67.01 1.3.01 1.49 0 .21-.15.45-.55.38A7.995 7.995 0 0 1 0 8c0-4.42 3.58-8 8-8Z'/%3E%3C/svg%3E") no-repeat center;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 0c4.42 0 8 3.58 8 8a8.013 8.013 0 0 1-5.45 7.59c-.4.08-.55-.17-.55-.38 0-.27.01-1.13.01-2.2 0-.75-.25-1.23-.54-1.48 1.78-.2 3.65-.88 3.65-3.95 0-.88-.31-1.59-.82-2.15.08-.2.36-1.02-.08-2.12 0 0-.67-.22-2.2.82-.64-.18-1.32-.27-2-.27-.68 0-1.36.09-2 .27-1.53-1.03-2.2-.82-2.2-.82-.44 1.1-.16 1.92-.08 2.12-.51.56-.82 1.28-.82 2.15 0 3.06 1.86 3.75 3.64 3.95-.23.2-.44.55-.51 1.07-.46.21-1.61.55-2.33-.66-.15-.24-.6-.83-1.23-.82-.67.01-.27.38.01.53.34.19.73.9.82 1.13.16.45.68 1.31 2.69.94 0 .67.01 1.3.01 1.49 0 .21-.15.45-.55.38A7.995 7.995 0 0 1 0 8c0-4.42 3.58-8 8-8Z'/%3E%3C/svg%3E") no-repeat center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.btn-github:hover {
  background-color: var(--primary);
  color: #0f172a;
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* Tabel Mata Kuliah */
.table-container {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

th, td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--border-color);
}

th {
  background-color: var(--surface-card);
  color: var(--text-main);
  font-weight: 600;
}

tbody tr {
  transition: var(--transition);
}

tbody tr:hover {
  background-color: rgba(56, 189, 248, 0.05);
}

td:first-child, th:first-child {
  text-align: center;
}

td:last-child, th:last-child {
  text-align: center;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 1.5rem;
  background-color: var(--surface-color);
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
  .profile-card {
    flex-direction: column;
    text-align: center;
  }

  .badge {
    align-self: center;
  }

  .profile-info h1 {
    font-size: 1.5rem;
  }

  .nav-links {
    display: none;
  }
}