/* NDIGO TECH SOLUTIONS - Clean Modern Industrial Styling */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --brand-dark: #0f172a;
  --brand-nav: #ffffff;
  --brand-accent: #059669; /* Tech Emerald */
  --brand-accent-hover: #047857;
  --brand-btn: #059669;
  --brand-btn-hover: #047857;
  --primary-blue: #0284c7;
  --accent-cyan: #06b6d4;
  --accent-emerald: #10b981;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: #0f172a;
  background-color: #ffffff;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: 'Space Grotesk', sans-serif;
}

/* Modern Clean Search Bar Focus */
.amazon-search-shadow:focus-within {
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.3);
}

/* Modern Tech Badges (Emerald / High-Contrast) */
.badge-best-seller {
  background: #059669;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 3px 0 0 3px;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-best-seller::after {
  content: '';
  position: absolute;
  right: -8px;
  top: 0;
  border-left: 8px solid #059669;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}

.badge-choice {
  background: #232f3e;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.badge-choice span {
  color: #10b981;
}

.badge-deal {
  background: #cc0c39;
  color: white;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 11px;
}

/* Amazon-Style Stars & Ratings */
.star-rating {
  color: #eab308;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.rating-bar-fill {
  transition: width 0.6s ease-in-out;
}

/* Animated Cart Badge Bounce */
@keyframes cart-bounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.35) rotate(-10deg); }
}

.cart-animate-bounce {
  animation: cart-bounce 0.5s ease-in-out;
}

/* Interactive Card Hover Effects */
.amazon-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid #e2e8f0;
}
.amazon-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.08), 0 10px 10px rgba(0, 0, 0, 0.04);
  border-color: #cbd5e1;
}

.product-img-hover {
  transition: transform 0.4s ease;
}
.amazon-card:hover .product-img-hover {
  transform: scale(1.06);
}

/* Automatic Bestseller Carousel */
.bestseller-slider-track {
  width: 100%;
  position: relative;
}

.bestseller-slide {
  display: none;
  width: 100%;
  box-sizing: border-box;
  animation: slideIn 0.5s ease;
}

.bestseller-slide.active {
  display: block;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}


.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  background-color: #cbd5e1;
  transition: all 0.3s ease;
  cursor: pointer;
}
.carousel-dot.active {
  width: 28px;
  background-color: #059669;
}

