/* =====================================================
   RESET
===================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", sans-serif;
  background: #f8fafc;
  overflow-x: hidden;
}

/* =====================================================
   NAVBAR
===================================================== */
.custom-navbar {
  top: 0;
  width: 100%;
  background: linear-gradient(135deg, #166534, #22c55e);
  padding: 28px 0;
  transition: all 0.3s ease;
  z-index: 1050;
  /* border-bottom-left-radius: 50px;
  border-bottom-right-radius: 50px; */
}

/* navbar saat scroll dengan efek BLUR */
.custom-navbar.scrolled {
  padding: 8px 0;

  /* 1. Ubah warna menjadi transparan (RGBA) 
     Saya mengonversi warna hijau Anda (#14532d & #16a34a) menjadi RGBA dengan opasitas 0.85 
  */
  background: linear-gradient(
    135deg,
    rgba(20, 83, 45, 0.85),
    rgba(22, 163, 74, 0.85)
  );

  /* 2. Tambahkan efek blur */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); /* Penting untuk browser Safari/Apple */

  /* Bayangan tetap ada */
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);

  /* Opsional: Tambahkan border tipis agar batas kaca terlihat lebih jelas */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* link */
.custom-navbar .nav-link {
  color: #fff !important;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 20px;
  transition: 0.3s;
}

.custom-navbar .nav-link:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* dropdown FIX */
.custom-navbar .navbar-nav {
  overflow: visible !important;
}

.nav-item.dropdown {
  position: relative;
}

.dropdown-menu {
  z-index: 9999;
}

/* mobile navbar */
@media (max-width: 991px) {
  .navbar-collapse {
    background: #ffffff;
    margin-top: 15px;
    border-radius: 16px;
    padding: 15px;
  }

  .custom-navbar .nav-link {
    color: #14532d !important;
  }
}

/* =====================================================
   HERO SECTION
===================================================== */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #166534, #22c55e);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-text {
  color: #ffffff;
}

.hero-text h4 {
  font-size: 1rem;
  font-weight: 500;
  opacity: 0.9;
  margin-bottom: 10px;
}

.hero-text h1 {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 25px;
}

.hero-btn {
  display: inline-block;
  background: #ffffff;
  color: #14532d;
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: 700;
  text-decoration: none;
  transition: 0.3s;
}

.hero-btn:hover {
  background: #dcfce7;
}

/* =====================================================
   HERO IMAGE + RING (FINAL FIX)
===================================================== */
.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* gambar */
.hero-image img {
  width: 100%;
  max-width: 460px;
  height: 460px;
  object-fit: cover;
  border: 14px solid #ffffff;
  border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
  z-index: 2;
  animation:
    ultra-morph 14s ease-in-out infinite,
    float-soft 7s ease-in-out infinite;
}

/* RING HALUS & AMAN */
.hero-image::before {
  content: "";
  position: absolute;
  width: 110%;
  height: 110%;
  max-width: 520px;
  max-height: 520px;
  border-radius: 50%;
  z-index: 1;
  animation:
    ring-spin 30s linear infinite,
    ring-float 8s ease-in-out infinite;
}

/* =====================================================
   HERO RESPONSIVE
===================================================== */
@media (max-width: 991px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 2.2rem;
  }

  .hero-image {
    margin-top: 40px;
  }
}

/* =====================================================
   ANIMATIONS
===================================================== */

/* morph gambar */
@keyframes ultra-morph {
  0% {
    border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
  }
  50% {
    border-radius: 58% 42% 30% 70% / 55% 60% 40% 45%;
  }
  100% {
    border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
  }
}

/* floating lembut */
@keyframes float-soft {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-18px);
  }
  100% {
    transform: translateY(0);
  }
}

/* ring muter */
@keyframes ring-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* ring naik turun dikit */
@keyframes ring-float {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.03);
  }
  100% {
    transform: scale(1);
  }
}
