/* VERTEX B2B Packaging Landing Page CSS Overrides */
:root {
  --vx-primary: #0F1E36;      /* Deep Industrial Navy */
  --vx-primary-light: #1E2E4A;
  --vx-orange: #FF5E14;       /* Safety Orange */
  --vx-orange-hover: #E04E0C;
  --vx-text-dark: #212529;
  --vx-bg-light: #F8F9FA;
  --vx-accent-blue: #00D2FF;  /* Electric Blue for active states */
}

/* Custom color utility classes */
.bg-vx-primary {
  background-color: var(--vx-primary) !important;
}
.bg-vx-primary-light {
  background-color: var(--vx-primary-light) !important;
}
.text-vx-orange {
  color: var(--vx-orange) !important;
}
.btn-vx-orange {
  background-color: var(--vx-orange) !important;
  color: white !important;
  border: none !important;
  transition: all 0.3s ease;
}
.btn-vx-orange:hover {
  background-color: var(--vx-orange-hover) !important;
  box-shadow: 0 4px 12px rgba(255, 94, 20, 0.3);
}
.btn-outline-vx {
  border: 2px solid var(--vx-orange) !important;
  color: white !important;
  background: transparent;
  transition: all 0.3s ease;
}
.btn-outline-vx:hover {
  background-color: var(--vx-orange) !important;
  color: white !important;
}
.btn-outline-vx-dark {
  border: 2px solid var(--vx-primary) !important;
  color: var(--vx-primary) !important;
  background: transparent;
  transition: all 0.3s ease;
}
.btn-outline-vx-dark:hover {
  background-color: var(--vx-primary) !important;
  color: white !important;
}

/* Material Toggle Cards */
.solution-card {
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: white;
}
.solution-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
  border-color: var(--vx-orange);
}
.solution-card.active {
  border-color: var(--vx-orange);
  background: linear-gradient(145deg, #ffffff, #fcf4f0);
  box-shadow: 0 8px 16px rgba(255, 94, 20, 0.1);
}
.solution-card.active .feature-icon {
  background-color: var(--vx-orange) !important;
  color: white !important;
}

/* SVG Simulator Layout */
.simulator-container {
  background: radial-gradient(circle at center, #1b2845 0%, #091124 100%);
  border-radius: 16px;
  box-shadow: inset 0 0 40px rgba(0,0,0,0.5), 0 10px 30px rgba(0,0,0,0.3);
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255,255,255,0.05);
}

/* WhatsApp Floating Badge */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25D366;
  color: white;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.25);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  transition: all 0.3s ease;
  text-decoration: none;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  color: white;
  background-color: #128C7E;
}
.whatsapp-pulse {
  position: absolute;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  border-radius: 50%;
  z-index: -1;
  opacity: 0.7;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.4);
    opacity: 0;
  }
  100% {
    transform: scale(0.95);
    opacity: 0;
  }
}

/* VFFS Simulator SVG Animations */
@keyframes auger-rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.rotate-aug {
  transform-origin: 100px 180px;
  animation: auger-rotate 1s linear infinite;
}

@keyframes multihead-vibrate {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(1px, -0.5px); }
  50% { transform: translate(-1px, 0.5px); }
  75% { transform: translate(0.5px, 1px); }
}
.vib-pan {
  animation: multihead-vibrate 0.15s linear infinite;
}

@keyframes piston-pump {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(20px); }
}
.pump-move {
  animation: piston-pump 2s ease-in-out infinite;
}

/* Material Flow Particles */
.flow-particle {
  fill: var(--vx-orange);
  opacity: 0;
}

@keyframes particle-drop-1 {
  0% { cy: 190px; opacity: 0; }
  10% { opacity: 1; }
  80% { opacity: 1; }
  100% { cy: 370px; opacity: 0; }
}
.p-drop-1 { animation: particle-drop-1 1.2s infinite linear; }

@keyframes particle-drop-2 {
  0% { cy: 190px; opacity: 0; }
  10% { opacity: 1; }
  80% { opacity: 1; }
  100% { cy: 370px; opacity: 0; }
}
.p-drop-2 { animation: particle-drop-2 1.2s infinite linear; animation-delay: 0.3s; }

@keyframes particle-drop-3 {
  0% { cy: 190px; opacity: 0; }
  10% { opacity: 1; }
  80% { opacity: 1; }
  100% { cy: 370px; opacity: 0; }
}
.p-drop-3 { animation: particle-drop-3 1.2s infinite linear; animation-delay: 0.6s; }

@keyframes particle-drop-4 {
  0% { cy: 190px; opacity: 0; }
  10% { opacity: 1; }
  80% { opacity: 1; }
  100% { cy: 370px; opacity: 0; }
}
.p-drop-4 { animation: particle-drop-4 1.2s infinite linear; animation-delay: 0.9s; }

