/* ============================================
   VARIABEL & RESET
   ============================================ */
:root {
  --ecopil-blue: #80c6e9;
  --ecopil-green: #80b042;
  --ecopil-green-dark: #6a9a2e;
  --ecopil-green-light: #eaf2de;
  --ecopil-yellow: #e9a71c;
  --ecopil-ice: #eaf9ff;
  --ecopil-mint: #d9f4b7;
  --ecopil-peach: #ffc698;
  --white: #ffffff;
  --dark: #2d3e1f;
  --muted: #5f6b57;
  --sage-bg: #e7f1d8;
  --cream: #fbfaf6;

  --font-display: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-left: env(safe-area-inset-left, 0px);

  --navbar-height: 75px;
}

/* ============================================
   BASE
   ============================================ */
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  overscroll-behavior-x: none;
  width: 100%;
  max-width: 100%;
  height: 100%;
  position: relative;
}

body {
  font-family: var(--font-body);
  color: #333;
  background-color: var(--white);
  margin: 0;
  padding-top: var(--navbar-height);
  overflow-y: visible;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  min-height: 100%;
  position: relative;
  transform: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Section diberi scroll-margin agar tidak tertutup navbar fixed */
section {
  scroll-margin-top: 80px;
  overflow: hidden;
  width: 100%;
  max-width: 100vw;
}

h1, h2, h3, h4, h5, h6,
.section-eyebrow,
.navbar-brand {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--dark);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--ecopil-yellow);
  outline-offset: 2px;
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ecopil-green);
  background: rgba(128, 176, 66, 0.1);
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 0.75rem;
}

/* ============================================
   PRELOADER
   ============================================ */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--ecopil-ice);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.preloader.hide {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none;
}

.preloader-content {
  text-align: center;
}

.preloader-logo {
  width: 100px;
  height: 100px;
  object-fit: contain;
  border-radius: 50%;
  animation: pulseLogo 1.5s infinite;
}

.preloader-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(128, 176, 66, 0.2);
  border-top-color: var(--ecopil-green);
  border-radius: 50%;
  margin: 20px auto 0;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pulseLogo {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar-ecopil {
  background: linear-gradient(135deg, var(--ecopil-green), var(--ecopil-blue));
  box-shadow: 0 2px 15px rgba(0,0,0,0.12);
}

.navbar-ecopil .nav-link.active {
  background-color: rgba(255,255,255,0.3);
  font-weight: 700;
}

.navbar-logo-img {
  width: 45px;
  height: 45px;
  object-fit: contain;
  background: var(--ecopil-ice);
  border-radius: 50%;
  padding: 4px;
  box-shadow: 0 0 0 1px var(--ecopil-mint);
  transition: transform 0.3s ease;
}

.navbar-logo-img:hover {
  transform: scale(1.1);
}

.navbar-ecopil .navbar-brand {
  font-size: 1.8rem;
  letter-spacing: 1px;
}

.navbar-ecopil .nav-link {
  font-weight: 500;
  margin: 0 5px;
  transition: all 0.3s ease;
  border-radius: 20px;
  padding: 8px 16px;
  color: white !important;
}

.navbar-ecopil .nav-link:hover {
  background-color: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

/* ============================================
   HERO SECTION (Desain Grid + Aksen Organik)
   ============================================ */
.hero-section {
  position: relative;
  overflow: hidden;
  background: white;
  padding: 60px 0 50px;
  min-height: auto;
}

.hero-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-leaf-swoosh {
  position: absolute;
  top: 6%;
  left: -4%;
  width: 260px;
  opacity: 0.35;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: var(--ecopil-green-dark);
  background: var(--white);
  border: 1px solid #dce8cb;
  padding: 7px 16px 7px 12px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(76, 122, 40, 0.06);
}

.eyebrow i {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ecopil-green-light);
  color: var(--ecopil-green);
  border-radius: 50%;
  font-size: 0.7rem;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.1rem, 3.6vw, 3.15rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 22px 0 0;
  color: var(--dark);
}

.hero-title .accent {
  color: var(--ecopil-green);
  position: relative;
  display: inline-block;
}

.hero-title .accent svg {
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 100%;
  height: 14px;
}

.hero-lead {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 480px;
  margin: 20px 0 0;
}

.hero-cta {
  display: flex;
  gap: 14px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.hero-trust {
  display: flex;
  gap: 28px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark);
}

.trust-item .ico {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid #dce8cb;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ecopil-green);
  font-size: 0.75rem;
}

/* Visual Produk di Hero */
.hero-visual {
  position: relative;
  z-index: 1;
}

/* .arch-stage {
  position: relative;
  border-radius: 260px 260px 24px 24px;
  background: linear-gradient(160deg, #eaf2de 0%, #fbfaf6 55%, #f3f6ec 100%);
  border: 1px solid #e1eacf;
  padding: 44px 30px 30px;
  box-shadow:
    0 30px 60px -20px rgba(51, 83, 27, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
} */

.arch-stage img {
  width: 100%;
  max-width: 500px;
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 18px 24px rgba(30, 42, 22, 0.16));
}

