/* ===== Mutiara Cargo — custom styles ===== */

/* Hide Alpine cloaked elements until Alpine initializes */
[x-cloak] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

/* Collapse animation for Alpine x-collapse fallback */
[x-collapse] {
  overflow: hidden;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #1d3e7d;
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
  background: #15306a;
}

::selection {
  background-color: #1d3e7d;
  color: #ffffff;
}

/* Grid background pattern (Quote section) */
.bg-grid {
  background-image:
    linear-gradient(to right, rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
}

/* Dotted world-map-ish pattern (Supply Chain dark section) */
.bg-worldmap {
  background-image: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 1px,
    transparent 1px
  );
  background-size: 24px 24px;
}

/* Smooth card hover lift */
.card-lift {
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}
.card-lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.15);
}



/* ===============================
   PREMIUM SOCIAL ICON (HEADER)
================================= */

.social-icon {
  width: 30px;   /* sebelumnya 44px */
  height: 30px;
  border-radius: 9999px;
  background: #ffffff;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 14px;

  /* Shadow lebih kecil & tajam */
  box-shadow:
    2px 2px 6px rgba(0,0,0,0.08),
    -1px -1px 3px rgba(255,255,255,0.6);

  transition: all 0.25s ease;
}

/* Hover naik + glow */
.social-icon:hover {
  transform: translateY(-3px) scale(1.04);

  box-shadow:
    4px 6px 12px rgba(0,0,0,0.12);
}

/* Glow icon */
.social-icon:hover i {
  filter: none; /* hilangkan glow berlebihan */
}

/* DEFAULT (di hero / belum scroll) */
.social-icon {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.25);
}

/* ICON WARNA PUTIH SAAT HERO */
header:not(.scrolled) .social-icon i {
  color: white !important;
}

/* SAAT SCROLL (jadi solid) */
header.scrolled .social-icon {
  background: #ffffff;
  border: none;

  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* ICON WARNA ASLI SAAT SCROLL */
header.scrolled .social-icon i {
  header.scrolled .brand-instagram {
  color: #E4405F !important;
}

header.scrolled .brand-facebook {
  color: #1877F2 !important;
}

header.scrolled .brand-linkedin {
  color: #0A66C2 !important;
}

header.scrolled .brand-whatsapp {
  color: #25D366 !important;
}
}

/* FLOATING WHATSAPP */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 64px;
  height: 64px;
  background: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 15px 30px rgba(0,0,0,0.25);
  z-index: 9999;
  transition: all 0.3s ease;
}

/* HOVER EFFECT (AGENCY STYLE) */
.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}

/* ANIMASI PULSE HALUS */
.wa-float::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.5);
  animation: waPulse 2s infinite;
  z-index: -1;
}

@keyframes waPulse {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  70% {
    transform: scale(1.6);
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}


/* MARQUEE LOGO */
.marquee {
  animation: scrollLeft 15s linear infinite;
}

.logo {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #94a3b8; /* slate-400 */
  transition: color 0.3s;
}

.logo:hover {
  color: #1e293b; /* slate-800 */
}

@keyframes scrollLeft {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}