.swiper {
  width: 100%;
  aspect-ratio: 16 / 9; /* Forces the container to always be 16:9 */
  height: 100%;
}

.hero-section {
  position: relative;
  width: 100%;
  height: calc(100dvh - 91px);
}

/* Overlay for hero section */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgb(0 0 0 / 60%);
  pointer-events: none;
  z-index: 2;
}

.hero-slide {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.hero-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  position: absolute;
  inset: 0;
}

.hero-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  text-align: center;
  color: var(--bs-white);
  padding: 2rem;
}

.hero-text-container {
  max-width: 900px;
}

.hero-text-container h1 {
  font-size: 80px;
  font-weight: 800;
  margin-bottom: 1.5rem;
  text-shadow: 3px 3px 12px rgb(0 0 0 / 80%);
  letter-spacing: -1px;
  line-height: 1.1;
  color: var(--bs-white);
}

.hero-subtitle {
  font-weight: 600;
  margin: 0 auto 1.25rem;
  color: var(--bs-white);
  text-shadow: 2px 2px 6px rgb(0 0 0 / 70%);
  letter-spacing: 0.5px;
  font-size: 20px;
  max-width: 600px;
  text-align: center;
}

.swiper-button-prev,
.swiper-button-next {
  color: var(--bs-white) !important;
}

/* If you need to change the background circle color as well */
.swiper-button-prev::after,
.swiper-button-next::after {
  color: var(--bs-white) !important;
}

.hero-description {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  color: rgb(255 255 255 / 95%);
  text-shadow: 2px 2px 6px rgb(0 0 0 / 70%);
  line-height: 1.8;
  margin: 0;
  font-weight: 500;
  letter-spacing: 0.3px;
}

@media (width <= 768px) {
  .hero-content {
    padding: 1.5rem;
  }

  .hero-text-container {
    max-width: 100%;
  }

  .hero-text-container h1,
  .hero-text-container h2 {
    margin-bottom: 0.75rem;
  }

  .hero-text-container h1::after {
    width: 60px;
    height: 3px;
    margin: 0.75rem auto 0;
  }

  .hero-subtitle {
    margin-bottom: 0.75rem;
    font-size: 1rem;
  }

  .hero-description {
    font-size: 16px;
  }
}

/* Animation for the zoom-in effect (1.0 -> 1.2) */
@keyframes ken-burns-in {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(1.2);
  }
}

.hero-media.animate-zoom {
  /* Ensure the element stays contained within the slide */
  animation: ken-burns-in 10s ease-out forwards;
}

/* Certification Section */
.certification-section {
  background-color: var(--bs-light);
  border-top: 1px solid var(--bs-border-color);
}

.certification-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.certification-row {
  width: 100%;
  margin-bottom: 40px;
}

.certification-column {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.certification-icon--patent {
  mix-blend-mode: multiply;
}

.certification-column .certification-title {
  font-size: clamp(1.35rem, 1.7vw, 2rem);
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.certification-column--patent .certification-title {
  font-size: clamp(1.25rem, 1.45vw, 1.7rem);
}

.certification-subtitle {
  font-size: 13px;
  color: var(--color-muted-foreground);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 3px;
  display: block;
}

@media (width >= 992px) {
  .certification-column:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    width: 1px;
    height: 80px;
    background-color: var(--bs-border-color);
    transform: translateY(-50%);
  }
}

.certification-footer-note {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 35px;
  background-color: var(--bs-white);
  border: 1px solid var(--bs-border-color);
  border-radius: 8px;
  color: #334155;
  font-size: 1rem;
  box-shadow: 0 4px 20px rgb(0 0 0 / 4%);

  @media (width >= 768px) {
    max-width: 90%;
  }
}

.certification-footer-note i {
  color: var(--brand-color);
  font-size: 20px;
}

@media (width < 768px) {
  .certification-column .certification-title {
    font-size: 24px;
  }
}

/* About Us Section */
.about-us-section {
  overflow: hidden;
  border-top: 1px solid var(--bs-border-color);
}

.about-dark-panel {
  position: relative;
  min-height: 500px;
  background-color: var(--color-background-dark);

  @media (width >= 992px) {
    padding-right: 3rem;
  }
}

.about-dark-panel::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 100%;
  width: 100vw;
  background-color: var(--color-background-dark);
  pointer-events: none;
}

