/* ============================================
   Skillab BIMBEL PANDU
   ============================================ */

/* ====== VARIABEL WARNA ====== */
:root {
  --kuning: #FFD166;
  --biru: #06D6A0;
  --merah: #EF476F;
  --ungu: #9B5DE5;
  --biru-tua: #118AB2;
  --putih: #FFFDF7;
  --abu: #F3F0E8;
  --teks: #2D2D2D;
}

/* ====== RESET & BASE ====== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Nunito', sans-serif;
  background: var(--abu);
  color: var(--teks);
  min-height: 100vh;
}

/* ====== NAVIGASI ====== */
nav {
  background: var(--ungu);
  padding: 14px 24px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  box-shadow: 0 4px 0 #7B3CC3;
}

nav a {
  font-family: 'Baloo 2', cursive;
  font-size: 15px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

nav a:hover {
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.2);
}

nav a:active {
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.2);
}

nav a.aktif {
  background: var(--kuning);
  color: #333;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.15);
}

/* ====== KONTEN UTAMA ====== */
main {
  padding: 36px 20px;
  max-width: 720px;
  margin: 0 auto;
  animation: masuk 0.35s ease;
}

@keyframes masuk {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ====== KARTU ====== */
.kartu {
  background: var(--putih);
  border-radius: 20px;
  padding: 28px;
  margin-bottom: 20px;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.08);
  border: 2px solid rgba(0, 0, 0, 0.05);
}

/* ====== TIPOGRAFI ====== */
h1 {
  font-family: 'Baloo 2', cursive;
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 6px;
}

h2 {
  font-family: 'Baloo 2', cursive;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

h3 {
  font-family: 'Baloo 2', cursive;
  font-size: 16px;
  font-weight: 600;
}

/* ====== TAG / LABEL ====== */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  justify-content: center;
}

.tag {
  background: var(--kuning);
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
}

.tag.biru {
  background: #B8F0E0;
}

.tag.merah {
  background: #FFCDD8;
}

/* ====== INFO GRID ====== */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.info-item {
  background: var(--abu);
  border-radius: 12px;
  padding: 14px;
}

.info-item .label {
  font-size: 11px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.info-item .nilai {
  font-weight: 700;
  font-size: 15px;
}

/* ====== DAFTAR ITEM (mapel, prestasi, momen) ====== */
.daftar {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.daftar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--abu);
  border-radius: 12px;
  padding: 12px 16px;
}

.daftar-ikon {
  font-size: 20px;
  width: 36px;
  text-align: center;
  color: var(--ungu);
}

.daftar-nama {
  font-weight: 700;
  font-size: 15px;
}

.daftar-sub {
  font-size: 13px;
  color: #888;
  margin-top: 2px;
}

.daftar-nilai {
  margin-left: auto;
  background: var(--ungu);
  color: white;
  padding: 3px 12px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 14px;
}

.daftar-nilai.bagus {
  background: var(--biru);
}

.daftar-nilai.hebat {
  background: var(--merah);
}

/* ====== PROGRESS BAR ====== */
.progress-bar {
  height: 8px;
  background: #E0E0E0;
  border-radius: 50px;
  margin-top: 8px;
  overflow: hidden;
}

.progress-isi {
  height: 100%;
  border-radius: 50px;
  background: var(--ungu);
  transition: width 1s ease;
}

/* ====== HOBI GRID ====== */
.hobi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.hobi-kartu {
  background: var(--putih);
  border-radius: 18px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.07);
  border: 2px solid transparent;
  transition: transform 0.2s, border-color 0.2s;
  cursor: default;
}

.hobi-kartu:hover {
  transform: translateY(-4px);
}

.hobi-kartu:nth-child(1) {
  border-color: var(--kuning);
}

.hobi-kartu:nth-child(2) {
  border-color: var(--biru);
}

.hobi-kartu:nth-child(3) {
  border-color: var(--merah);
}

.hobi-kartu:nth-child(4) {
  border-color: var(--ungu);
}

