/* Reset CSS - Buat ngereset semua default styling dari browser */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", "Segoe UI", sans-serif;
}

/* Variabel warna - Biar gampang diganti-ganti warnanya nanti */
:root {
  --primary-color: #4d4dff;
  --secondary-color: #364fc7;
  --accent-color: #68d391;
  --dark-bg: #1a202c;
  --darker-bg: #121720;
  --card-bg: #2d3748;
  --text-primary: #e2e8f0;
  --text-secondary: #a0aec0;
  --success-color: #48bb78;
  --info-color: #4299e1;
  --warning-color: #ecc94b;
}

/* Ngatur scroll behavior biar smooth pas klik menu */
html {
  scroll-behavior: smooth;
}

/* Styling dasar untuk body - Ini background sama warna teks utama */
body {
  background-color: var(--dark-bg);
  color: var(--text-primary);
  line-height: 1.6;
}

/* Navbar - Ini buat menu navigasi di bagian atas */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(18, 23, 32, 0.95);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  backdrop-filter: blur(10px);
}

/* Container dalam navbar - Ngatur posisi logo sama menu */
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
}

/* Logo di navbar */
.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-color);
  letter-spacing: 1px;
}

/* List menu di navbar */
.nav-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

/* Item menu di navbar */
.nav-links li a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 0.8rem;
  border-radius: 4px;
  transition: all 0.3s ease;
}

/* Hover effect buat item menu */
.nav-links li a:hover {
  color: var(--accent-color);
  background-color: rgba(255, 255, 255, 0.05);
}

/* Header - Bagian paling atas website */
header {
  padding: 8rem 0 3rem;
  background-color: var(--darker-bg);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

/* Container untuk konten hero */
.hero-container {
  display: flex;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  gap: 3rem;
}

/* Container foto profil */
.profile-image-container {
  flex: 0 0 220px;
}

/* Styling foto profil */
.profile-img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2), 0 0 0 2px rgba(77, 77, 255, 0.2);
}

/* Container untuk teks hero */
.hero-content {
  flex: 1;
}

/* Nama profil */
.profile-name {
  font-size: 2.8rem;
  margin-bottom: 0.5rem;
  color: #fff;
  position: relative;
}

/* Tagline - Text pendek di bawah nama profil */
.tagline {
  font-size: 1.2rem;
  color: var(--accent-color);
  margin-bottom: 1.5rem;
}

/* Garis divider yang kecil */
.hero-divider {
  height: 4px;
  width: 60px;
  background: var(--accent-color);
  margin-bottom: 1.5rem;
  border-radius: 2px;
}

/* Deskripsi pendek profil */
.hero-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
}

/* Main Content - Konten utama website */
main {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 2rem;
}

/* Bagian section umum */
.section {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 2.5rem;
  margin-bottom: 3rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-left: 4px solid var(--primary-color);
}

/* Judul section */
.section-title {
  color: #fff;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

/* Garis di bawah judul section */
.section-title::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent-color);
  border-radius: 3px;
}

/* Container info - Di section about */
.info-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
}

/* Block info - Bagian di section about */
.info-block {
  flex: 1;
  min-width: 250px;
}

/* Judul block info */
.info-block h3 {
  color: var(--accent-color);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

/* List tag - Buat menampilkan keyword atau skill */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

/* Styling tag */
.tag {
  background: rgba(77, 77, 255, 0.1);
  color: var(--accent-color);
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid rgba(77, 77, 255, 0.2);
}

/* Container untuk list skill */
.skills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

/* Card untuk tiap skill */
.skill-card {
  display: flex;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  padding: 1.2rem;
  width: 100%;
  align-items: center;
}

/* Icon skill - Kotak kecil di samping skill */
.skill-icon {
  width: 55px;
  height: 55px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.1rem;
  margin-right: 1.5rem;
  flex-shrink: 0;
}

/* Warna untuk icon HTML */
.html-icon {
  background: #e34c26;
  color: white;
}

/* Warna untuk icon CSS */
.css-icon {
  background: #264de4;
  color: white;
}

/* Warna untuk icon Python */
.python-icon {
  background: #306998;
  color: white;
}

/* Info skill - Bagian teks di card skill */
.skill-info {
  flex: 1;
}

/* Judul skill */
.skill-info h3 {
  margin-bottom: 0.7rem;
  color: #fff;
}

/* Bar indikator skill */
.skill-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

/* Progress bar skill - Menunjukkan level skill */
.skill-progress {
  height: 100%;
  border-radius: 4px;
  background: var(--accent-color);
}

/* Grid untuk project */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

/* Card untuk tiap project */
.project-card {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 10px;
  padding: 1.8rem;
  border-left: 3px solid var(--accent-color);
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Judul project */
.project-card h3 {
  color: #fff;
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

/* Deskripsi project */
.project-card p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

/* Footer project card */
.project-footer {
  margin-top: auto;
}

/* Label tipe project */
.project-type {
  display: inline-block;
  padding: 0.3rem 1rem;
  background: rgba(104, 211, 145, 0.1);
  color: var(--accent-color);
  border-radius: 50px;
  font-size: 0.8rem;
}

/* Timeline - Buat section pengalaman */
.timeline {
  position: relative;
  padding-left: 35px;
  margin-top: 2rem;
}

/* Garis vertikal di timeline */
.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 5px;
  bottom: 0;
  width: 2px;
  background: rgba(77, 77, 255, 0.2);
}

/* Item timeline - Tiap pengalaman */
.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}

/* Titik bulat di timeline */
.timeline-dot {
  position: absolute;
  left: -35px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-color);
  box-shadow: 0 0 0 4px var(--card-bg);
}