.about-dark-panel::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -100vw;
  right: 0;
  background: rgb(1 31 61 / 10%);
  pointer-events: none;
}

@media (width < 992px) {
  .about-dark-panel::before {
    left: -100vw;
    right: -100vw;
    width: auto;
  }

  .about-dark-panel::after {
    right: -100vw;
  }
}

.about-badge {
  background-color: #043155;
  color: rgb(255 255 255 / 70%);
  border: 1px solid #0b5b91;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  border-radius: 20px;
}

.about-heading {
  font-size: 2.5rem;
  line-height: 1.1;
  font-weight: 700;
  color: rgb(255 255 255 / 90%);
}

.about-lead {
  color: rgb(255 255 255 / 50%);
  font-size: 15px;
  max-width: 280px;
  line-height: 1.7;
}

.about-product-range-title {
  margin: 0 0 1rem;
  color: var(--bs-white);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
}

.about-product-range-list {
  display: grid;
  gap: 0.65rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.about-product-range-list li {
  position: relative;
  padding-left: 1rem;
  color: rgb(255 255 255 / 66%);
  font-size: 0.875rem;
  line-height: 1.45;
}

.about-product-range-list li::before {
  content: "";
  position: absolute;
  top: 0.58em;
  left: 0;
  width: 0.3rem;
  height: 0.3rem;
  background: currentcolor;
  border-radius: 50%;
}

@media (width >= 992px) {
  .about-light-panel {
    padding-left: 3rem;
  }
}

.about-mission-heading {
  font-size: 1.75rem;
  line-height: 1.2;
  font-weight: 700;
}

.about-mission-body {
  font-size: 0.9375rem;
  line-height: 1.8;
}

.about-pillar {
  border-left: 2px solid var(--color-border);
  padding-left: 1.25rem;
  transition: border-color 0.2s ease;
}

.about-pillar:hover {
  border-left-color: var(--brand-color);
}

.about-pillar-title {
  font-size: 0.9375rem;
  font-weight: 600;
}

/**************************************************************************************
    * Stats Section
    **************************************************************************************/
.stats-panel {
  border: none !important;
  background: var(--bs-white);
  position: relative;
  overflow: hidden;
}

/* Exception: pseudo-element dot-grid texture for industrial depth; no Bootstrap equivalent */
.stats-panel::before {
  background-image: radial-gradient(var(--color-border) 1px, transparent 1px);
  background-size: 22px 22px;
}

.stats-inner {
  position: relative;
  z-index: 1;
}

.stats-eyebrow {
  color: var(--sb-green);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.stats-heading {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--bs-body-color);
  line-height: 1.25;
}

.stats-live-badge {
  background: rgb(99 102 241 / 8%);
  border-color: rgb(99 102 241 / 25%);
  color: var(--custom-accent);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* Exception: pulse animation for live status indicator; Motion.js does not handle looping ambient animations */
.stats-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--custom-accent);
  flex-shrink: 0;
  animation: stats-pulse 2s ease-in-out infinite;
}

@keyframes stats-pulse {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.3;
  }
}

.stats-grid {
  border-top: 1px solid var(--color-border);
  border-top-color: var(--color-border);
  display: flex;
  flex-wrap: wrap;
}

.stats-metric {
  height: 100%;
  padding-block: 24px;
}

.col-lg-3:first-child .stats-metric {
  padding-left: 0;
}

.col-lg-3:last-child .stats-metric {
  padding-right: 0;
}

@media (width < 768px) {
  .col-lg-3:not(:last-child) .stats-metric {
    border-bottom: 1px solid var(--color-border);
  }
}

@media (768px <= width < 992px) {
  .col-lg-3:nth-child(odd):has(.stats-metric) {
    border-right: 1px solid var(--color-border);
  }

  .col-lg-3:not(:last-child, :nth-last-child(2)):has(.stats-metric) {
    border-bottom: 1px solid var(--color-border);
  }

  .col-lg-3:nth-child(odd) .stats-metric {
    padding-right: 16px;
  }

  .col-lg-3:nth-child(even) .stats-metric {
    padding-left: 16px;
  }
}

