/* Custom Variable untuk HDe Technology */
:root {
  --hde-blue: #1d4ed8; /* Biru Utama (Blue-700) */
  --hde-blue-dark: #1e3a8a; /* Biru Gelap (Blue-900) */
  --hde-accent: #60a5fa; /* Biru Muda */
  --hde-gray-bg: #f8fafc; /* Background Abu-abu Muda */
}

/* Base Style */
body {
  font-family: "Inter", sans-serif;
  scroll-behavior: smooth;
}

/* Custom Utilities yang akan menimpa Tailwind jika perlu */
.bg-hde {
  background-color: var(--hde-blue);
}
.text-hde {
  color: var(--hde-blue);
}

.btn-primary {
  background-color: var(--hde-blue);
  color: white;
  padding: 1rem 2.5rem;
  border-radius: 9999px;
  font-weight: 700;
  transition: all 0.3s ease;
  display: inline-block;
  text-align: center;
}

.btn-primary:hover {
  background-color: var(--hde-blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(29, 78, 216, 0.2);
}

/* Card Styling agar seragam */
.hde-card {
  background: white;
  border-radius: 2rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
  transition: transform 0.3s ease;
}

.hde-card:hover {
  transform: translateY(-5px);
}
.custom-scroll::-webkit-scrollbar {
  width: 4px;
}
.custom-scroll::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}
.custom-scroll::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}

.hidden {
  display: none;
}
.animate-fade-in {
  animation: fadeIn 0.4s ease-out;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Container Utama */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  animation: wa-float-move 3s ease-in-out infinite;
}

/* Konten Tombol */
.whatsapp-content {
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: white;
  padding: 12px;
  border-radius: 50px;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
  position: relative;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Ikon WA */
.whatsapp-icon {
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.2));
}

/* Teks yang Muncul (Hanya Desktop) */
.whatsapp-text {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  transition:
    max-width 0.5s ease,
    padding 0.3s ease,
    opacity 0.3s ease;
  font-weight: 600;
  font-family: "Inter", sans-serif;
  opacity: 0;
  font-size: 15px;
}

/* Hover Efek (Desktop Only) */
@media (min-width: 769px) {
  .whatsapp-float:hover .whatsapp-content {
    padding: 12px 20px;
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
  }

  .whatsapp-float:hover .whatsapp-text {
    max-width: 200px;
    padding-right: 12px;
    opacity: 1;
  }
}

/* --- TAMPILAN MOBILE --- */
@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    animation: none; /* Matikan animasi melayang di mobile agar stabil saat di-scroll */
  }

  .whatsapp-content {
    padding: 10px;
    border-radius: 50%; /* Bulat sempurna di mobile */
    width: 55px;
    height: 55px;
    justify-content: center;
  }

  .whatsapp-text {
    display: none; /* Sembunyikan teks total di HP */
  }

  .whatsapp-icon {
    width: 30px;
    height: 30px;
    font-size: 24px;
  }
}

/* Efek Aura Berdenyut */
.whatsapp-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: #25d366;
  border-radius: 50px;
  z-index: -1;
  animation: wa-pulse 2s infinite;
}

@keyframes wa-pulse {
  0% {
    transform: scale(0.9);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

@keyframes wa-float-move {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
  100% {
    transform: translateY(0);
  }
}
