* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --glow-blue: #00f0ff;
  --glow-purple: #b967ff;
  --dark-bg: #0f0f1b;
  --card-bg: #151525;
  --text: #e0e0ff;
  --text-light: #a0a0d0;
}

/* ——— Background Penuh dengan Overlay ——— */
body {
  font-family: 'Poppins', sans-serif;
  color: var(--text);
  display: flex;
  min-height: 100vh;

  /* Gambar latar belakang penuh */
  background-image: url('https://images.unsplash.com/photo-1555066931-4365d14bab8c?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  position: relative;
}

/* Overlay gelap agar konten tetap terbaca */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 20, 0.88);
  z-index: -1;
}

/* Sidebar */
.sidebar {
  width: 260px;
  background: var(--card-bg);
  padding: 30px 0;
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  box-shadow: 0 0 20px rgba(185, 103, 255, 0.4);
  border-right: 1px solid rgba(185, 103, 255, 0.2);
  z-index: 100;
}
.sidebar .logo {
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 30px;
  color: var(--glow-blue);
  text-shadow: 0 0 10px var(--glow-blue);
}
.sidebar ul {
  list-style: none;
}
.sidebar li {
  margin: 15px 0;
}
.sidebar a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 25px;
  color: var(--text-light);
  text-decoration: none;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}
.sidebar a:hover, .sidebar a:focus {
  color: var(--glow-blue);
  border-left: 3px solid var(--glow-blue);
  text-shadow: 0 0 8px var(--glow-blue);
  background: rgba(0, 240, 255, 0.05);
}
.sidebar i {
  width: 20px;
  text-align: center;
}

/* Main Content */
.main-content {
  flex: 1;
  margin-left: 260px;
  padding: 20px;
}
.container {
  max-width: 1000px;
  margin: 0 auto;
}

.section {
  padding: 50px 0;
}
.section h2 {
  font-size: 32px;
  margin-bottom: 30px;
  color: var(--glow-blue);
  text-shadow: 0 0 12px rgba(0, 240, 255, 0.6);
  position: relative;
  display: inline-block;
}
.section h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--glow-purple);
  box-shadow: 0 0 10px var(--glow-purple);
}

/* ——— Tentang Saya – Layout Baru dengan Dua Foto & Biodata ——— */
.about {
  background: linear-gradient(135deg, rgba(21, 21, 37, 0.8), rgba(15, 15, 27, 1));
  border-radius: 16px;
  padding: 40px !important;
  box-shadow: 0 0 25px rgba(185, 103, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(185, 103, 255, 0.15);
}

/* Bagian Atas: Foto Kiri + Teks */
.about-top {
  display: flex;
  gap: 40px;
  margin-bottom: 40px;
  align-items: flex-start;
}

.about-photo-left {
  flex: 0 0 auto;
  width: 220px;
  height: 220px;
  overflow: hidden;
  border-radius: 16px;
  border: 2px solid var(--glow-blue);
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.5);
}

.about-photo-left img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-text {
  flex: 1;
}

.name {
  font-size: 38px;
  font-weight: 700;
  margin: 0 0 12px;
  color: white;
  text-shadow: 0 0 10px var(--glow-blue);
  line-height: 1.2;
}

.role {
  font-size: 18px;
  color: var(--glow-blue);
  margin: 0 0 20px;
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.4);
}

.description p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-light);
}

/* Bagian Bawah: Biodata + Foto Kanan */
.about-bottom {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.biodata-table {
  flex: 1;
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

.biodata-table td {
  padding: 14px;
  color: var(--text-light);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.biodata-table td:first-child {
  width: 200px;
  font-weight: 500;
  color: var(--text);
}

.biodata-table td strong {
  color: var(--glow-blue);
}

.biodata-table tr:last-child td {
  border-bottom: none;
}

.about-photo-right {
  flex: 0 0 auto;
  width: 220px;
  height: 220px;
  overflow: hidden;
  border-radius: 16px;
  border: 2px solid var(--glow-blue);
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.5);
}

.about-photo-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Skills */
.skills .skill-item {
  display: flex;
  align-items: center;
  margin: 20px 0;
}
.skills .skill-item span:first-child {
  width: 160px;
  font-weight: 600;
  color: var(--text);
}
.bar {
  flex: 1;
  height: 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  margin: 0 15px;
  overflow: hidden;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.3);
}
.progress {
  height: 100%;
  border-radius: 6px;
}
.html { width: 90%; background: linear-gradient(90deg, #ff4d94, #ff7aa2); box-shadow: 0 0 10px #ff4d94; }
.css { width: 85%; background: linear-gradient(90deg, #00c6ff, #0072ff); box-shadow: 0 0 10px #00c6ff; }
.js { width: 75%; background: linear-gradient(90deg, #ffd400, #ffaa00); box-shadow: 0 0 10px #ffd400; }
.uiux { width: 70%; background: linear-gradient(90deg, #00f260, #0575e6); box-shadow: 0 0 10px #00f260; }
.percent {
  width: 50px;
  text-align: right;
  font-weight: 600;
  color: var(--glow-blue);
}

/* Tables Umum */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}
th, td {
  padding: 14px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
th {
  background: rgba(185, 103, 255, 0.2);
  color: var(--glow-purple);
  font-weight: 600;
}
tr:last-child td {
  border-bottom: none;
}
tr:hover {
  background: rgba(0, 240, 255, 0.05);
}
.contact-table td:first-child {
  color: var(--glow-blue);
  font-size: 18px;
  width: 30px;
}
.contact-table a {
  color: var(--glow-blue);
  text-decoration: none;
}
.contact-table a:hover {
  text-shadow: 0 0 8px var(--glow-blue);
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.gallery-grid img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.gallery-grid img:hover {
  transform: scale(1.03);
  box-shadow: 0 0 20px rgba(185, 103, 255, 0.5);
}

/* Footer */
footer {
  text-align: center;
  padding: 30px 0;
  color: var(--text-light);
  font-size: 14px;
}

/* Responsive */
@media (max-width: 992px) {
  .sidebar {
    width: 70px;
  }
  .sidebar .logo,
  .sidebar span {
    display: none;
  }
  .sidebar a {
    justify-content: center;
    padding: 15px;
  }
  .sidebar i {
    font-size: 20px;
  }
  .main-content {
    margin-left: 70px;
    padding: 15px;
  }

  /* Tentang Saya - Mobile */
  .about-top,
  .about-bottom {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }

  .about-photo-left,
  .about-photo-right {
    width: 180px;
    height: 180px;
    margin: 0 auto;
  }

  .biodata-table td:first-child {
    width: auto;
  }

  .name {
    font-size: 30px;
  }

  .role {
    font-size: 16px;
  }

  /* Skills */
  .skills .skill-item {
    flex-wrap: wrap;
  }
  .skills .skill-item span:first-child,
  .percent {
    width: 100%;
    text-align: left;
  }
  .bar {
    margin: 10px 0;
  }
}