.hobi-ikon {
  font-size: 36px;
  margin-bottom: 12px;
  color: var(--ungu);
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hobi-kartu:nth-child(1) .hobi-ikon {
  color: var(--kuning);
}

.hobi-kartu:nth-child(2) .hobi-ikon {
  color: var(--biru);
}

.hobi-kartu:nth-child(3) .hobi-ikon {
  color: var(--merah);
}

.hobi-kartu:nth-child(4) .hobi-ikon {
  color: var(--ungu);
}

.hobi-kartu h3 {
  font-size: 15px;
}

.hobi-kartu p {
  font-size: 13px;
  color: #777;
  margin-top: 6px;
}

/* ====== IMPIAN ====== */
.impian-box {
  text-align: center;
  padding: 30px 20px;
}

.impian-ikon {
  font-size: 64px;
  margin-bottom: 16px;
  display: block;
  color: var(--ungu);
}

.impian-judul {
  font-family: 'Baloo 2', cursive;
  font-size: 26px;
  font-weight: 800;
  color: var(--ungu);
  margin-bottom: 10px;
}

.impian-deskripsi {
  color: #555;
  line-height: 1.7;
  font-size: 15px;
}

/* ====== LANGKAH-LANGKAH ====== */
.langkah-list {
  list-style: none;
}

.langkah-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px dashed #E0E0E0;
}

.langkah-item:last-child {
  border-bottom: none;
}

.langkah-nomor {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  background: var(--kuning);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-family: 'Baloo 2', cursive;
  font-size: 15px;
}

.langkah-teks {
  padding-top: 4px;
  font-size: 15px;
}

/* ====== MOTIVASI BOX ====== */
.motivasi-box {
  background: linear-gradient(135deg, var(--ungu), #5C2BE0);
  border-radius: 14px;
  padding: 20px;
  color: white;
  text-align: center;
}

.motivasi-box p {
  font-size: 18px;
  font-family: 'Baloo 2', cursive;
  font-weight: 700;
  line-height: 1.6;
}

/* ====== GALERI ====== */
.galeri-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.galeri-item {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 1;
  position: relative;
  cursor: pointer;
  transition: transform 0.2s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.galeri-item:hover {
  transform: scale(1.04);
}

.galeri-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.galeri-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px 12px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
  color: white;
  font-size: 13px;
  font-weight: 700;
}

/* ====== BERANDA HEADER ====== */
.foto-profil {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: 4px solid white;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  margin: 0 auto 18px;
}

.foto-profil img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.beranda-header {
  text-align: center;
}

.beranda-header p {
  color: #666;
  font-size: 15px;
  margin-bottom: 4px;
}

.nama-besar {
  color: var(--ungu);
}

/* ====== FOOTER ====== */
footer {
  text-align: center;
  padding: 20px;
  color: #AAA;
  font-size: 13px;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 480px) {

  .info-grid,
  .hobi-grid,
  .galeri-grid {
    grid-template-columns: 1fr;
  }
}

/* ====== FONT AWESOME ICON HELPERS ====== */
nav a i {
  margin-right: 5px;
  font-size: 13px;
}

h2 i {
  color: var(--ungu);
  width: 24px;
  text-align: center;
}

.tag i {
  margin-right: 4px;
  font-size: 12px;
}

/* ====== BUKU TAMU ====== */
.form-grup {
  margin-bottom: 20px;
  text-align: left;
}

.form-grup label {
  display: block;
  font-family: 'Baloo 2', cursive;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--ungu);
}

.form-kontrol {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #E0E0E0;
  border-radius: 12px;
  font-family: 'Nunito', sans-serif;
  font-size: 15px;
  color: var(--teks);
  transition: border-color 0.3s;
  background: var(--abu);
}

.form-kontrol:focus {
  outline: none;
  border-color: var(--ungu);
  background: var(--putih);
}

.btn-kirim {
  background: var(--ungu);
  color: white;
  border: none;
  padding: 12px 24px;
  font-family: 'Baloo 2', cursive;
  font-size: 16px;
  font-weight: 700;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 4px 0 #7B3CC3;
  transition: transform 0.2s, box-shadow 0.2s;
  width: 100%;
}

.btn-kirim:hover {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #7B3CC3;
}

.tamu-item {
  background: var(--abu);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  text-align: left;
}

.tamu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  border-bottom: 1px dashed #CCC;
  padding-bottom: 8px;
}

.tamu-header strong {
  color: var(--biru-tua);
  font-size: 15px;
}

.tamu-waktu {
  font-size: 12px;
  color: #888;
}

.tamu-pesan {
  font-size: 14px;
  line-height: 1.6;
}