/* Custom Styles for ARMEY CUSTOM - PT ARMEY DIGITAMA NUSANTARA 
   Brand Theme: Royal Violet / Electric Purple & Amber Gold (Senada dengan Instagram @armey_custom & ARMEY PRO ERP)
*/
:root {
  --primary-purple: #7c3aed;
  --primary-purple-dark: #5b21b6;
  --primary-indigo: #4f46e5;
  --primary-navy: #0f172a;
  --accent-amber: #f59e0b;
  --accent-gold: #d97706;
  --bg-fresh: #ffffff;
  --bg-subtle: #f8fafc;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  scroll-behavior: smooth;
  color: #1e293b;
  background-color: #f8fafc;
}

.font-heading {
  font-family: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 6px;
  border: 2px solid #f1f5f9;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* ========================================= */
/* ORNAMEN & BACKGROUND PATTERNS (SOFTER)    */
/* ========================================= */

.bg-dot-pattern {
  background-color: #ffffff;
  background-image: radial-gradient(rgba(139, 92, 246, 0.18) 0.75px, transparent 0.75px);
  background-size: 24px 24px;
}

.bg-dot-pattern-slate {
  background-color: #f8fafc;
  background-image: radial-gradient(rgba(148, 163, 184, 0.18) 0.75px, transparent 0.75px);
  background-size: 26px 26px;
}

.bg-grid-pattern {
  background-image: linear-gradient(to right, rgba(203, 213, 225, 0.35) 1px, transparent 1px),
                    linear-gradient(to bottom, rgba(203, 213, 225, 0.35) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* ========================================= */
/* ANIMASI ORNAMEN BERGERAK (FLOATING ORNAMENTS) */
/* ========================================= */

@keyframes float-slow {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-16px) rotate(3deg);
  }
}

@keyframes float-reverse {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(14px) rotate(-3deg);
  }
}

@keyframes pulse-glow {
  0%, 100% {
    opacity: 0.18;
    transform: scale(1);
  }
  50% {
    opacity: 0.32;
    transform: scale(1.1);
  }
}

@keyframes spin-slow {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.animate-float-slow {
  animation: float-slow 7s ease-in-out infinite;
}

.animate-float-reverse {
  animation: float-reverse 9s ease-in-out infinite;
}

.animate-pulse-glow {
  animation: pulse-glow 6s ease-in-out infinite;
}

.animate-spin-slow {
  animation: spin-slow 35s linear infinite;
}

/* 3. Soft Ambient Glow Gradients (Violet & Amber) */
.glow-orb-purple {
  background: radial-gradient(circle, rgba(124, 58, 237, 0.22) 0%, rgba(196, 181, 253, 0.08) 50%, transparent 70%);
}

.glow-orb-amber {
  background: radial-gradient(circle, rgba(245, 158, 11, 0.20) 0%, rgba(254, 243, 199, 0.08) 50%, transparent 70%);
}

.glow-orb-indigo {
  background: radial-gradient(circle, rgba(79, 70, 229, 0.18) 0%, rgba(224, 231, 255, 0.06) 50%, transparent 70%);
}

/* 4. Fresh Cards & Glassmorphism */
.card-fresh {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-fresh:hover {
  border-color: #c4b5fd;
  box-shadow: 0 16px 32px -4px rgba(109, 40, 217, 0.1);
  transform: translateY(-3px);
}

.glass-header {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
}

/* Subtle Hover Lift */
.hover-lift {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px -8px rgba(109, 40, 217, 0.12);
}

/* Pulse animation */
@keyframes pulse-ring {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(124, 58, 237, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(124, 58, 237, 0);
  }
}

.pulse-step {
  animation: pulse-ring 2s infinite;
}

/* Range input */
input[type=range] {
  accent-color: #7c3aed;
}

/* Gradients */
.gradient-purple {
  background: linear-gradient(135deg, #6d28d9 0%, #7c3aed 50%, #4f46e5 100%);
}

.gradient-purple-amber {
  background: linear-gradient(135deg, #7c3aed 0%, #6366f1 60%, #f59e0b 100%);
}

.gradient-text-purple {
  background: linear-gradient(135deg, #6d28d9 0%, #7c3aed 60%, #4f46e5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-gold {
  background: linear-gradient(135deg, #d97706 0%, #f59e0b 50%, #b45309 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Price tag badge from Instagram */
.badge-price {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 800;
  background: #f59e0b;
  color: #0f172a;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
}

/* Industrial Badges */
.badge-industrial {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ======================================================== */
/* SLIDER GALERI MOCKUP OTOMATIS & EFEK POP-UP INTERAKTIF   */
/* ======================================================== */
@keyframes mockupMarqueeLeft {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

@keyframes mockupMarqueeRight {
  0% { transform: translate3d(-50%, 0, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

.marquee-track-left {
  display: flex;
  width: max-content;
  animation: mockupMarqueeLeft 90s linear infinite;
  will-change: transform;
}

.marquee-track-right {
  display: flex;
  width: max-content;
  animation: mockupMarqueeRight 100s linear infinite;
  will-change: transform;
}

.marquee-track-left:hover,
.marquee-track-right:hover,
.marquee-paused .marquee-track-left,
.marquee-paused .marquee-track-right {
  animation-play-state: paused !important;
}

/* Kartu Mockup dengan Efek Pop-up Hover */
.mockup-item-card {
  transition: transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.32s ease, border-color 0.25s ease;
  will-change: transform;
}

.mockup-item-card:hover {
  transform: translateY(-8px) scale(1.035);
  box-shadow: 0 20px 30px -10px rgba(124, 58, 237, 0.22), 0 0 0 1.5px rgba(168, 85, 247, 0.4);
  z-index: 20;
}

/* Micro Pop-up Badge pada Kartu */
.mockup-popup-badge {
  transform: scale(0.8) translateY(6px);
  opacity: 0;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mockup-item-card:hover .mockup-popup-badge {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* Animasi Pop-Up Dialog Modal Cepat */
@keyframes popInModal {
  0% {
    opacity: 0;
    transform: scale(0.9) translateY(12px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.animate-popup-in {
  animation: popInModal 0.28s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Print styles for SPK */
@media print {
  body * {
    visibility: hidden;
  }
  #spk-print-area, #spk-print-area * {
    visibility: visible;
  }
  #spk-print-area {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    background: #ffffff !important;
    color: #0f172a !important;
  }
}

/* Machine Card Animated Shimmer & Hover Glow */
.machine-card-shine {
  position: relative;
  overflow: hidden;
}

.machine-card-shine::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    60deg,
    transparent 35%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 65%
  );
  transform: translateX(-100%) rotate(25deg);
  transition: transform 0.75s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 10;
}

.group:hover .machine-card-shine::after {
  transform: translateX(100%) rotate(25deg);
}

/* Google Maps Route Animated Dash Flow */
@keyframes route-flow {
  0% { stroke-dashoffset: 32; }
  100% { stroke-dashoffset: 0; }
}

.animate-route-flow {
  stroke-dasharray: 8 8;
  animation: route-flow 1s linear infinite;
}

@keyframes map-sonar {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(2.4); opacity: 0; }
}

.animate-map-sonar {
  animation: map-sonar 2s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

