/* Animasi untuk carousel */
.carousel-slide {
  transition: opacity 1s ease-in-out;
}
/* Animasi untuk navbar link */
.nav-link {
  position: relative;
  transition: all 0.3s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: #059669; /* Hijau lebih gelap */
  transition: width 0.3s ease;
}
.nav-link:hover::after {
  width: 100%;
}
.nav-link.active {
  color: #059669;
}
.nav-link.active::after {
  width: 100%;
}
/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: linear-gradient(90deg, #10b981, #34d399, #059669);
  z-index: 100;
  transition: width 0.1s ease;
  box-shadow: 0 2px 4px rgba(5, 150, 105, 0.3);
}
/* Glassmorphism navbar */
.glass-nav {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(5, 150, 105, 0.1);
}
/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
  background: #10b981;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: #059669;
}
/* Card hover effect */
.hover-card {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}
.hover-card:hover {
  transform: translateY(-8px);
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
/* Hero overlay */
.hero-overlay {
  background: linear-gradient(
    90deg,
    rgba(8, 8, 8, 0.815) 0%,
    rgba(0, 0, 0, 0.822) 100%
  );
}
/* Branch card image */
.branch-card {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
}
.branch-card img {
  transition: transform 0.5s ease;
}
.branch-card:hover img {
  transform: scale(1.1);
}
.branch-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0.3) 50%,
    transparent 100%
  );
}
