:root {
  --bg-color: #0f172a;
  --card-bg: #1e293b;
  --accent-color: #38bdf8;
  --accent-gradient: linear-gradient(135deg, #38bdf8, #818cf8);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border-color: #334155;
}

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

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  padding: 30px 10px;
}

body.light-mode {
  --bg-color: #f8fafc;
  --card-bg: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
}

/* Toggle Theme Button */
.theme-toggle {
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  border-color: var(--accent-color);
}

/* Tech Stack Pills */
.tech-stack {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 15px;
}

.tech-pill {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent-color);
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.container {
  max-width: 850px;
  margin: 0 auto;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Header Styling */
header {
  text-align: center;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--border-color);
}

header h1 {
  font-size: 2.2rem;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}

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

.cursor {
  animation: blink 1s infinite;
  color: var(--accent-color);
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Sticky Navigasi */
nav {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 25px 0 35px 0;
  position: sticky;
  top: 15px;
  background: rgba(30, 41, 59, 0.85);
  backdrop-filter: blur(12px);
  padding: 10px 20px;
  border-radius: 30px;
  border: 1px solid var(--border-color);
  z-index: 100;
}

nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 6px 18px;
  border-radius: 20px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

nav a:hover, nav a.active {
  color: #fff;
  background: var(--accent-gradient);
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
}

/* Section */
section {
  margin-bottom: 40px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 20px;
}

section h2 {
  font-size: 1.35rem;
  color: var(--accent-color);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Biodata Card & Hover Effects */
.profile-card {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  background: rgba(255, 255, 255, 0.02);
  padding: 30px;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.profile-card:hover {
  border-color: rgba(56, 189, 248, 0.4);
}

.profile-img-wrapper {
  position: relative;
  flex-shrink: 0;
}

.profile-img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent-color);
  transition: all 0.4s ease;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.profile-img:hover {
  transform: scale(1.06) rotate(3deg);
  border-color: #818cf8;
}

.status-badge {
  position: absolute;
  bottom: 8px;
  right: 10px;
  width: 16px;
  height: 16px;
  background: #22c55e;
  border: 3px solid var(--card-bg);
  border-radius: 50%;
}

.bio-details ul {
  list-style: none;
}

.bio-details li {
  margin-bottom: 8px;
  color: var(--text-muted);
}

.bio-details strong {
  color: var(--text-main);
}

.bio-desc {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Quick Stats Grid */
.stats-grid {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.stat-badge {
  flex: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  padding: 10px;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.2s ease;
}

.stat-badge:hover {
  transform: translateY(-3px);
  background: rgba(56, 189, 248, 0.05);
}

.stat-num {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent-color);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Search Bar Input */
.search-input {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.3s ease;
}

.search-input:focus {
  border-color: var(--accent-color);
}

/* Table Styling */
.table-responsive {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  border-radius: 12px;
  overflow: hidden;
}

th, td {
  padding: 14px 18px;
  text-align: left;
}

th {
  background: #0f172a;
  color: var(--accent-color);
  font-weight: 600;
  border-bottom: 2px solid var(--border-color);
}

td {
  background: rgba(255, 255, 255, 0.01);
  border-bottom: 1px solid var(--border-color);
  color: var(--text-muted);
}

tr {
  transition: background-color 0.2s ease;
}

tr:hover td {
  background: rgba(56, 189, 248, 0.06);
  color: var(--text-main);
}

tr.selected {
  background-color: rgba(56, 189, 248, 0.18) !important;
  border-left: 4px solid var(--accent-color);
}

.code-tag {
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent-color);
  padding: 3px 6px;
  border-radius: 6px;
  font-family: monospace;
  font-size: 0.75rem;
  letter-spacing: -0.2px;
}

/* Buttons & Links */
.link-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  text-decoration: none;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-link:hover {
  border-color: var(--accent-color);
  background: rgba(56, 189, 248, 0.12);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-link:active, nav a:active {
  transform: scale(0.96);
}

/* Footer */
footer {
  text-align: center;
  padding-top: 25px;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Effect Fade In Scroll */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsif Mobile */
@media (max-width: 650px) {
  .container { padding: 25px 18px; }
  .profile-card { flex-direction: column; align-items: center; text-align: center; }
  .stats-grid { width: 100%; }
  .section-header { flex-direction: column; align-items: flex-start; }
  .search-input { width: 100%; }
  nav { flex-wrap: wrap; }
}