/* Slide-Over Cart Drawer */
.cart-drawer-overlay {
  transition: opacity 0.3s ease-in-out;
}
.cart-drawer {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Floating Compare Bar */
.compare-floating-bar {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

/* Toast Notification Animation */
@keyframes toast-slide-in {
  from {
    transform: translateY(100px) scale(0.9);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}
@keyframes toast-fade-out {
  from {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  to {
    transform: translateY(30px) scale(0.9);
    opacity: 0;
  }
}

.toast-in {
  animation: toast-slide-in 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
.toast-out {
  animation: toast-fade-out 0.3s ease-in forwards;
}

/* ROI Calculator Glowing Card */
.roi-calculator-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 2px solid #e2e8f0;
  box-shadow: 0 20px 30px -10px rgba(2, 132, 199, 0.1);
}

/* Range Slider Styling */
input[type="range"] {
  accent-color: #059669;
}

/* Floating WhatsApp Pulse */
@keyframes pulse-ring {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 14px rgba(37, 211, 102, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

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

/* Print Styles for Official Quotation Letterhead */
@media print {
  @page {
    size: A4 portrait;
    margin: 10mm 12mm 10mm 12mm;
  }
  
  html, body {
    background: #ffffff !important;
    color: #0f172a !important;
    font-size: 11pt !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
  }

  header, footer, nav, .no-print, #cart-drawer-overlay, #nts-global-toast, .pulse-whatsapp, button, #quotation-config-form {
    display: none !important;
    visibility: hidden !important;
  }

  body * {
    visibility: hidden;
  }

  #quotation-printable-area, #quotation-printable-area * {
    visibility: visible;
  }

  .printable-document-section {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  #quotation-printable-area {
    position: absolute;
    left: 0;
    top: 0;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
    border: none !important;
    box-shadow: none !important;
    color: #0f172a !important;
  }

  #quotation-printable-area table {
    width: 100% !important;
    border-collapse: collapse !important;
  }

  #quotation-printable-area th, 
  #quotation-printable-area td {
    border: 1px solid #cbd5e1 !important;
    padding: 6px 10px !important;
  }

  #quotation-printable-area thead th {
    background-color: #131921 !important;
    color: #ffffff !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  #quotation-printable-area .bg-slate-50,
  #quotation-printable-area .bg-slate-100,
  #quotation-printable-area .bg-slate-900 {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

/* ==========================================================================
   Interactive 3D Website Styling & Shaders
   ========================================================================== */

/* 3D Hero Canvas Background */
#hero-3d-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.85;
}

#hero-3d-canvas canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.hero-content-layer {
  position: relative;
  z-index: 10;
}

/* 3D Perspective Card Layers */
.tilt-3d, .home-product-card {
  transform-style: preserve-3d;
  transition: transform 0.2s cubic-bezier(0.03, 0.98, 0.52, 0.99), box-shadow 0.3s ease;
}

.tilt-3d:hover, .home-product-card:hover {
  box-shadow: 0 20px 30px -10px rgba(15, 23, 42, 0.18), 0 10px 15px -5px rgba(2, 132, 199, 0.12);
}

.tilt-3d img, .home-product-card img {
  transform: translateZ(24px);
  transition: transform 0.3s ease;
}

.tilt-3d .badge-best-seller, 
.home-product-card .badge-best-seller,
.tilt-3d .badge-choice, 
.home-product-card .badge-choice,
.tilt-3d .badge-deal, 
.home-product-card .badge-deal {
  transform: translateZ(30px);
}

.tilt-3d button, .home-product-card button {
  transform: translateZ(20px);
}

/* 3D Machinery Inspection Stage */
#machinery-3d-viewport {
  position: relative;
  width: 100%;
  height: 540px;
  background: radial-gradient(circle at center, #0f172a 0%, #090d16 65%, #020617 100%);
  border: 1px solid #334155;
  border-radius: 1rem;
  overflow: hidden;
  cursor: grab;
  box-shadow: inset 0 2px 14px rgba(0, 0, 0, 0.7), 0 12px 30px -6px rgba(15, 23, 42, 0.4);
}

#machinery-3d-viewport:active {
  cursor: grabbing;
}

#machinery-3d-viewport canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

/* Interactive 3D Hotspot Pins */
.hotspot-3d-pin {
  position: absolute;
  top: 0;
  left: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #059669;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  z-index: 20;
  pointer-events: auto;
  border: 2px solid #ffffff;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.8), 0 4px 10px rgba(0, 0, 0, 0.4);
  transition: scale 0.2s ease, background-color 0.2s, box-shadow 0.2s;
  will-change: transform;
}

.hotspot-3d-pin:hover {
  scale: 1.2;
  background: #10b981;
  box-shadow: 0 0 28px rgba(16, 185, 129, 1.0);
}

.hotspot-3d-pin:active {
  scale: 0.95;
}

.hotspot-pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(16, 185, 129, 0.7);
  animation: hotspot-pulse-anim 2s infinite ease-out;
  pointer-events: none;
}

@keyframes hotspot-pulse-anim {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(1.9); opacity: 0; }
}

/* Hotspot Tooltip Popover */
.hotspot-tooltip {
  position: absolute;
  bottom: 38px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: 260px;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(12px);
  border: 1px solid #334155;
  padding: 12px 14px;
  border-radius: 10px;
  color: #f8fafc;
  font-size: 11.5px;
  line-height: 1.45;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  text-align: left;
}

.hotspot-tooltip h4 {
  font-weight: 700;
  color: #10b981;
  margin-bottom: 4px;
  font-size: 12.5px;
  letter-spacing: -0.01em;
}

.hotspot-tooltip p {
  color: #94a3b8;
  font-size: 11px;
}

.hotspot-3d-pin:hover .hotspot-tooltip,
.hotspot-3d-pin.active-pin .hotspot-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* 3D Holographic Badges */
.badge-3d-live {
  background: linear-gradient(135deg, #0284c7 0%, #06b6d4 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.4);
  animation: holographic-glow 3s infinite alternate;
}

@keyframes holographic-glow {
  0% { box-shadow: 0 0 10px rgba(6, 182, 212, 0.4); }
  100% { box-shadow: 0 0 20px rgba(16, 185, 129, 0.6); }
}