/* Bag flow animations */
@keyframes bag-move {
  0% { transform: translateY(0); opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(90px); opacity: 0; }
}
.bag-anim {
  animation: bag-move 1.5s infinite linear;
}

@keyframes belt-scroll {
  0% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -20; }
}
.belt-anim {
  stroke-dasharray: 5, 5;
  animation: belt-scroll 1s infinite linear;
}

/* Jaws Clamping Animation */
@keyframes jaw-left-clamp {
  0%, 100% { transform: translateX(0); }
  45%, 55% { transform: translateX(18px); }
}
@keyframes jaw-right-clamp {
  0%, 100% { transform: translateX(0); }
  45%, 55% { transform: translateX(-18px); }
}
.jaw-l { animation: jaw-left-clamp 1.5s infinite ease-in-out; }
.jaw-r { animation: jaw-right-clamp 1.5s infinite ease-in-out; }

/* Spec matrix badge */
.spec-badge {
  background-color: rgba(255, 94, 20, 0.08);
  color: var(--vx-orange);
  font-weight: 600;
  border-radius: 6px;
  padding: 6px 12px;
  display: inline-block;
}

/* Customizable Tab Styles for Solutions */
.nav-pills-vx {
  border-bottom: 2px solid rgba(15, 30, 54, 0.08);
  padding-bottom: 10px;
}
.nav-pills-vx .nav-link {
  color: var(--vx-primary);
  font-weight: 700;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.06);
  background-color: white;
  transition: all 0.3s ease;
  padding: 12px 28px;
}
.nav-pills-vx .nav-link:hover {
  background-color: rgba(255, 94, 20, 0.05);
  color: var(--vx-orange);
}
.nav-pills-vx .nav-link.active {
  background-color: var(--vx-orange) !important;
  color: white !important;
  border-color: var(--vx-orange);
  box-shadow: 0 4px 12px rgba(255, 94, 20, 0.15);
}

/* Prevent hero carousel height shift on desktop screen sizes */
@media (min-width: 1200px) {
  #heroCarousel .carousel-item .row {
    min-height: 520px;
  }
}




body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Premium Carousel Fade Transition and Staggered Animations */
#heroCarousel .carousel-item {
  transition: opacity 0.8s ease-in-out;
}

/* Ensure slide images and text elements start hidden to play fade transition from scratch */
#heroCarousel .carousel-item img,
#heroCarousel .carousel-item .badge,
#heroCarousel .carousel-item h1,
#heroCarousel .carousel-item p,
#heroCarousel .carousel-item .d-grid {
  opacity: 0;
}

/* Smooth zoom-in & fade-in animation for active slide images */
#heroCarousel .carousel-item.active img {
  animation: carouselImageZoom 8s ease-out forwards, carouselImageFadeIn 0.8s ease-out both;
}

@keyframes carouselImageZoom {
  from {
    transform: scale(1.0);
  }
  to {
    transform: scale(1.06);
  }
}

@keyframes carouselImageFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Fade slide-up animations for active slide text elements */
#heroCarousel .carousel-item.active .badge,
#heroCarousel .carousel-item.active h1,
#heroCarousel .carousel-item.active p,
#heroCarousel .carousel-item.active .d-grid {
  animation: carouselTextFadeUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

#heroCarousel .carousel-item.active .badge {
  animation-delay: 0.1s;
}
#heroCarousel .carousel-item.active h1 {
  animation-delay: 0.25s;
}
#heroCarousel .carousel-item.active p {
  animation-delay: 0.4s;
}
#heroCarousel .carousel-item.active .d-grid {
  animation-delay: 0.55s;
}

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

/* Product Details Nav Pills Custom Active Styles */
#productDetailTabs .nav-link {
  color: var(--vx-primary) !important;
  border-color: #dee2e6 !important;
  background-color: white !important;
  transition: all 0.2s ease-in-out;
}
#productDetailTabs .nav-link:hover {
  background-color: #f8f9fa !important;
  border-color: var(--vx-orange) !important;
  color: var(--vx-orange) !important;
}
#productDetailTabs .nav-link.active {
  background-color: var(--vx-orange) !important;
  color: white !important;
  border-color: var(--vx-orange) !important;
  box-shadow: 0 4px 12px rgba(255, 94, 20, 0.15);
}

/* Navbar Hover Dropdown for screens >= 992px */
@media (min-width: 992px) {
  .nav-item.dropdown:hover .dropdown-menu {
    display: block !important;
    margin-top: 0;
  }
}
/* Ensure dropdown styles align nicely with deep navy branding */
.dropdown-menu {
  background-color: var(--vx-primary) !important;
  border: 1px solid rgba(255,255,255,0.15) !important;
  border-radius: 8px !important;
  box-shadow: 0 10px 20px rgba(0,0,0,0.15) !important;
  padding: 10px 0 !important;
}
.dropdown-item {
  color: rgba(255,255,255,0.85) !important;
  font-weight: 500 !important;
  padding: 10px 24px !important;
  transition: all 0.2s ease;
}
.dropdown-item:hover {
  background-color: var(--vx-orange) !important;
  color: white !important;
}