@media (width < 992px) {
  .stats-left-col {
    border-bottom: 1px solid var(--color-border);
  }
}

@media (width >= 992px) {
  .stats-left-col {
    padding-right: 3rem;
    border-right: 1px solid var(--color-border);
  }

  .stats-right-col {
    padding-left: 3rem;
  }

  .col-lg-3:not(:last-child):has(.stats-metric) {
    border-right: 1px solid var(--color-border);
  }

  .stats-metric {
    padding-inline: 16px;
  }
}

@media (width < 768px) {
  .col-lg-3:not(:last-child) .stats-metric {
    border-bottom: 1px solid var(--color-border);
  }
}

@media (768px <= width < 992px) {
  .col-lg-3:nth-child(odd):has(.stats-metric) {
    border-right: 1px solid var(--color-border);
  }

  .col-lg-3:not(:last-child, :nth-last-child(2)):has(.stats-metric) {
    border-bottom: 1px solid var(--color-border);
  }

  .col-lg-3:nth-child(odd) .stats-metric {
    padding-right: 16px;
  }

  .col-lg-3:nth-child(even) .stats-metric {
    padding-left: 16px;
  }
}

@media (width < 992px) {
  .stats-left-col {
    border-bottom: 1px solid var(--color-border);
  }
}

@media (width >= 992px) {
  .col-lg-3:not(:last-child):has(.stats-metric) {
    border-right: 1px solid var(--color-border);
  }

  .stats-metric {
    padding-inline: 16px;
  }
}

@media (width >= 992px) {
  .stats-metric {
    border-bottom: none; /* Remove horizontal line on desktop */
    border-right: 1px solid var(--color-border);
    border-bottom-color: transparent;
  }

  .stats-metric:last-child {
    border-right: none;
  }
}

.stats-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.stats-metric-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-muted-foreground);
}

.stats-metric-value {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1;
  color: var(--bs-body-color);
}

.stats-metric-unit {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-muted-foreground);
  padding-bottom: 0.4rem;
}

.stats-metric-desc {
  font-size: 0.75rem;
  color: var(--color-muted-foreground);
  margin-top: 0.5rem;
}

/* Ensure the Header specifically has top/bottom spacing */
.stats-header {
  padding-block: 2rem;
}

/**************************************************************************************
    * Product Section
    **************************************************************************************/

.product-section {
  background: var(--color-background-dark);
}

.product-heading {
  font-family: var(--pl-condensed);
  font-size: 32px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--bs-white);
}

.product-heading-desc {
  font-size: 15px;

  @media (width >= 768px) {
    max-width: 500px;
  }
}

.product-row-card {
  background: #011a33;
  border: 1px solid #01101e;
  border-radius: 14px;
  overflow: hidden;
  transition:
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.product-img-panel {
  width: clamp(170px, 14vw, 200px);
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  background: var(--bs-white);
}

.product-product-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-content {
  padding: 1.25rem 1.5rem;
  flex: 1;
  min-width: 0;
}

.product-model {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bs-white);
  margin-bottom: 0.3rem;
}

.product-prod-name {
  font-weight: 700;
  font-size: 16px;
  color: var(--bs-white);
  margin-bottom: 0.4rem;
  line-height: 1.3;
}

.product-prod-desc {
  font-size: 13px;
  color: var(--bs-white);
  line-height: 1.55;
  margin-bottom: 0.75rem;
}

.product-dims-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.product-dim-pill {
  font-size: 12px;
  font-weight: 600;
  padding: 0.25em 0.7em;
  background: #022447;
  border: 1px solid #033363;
  border-radius: 20px;
  color: var(--bs-white);
  white-space: nowrap;
}

.product-actions {
  padding: 1.25rem 1.5rem 1.25rem 0; /* Keep or reduce bottom padding if needed */
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center; /* CHANGE: Changed from space-between to center */
  gap: 1rem;
  flex-shrink: 0;
  width: 160px;
}

.product-cert-badge {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.28em 0.7em;
  border-radius: 4px;
}

.product-btn-primary {
  font-size: 13px;
  font-weight: 600;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  white-space: nowrap;

  /* Reset previous animation */
  transform: none;
  opacity: 1;
  transition:
    background-color 0.2s ease,
    transform 0.1s ease;
}