.arch-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid #e1eacf;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--dark);
  box-shadow: 0 12px 24px rgba(30, 42, 22, 0.12);
}

.arch-badge i {
  color: var(--ecopil-yellow);
}

.badge-topright {
  top: 13%;
  right: 15%;
}

.badge-bottomleft {
  bottom: 10%;
  left: 5%;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-ecopil {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 26px;
  border-radius: 12px;
  background: var(--ecopil-green);
  color: var(--white);
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(76, 122, 40, 0.28);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  border: 1px solid var(--ecopil-green);
}

.btn-ecopil:hover {
  background: var(--ecopil-green-dark);
  border-color: var(--ecopil-green-dark);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(76, 122, 40, 0.34);
  color: #fff;
}

.btn-ecopil-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 24px;
  border-radius: 12px;
  background: transparent;
  color: var(--dark);
  text-decoration: none;
  border: 1.5px solid #d6e0c7;
  transition: all 0.18s ease;
}

.btn-ecopil-outline:hover {
  border-color: var(--ecopil-green);
  color: var(--ecopil-green-dark);
  background: var(--white);
}

/* ============================================
   BACKGROUND KOLASE
   ============================================ */
#tentang-kami {
  background: linear-gradient(rgba(255, 255, 255, 0.93), rgba(255, 255, 255, 0.93)),
    url('/images/kolase-kegiatan.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

#cara-pesan {
  background: linear-gradient(rgba(217, 244, 183, 0.90), rgba(217, 244, 183, 0.90)),
    url('/images/kolase-produk.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.bg-ice { background-color: var(--ecopil-ice); }
.bg-mint { background-color: var(--ecopil-mint); }

/* ============================================
   CARDS BASE
   ============================================ */
.feature-card,
.product-card,
.testimoni-card,
.contact-card {
  background: var(--white);
  border: 1px solid rgba(128, 176, 66, 0.1);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(45, 62, 31, 0.05), 0 1px 3px rgba(0, 0, 0, 0.02);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-card:hover,
.product-card:hover,
.testimoni-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(45, 62, 31, 0.1), 0 4px 12px rgba(0, 0, 0, 0.03);
  border-color: rgba(128, 176, 66, 0.25);
}

/* ============================================
   FEATURE CARD
   ============================================ */
.feature-card {
  height: 100%;
  padding: 2.5rem 1.75rem;
}

.feature-icon {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 2rem;
  color: white;
}

.icon-green { background: linear-gradient(145deg, var(--ecopil-green), var(--ecopil-green-dark)); }
.icon-blue { background: linear-gradient(145deg, var(--ecopil-blue), #5aa8d4); }
.icon-yellow { background: linear-gradient(145deg, var(--ecopil-yellow), #c98d13); }

.feature-card h5 {
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ============================================
   PRODUCT CARD
   ============================================ */
.product-card {
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  height: 100%;
  max-width: 100%;
}

.product-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  color: white;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 6px 16px;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.badge-blue { background: var(--ecopil-blue); }
.badge-peach { background: var(--ecopil-peach); color: var(--dark); }

.product-img-wrap {
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  padding: 0;
  margin: 0;
  transition: transform 0.3s;
}

.product-body {
  padding: 1.75rem 1.5rem 2rem;
}

.price-text {
  color: var(--ecopil-yellow);
  font-weight: bold;
}

/* ============================================
   CARA PEMESANAN
   ============================================ */
.cara-pesan-toggle {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: white;
  text-decoration: none;
  background: linear-gradient(135deg, var(--ecopil-green), var(--ecopil-green-dark));
  padding: 16px 36px;
  border-radius: 40px;
  box-shadow: 0 10px 25px rgba(128, 176, 66, 0.35);
  transition: all 0.3s ease;
}

.cara-pesan-toggle:hover {
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(128, 176, 66, 0.5);
}

.toggle-chevron {
  transition: transform 0.3s ease;
}

.cara-pesan-toggle[aria-expanded="true"] .toggle-chevron {
  transform: rotate(180deg);
}

.order-method-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: var(--white);
  border-radius: 18px;
  padding: 2rem 1rem;
  text-decoration: none;
  color: var(--dark);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  height: 100%;
}

.order-method-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.14);
  color: var(--dark);
}

.order-method-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.order-method-card small {
  color: var(--muted);
}

/* ============================================
   TESTIMONI
   ============================================ */
.testimoni-card {
  padding: 2rem;
  position: relative;
}

.testimoni-card::before {
  content: '\201C';
  font-family: Georgia, serif;
  font-size: 4rem;
  color: var(--ecopil-peach);
  position: absolute;
  top: -5px;
  left: 20px;
  opacity: 0.6;
  line-height: 1;
}

.testimoni-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.stars {
  color: var(--ecopil-yellow);
  margin-bottom: 0.75rem;
}

.testimoni-text {
  font-style: italic;
  color: #4a4a4a;
  margin-bottom: 1rem;
}

/* ============================================
   FAQ ACCORDION
   ============================================ */
.accordion-item {
  border: none;
  margin-bottom: 12px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.accordion-button {
  font-weight: 600;
  color: var(--dark);
}

.accordion-button:not(.collapsed) {
  background-color: var(--ecopil-mint);
  color: var(--dark);
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: 0 0 0 3px rgba(128, 176, 66, 0.3);
}

/* ============================================
   KONTAK
   ============================================ */
.contact-card {
  border-radius: 20px;
  padding: 2rem;
}

.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 1.5rem;
}

.contact-row:last-child {
  margin-bottom: 0;
}

.contact-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(128, 176, 66, 0.12);
  color: var(--ecopil-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

/* ============================================
   FOOTER
   ============================================ */
.footer-ecopil {
  background: linear-gradient(135deg, var(--ecopil-green), var(--ecopil-blue));
  color: white;
}

.footer-ecopil a {
  color: white;
  transition: opacity 0.3s;
}

.footer-ecopil a:hover {
  opacity: 0.75;
}

.footer-tagline {
  opacity: 0.9;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.footer-divider {
  border-color: rgba(255, 255, 255, 0.3);
  max-width: 200px;
  margin: 1.5rem auto;
}

/* ============================================
   FLOATING BUTTONS
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: calc(100px + var(--safe-bottom));
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--ecopil-green);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) translateZ(0);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
  z-index: 10000;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) translateZ(0);
}

.back-to-top:hover {
  background: var(--dark);
  transform: translateY(-3px) translateZ(0);
}

.whatsapp-float {
  position: fixed;
  bottom: calc(24px + var(--safe-bottom));
  right: 24px;
  width: 58px;
  height: 58px;
  background: #25d366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  z-index: 10000;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  animation: pulseWa 2.5s ease-in-out infinite;
  transform: translateZ(0);
}

.whatsapp-float:hover {
  color: white;
  transform: scale(1.1) translateZ(0);
}

@keyframes pulseWa {
  0%, 100% {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25), 0 0 0 0 rgba(37, 211, 102, 0.5);
  }
  50% {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25), 0 0 0 12px rgba(37, 211, 102, 0);
  }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 991px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta,
  .hero-trust {
    justify-content: center;
  }

  .arch-stage {
    max-width: 420px;
    margin: 0 auto;
  }

  .badge-topright,
  .badge-bottomleft {
    display: none;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 60px 0 40px;
  }

  .logo-hero-wrap {
    justify-content: center;
  }

  .hero-grid {
    gap: 32px;
  }

  .hero-title {
    justify-content: center;
    margin-bottom: 12px;
  }

  .hero-lead {
    margin: 16px auto 0;
    font-size: 0.95rem;
  }

  .hero-cta {
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin-top: 24px;
  }

  .btn-ecopil,
  .btn-ecopil-outline {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
  }

  .arch-stage img {
    max-width: 260px;
    margin: 20px auto 0;
  }

  .back-to-top {
    width: 40px;
    height: 40px;
    bottom: calc(85px + var(--safe-bottom));
    right: 16px;
  }

  .whatsapp-float {
    width: 50px;
    height: 50px;
    font-size: 1.4rem;
    bottom: calc(16px + var(--safe-bottom));
    right: 16px;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding: 64px 0 56px;
  }

  .hero-cta {
    flex-direction: column;
  }

  .btn-ecopil,
  .btn-ecopil-outline {
    justify-content: center;
  }
}

/* ============================================
   ACCESSIBILITY: REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================
   MICRO-INTERACTIONS & HOVER EFFECTS
   ============================================ */

/* 1. Tombol umum: efek angkat dan bayangan */
.btn-ecopil,
.btn-ecopil-outline {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.25s ease,
              background-color 0.25s ease;
  will-change: transform;
}

.btn-ecopil:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 28px rgba(128, 176, 66, 0.35);
}

.btn-ecopil-outline:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 20px rgba(128, 176, 66, 0.15);
}

.btn-ecopil:active,
.btn-ecopil-outline:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 2. Kartu feature & produk: angkat lebih natural + border glow */
.feature-card,
.product-card,
.testimoni-card {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s ease,
              border-color 0.35s ease;
  will-change: transform;
}

.feature-card:hover,
.product-card:hover,
.testimoni-card:hover {
  transform: translateY(-10px) scale(1.01);
  border-color: rgba(128, 176, 66, 0.45);
  box-shadow: 0 24px 48px rgba(45, 62, 31, 0.12),
              0 0 0 4px rgba(128, 176, 66, 0.08);
}

/* 3. Gambar produk: zoom halus di dalam wadah */
.product-img-wrap {
  transition: transform 0.4s ease;
}

.product-card:hover .product-img {
  transform: scale(1.06);
}

/* 4. Ikon fitur: putar sedikit saat hover */
.feature-icon {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.feature-card:hover .feature-icon {
  transform: rotate(-8deg) scale(1.1);
}

/* 5. Avatar testimoni: timbul */
.testimoni-avatar {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimoni-card:hover .testimoni-avatar {
  transform: scale(1.1);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* 6. Link navbar: garis bawah animasi */
.navbar-ecopil .nav-link {
  position: relative;
  overflow: hidden;
}

.navbar-ecopil .nav-link::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 0;
  height: 2px;
  transition: width 0.3s ease, left 0.3s ease;
  border-radius: 2px;
}

.navbar-ecopil .nav-link:hover::after,
.navbar-ecopil .nav-link.active::after {
  width: 60%;
  left: 20%;
}

/* 7. Tombol sosial media di footer: bounce halus */
.footer-ecopil .btn-outline-light {
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
              background-color 0.25s ease;
}

.footer-ecopil .btn-outline-light:hover {
  transform: translateY(-6px) scale(1.1);
  background-color: rgba(255, 255, 255, 0.1);
}

/* 8. Tombol WhatsApp mengambang: denyut + rotasi ikon */
.whatsapp-float {
  transition: transform 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1) rotate(5deg);
}

/* 9. Tombol back to top: muncul dengan halus */
.back-to-top {
  transition: opacity 0.3s ease, visibility 0.3s ease,
              transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              background-color 0.3s ease;
}

.back-to-top.visible {
  transform: translateY(0) translateZ(0);
}

/* 10. Efek selection warna natural */
::selection {
  background: var(--ecopil-mint);
  color: var(--dark);
}

/* 11. Scrollbar halus (opsional, untuk desktop) */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--ecopil-ice);
}

::-webkit-scrollbar-thumb {
  background: var(--ecopil-blue);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--ecopil-green-dark);
}