/* Global Smooth Scroll */
html {
  scroll-behavior: smooth;
}

/* Independently Scrollable Sticky Sidebar */
@media (min-width: 992px) {
  .scrollable-sidebar {
    position: sticky;
    top: 1.5rem;
    max-height: calc(100vh - 3rem);
    overflow-y: auto;
    padding-right: 6px;
  }
  
  /* Custom scrollbar matching the user's second image */
  .scrollable-sidebar::-webkit-scrollbar {
    width: 6px;
  }
  .scrollable-sidebar::-webkit-scrollbar-track {
    background: transparent;
  }
  .scrollable-sidebar::-webkit-scrollbar-thumb {
    background: #a0a0a0; /* Smooth gray capsule thumb */
    border-radius: 10px;
  }
  .scrollable-sidebar::-webkit-scrollbar-thumb:hover {
    background: #808080;
  }
}

/* Premium Navigation Bar Styles */
.navbar {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  background-color: rgba(15, 30, 54, 0.95) !important; /* Premium semi-transparent dark navy */
  z-index: 1030 !important;
}

/* Nav Item Pill Hover Animation */
.navbar-nav .nav-item {
  position: relative;
  margin: 0 4px;
}

.navbar-nav .nav-link {
  font-weight: 500;
  padding: 0.5rem 1.1rem !important;
  color: rgba(255, 255, 255, 0.75) !important;
  border-radius: 30px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active,
.navbar-nav .nav-item.show .nav-link {
  color: #ffffff !important;
  background-color: rgba(255, 255, 255, 0.08); /* Modern subtle glass pill background on hover/active */
}

/* Premium Dropdown Styling */
.navbar .dropdown-menu {
  background: rgba(15, 30, 54, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  border-radius: 12px;
  padding: 0.6rem;
  margin-top: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: block; /* Required for JS-free transition */
  z-index: 1050 !important;
}

/* Hover to open dropdown on Desktop for B2B ease-of-use */
@media (min-width: 992px) {
  .navbar-nav .nav-item.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

/* Dropdown Items styling */
.navbar .dropdown-item {
  color: rgba(255, 255, 255, 0.8) !important;
  font-weight: 500;
  border-radius: 8px;
  padding: 0.6rem 1.2rem;
  transition: all 0.2s ease;
}

.navbar .dropdown-item:hover {
  background-color: rgba(255, 94, 20, 0.12) !important; /* Subtle orange glow on hover */
  color: var(--vx-orange) !important;
  padding-left: 1.5rem; /* Slide effect */
}

/* Custom Highlight for the CTA B2B Contact Button (last child in nav list on desktop) */
@media (min-width: 992px) {
  .navbar-nav .nav-item:last-child .nav-link {
    background-color: var(--vx-orange) !important;
    color: white !important;
    border-radius: 30px;
    padding: 0.5rem 1.4rem !important;
    margin-left: 8px;
    box-shadow: 0 4px 10px rgba(255, 94, 20, 0.2);
    transition: all 0.3s ease;
  }

  .navbar-nav .nav-item:last-child .nav-link:hover {
    background-color: var(--vx-orange-hover) !important;
    box-shadow: 0 4px 15px rgba(255, 94, 20, 0.4);
    transform: translateY(-1px);
    color: white !important;
  }
}

/* Premium Video Showcase & Mockup Player */
.youtube-placeholder-mockup {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.youtube-placeholder-mockup:hover {
  transform: scale(1.02);
  filter: brightness(1.08);
}

.youtube-placeholder-mockup:hover .play-btn-circle {
  transform: scale(1.15);
  background-color: var(--vx-orange-hover) !important;
  box-shadow: 0 0 25px rgba(255, 94, 20, 0.6);
}

.play-btn-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(255, 94, 20, 0.4);
}

/* Category pills for video gallery page */
.nav-pills-vx-video .nav-link {
  color: var(--vx-primary) !important;
  font-weight: 600;
  border: 1px solid rgba(15, 30, 54, 0.15);
  border-radius: 30px;
  padding: 0.5rem 1.2rem;
  transition: all 0.25s ease;
  background: white;
}

.nav-pills-vx-video .nav-link:hover {
  background-color: rgba(15, 30, 54, 0.05);
}

.nav-pills-vx-video .nav-link.active {
  background-color: var(--vx-orange) !important;
  color: white !important;
  border-color: var(--vx-orange) !important;
  box-shadow: 0 4px 10px rgba(255, 94, 20, 0.3);
}

/* Video card item styles */
.video-card-item {
  border-radius: 16px !important;
  border: 1px solid rgba(0,0,0,0.06) !important;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

.video-card-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.08) !important;
}
