.hero {
  background: url(../img/hero_2.png) no-repeat center;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
  overflow: hidden;
  height: 100vh;
  display: flex;
  position: relative;
  animation: heroSlider 18s infinite ease-in-out;
}

@keyframes heroSlider {

  0%,
  30% {
    background-image: url(../img/hero_2.png);
  }

  33%,
  63% {
    background-image: url(../img/hero_1.png);
  }

  66%,
  96% {
    background-image: url(../img/hero_3.png);
  }

  100% {
    background-image: url(../img/hero_2.png);
  }
}

.text-goldenrod {
  color: goldenrod;
}

.font-cambria {
  font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}

.navbar {
  background: rgba(255, 255, 255, 0.35) !important;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.navbar-brand h3 {
  font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
  font-weight: 600 !important;
  letter-spacing: 3px;
}

.nav-link {
  font-weight: 500;
  text-align: center;
  padding: 2px 15px !important;
  margin: auto 5px;
  position: relative;
  transition: all 0.3s ease;
}

/* Garis bawah */
.nav-link::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background: goldenrod;
  border-radius: 10px;
  transition: all 0.35s ease;
  transform: translateX(-50%);
}

/* Hover */
.nav-link:hover::after,
.nav-link.active::after {
  width: 70%;
}

/* Hover text */
.nav-link:hover {
  color: rgb(0, 89, 0) !important;
}

/* Active menu */
.nav-link.active {
  color: rgb(0, 89, 0) !important;
  font-weight: 500;
}

.hero-content h1 {
  color: rgb(0, 89, 0);
  font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
  font-weight: 700;
  font-size: 38px;
}

.hr-hero {
  background: #D0A64A;
  padding: 2px;
  border-radius: 10px;
  margin: 20px 0px;
  margin-right: 10px;
}

.btn-explore {
  background: goldenrod;
  color: #0F392F;
  border: solid 2px goldenrod;
  font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
  font-weight: 600;
  border-radius: 50px;
  letter-spacing: 0.5px;
  width: 210px;
  margin-right: 25px;
}

.btn-partner {
  background: #0f392fe6;
  color: goldenrod;
  border: solid 2px goldenrod;
  font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
  font-weight: 600;
  border-radius: 50px;
  letter-spacing: 0.5px;
  width: 210px;
}

.btn-partner:hover,
.btn-explore:hover {
  background: goldenrod;
  color: white;
  border: solid 2px goldenrod;
}

.item-hero {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50px;
  border: solid 2px white;
  padding: 6px;
  display: flex;
  align-items: center;
  line-height: 1.25;
  box-shadow: 0px 0px 10px rgba(0, 128, 0, 0.5);
  width: 250px;
  margin-top: 40px;
}

.icon-item-hero img {
  box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.3);
  border-radius: 50px;
}

.text-item-hero {
  font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
  margin-left: 10px;
  font-weight: 700;
  color: rgb(0, 89, 0);
  letter-spacing: 0.5px;
}

/* =========================
   HERO FLOATING ANIMATION
========================= */

.item-hero {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50px;
  border: solid 2px white;
  padding: 6px;
  display: flex;
  align-items: center;
  line-height: 1.25;
  box-shadow: 0px 10px 25px rgba(0, 128, 0, 0.18);
  width: 250px;
  margin-top: 40px;

  position: relative;

  /* Smooth animation */
  animation: floatLeftRight 7s ease-in-out infinite;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

/* Item genap bergerak kebalikan */
.item-hero:nth-child(even) {
  animation: floatRightLeft 7s ease-in-out infinite;
}

/* Hover lebih smooth */
.item-hero:hover {
  transform: scale(1.04);
  transition: all 0.4s ease;
  box-shadow: 0px 15px 35px rgba(0, 128, 0, 0.28);
}

/* Gerakan utama */
@keyframes floatLeftRight {
  0% {
    transform: translateX(0px);
  }

  25% {
    transform: translateX(-30px);
  }

  50% {
    transform: translateX(0px);
  }

  75% {
    transform: translateX(30px);
  }

  100% {
    transform: translateX(0px);
  }
}

/* Gerakan kebalikan */
@keyframes floatRightLeft {
  0% {
    transform: translateX(0px);
  }

  25% {
    transform: translateX(30px);
  }

  50% {
    transform: translateX(0px);
  }

  75% {
    transform: translateX(-30px);
  }

  100% {
    transform: translateX(0px);
  }
}


.btn-explore,
.btn-partner {
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.btn-explore::before,
.btn-partner::before {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 80%;
  height: 100%;
  background: rgba(255, 255, 255, 0.3);
  transform: skewX(-25deg);
  transition: 0.8s;
}

.btn-explore:hover::before,
.btn-partner:hover::before {
  left: 140%;
}