.jumbotron {
  padding-top: 2rem;
  background-color: #e2edff;
}
/* Navbar */
.navbar-custom {
  background-color: #5a67d8; /* Warna mendekati hero */
  transition: top 0.3s ease-in-out, opacity 0.5s ease-in-out;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Bayangan bawah */
  width: 100%;
  opacity: 0;
  top: -100px;
  position: fixed;
  z-index: 999;
}
.navbar-visible {
  opacity: 1;
  top: 0;
}
.nav-link:hover,
.nav-link:focus,
.nav-link.active {
  color: #ffffff !important; /* atau warna terang lain */
  font-weight: 600; /* opsional: tebalkan */
}
.nav-link {
  position: relative;
  color: #fff;
  text-decoration: none;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background-color: #ffffff; /* Warna garis */
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}
[id] {
  scroll-margin-top: 80px; /* sesuaikan dengan tinggi navbar */
}
h4 {
  scroll-margin-top: 80px;
}

/* garis dibawah h4 */
.custom-hr {
  width: 60px; /* Atur lebar garis */
  height: 2px; /* Ketebalan garis */
  background-color: rgb(118, 116, 116); /* Warna garis */
  opacity: 1; /* Supaya tidak transparan */
  border: none; /* Hilangkan garis default */
  margin-top: 8px; /* Jarak dari h4 */
}
/* gambar di card portofolio */
.img-fixed {
  width: 100%; /* Pastikan selebar kartu */
  height: 200px; /* Atur tinggi yang seragam */
  object-fit: cover; /* Crop gambar secara proporsional */
  object-position: center; /* Fokus pada bagian tengah gambar */
}
/* Animasi muncul */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Animasi zoom card */
.card:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Wrapper mengatur posisi tombol */
.floating-buttons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  gap: 10px; /* Jarak antar tombol */
  z-index: 9999;
}

/* Gaya umum tombol */

.scroll-to-top {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center; /* vertikal tengah */
  justify-content: center; /* horizontal tengah */
  background-color: #5a67d8;
  color: white;
  font-size: 22px;
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.scroll-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.scroll-to-top:hover {
  background-color: #434190;
}
