/* ============================================
   1. VARIABEL & EFEK LAMPU (GLOW)
   ============================================ */
:root {
  --bg:        #09090b;
  --bg-kartu:  #121215;
  --teks:      #f4f4f5;
  --teks-abu:  #d0d0d6;
  --garis:     #27272a;
  --emas:      #d4af37; 
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  color: var(--teks);
  font-family: 'Inter', sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
}

.lampu-bg {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: -1;
  background: 
    radial-gradient(circle at 15% 20%, rgba(248, 250, 252, 0.169) 0%, transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(255, 240, 191, 0.1) 0%, transparent 40%);
  pointer-events: none;
}

a { text-decoration: none; color: inherit; }
.container { max-width: 1000px; margin: 0 auto; padding: 0 24px; }

/* ============================================
   2. NAVBAR, LOGO & HAMBURGER 
   ============================================ */
header {
  border-bottom: 1px solid rgba(255,255,255,0.05);
  position: sticky; top: 0;
  background: rgba(9, 9, 11, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
}

.nav-container {
  max-width: 1000px;
  margin: 0 auto; 
  padding: 3px 20px;
  display: flex; 
  justify-content: space-between; 
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--emas);
  text-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.logo-img {
  width: 100px;
  height: 100px; 
  object-fit: contain; 
}

.menu-toggle { 
  display: none; 
}

.hamburger { 
  display: none;
  flex-direction: column; 
  gap: 5px; 
  cursor: pointer; 
}

.hamburger span { 
  display: block; 
  width: 25px; 
  height: 2px; 
  background: var(--teks); 
  transition: 0.3s;
}

.nav-menu { 
  display: flex; 
  align-items: center; 
  gap: 32px; 
}

.nav-menu a { 
  color: var(--teks-abu); 
  font-size: 0.95rem; 
  font-weight: 400; 
  transition: all 0.3s; 
}

.nav-menu a:hover { 
  color: var(--teks); 
  text-shadow: 0 0 10px rgba(255,255,255,0.5); 
}

/* ============================================
   3. HERO SECTION DENGAN FOTO
   ============================================ */
.hero { 
  padding: 1px 24px; 
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}

.tagline { 
  font-size: 0.8rem; 
  letter-spacing: 2px; 
  color: var(--teks-abu); 
  margin-bottom: 24px; 
  font-weight: 600; 
}

.hero h1 { 
  font-family: 'Playfair Display', serif; 
  font-size: 3.5rem; 
  line-height: 1.2; 
  margin-bottom: 24px; 
  font-weight: 600; 
}

.hero h1 em { 
  color: var(--emas); 
  font-style: italic; 
}

.hero .deskripsi { 
  color: var(--teks-abu); 
  font-size: 1.1rem; 
  margin-bottom: 48px; 
  font-weight: 300; 
}

.btn-utama {
  display: inline-block; padding: 14px 36px;
  background: var(--emas); color: #000;
  font-weight: 600; border-radius: 4px;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
  transition: all 0.3s ease;
}
.btn-utama:hover { 
  background: #fce07a; 
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.6); 
  transform: translateY(-2px); }

.hero-image { display: flex; justify-content: center; }

.foto-frame {
  width: 100%; 
  max-width: 320px;
  aspect-ratio: 3 / 4;
  border-radius: 12px; 
  overflow: hidden;
  border: 2px solid var(--garis);
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.1);
  transition: all 0.4s ease;
}
.foto-frame:hover { 
  border-color: var(--emas); 
  box-shadow: 0 0 40px rgb(212, 175, 55); 
  transform: translateY(-5px);
 }
 
.foto-frame img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================
   4. SECTION & PROJEK
   ============================================ */
.section { padding: 100px 24px; border-top: 1px solid var(--garis); }

.section-header { 
  margin-bottom: 48px; 
}

.section-title {
   font-family: 'Playfair Display', serif; 
   font-size: 2.5rem; 
   margin-bottom: 16px; 
   padding: 0; 
  }

.teks-abu { 
  color: var(--teks-abu); 
  font-weight: 300; 
  max-width: 600px; 
  font-size: 1.05rem; 
  margin-bottom: 24px;
}

.skills { 
  display: flex; 
  gap: 12px; 
  flex-wrap: wrap; 
  margin-top: 32px; 
}

.skills span { 
  padding: 8px 20px; 
  background: rgba(255,255,255,0.03); 
  border: 1px solid var(--garis); 
  border-radius: 50px; 
  font-size: 0.85rem; 
  color: var(--teks); 
  transition: all 0.3s; 
}

.skills span:hover { 
  border-color: var(--emas); 
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.2); 
}


.grid-projek { 
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: 32px; 
}

.kartu {
  background: var(--bg-kartu); 
  border: 1px solid var(--garis);
  border-radius: 12px; 
  overflow: hidden; 
  transition: all 0.4s ease;
  display: flex; 
  flex-direction: column;
}
.kartu-gambar { 
  width: 100%; 
  height: 200px; 
  overflow: hidden; 
  border-bottom: 1px solid var(--garis); 
  background: #000; 
}

.kartu-gambar img { 
  width: 100%; height: 100%; 
  object-fit: cover; 
  transition: transform 0.5s ease; 
}

.kartu-konten { 
  padding: 28px; 
  display: flex; 
  flex-direction: column; 
  flex-grow: 1; 
}

.kartu-header { 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  margin-bottom: 16px; 
}

.kartu h3 { 
  font-family: 'Playfair Display', serif; 
  font-size: 1.5rem; 
  color: var(--teks); 
}

