/* Import font dari Google */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

:root {
  --primary-color: #2F3E5A; /* Biru Tua */
  --secondary-color: #0d6efd; /* Biru Bootstrap (untuk link) */
  --light-gray: #f8f9fa;
  --dark-text: #333;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--dark-text);
  /* Atribut untuk Scrollspy */
  position: relative; 
}

/* --- Helper Class --- */
.section {
  padding-top: 5rem;
  padding-bottom: 5rem;
}
.section-title {
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 3rem;
  text-align: center;
}
.bg-primary-dark {
  background-color: var(--primary-color);
  color: white;
}
.bg-light-gray {
  background-color: var(--light-gray);
}

/* --- Navbar --- */
.navbar {
  background-color: white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary-color) !important;
}
.navbar-nav .nav-link {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1px;
  color: var(--dark-text);
  margin-left: 1rem;
  margin-right: 1rem;
}
.navbar-nav .nav-link.active,
.navbar-nav .nav-link:hover {
  color: var(--secondary-color) !important;
}

/* --- #home (Hero Section) --- */
#home {
  background-color: var(--light-gray);
  padding-top: 10rem; /* Kasih jarak dari navbar */
  padding-bottom: 6rem;
}
#home .hero-img {
  width: 100%;
  max-width: 350px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
#home .hero-info h1 {
  font-weight: 700;
  color: var(--primary-color);
}
#home .hero-info h3 {
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}
#home .hero-info p {
  font-size: 1.1rem;
  line-height: 1.7;
}
#home .hero-info .list-group-item {
  border: none;
  padding-left: 0;
  background-color: transparent;
}
#home .hero-info .list-group-item strong {
  color: var(--primary-color);
}

/* --- #education & #experience --- */
.timeline-item {
  position: relative;
  padding-bottom: 2.5rem;
  padding-left: 2.5rem; /* Ruang untuk garis dan titik */
  border-left: 2px solid var(--primary-color);
}
/* Titik di timeline */
.timeline-item::before {
  content: '';
  position: absolute;
  left: -9px; /* Posisi titik di atas garis */
  top: 5px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--primary-color);
  border: 2px solid white;
}
.timeline-item h5.year {
  font-weight: 700;
  color: var(--dark-text);
}
.timeline-item h4.title {
  font-weight: 600;
  color: var(--primary-color);
}
.timeline-item h5.subtitle {
  font-weight: 500;
  color: #777;
  margin-bottom: 1rem;
  font-style: italic;
}
.timeline-item p {
  white-space: pre-line; /* Agar format baris baru dari DB tetap tampil */
}

/* --- #skills --- */
.skill-item {
  background-color: rgba(255, 255, 255, 0.1); /* Transparan putih */
  padding: 1.5rem 2rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  color: white;
  text-align: center;
}
.skill-item h5 {
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.skill-item p {
  margin-bottom: 0;
  opacity: 0.8;
  font-style: italic;
}

/* --- #expertise --- */
.expertise-item h4 {
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

/* --- #contact --- */
.contact-info .info-item {
  margin-bottom: 1rem;
}
.contact-info .info-item i {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-right: 1rem;
}
.contact-info .info-item strong {
  font-size: 1.1rem;
  color: var(--primary-color);
}

/* --- Footer --- */
footer {
  padding-top: 3rem;
  padding-bottom: 3rem;
}
footer .social-links a {
  font-size: 1.5rem;
  color: white;
  margin: 0 0.75rem;
  transition: opacity 0.3s;
}
footer .social-links a:hover {
  opacity: 0.8;
}