/* Master Stylesheet for Index Page */

/* Index page has no product-nav-bar to replace the main nav when scrolled.
   Override the leads-nav.css rule that hides the header on scroll. */
.site-header.leads-nav.scrolled {
  transform: none;
  pointer-events: auto;
}

/* Hidden pagination cards — initial off-page state, toggled by showPage() JS */
.case-study-card--hidden {
  display: none;
}

/* ---- Light-section text restoration ----
   styles.css .leadsonline h1-h4 / p rules carry specificity (0,1,1) and
   would otherwise win over plain class selectors (0,1,0) defined below.
   These section-scoped rules are also (0,1,1) and win by source order
   because index-styles.css is the last stylesheet loaded on this page.   */
.case-studies-section h2 { color: #1a1a2e; font-size: 2.6rem; }
.case-studies-section h3 { color: #0a1740; font-size: 1.35rem; }
.case-studies-section p  { color: #333; }

.stats-counter-section h2            { color: #000000; font-size: 2.6rem; }
.stats-counter-section .stats-headline { font-size: 2.8rem; }
.stats-counter-section p              { color: #000000; }

/* Testimonial white cards — keep text dark despite the dark section background */
.testimonial-carousel-card p { color: #000000; }

/* Skip navigation link (WCAG 2.4.1) */
.skip-to-main {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 10000;
  padding: 0.75rem 1.5rem;
  background: #0a0a1a;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 0 0 6px 6px;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-to-main:focus {
  top: 0;
  outline: 3px solid #00aaff;
  outline-offset: 2px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Barlow', -apple-system, BlinkMacSystemFont, sans-serif;
  overflow-x: hidden;
  background: #000;
}

/* =================== ACCESSIBILITY - SKIP NAVIGATION =================== */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: #0A2B5C;
  color: white;
  padding: 12px 24px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  z-index: 10000;
  border-radius: 0 0 8px 0;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 0;
  outline: 3px solid #3575e2;
  outline-offset: 2px;
}

/* Story Section Base Styles */
.story-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Scroll-locked sections (with data-scroll-section) */
.story-section[data-scroll-section] {
  height: 100vh;
  display: block;
  background: transparent;
}

/* Sticky container that locks during scroll */
.story-sticky-container {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.story-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0;
  transition: opacity 1.2s ease-out;
}

.story-video-bg.visible {
  opacity: 1;
}

/* Hero section video is immediately visible */
.hero-section .story-video-bg {
  opacity: 1;
}

.story-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.story-sticky-container .story-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: none;
}

.story-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.story-content h1 {
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.story-content h2 {
  font-size: 2.6rem;
  font-family: 'Barlow', sans-serif;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.story-content p {
  font-size: clamp(1.1rem, 2.5vw, 1.8rem);
  line-height: 1.5;
  font-weight: 400;
  max-width: 800px;
  margin: 0 auto;
}

/* Hero Section */
.hero-section .story-sticky-container {
  background: linear-gradient(135deg, #0a1628 0%, #19549c 100%);
}

.hero-section .story-overlay {
  background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.5) 100%);
  z-index: 3;
}

.hero-section .story-content {
  color: #fff;
}

.hero-logo-mark {
  display: block;
  width: 220px;
  height: auto;
  margin: 2.5rem auto 1rem auto;
  opacity: 1;
}

@media (max-width: 768px) {
  .hero-logo-mark {
    width: 160px;
    margin: 3rem auto 0.75rem auto;
  }
}

.hero-cta {
  margin-top: 2.5rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}



/* Scroll Animations */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}


/* Button spacing adjustments for story sections */
.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  transition: opacity 0.6s ease-out;
}

.hero-cta .btn {
  min-width: 180px;
}

/* Left-aligned text block (Apple-style) */
.story-left-content {
  margin-top: 180px;
  text-align: left;
  max-width: 600px;
  opacity: 0;
  transition: opacity 0.6s ease-out;
}

.story-left-content h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 600;
  margin-bottom: 1rem;
  color: #fff;
}

.story-left-content p {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

/* Right-aligned text block */
.story-right-content {
  margin-top: 180px;
  text-align: right;
  max-width: 600px;
  margin-left: auto;
  opacity: 0;
  transition: opacity 0.6s ease-out;
}

.story-right-content h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 600;
  margin-bottom: 1rem;
  color: #fff;
}

.story-right-content p {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

/* Button spacing after paragraphs */
.story-left-content .btn,
.story-right-content .btn {
  margin-top: 0.5rem;
}

/* Scroll-locked text transitions */
.story-content > h1,
.story-content > h2,
.story-content > p:first-of-type {
  transition: opacity 0.6s ease-out;
}


/* Intelligence Section */
.intelligence-section .story-sticky-container {
  background: linear-gradient(135deg, #0d2847 0%, #19549c 100%);
}

.intelligence-section .story-overlay {
  background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.7) 100%);
}

.intelligence-section .story-content {
  color: #fff;
  max-width: 1600px;
  margin: 0 auto;
  padding: 3rem 48px;
}

/* Override default story section height for intelligence section */
.intelligence-section[data-scroll-section] {
  height: auto;
  min-height: 0;
}

.intelligence-section .story-sticky-container {
  position: relative;
  height: auto;
  min-height: 0;
}

.intelligence-section .story-content h1,
.intelligence-section .story-content h2 {
  text-align: center;
  margin-bottom: 1rem;
  font-family: 'Barlow', sans-serif;
  font-weight: 600;
}

.intelligence-section .story-content > p {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 1.1rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Timeline container */
.timeline-container {
  position: relative;
  margin-top: 6rem;
  margin-left: auto;
  margin-right: auto;
  padding-bottom: 1.5rem;
  max-width: 100%;
  padding-top: 100px;
  background: rgba(30, 41, 59, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding-left: 40px;
  padding-right: 40px;
  overflow: visible;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.timeline-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-top: 60px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  max-width: 100%;
}

.timeline-item {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-item {
  list-style: none;
}

.timeline-item::before {
  display: none;
  content: none;
}

.timeline-item h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #fff;
  list-style: none;
}

.timeline-item h3::before {
  display: none;
  content: none;
}

.timeline-item p {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  text-align: left;
}

/* Timeline track */
.timeline-track {
  position: relative;
  height: 4px;
  background: transparent;
  border-radius: 2px;
  overflow: visible;
}

.timeline-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: linear-gradient(90deg, #4a90e2, #63b3ed);
  border-radius: 2px;
  width: 0%;
  transition: width 2.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-track.animate .timeline-progress {
  width: 100%;
}

/* Timeline nodes */
.timeline-node {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 16px;
  height: 16px;
  background: #fff;
  border: 3px solid #4a90e2;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(74, 144, 226, 0.4);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.5s ease;
  z-index: 2;
}

.timeline-node[data-index="0"] { left: 12.5%; }
.timeline-node[data-index="1"] { left: 37.5%; }
.timeline-node[data-index="2"] { left: 62.5%; }
.timeline-node[data-index="3"] { left: 87.5%; }

.timeline-node.visible {
  transform: translate(-50%, -50%) scale(1);
}

/* Timeline endpoint circles */
.timeline-endpoint {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 36px;
  height: 36px;
  background: #4a90e2;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(74, 144, 226, 0.6);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-endpoint-start {
  left: 0%;
}

.timeline-endpoint-end {
  left: 100%;
}

.timeline-track.animate .timeline-endpoint-start {
  transform: translate(-50%, -50%) scale(1);
  transition-delay: 0s;
}

.timeline-track.animate .timeline-endpoint-end {
  transform: translate(-50%, -50%) scale(1);
  transition-delay: 1.8s;
}

/* Hide mobile icons on desktop */
.icon-mobile {
  display: none;
}

/* Desktop icons - positioned relative to timeline-track */
.icon-desktop {
  position: absolute;
  top: -60px;
  transform: translateX(-50%) scale(0);
  opacity: 0;
  z-index: 3;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0s,
              opacity 0.6s ease 0s;
}

/* Position desktop icons to align exactly with timeline nodes */
.icon-desktop.scan-icon-wrapper {
  left: 12.5%;
}

.icon-desktop.target-icon-wrapper {
  left: 37.5%;
  transition-delay: 0.6s, 0.6s;
}

.icon-desktop.suspect-icon-wrapper {
  left: 62.5%;
  transition-delay: 1.2s, 1.2s;
}

.icon-desktop.connections-icon-wrapper {
  left: 87.5%;
  transition-delay: 1.8s, 1.8s;
}

.timeline-track.animate .icon-desktop {
  transform: translateX(-50%) scale(1);
  opacity: 1;
}

.scan-icon,
.target-icon,
.suspect-icon,
.connections-icon {
  width: 48px;
  height: 48px;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(255, 255, 255, 0.3));
}

.scan-line {
  animation: scanMove 2s ease-in-out infinite;
  transform-origin: center;
}


/* Staggered animations for timeline items - delays handled by JavaScript */

/* Responsive timeline */
@media (max-width: 1024px) {
  .timeline-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-bottom: 60px;
  }

  .timeline-node[data-index="0"] { left: 25%; }
  .timeline-node[data-index="1"] { left: 75%; }
  .timeline-node[data-index="2"] { left: 25%; }
  .timeline-node[data-index="3"] { left: 75%; }

  /* Adjust icon positions to align with nodes in 2-column layout */
  .icon-desktop.scan-icon-wrapper {
    left: 25%;
  }

  .icon-desktop.target-icon-wrapper {
    left: 75%;
  }

  .icon-desktop.suspect-icon-wrapper {
    left: 25%;
  }

  .icon-desktop.connections-icon-wrapper {
    left: 75%;
  }
}

@media (max-width: 640px) {
  .timeline-content {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 50px;
  }

  .timeline-node {
    left: 50%;
  }

  .timeline-endpoint {
    width: 28px;
    height: 28px;
    border-width: 2px;
  }

  /* Hide timeline visual elements on mobile */
  .timeline-track {
    background: transparent;
    height: 0;
    overflow: visible;
  }

  .timeline-progress,
  .timeline-node,
  .timeline-endpoint {
    display: none;
  }

  .timeline-content {
    position: static;
    margin-top: 0;
  }

  .timeline-item {
    position: static;
    padding-top: 0;
  }

  /* Hide desktop icons on mobile */
  .icon-desktop {
    display: none;
  }

  /* Show and style mobile icons */
  .icon-mobile {
    display: block;
    position: static;
    opacity: 1;
    transform: none;
    margin: 0 auto 20px auto;
    width: 40px;
    text-align: center;
    transition: none;
  }

  .icon-mobile .scan-icon,
  .icon-mobile .target-icon,
  .icon-mobile .suspect-icon,
  .icon-mobile .connections-icon {
    width: 40px;
    height: 40px;
    display: block;
    margin: 0 auto;
  }

  .timeline-item h3 {
    margin-top: 0;
  }

  /* Fix mobile overflow issues for intelligence section */
  .intelligence-section.story-section {
    overflow: visible;
    min-height: 100vh;
    height: auto;
  }

  .intelligence-section.story-section[data-scroll-section] {
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  .intelligence-section .story-sticky-container {
    position: relative;
    height: auto;
    min-height: auto;
  }

  .intelligence-section .story-content {
    padding: 3rem 16px 3rem 16px;
  }

  .timeline-container {
    margin-top: 2rem;
    margin-bottom: 3rem;
    padding: 100px 16px 80px 16px;
    width: calc(100% - 32px);
    margin-left: auto;
    margin-right: auto;
  }

  .timeline-content {
    margin-top: 60px;
    margin-bottom: 60px;
  }

  .timeline-track {
    overflow: visible;
  }
}


/* =================== CASE STUDY CAROUSEL =================== */
.case-studies-section {
  background: #fff;
  padding: 120px 0;
  position: relative;
}

.case-studies-header {
  text-align: center;
  margin-bottom: 80px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 32px;
}

.case-studies-title {
  font-size: 2.6rem;
  font-family: 'Barlow', sans-serif;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.case-studies-subtitle {
  font-size: 1.25rem;
  color: #1a1a2e;
  line-height: 1.6;
}

.case-studies-carousel {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.case-study-card {
  background: #f9fafb;
  border-radius: 20px;
  overflow: visible;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(50px);
}

.case-study-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered animation delays for smooth sequential appearance */
.case-study-card:nth-child(1) {
  transition-delay: 0.1s;
}

.case-study-card:nth-child(2) {
  transition-delay: 0.25s;
}

.case-study-card:nth-child(3) {
  transition-delay: 0.4s;
}

.case-study-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.16);
}

.case-study-image {
  width: 100%;
  height: 280px;
  overflow: hidden;
  background: linear-gradient(135deg, #e3eafc 0%, #d4dff0 100%);
  border-radius: 20px 20px 0 0;
}

.case-study-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-study-content {
  padding: 32px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.case-study-product-tag {
  display: inline-block;
  background: #e5e7eb;
  color: #4b5563;
  font-size: 0.6rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding: 3px 8px;
  border-radius: 6px;
  margin-bottom: 8px;
  align-self: flex-start;
}

.case-study-agency {
  font-size: 0.9rem;
  font-weight: 700;
  color: #2563eb;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.case-study-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0a1740;
  margin-bottom: 16px;
  line-height: 1.3;
}

.case-study-desc {
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
  margin-bottom: 24px;
  flex: 1;
}

.case-study-link {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.3s;
}

.case-study-link:hover {
  gap: 12px;
}

.case-study-link::after {
  content: '→';
}

/* Pagination Dots - Small white circles */
.case-studies-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 48px;
  background: none;
  background-color: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}

.pagination-dot {
  all: unset;
  display: inline-block;
  width: 10px;
  height: 10px;
  min-width: 10px;
  max-width: 10px;
  min-height: 10px;
  max-height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
  outline: none;
  margin: 0;
  flex-shrink: 0;
  box-sizing: border-box;
}

.pagination-dot:hover {
  background: rgba(255, 255, 255, 0.8);
  background-color: rgba(255, 255, 255, 0.8);
  transform: scale(1.1);
}

.pagination-dot.active {
  background: #ffffff;
  background-color: #ffffff;
  width: 10px;
  height: 10px;
  min-width: 10px;
  max-width: 10px;
  min-height: 10px;
  max-height: 10px;
}

/* Override leadsonline pill-shaped pagination for case studies */
body.leadsonline .case-studies-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 48px;
  background: none;
  background-color: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}

body.leadsonline .case-studies-pagination .pagination-dot {
  all: unset;
  display: inline-block;
  width: 10px;
  height: 10px;
  min-width: 10px;
  max-width: 10px;
  min-height: 10px;
  max-height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  box-sizing: border-box;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

body.leadsonline .case-studies-pagination .pagination-dot:hover {
  background: rgba(255, 255, 255, 0.8);
  background-color: rgba(255, 255, 255, 0.8);
  transform: scale(1.1);
}

body.leadsonline .case-studies-pagination .pagination-dot.active {
  background: #ffffff;
  background-color: #ffffff;
  width: 10px;
  height: 10px;
  min-width: 10px;
  max-width: 10px;
  min-height: 10px;
  max-height: 10px;
  transform: scale(1);
}


/* Responsive */
@media (max-width: 1024px) {
  .case-studies-carousel {
    grid-template-columns: 1fr;
  }

  .case-studies-title {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .story-section {
    min-height: 85vh;
  }

  .stats-grid {
    gap: 40px;
    margin-top: 50px;
  }

  .case-studies-section {
    padding: 80px 0;
  }

  .case-studies-title {
    font-size: 2rem;
  }

  .case-studies-subtitle {
    font-size: 1.1rem;
  }


  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 300px;
  }
}

/* Success Story Modal */
.story-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
}

.story-modal.active {
  display: block;
}

.story-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.story-modal-content {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  max-height: 90vh;
  margin: 5vh auto;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.story-modal-close {
  position: absolute;
  top: 32px;
  right: 32px;
  left: auto;
  width: 36px;
  height: 36px;
  min-width: 36px;
  max-width: 36px;
  min-height: 36px;
  max-height: 36px;
  background: #f3f4f6;
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  flex-shrink: 0;
  box-sizing: border-box;
}

.story-modal-close:hover {
  color: #374151;
  background: #e5e7eb;
  transform: scale(1.1);
}

.story-modal-inner {
  display: flex;
  gap: 40px;
  padding: 48px;
  max-height: 90vh;
  overflow-y: auto;
}

.story-modal-image {
  flex-shrink: 0;
  width: 380px;
}

.story-modal-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

.story-modal-text {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.story-modal-product-tag {
  display: inline-block;
  background: #e5e7eb;
  color: #6b7280;
  font-size: 0.6rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding: 3px 8px;
  border-radius: 6px;
  margin-bottom: 12px;
  align-self: flex-start;
}

.story-modal-agency {
  font-size: 0.9rem;
  font-weight: 700;
  color: #3575e2;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.story-modal-title {
  font-size: 2rem;
  font-weight: 800;
  color: #1a1a2e;
  margin-bottom: 24px;
  line-height: 1.3;
}

.story-modal-story {
  font-size: 1.05rem;
  color: #1a1a2e;
  line-height: 1.7;
  white-space: pre-line;
}

/* Restore dark text inside modal — .leadsonline p/h3 (0,1,1) in styles.css
   sets white text; these scoped rules match at (0,1,1) and win by source order */
.story-modal-content h2 { color: #1a1a2e; }
.story-modal-content h3 { color: #1a1a2e; }
.story-modal-content p  { color: #1a1a2e; }

/* Modal responsive */
@media (max-width: 900px) {
  .story-modal-content {
    margin: 0;
    max-height: 100vh;
    border-radius: 0;
  }

  .story-modal-inner {
    flex-direction: column;
    padding: 32px 24px;
    gap: 24px;
  }

  .story-modal-image {
    width: 100%;
  }

  .story-modal-close {
    top: 16px;
    right: 16px;
  }
}

/* ============================================
   Hero Scroll Slides
   ============================================ */

.hero-scroll-section {
  position: relative;
  min-height: 100vh;
}

.hero-scroll-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 48px;
  z-index: 4;
}

.hero-scroll-slide {
  position: absolute;
  top: calc(50% - 70px);
  left: 120px;
  transform: translateY(100vh);
  opacity: 0;
  transition: transform 1.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 1.2s ease;
  max-width: 600px;
}

.hero-scroll-slide.active {
  transform: translateY(-50%);
  opacity: 1;
}

.hero-scroll-slide.exiting {
  transform: translateY(-150vh);
  opacity: 0;
}

.hero-scroll-slide .story-left-content {
  margin: 0;
  opacity: 1;
  margin-top: 0;
}

/* Right-aligned slide */
.hero-scroll-slide.slide-right {
  left: auto;
  right: 120px;
}

.hero-scroll-slide .story-right-content {
  margin: 0;
  opacity: 1;
  text-align: right;
}

.hero-scroll-slide.slide-right .story-right-content p {
  margin-bottom: 0.75rem;
}

.hero-scroll-slide.slide-right .story-right-content .btn {
  margin-top: 0.75rem;
}

/* Slide with icon */
.hero-scroll-slide.slide-with-icon {
  max-width: 900px;
}

/* Slide with analytics icon */
.hero-scroll-slide.slide-with-analytics-icon {
  max-width: 900px;
}

.slide-content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

/* Right-align wrapper for slide-right */
.slide-right .slide-content-wrapper {
  align-items: flex-end;
}

.slide-content-wrapper .story-left-content {
  width: 100%;
  text-align: left;
}

.slide-icon-container {
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 24px;
}

/* Right-align icon for slide-right */
.slide-right .slide-icon-container {
  justify-content: flex-end;
  margin-top: 0;
  margin-bottom: 24px;
}

/* Intelligence Icon Animations */
.intelligence-icon {
  width: 100%;
  height: auto;
  animation: iconFloat 3s ease-in-out infinite;
}

.intelligence-icon circle[cx="100"][cy="100"][r="18"] {
  animation: pulseRing 2s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

.intelligence-icon circle[cx="100"][cy="100"][r="8"] {
  animation: pulseCore 2s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

.intelligence-icon circle[cx="100"][cy="100"][r="30"],
.intelligence-icon circle[cx="100"][cy="100"][r="45"] {
  animation: ripple 3s ease-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

.intelligence-icon line {
  animation: dataFlow 2s ease-in-out infinite;
}

/* Outer nodes pulse with staggered timing */
.intelligence-icon circle[r="8"]:nth-of-type(6)  { animation: nodePulse 3s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.intelligence-icon circle[r="8"]:nth-of-type(8)  { animation: nodePulse 3s ease-in-out 0.5s infinite; transform-box: fill-box; transform-origin: center; }
.intelligence-icon circle[r="8"]:nth-of-type(10) { animation: nodePulse 3s ease-in-out 1s infinite; transform-box: fill-box; transform-origin: center; }
.intelligence-icon circle[r="8"]:nth-of-type(12) { animation: nodePulse 3s ease-in-out 1.5s infinite; transform-box: fill-box; transform-origin: center; }
.intelligence-icon circle[r="8"]:nth-of-type(14) { animation: nodePulse 3s ease-in-out 2s infinite; transform-box: fill-box; transform-origin: center; }
.intelligence-icon circle[r="8"]:nth-of-type(16) { animation: nodePulse 3s ease-in-out 2.5s infinite; transform-box: fill-box; transform-origin: center; }

@keyframes iconFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes pulseRing {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

@keyframes pulseCore {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.3);
    opacity: 0.9;
  }
}

@keyframes ripple {
  0% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.1;
  }
  100% {
    opacity: 0.3;
    transform: scale(1.15);
  }
}

@keyframes dataFlow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes nodePulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.7;
  }
}

/* Bullet Icon Animations - Subtle Rocking */
.bullet-icon {
  width: 100%;
  height: auto;
}

.bullet-icon g {
  animation: bulletRock 3s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

.bullet-icon line {
  animation: metallicGleam 3s ease-in-out infinite;
}

/* Gentle back and forth rotation */
@keyframes bulletRock {
  0%, 100% {
    transform: rotate(15deg);
  }
  50% {
    transform: rotate(25deg);
  }
}

/* Subtle gleam on detail lines */
@keyframes metallicGleam {
  0%, 100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}


.comprehensive-icon {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 4px 12px rgba(255, 255, 255, 0.3));
  opacity: 0;
  animation: iconFadeIn 1.2s ease-out 0.5s forwards;
}

/* Orbital ring animations */
.icon-ring-horizontal {
  animation: rotateRing 8s linear infinite;
  transform-box: fill-box;
  transform-origin: center;
}

.icon-ring-vertical {
  animation: rotateRing 10s linear infinite reverse;
  transform-box: fill-box;
  transform-origin: center;
}

.icon-ring-diagonal {
  animation: rotateRing 12s linear infinite;
  transform-box: fill-box;
  transform-origin: center;
}

/* Node pulse animations */
.icon-node {
  animation: nodePulse 2s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

.node-1 {
  animation-delay: 0s;
}

.node-2 {
  animation-delay: 0.5s;
}

.node-3 {
  animation-delay: 1s;
}

.node-4 {
  animation-delay: 1.5s;
}

/* Keyframe animations */
@keyframes iconFadeIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes rotateRing {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes nodePulse {
  0%, 100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.3);
  }
}


/* Main hero content (first slide) */
.hero-scroll-slide.hero-main-content {
  text-align: center;
  max-width: 800px;
  padding-top: 0;
  top: 38%;  /* Positioned high like ballistics section with plenty of space below */
  left: 50%;
  transform: translateX(-50%) translateY(100vh);
}

.hero-scroll-slide.hero-main-content.active {
  transform: translateX(-50%) translateY(-50%);
}

.hero-scroll-slide.hero-main-content.exiting {
  transform: translateX(-50%) translateY(-200%);
}

.hero-scroll-slide.hero-main-content .hero-logo-mark {
  width: 160px;
  height: auto;
  margin: 0 auto 0.75rem;
  display: block;
  opacity: 1;
}

.hero-scroll-slide.hero-main-content h1 {
  font-family: 'Barlow', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #fff;
  line-height: 1.2;
}

.hero-scroll-slide.hero-main-content p {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-scroll-slide.hero-main-content .hero-cta {
  margin-top: 1rem;
}

/* Scroll Progress Indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 140px;
  left: 120px;
  display: flex;
  gap: 12px;
  z-index: 4;
}

.scroll-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

.scroll-dot:hover {
  background: rgba(255, 255, 255, 0.5);
  transform: scale(1.2);
}

.scroll-dot.active {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.3);
}


@media (max-width: 768px) {
  .hero-scroll-wrapper {
    padding: 0 24px;
  }

  .hero-scroll-slide {
    left: 24px;
    max-width: calc(100% - 48px);
  }

  .hero-scroll-slide.slide-right {
    right: 24px;
    left: auto;
  }

  .hero-scroll-slide.slide-with-icon,
  .hero-scroll-slide.slide-with-analytics-icon {
    max-width: calc(100% - 48px);
  }

  /* Hero main content - centered slide with proper mobile padding */
  .hero-scroll-slide.hero-main-content {
    max-width: calc(100% - 48px);
    padding: 0 24px;
  }

  .hero-scroll-slide.hero-main-content h1 {
    font-size: clamp(2rem, 7vw, 3rem);
  }

  .hero-scroll-slide.hero-main-content p {
    font-size: clamp(1rem, 4vw, 1.2rem);
    padding: 0 12px;
  }

  .hero-scroll-slide.hero-main-content .hero-cta {
    margin-top: 1.5rem;
  }

  /* Add padding to all slide content text elements */
  .slide-content-wrapper {
    padding: 0 12px;
  }

  .story-left-content h2,
  .story-right-content h2 {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    margin-bottom: 1rem;
  }

  .story-left-content p,
  .story-right-content p {
    font-size: clamp(1rem, 4vw, 1.1rem);
    line-height: 1.5;
  }


  .slide-icon-container {
    flex: 0 0 auto;
    width: 200px;
  }

  .slide-right .slide-icon-container {
    margin-top: 0;
    margin-bottom: 24px;
  }

  .hero-scroll-indicator {
    left: 50%;
    transform: translateX(-50%);
    bottom: 120px;
  }
}

/* Hero video transitions */
.hero-video-primary,
.hero-video-secondary,
.hero-video-tertiary,
.hero-video-quaternary {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 1.8s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity;
  pointer-events: none;
}

.hero-video-primary {
  opacity: 1;
  z-index: 2;
}

.hero-video-secondary {
  opacity: 0;
  z-index: 1;
}

.hero-video-tertiary {
  opacity: 0;
  z-index: 0;
}

.hero-video-quaternary {
  opacity: 0;
  z-index: -1;
}

/* Navigation transparency on hero */
body:not(.careers-page) .site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: background-color 0.4s ease, box-shadow 0.4s ease, border-bottom 0.4s ease;
}

/* Transparent dark nav on hero; white nav after scrolling past hero */
body:not(.careers-page) .site-header:not(.scrolled) {
  background: transparent;
  box-shadow: none;
  border-bottom: none;
}

body:not(.careers-page) .site-header.scrolled {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid #e5e5e5;
  transform: translateY(0);
}

/* Top-level nav items (Products / Services / Company) white on dark hero */
body:not(.careers-page) .site-header:not(.scrolled) .main-nav > ul > li > a,
body:not(.careers-page) .site-header:not(.scrolled) .nav-dropdown-trigger {
  color: #fff;
}

body:not(.careers-page) .site-header:not(.scrolled) .dropdown-arrow path {
  stroke: #fff;
}

body.leadsonline:not(.careers-page) .site-header:not(.scrolled) .logo img {
  filter: brightness(0) invert(1);
}

body:not(.careers-page) .site-header:not(.scrolled) .btn-outline {
  color: #fff;
  border-color: #fff;
}

body:not(.careers-page) .site-header:not(.scrolled) .lang-dropdown__toggle,
body:not(.careers-page) .site-header:not(.scrolled) .lang-dropdown__label {
  color: #fff;
}

body:not(.careers-page) .site-header:not(.scrolled) .lang-dropdown__toggle .dropdown-arrow path {
  stroke: #fff;
}

/* Search icon: white on dark hero, dark on white scrolled nav */
.site-header:not(.scrolled) .nav-search-icon svg circle,
.site-header:not(.scrolled) .nav-search-icon svg line {
  stroke: #fff;
}

.site-header.scrolled .nav-search-icon svg circle,
.site-header.scrolled .nav-search-icon svg line {
  stroke: #1e1f21;
}

/* Hamburger color: white on dark hero, dark on scrolled nav */
@media (max-width: 900px) {
  body.leadsonline .site-header:not(.scrolled) .nav-toggle {
    color: #fff;
  }
  body.leadsonline .site-header.scrolled .nav-toggle {
    color: #1e1f21;
  }
}

/* Top-level nav items dark on white scrolled nav */
.site-header.scrolled .main-nav > ul > li > a,
.site-header.scrolled .nav-dropdown-trigger {
  color: #1e1f21;
}

.site-header.scrolled .dropdown-arrow path {
  stroke: #1e1f21;
}

body.leadsonline:not(.careers-page) .site-header.scrolled .logo img {
  filter: brightness(0);
}

/* Keep nav links white on hover while on the transparent dark hero nav.
   leads-nav.css sets a:hover to #1e1f21 at specificity (0,4,3).
   Adding :hover here at equal specificity wins by source order. */
.site-header:not(.scrolled) .main-nav > ul > li > a:hover,
.site-header:not(.scrolled) .nav-dropdown-trigger:hover {
  color: #fff;
}

/* Mega menu dropdown always white with dark links, regardless of nav state */
.site-header .mega-menu-link {
  color: #1e1f21;
}

/* Add spacing between language dropdown and Request Demo button */
.lang-dropdown {
  margin-right: 16px;
}

/* =================== TESTIMONIALS CAROUSEL SECTION =================== */
.testimonials-carousel-section {
  background: rgb(44, 74, 101);
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}

.testimonials-carousel-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('images/analytics.jpg') center/cover no-repeat;
  mix-blend-mode: multiply;
  opacity: 0.6;
  pointer-events: none;
}

/* Testimonials Section Header */
.testimonials-section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 80px;
  padding: 0 32px;
  position: relative;
  z-index: 1;
}

.testimonials-section-title {
  font-family: 'Barlow', sans-serif;
  font-size: 3.2rem;
  font-weight: 600;
  color: white;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* Override .leadsonline h1/h2 for testimonials title */
.testimonials-section-title {
  font-size: 2.6rem;
  font-family: 'Barlow', sans-serif;
  font-weight: 600;
}

.testimonials-section-subtitle {
  font-family: 'Barlow', sans-serif;
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  margin: 0;
}

.testimonials-carousel-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Left Panel */
.testimonials-left-panel {
  color: white;
}

.testimonials-quote-badge {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
  backdrop-filter: blur(10px);
}

.testimonials-panel-title {
  font-family: 'Barlow', sans-serif;
  font-size: 2.25rem;
  font-weight: 600;
  margin-bottom: 20px;
  line-height: 1.2;
}

.testimonials-panel-text {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 24px;
}


.testimonials-nav-arrows {
  display: flex;
  gap: 12px;
  align-items: center;
}

.testimonials-arrow {
  all: unset;
  display: inline-block;
  width: 10px;
  height: 10px;
  min-width: 10px;
  max-width: 10px;
  min-height: 10px;
  max-height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

.testimonials-arrow svg {
  display: none;
}

.testimonials-arrow:hover {
  background: rgba(255, 255, 255, 0.8);
  background-color: rgba(255, 255, 255, 0.8);
  transform: scale(1.1);
}

body.leadsonline .testimonials-arrow {
  all: unset;
  display: inline-block;
  width: 10px;
  height: 10px;
  min-width: 10px;
  max-width: 10px;
  min-height: 10px;
  max-height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body.leadsonline .testimonials-arrow:hover {
  background: rgba(255, 255, 255, 0.8);
  background-color: rgba(255, 255, 255, 0.8);
  transform: scale(1.1);
}

/* Right Side - Cards Carousel */
.testimonials-cards-wrapper {
  position: relative;
  overflow: hidden;
  padding: 20px 0;
}

.testimonials-cards-track {
  display: flex;
  gap: 24px;
  transition: transform 0.5s ease;
}

.testimonial-carousel-card {
  min-width: calc(33.333% - 16px);
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-carousel-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.2);
}

.testimonial-card-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.testimonial-card-image img,
.testimonial-card-image video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


.testimonial-card-content {
  padding: 24px;
}

.testimonial-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
}

.testimonial-stars svg {
  width: 16px;
  height: 16px;
  animation: fillStar 3s ease-in-out infinite;
  transform: scale(1);
  opacity: 1;
}

/* Staggered star animation delays */
.testimonial-stars svg:nth-child(1) {
  animation-delay: 0s;
}

.testimonial-stars svg:nth-child(2) {
  animation-delay: 0.15s;
}

.testimonial-stars svg:nth-child(3) {
  animation-delay: 0.3s;
}

.testimonial-stars svg:nth-child(4) {
  animation-delay: 0.45s;
}

.testimonial-stars svg:nth-child(5) {
  animation-delay: 0.6s;
}

/* Star fill animation - continuous loop */
@keyframes fillStar {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  10% {
    transform: scale(0);
    opacity: 0;
  }
  20% {
    transform: scale(1.15);
    opacity: 1;
  }
  25% {
    transform: scale(1);
    opacity: 1;
  }
}

.testimonial-card-quote {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #000000;
  margin-bottom: 20px;
}

.testimonial-card-author {
  border-top: 1px solid #e0e0e0;
  padding-top: 16px;
}

.testimonial-author-name {
  font-weight: 900;
  font-size: 1.0rem;
  color: #000000;
  margin-bottom: 0px;
  text-shadow: 0 0 0.5px rgba(0, 0, 0, 0.3);
}

.testimonial-author-title {
  font-size: 0.8rem;
  color: #000000;
  margin: 0;
}


/* Responsive */
@media (max-width: 1200px) {
  .testimonials-section-title {
    font-size: 2.5rem;
  }

  .testimonials-carousel-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .testimonials-left-panel {
    text-align: center;
  }

  .testimonials-quote-badge {
    margin-left: auto;
    margin-right: auto;
  }

  .testimonials-nav-arrows {
    justify-content: center;
  }

  .testimonial-carousel-card {
    min-width: calc(50% - 12px);
  }
}

@media (max-width: 768px) {
  .testimonials-carousel-section {
    padding: 60px 0 80px;
  }

  .testimonials-section-header {
    margin-bottom: 60px;
  }

  .testimonials-section-title {
    font-size: 2rem;
  }

  .testimonials-section-subtitle {
    font-size: 1.1rem;
  }

  .testimonials-carousel-container {
    padding: 0 24px;
  }

  .testimonials-panel-title {
    font-size: 2rem;
  }

  .testimonial-carousel-card {
    min-width: 100%;
  }

  .testimonials-cards-track {
    gap: 16px;
  }
}

/* =================== STATS COUNTER SECTION =================== */
.stats-counter-section {
  background: #f8f9fa;
  padding: 100px 0;
  position: relative;
}

.stats-counter-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('images/geometric-world-map-background-3d-illustration-2026-01-09-00-39-59-utc.jpg') center/cover no-repeat;
  opacity: 0.08;
  pointer-events: none;
}

.stats-counter-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.stats-counter-left {
  max-width: 600px;
}

.stats-section-heading {
  font-family: 'Barlow', sans-serif;
  font-size: 2.6rem;
  font-weight: 600;
  color: #000000;
  text-align: left;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.stats-tagline {
  color: #000000;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 64px;
}

.stats-headline {
  font-size: 2.8rem;
  font-weight: 700;
  color: #000000;
  line-height: 1.2;
  margin-bottom: 36px;
}

.stats-description {
  font-size: 1.1rem;
  color: #000000;
  line-height: 1.8;
  margin-bottom: 32px;
}

.stats-cta-button {
  display: inline-block;
  background: #007bff;
  color: white;
  padding: 16px 40px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
}

.stats-cta-button:hover {
  background: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3);
  color: white;
  text-decoration: none;
}

.stats-counter-right {
  width: 100%;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.stat-card {
  background: transparent;
  padding: 0;
  box-shadow: none;
  height: 160px;
  border-radius: 12px;
}

.stat-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.45s ease-in-out;
}

.stat-card.flipping .stat-card-inner {
  transform: scaleX(0);
}

.stat-card-face {
  position: absolute;
  inset: 0;
  background: #0A2B5C;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s ease;
}

.stat-card-face:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.16);
}

.stat-card-back {
  display: none;
}

.stat-card.flipped .stat-card-front {
  display: none;
}

.stat-card.flipped .stat-card-back {
  display: flex;
}

.stats-pagination {
  display: flex;
  gap: 8px;
  margin-top: 20px;
  justify-content: flex-start;
}

.stats-dot {
  position: relative;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(10, 43, 92, 0.25);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease, transform 0.2s ease;
  outline: none;
}

/* Invisible hit-area expansion — does not affect layout or visual size */
.stats-dot::after {
  content: '';
  position: absolute;
  inset: -10px;
}

.stats-dot.active {
  background: #0A2B5C;
  transform: scale(1.25);
}

.stats-dot:hover {
  background: rgba(10, 43, 92, 0.5);
}

.stats-dot:focus-visible {
  outline: 2px solid #0A2B5C;
  outline-offset: 3px;
}

.stats-live {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.stats-counter-section .stat-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  background: none;
  border-radius: 0;
}


.stats-counter-section .stat-number {
  font-size: 3.2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
  line-height: 1;
}

.stats-counter-section .stat-label {
  font-size: 1rem;
  color: #ffffff;
  font-weight: 500;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .stats-counter-container {
    gap: 60px;
  }

  .stats-section-heading {
    font-size: 2.5rem;
  }

  .stats-headline {
    font-size: 2.4rem;
  }

  .stats-counter-section .stat-number {
    font-size: 2.8rem;
  }
}

@media (max-width: 968px) {
  .stats-counter-section {
    padding: 80px 0;
  }

  .stats-counter-container {
    grid-template-columns: 1fr;
    gap: 60px;
    padding: 0 30px;
  }

  .stats-counter-left {
    max-width: 100%;
    text-align: center;
  }

  .stats-section-heading {
    font-size: 2.2rem;
  }

  .stats-headline {
    font-size: 2.2rem;
  }

  .stats-description {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .stats-counter-section {
    padding: 60px 0;
  }

  .stats-counter-container {
    padding: 0 20px;
  }

  .stats-section-heading {
    font-size: 1.8rem;
  }

  .stats-headline {
    font-size: 1.8rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .stat-card {
    padding: 0;
    height: 140px;
  }

  .stat-card-face {
    padding: 24px 20px;
  }

  .stats-counter-section .stat-number {
    font-size: 2.5rem;
  }

  .stats-counter-section .stat-label {
    font-size: 0.9rem;
  }
}

/* =================== RETURN TO TOP BUTTON =================== */
.return-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  left: auto;
  top: auto;
  padding: 14px 24px;
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  border: none;
  border-radius: 50px;
  color: #fff;
  cursor: pointer;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Barlow', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 8px 32px rgba(37, 99, 235, 0.4), 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 9999;
}

.return-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.return-to-top:hover {
  background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(37, 99, 235, 0.5), 0 6px 16px rgba(0, 0, 0, 0.2);
}

.return-to-top:active {
  transform: translateY(-2px);
}

.return-to-top svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.return-to-top span {
  white-space: nowrap;
}

/* Responsive Design */
@media (max-width: 768px) {
  .return-to-top {
    bottom: 24px;
    right: 24px;
    padding: 12px 20px;
    font-size: 0.85rem;
  }

  .return-to-top svg {
    width: 14px;
    height: 14px;
  }
}

@media (max-width: 576px) {
  .return-to-top {
    bottom: 20px;
    right: 20px;
    padding: 10px 18px;
  }

  /* Extra small screens - more compact hero spacing */
  .hero-scroll-wrapper {
    padding: 0 16px;
  }

  .hero-scroll-slide {
    left: 16px;
    max-width: calc(100% - 32px);
  }

  .hero-scroll-slide.slide-right {
    right: 16px;
  }

  .hero-scroll-slide.hero-main-content {
    max-width: calc(100% - 32px);
    padding: 0 16px;
  }

  .hero-scroll-slide.hero-main-content h1 {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
    margin-bottom: 1rem;
  }

  .hero-scroll-slide.hero-main-content p {
    font-size: clamp(0.95rem, 4.5vw, 1.1rem);
    padding: 0 8px;
  }

  .slide-content-wrapper {
    padding: 0 8px;
  }

  .story-left-content h2,
  .story-right-content h2 {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }

  .story-left-content p,
  .story-right-content p {
    font-size: clamp(0.95rem, 4.5vw, 1rem);
  }
}

/* ============================================================
   CASE STUDY SHARE BUTTON & DROPDOWN
   ============================================================ */
.case-study-tag-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.case-study-tag-row .case-study-product-tag {
  margin-bottom: 0;
}

.case-study-share-wrapper {
  position: relative;
}

.case-study-share-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}

.case-study-share-btn img {
  filter: invert(38%) sepia(73%) saturate(1000%) hue-rotate(196deg) brightness(92%) contrast(90%);
}

.case-study-share-btn:hover {
  background: rgba(53, 117, 226, 0.1);
}

.share-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 6px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  padding: 6px 0;
  min-width: 160px;
  z-index: 100;
  border: 1px solid #e5e7eb;
}

.share-dropdown[hidden] {
  display: none;
}

.share-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-family: 'Barlow', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: #374151;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}

.share-option:hover {
  background: #f3f4f6;
}

.share-facebook:hover {
  color: #1877f2;
}

.share-linkedin:hover {
  color: #0a66c2;
}

.share-twitter:hover {
  color: #000000;
}

/* ============================================================
   STORY MODAL SHARE ICONS
   ============================================================ */
.story-modal-share {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
}

.story-modal-share-label {
  font-family: 'Barlow', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.story-modal-share-icons {
  display: flex;
  gap: 10px;
}

.story-modal-share-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: #3575e2;
  cursor: pointer;
  transition: opacity 0.2s, background 0.2s;
}

.story-modal-share-icon:hover {
  background: rgba(53, 117, 226, 0.08);
  opacity: 0.8;
}

.story-modal-share-icon.share-facebook:hover {
  color: #3575e2;
}

.story-modal-share-icon.share-linkedin:hover {
  color: #3575e2;
}