.kartu-tahun { 
  font-size: 0.8rem; 
  color: var(--emas); 
  border: 1px solid rgba(212, 175, 55, 0.3); 
  padding: 2px 10px; 
  border-radius: 4px; 
}

.kartu-deskripsi {
  color: var(--teks-abu); 
  font-size: 0.95rem;
  margin-bottom: 24px; 
  line-height: 1.6; 
  flex-grow: 1; 
}

.kartu-tags { 
  display: flex; 
  gap: 8px; 
}

.kartu-tags span { 
  font-size: 0.75rem; 
  color: var(--teks-abu); 
  border: 1px solid var(--garis); 
  padding: 4px 12px; 
  border-radius: 4px; 
  background: var(--bg); 
}

.kartu:hover { 
  border-color: var(--emas);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(212, 175, 55, 0.15); 
  transform: translateY(-5px);
}

.kartu:hover .kartu-gambar img { 
  transform: scale(1.05);
}

.grid-sosmed { 
  display: grid; 
  grid-template-columns: repeat(2, 1fr); 
  gap: 16px; 
  margin-top: 32px; 
  max-width: 500px; 
}

.sosmed-btn { 
  display: flex; 
  align-items: center; 
  gap: 12px; 
  background: var(--bg-kartu); 
  border: 1px solid var(--garis); 
  padding: 16px 24px; 
  border-radius: 8px; 
  color: var(--teks-abu); 
  font-weight: 400; 
  transition: all 0.3s ease; 
}

.sosmed-btn i { 
  font-size: 1.2rem; 
}

.sosmed-btn:hover { 
  color: var(--emas); 
  border-color: var(--emas); 
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.15); 
  transform: translateY(-2px); 
  background: rgba(212, 175, 55, 0.05); 
}


footer { 
  text-align: center; 
  padding: 40px; 
  color: var(--teks-abu); 
  font-size: 0.85rem; 
  border-top: 1px solid var(--garis); 
  font-weight: 300; 
}



/* ============================================
   5. RESPONSIVE (HP)
   ============================================ */
@media (max-width: 768px) {
  .hamburger { 
    display: flex; 
    z-index: 101; 
  }
  .nav-menu { 
    position: absolute; 
    top: 82px; 
    left: 0; 
    width: 100%; 
    background: rgba(18, 18, 21, 0.95); 
    backdrop-filter: blur(10px); 
    flex-direction: column; 
    gap: 0; 
    max-height: 0; 
    overflow: hidden; 
    transition: max-height 0.4s ease; 
  }
  .nav-menu a { 
    width: 100%; 
    text-align: center; 
    padding: 20px; 
    border-bottom: 1px solid var(--garis); 
  }
  .menu-toggle:checked ~ .nav-menu { max-height: 300px; }
  .menu-toggle:checked ~ .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle:checked ~ .hamburger span:nth-child(2) { opacity: 0; }
  .menu-toggle:checked ~ .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero-grid { 
    grid-template-columns: 1fr; 
    gap: 40px; 
    text-align: center; }

  .hero h1 { font-size: 2.5rem; }
  .foto-frame { margin: 0 auto; }
  
  .grid-projek { grid-template-columns: 1fr; }
  .grid-sosmed { grid-template-columns: 1fr; }
}

/* ============================================
   6. TAMBAHAN BARU: SKILL BAR & TIMELINE
   ============================================ */

/* --- SKILL BAR (GARIS KAPASITAS) --- */
.skills-container {
  margin-top: 40px;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 600px;
}

.skill-item {
  width: 100%;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--teks);
}

.skill-bar {
  width: 100%;
  height: 8px;
  background-color: var(--garis);
  border-radius: 4px;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background: var(--emas);
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.5); /* Efek Nyala */
}

/* Panjang Garis Kemampuan */
.skill-progress.html { width: 70%; }
.skill-progress.css { width: 40%; }
.skill-progress.js { width: 5%; }
.skill-progress.badminton { width: 95%; }
.skill-progress.geme { width: 99%; }
.skill-progress.arab { width: 50%; }


.kmampuan {
  padding-top: 50px; 
}

/* --- TIMELINE PENDIDIKAN --- */
.timeline {
  position: relative;
  max-width: 800px;
  margin-top: 40px;
  padding-left: 30px;
}

/* Garis Vertikal */
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 2px;
  background: var(--garis);
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

/* Titik Nyala di Garis */
.timeline-dot {
  position: absolute;
  left: -37px; /* Geser titik ke tengah garis */
  top: 6px;
  width: 16px;
  height: 16px;
  background: var(--bg);
  border: 2px solid var(--emas);
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.6);
}

.timeline-date {
  font-size: 0.85rem;
  color: var(--emas);
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.timeline-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  margin-bottom: 8px;
  color: var(--teks);
}

.timeline-desc {
  color: var(--teks-abu);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ============================================
   7. SECTION HOBI / DI LUAR KODINGAN
   ============================================ */
.grid-hobi {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Bagi 3 kolom */
  gap: 24px;
  margin-top: 32px;
}

.kartu-hobi {
  background: var(--bg-kartu);
  border: 1px solid var(--garis);
  padding: 32px;
  border-radius: 12px;
  transition: all 0.4s ease;
}

.kartu-hobi:hover {
  border-color: var(--emas);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(212, 175, 55, 0.15);
  transform: translateY(-5px);
}

.hobi-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.kartu-hobi h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--teks);
}

.kartu-hobi p {
  color: var(--teks-abu);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Biar rapi kalau dibuka di HP */
@media (max-width: 768px) {
  .grid-hobi {
    grid-template-columns: 1fr; /* Jadi 1 kolom ke bawah di HP */
  }
}