.product-btn-primary:hover {
  transform: translateY(-2px);
}

@media (width < 768px) {
  .product-row-card {
    flex-direction: column;
  }

  .product-img-panel {
    width: 100%;
    height: 260px;
  }

  .product-actions {
    width: 100%;
    padding: 0 1.5rem 1.25rem;
    align-items: flex-start;
  }
}

/* =========================================
   CLIENT section
   ====== */

.logo-glow-hover {
  transition: all 0.4s ease-in-out;
  filter: drop-shadow(0 0 0 rgb(0 123 255 / 0%));
}

.logo-glow-hover:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 12px rgb(255 102 0 / 86.3%));
}

.client-ticker-section {
  position: relative;
  width: 100%;
  min-height: 500px;
  padding: 80px 0;
  background: rgb(245 241 241 / 74%); /* Slightly off-white */
  overflow: hidden;
}

#particle-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.3;
}

.ticker-content-wrapper {
  position: relative;
  z-index: 5;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;

  /* Allows mouse to pass through to particles in empty spaces */
  pointer-events: none;
}

.section-title {
  /* Using your brand Orange for the title makes it pop */
  color: var(--brand-color);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 50px;
  text-transform: uppercase;
  letter-spacing: 1px;

  /* Allows particles to react even when hovering over the text */
  pointer-events: auto;
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  padding: 20px;
}

.logo-item {
  position: relative;
  z-index: 1;
  background-color: white;
  height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px;
  border-radius: 4px; /* Sharper corners feel more industrial */
  transition:
    transform 0.3s ease-in-out,
    border-color 0.3s ease-in-out,
    box-shadow 0.3s ease-in-out;
  border: 1px solid transparent;
}

.logo-item:hover {
  transform: translateY(-5px);
  border-color: var(--brand-color);
  box-shadow: 0 10px 20px rgb(0 0 0 / 20%);
}

.logo-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.8;
  transition:
    filter 0.3s ease-in-out,
    opacity 0.3s ease-in-out;
}

.logo-item:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

@media (width <= 768px) {
  .logo-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .section-title {
    font-size: 28px;
  }
}

/* ============================================
 CTA Section
   ============================================ */

.cta-section {
  background-image: var(--cta-background-image);
  position: relative;
  overflow: hidden;
}

.cta-inner {
  position: relative;
  z-index: 1;
}

.cta-tag {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-color);
  background-color: rgb(241 101 25 / 20%);
  border: 1px solid var(--brand-color);
  border-radius: 20px;
  padding: 0.4rem 1rem;
}

.cta-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-color);
  display: inline-block;
  flex-shrink: 0;

  /* Exception: pulse animation on live indicator; Motion.js does not handle looping CSS pulses */
  animation: cta-pulse-ring 2s ease-in-out infinite;
}

@keyframes cta-pulse-ring {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgb(247 105 21 / 50%);
    opacity: 1;
  }

  50% {
    box-shadow: 0 0 0 6px rgb(34 197 94 / 0%);
    opacity: 0.85;
  }
}

.cta-headline {
  font-size: 44px;
  font-weight: 600;
  line-height: 1.05;
  color: var(--bs-white);
  letter-spacing: -0.01em;
}

.cta-body {
  font-size: 1rem;
  line-height: 1.8;
  color: rgb(255 255 255 / 55%);
  max-width: 560px;
}

.cta-trust-strip {
  align-items: center;
}

.cta-trust-item {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgb(255 255 255 / 45%);
}

.cta-trust-sep {
  color: rgb(255 255 255 / 12%);
  font-size: 12px;
}

/* Applications and common names */
.applications-common-heading {
  color: var(--color-background-dark);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.25;
}

.applications-common-column h3 {
  margin-bottom: 1rem;
  color: var(--brand-color);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
}

.applications-common-list {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding-left: 1.15rem;
  color: var(--color-muted-foreground);
  font-size: 15px;
  line-height: 1.55;
}

/* Global exports */
.global-export-heading {
  color: var(--color-background-dark);
  font-size: 36px;
  font-weight: 800;
  line-height: 1.1;
}

.global-export-text {
  color: var(--color-muted-foreground);
  font-size: 15px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