/* Konten timeline - Info pengalaman */
.timeline-content {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  padding: 1.5rem;
}

/* Judul pengalaman */
.timeline-content h3 {
  color: #fff;
  margin-bottom: 0.8rem;
}

/* Container untuk minat */
.interests-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

/* Card untuk tiap minat */
.interest-card {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 10px;
  padding: 1.8rem;
  border-top: 3px solid var(--accent-color);
}

/* Judul mminat */
.interest-card h3 {
  color: #fff;
  margin-bottom: 1rem;
}

/* Footer website */
footer {
  background-color: var(--darker-bg);
  color: var(--text-secondary);
  text-align: center;
  padding: 2.5rem 0;
  margin-top: 4rem;
}

/* Container konten footer */
.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Responsive Design - Buat layar hp */
@media (max-width: 768px) {
  /* Ngubah layout hero jadi vertikal */
  .hero-container {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }

  /* Ukuran container foto profil */
  .profile-image-container {
    flex: 0 0 auto;
    width: 180px;
  }

  /* Posisi divider jadi di tengah */
  .hero-divider {
    margin: 1.5rem auto;
  }

  /* Ukuran nama profil lebih kecil */
  .profile-name {
    font-size: 2.2rem;
  }

  /* Ukuran padding section lebih kecil */
  .section {
    padding: 1.8rem;
  }

  /* Penyesuaian timeline */
  .timeline {
    padding-left: 30px;
  }

  .timeline-dot {
    left: -30px;
  }

  /* Navbar jadi vertikal */
  .nav-container {
    flex-direction: column;
    gap: 1rem;
  }

  /* Menu jadi full width */
  .nav-links {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* Container untuk tag - Buat bagian interest/hobi */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

/* Styling tag yang berbeda */
.tag {
  color: var(--accent-color);
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
}

/* Styling untuk skill cards */
.skill-card {
  display: flex;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  padding: 1.2rem;
  width: 100%;
  align-items: center;
}

/* Styling icon skill yang beda */
.skill-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
  margin-right: 1.5rem;
  flex-shrink: 0;
}

/* Gradien warna untuk icon HTML */
.html-icon {
  background: linear-gradient(135deg, #ff7043, #f44336);
  color: white;
}

/* Gradien warna untuk icon CSS */
.css-icon {
  background: linear-gradient(135deg, #42a5f5, #2196f3);
  color: white;
}

/* Gradien warna untuk icon Python */
.python-icon {
  background: linear-gradient(135deg, #ffca28, #ffc107);
  color: #333;
}

/* Gradien warna untuk progress bar skill */
.skill-progress {
  height: 100%;
  border-radius: 4px;
  color: green;
}

/* Styling card project yang berbeda */
.project-card {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 15px;
  padding: 1.8rem;
  border-left: 4px solid var(--primary-color);
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Label tipe project */
.project-type {
  display: inline-block;
  padding: 0.3rem 1rem;
  background: rgba(0, 188, 212, 0.2);
  color: var(--accent-color);
  border-radius: 50px;
  font-size: 0.8rem;
}

/* Timeline yang lebih lebar */
.timeline {
  position: relative;
  padding-left: 40px;
  margin-top: 2rem;
}

/* Garis timeline berbeda */
.timeline::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 5px;
  bottom: 0;
  width: 2px;
  background: rgba(126, 87, 194, 0.3);
}

/* Titik timeline yang lebih besar */
.timeline-dot {
  position: absolute;
  left: -40px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  box-shadow: 0 0 0 4px var(--card-bg);
}

/* Konten timeline dengan background berbeda */
.timeline-content {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  padding: 1.5rem;
}

/* Card minat dengan styling berbeda */
.interest-card {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 15px;
  padding: 1.8rem;
  border-top: 4px solid var(--accent-color);
}
