@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,400&display=swap');

/* Typography & Base Styles */
body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: #FCFBF9; /* Premium off-white */
  color: #262626; /* Dark charcoal text */
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: -0.02em;
}

.font-serif-title {
  font-family: 'Playfair Display', serif;
}

/* Accordion Smooth Transitions */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), padding 0.35s ease-out;
}

.accordion-item.active .accordion-content {
  max-height: 600px;
  transition: max-height 0.45s cubic-bezier(0.16, 1, 0.3, 1), padding 0.45s ease-in;
}

.accordion-item {
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.accordion-item:hover {
  border-color: #1A3B5C;
}

.accordion-item.active {
  border-color: #B89047;
  background-color: #FFFFFF;
  box-shadow: 0 4px 14px -3px rgba(26, 59, 92, 0.06);
}

/* Custom premium scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #FCFBF9;
}

::-webkit-scrollbar-thumb {
  background: #EAE6DF;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #B89047;
}

/* Trust signal strip styling */
.trust-strip {
  background: linear-gradient(to right, #FAF8F5, #FFFFFF, #FAF8F5);
  border-top: 1px solid #EAE6DF;
  border-bottom: 1px solid #EAE6DF;
}

/* Stat Card - Clean Fixed Accent (No expanding line on hover) */
.stat-card-highlight {
  position: relative;
  overflow: hidden;
  background-color: #FCFBF9;
  border: 1px solid #EAE6DF;
  border-radius: 0.75rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.stat-card-highlight::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 3px;
  background: #B89047;
  border-radius: 0 0 4px 4px;
}

.stat-card-highlight:hover {
  transform: translateY(-2px);
  border-color: #1A3B5C;
  box-shadow: 0 8px 20px -4px rgba(26, 59, 92, 0.08);
}

/* ==========================================================================
   2D & 3D Interactive Animation Engine
   ========================================================================== */

/* 1. Subtle, Low-Sensitivity 3D Perspective Card Tilt (Refined for Product Cards) */
.tilt-card {
  transform-style: preserve-3d;
  perspective: 1400px;
  transition: transform 0.2s cubic-bezier(0.2, 0, 0.2, 1), box-shadow 0.3s ease, border-color 0.25s ease;
  will-change: transform;
  position: relative;
}

.tilt-card-inner {
  transform: translateZ(12px);
  transform-style: preserve-3d;
  transition: transform 0.2s ease;
}

/* 2. Standard Clean Card Hover (No artificial radial glowing flashlight) */
.spotlight-card {
  background-color: #FFFFFF;
  border: 1px solid #EAE6DF;
  border-radius: 0.75rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.spotlight-card:hover {
  border-color: #1A3B5C;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -6px rgba(26, 59, 92, 0.08);
}

/* 3. Gradient Border Card (Clean Corporate Elevation) */
.gradient-border-card {
  position: relative;
  background: #FFFFFF;
  border-radius: 0.875rem;
  border: 1px solid #EAE6DF;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.gradient-border-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px -6px rgba(26, 59, 92, 0.08);
  border-color: #1A3B5C;
}

/* 4. 2D Floating Levitation Physics (Hero Printer Showcase) */
@keyframes float-slow {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(0.3deg);
  }
}

.animate-float {
  animation: float-slow 6s ease-in-out infinite;
  will-change: transform;
}

@keyframes shadow-breathe {
  0%, 100% {
    transform: scale(1);
    opacity: 0.25;
  }
  50% {
    transform: scale(0.85);
    opacity: 0.12;
  }
}

.animate-shadow-breathe {
  animation: shadow-breathe 6s ease-in-out infinite;
  will-change: transform, opacity;
}

/* 5. 2D Breathing Pulse Rings (Floating CTAs) */
@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(26, 59, 92, 0.4);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(26, 59, 92, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(26, 59, 92, 0);
  }
}

.animate-pulse-ring {
  animation: pulse-ring 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-ring-green {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.45);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.animate-pulse-green {
  animation: pulse-ring-green 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ==========================================================================
   Premium Floating & In-Page Action Buttons (Call & WhatsApp)
   ========================================================================== */
.floating-dock-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 9999px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: transform, box-shadow;
}

.floating-dock-btn:hover {
  transform: translateY(-4px) scale(1.06);
}

.floating-dock-btn:active {
  transform: translateY(0) scale(0.96);
}

.floating-dock-call {
  background: linear-gradient(135deg, #1A3B5C 0%, #0F2338 100%);
  border: 2px solid rgba(184, 144, 71, 0.5);
  box-shadow: 0 10px 25px -4px rgba(26, 59, 92, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

.floating-dock-call:hover {
  border-color: #B89047;
  box-shadow: 0 14px 28px -4px rgba(26, 59, 92, 0.6), 0 0 15px rgba(184, 144, 71, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

.floating-dock-whatsapp {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  border: 2px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 10px 25px -4px rgba(37, 211, 102, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

.floating-dock-whatsapp:hover {
  border-color: #ffffff;
  box-shadow: 0 14px 28px -4px rgba(37, 211, 102, 0.65), 0 0 15px rgba(37, 211, 102, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.5);
}

/* Slide-out tooltip for floating buttons */
.floating-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(10px);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.2);
}

.floating-dock-btn:hover .floating-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* Subtle micro-shake on phone hover */
@keyframes phone-shake {
  0%, 100% { transform: rotate(0deg); }
  20% { transform: rotate(-12deg); }
  40% { transform: rotate(12deg); }
  60% { transform: rotate(-8deg); }
  80% { transform: rotate(8deg); }
}

.floating-dock-btn:hover .phone-icon-animated {
  animation: phone-shake 0.6s ease-in-out;
}

/* Status beacon badge */
.status-beacon {
  position: absolute;
  top: 1px;
  right: 1px;
  width: 13px;
  height: 13px;
  border-radius: 9999px;
  border: 2px solid #ffffff;
}

/* Styled inline CTA pills */
.btn-whatsapp-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #25D366 0%, #1FB355 100%);
  color: #FFFFFF !important;
  font-weight: 700;
  border-radius: 0.75rem;
  box-shadow: 0 4px 14px -2px rgba(37, 211, 102, 0.4);
  transition: all 0.25s ease;
}

.btn-whatsapp-pill:hover {
  background: linear-gradient(135deg, #20BD5A 0%, #128C7E 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -2px rgba(37, 211, 102, 0.5);
  color: #FFFFFF !important;
}

.btn-phone-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  color: #1A3B5C !important;
  border: 1.5px solid #1A3B5C;
  font-weight: 700;
  border-radius: 0.75rem;
  box-shadow: 0 2px 8px -2px rgba(26, 59, 92, 0.15);
  transition: all 0.25s ease;
}

.btn-phone-pill:hover {
  background: #1A3B5C;
  color: #FFFFFF !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -2px rgba(26, 59, 92, 0.25);
}

/* 6. Light Shimmer Sweep on Action Buttons */
.btn-shimmer {
  position: relative;
  overflow: hidden;
}

.btn-shimmer::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transform: skewX(-22deg);
  transition: left 0.75s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.btn-shimmer:hover::after {
  left: 150%;
}

/* 7. Scroll-Triggered Reveal Animations */
.reveal-init {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-init.revealed {
  opacity: 1;
  transform: translate(0, 0);
}

/* Stagger delay utilities */
.delay-75  { transition-delay: 75ms; }
.delay-100 { transition-delay: 100ms; }
.delay-150 { transition-delay: 150ms; }
.delay-200 { transition-delay: 200ms; }
.delay-250 { transition-delay: 250ms; }
.delay-300 { transition-delay: 300ms; }

/* 8. Three.js Background Canvas Container */
.hero-canvas-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.hero-canvas-container canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
  opacity: 0.5;
}

/* 9. Subtle Floating Pill Badges */
@keyframes badge-float-subtle {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-3px); }
}

.badge-float {
  animation: badge-float-subtle 4s ease-in-out infinite;
}

/* 10. Reduced Motion Accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal-init {
    opacity: 1 !important;
    transform: none !important;
  }
  .animate-float,
  .animate-shadow-breathe,
  .animate-pulse-ring,
  .animate-pulse-green,
  .badge-float {
    animation: none !important;
  }
}
