h1,h2,h3,h4,h5,h6{
    font-family: "chakra petch";
}

p,span,div,a,li{
    font-family: "Inter";
}

html, body {
  max-width: 100%;
  overflow-x: clip;
}

.apex-video-wrap svg {
  display: block;
  margin: 0 auto;
}


.feature-card {
  height: 160px;
}

/* Hover effect */
.feature-card:hover .card-bg,
.feature-card:hover .card-overlay {
  opacity: 1;
}

/* Active state */
.feature-card.active .card-bg,
.feature-card.active .card-overlay {
  opacity: 1 !important;
}

.feature-card.active {
  color: white;
}

.feature-card.active p {
  color: #e5e7eb;
}

/* Mobile slider mode */
@media (max-width: 639px) {
  .feature-wrapper {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .feature-wrapper > * {
    scroll-snap-align: start;
  }

  .feature-wrapper::-webkit-scrollbar {
    display: none;
  }

  .feature-card {
    height: auto;
    min-height: 120px;
  }
}

.apex-video-mask {
  width: 320px;
  height: 420px;
  position: relative;

  mask: url(#apexShapeMask);
  -webkit-mask: url(#apexShapeMask);

  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;

  mask-size: contain;
  -webkit-mask-size: contain;

  mask-position: center;
  -webkit-mask-position: center;

  overflow: hidden;
}

.apex-video-mask video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}



/* Apex arrow logo animation */
/* 
@keyframes arrowMoveLTR {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0%);
  }
}

.arrow-strip {
  display: flex;
  width: max-content;
  animation: arrowMoveLTR 15s linear infinite !important;
} */





/* 
.arrow {
  opacity: 0;
  transform: scale(0.5) translateX(0);
  animation: arrowPulseLinear 4s linear infinite;
  will-change: transform, opacity;
}

.arrow-1 { animation-delay: 0s; }
.arrow-2 { animation-delay: 0.4s; }
.arrow-3 { animation-delay: 0.8s; }
.arrow-4 { animation-delay: 1.2s; }

@keyframes arrowPulseLinear {
  0% {
    opacity: 0;
    transform: scale(0.5) translateX(0);
  }

  25% {
    opacity: 1;
    transform: scale(0.85) translateX(3px);
  }

  50% {
    opacity: 1;
    transform: scale(1) translateX(6px);
  }

  75% {
    opacity: 0.6;
    transform: scale(1.15) translateX(9px);
  }

  100% {
    opacity: 0;
    transform: scale(1.3) translateX(12px);
  }
} */



/* Apex-logo fadeout animation */
.fade-out{
  animation: logoFadeZoom 3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  will-change: transform, opacity;
}

@keyframes logoFadeZoom {

  0%{
    opacity: 1;
    transform: scale(1) translateY(0);
  }

  70%{
    opacity: 1;
    transform: scale(1.05) translateY(-6px); 
  }

  100%{
    opacity: 0;
    transform: scale(1.10) translateY(-14px); 
  }
}





.apex-logo {
  transform: translateZ(0);
}

.apex-logo .fill-anim {
  animation: logoFillVertical 9s linear infinite;
  will-change: transform;
}

@keyframes logoFillVertical {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(391px);
  }
}


/* scroll section */


.rotate-track {
  display: flex;
  flex-direction: column;
  animation: rotateWords 9s infinite ease-in-out;
}

/* KEY FIX */
.rotate-track span {
  width: 100%;                 /* same width for all */
  height: 1.4em;
  background: #dc2626;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;     /* center text */
}

/* smooth mobile-safe animation */
@keyframes rotateWords {
  0%,12%   { transform: translateY(0); }
  16%,28%  { transform: translateY(-1.4em); }
  32%,44%  { transform: translateY(-2.8em); }
  48%,60%  { transform: translateY(-4.2em); }
  64%,76%  { transform: translateY(-5.6em); }
  80%,92%  { transform: translateY(-7em); }
  100%     { transform: translateY(0); }
}





.why-title {
  
  font-size: clamp(72px, 14vw, 180px);
}

.card { perspective: 1600px; }

  .card-inner {
    transform-style: preserve-3d;
    will-change: transform, opacity, filter;
    
  }

  .bg-parallax { will-change: transform; }

  /* ===== MOBILE FIXES ===== */
  @media (max-width: 768px) {

    .card {
      position: relative !important;
      height: 100svh !important;
    }

    .card-inner {
      width: 92% !important;
      padding: 1.5rem !important;
    }

    
  }

  #whyChooseScroll .card {
  perspective: 1600px;
}

#whyChooseScroll .card-inner {
  transform-style: preserve-3d;
  will-change: transform, opacity, filter;
}

#whyChooseScroll .bg-parallax {
  will-change: transform;
}

@media (max-width: 768px) {
  #whyChooseScroll .card {
    position: relative !important;
    height: 100svh !important;
  }

  #whyChooseScroll .card-inner {
    width: 92% !important;
    padding: 1.5rem !important;
  }
}

/* Reliable TMT Bars */

  /* BASE WHITE CHEVRONS */
.white-chevrons {
  animation: glowFillBlink 3s ease-in-out infinite;
  will-change: opacity;
}

/*
  Smooth fill → blink → pause
*/
@keyframes glowFillBlink {
  /* start dim */
  0% {
    opacity: 0.25;
  }

  /* smooth white build */
  40% {
    opacity: 1;
  }

  /* blink OFF */
  50% {
    opacity: 0.25;
  }

  /* blink ON (single blink) */
  60% {
    opacity: 1;
  }

  /* fade out */
  70% {
    opacity: 0.25;
  }

  /* STOP / REST */
  100% {
    opacity: 0.25;
  }
}



/* Animation  css */
/* =========================================
   Base hidden state (ultra smooth)
========================================= */

.fade-up,
.fade-down,
.fade-left,
.fade-right,
.fade-in,
.animate-down,
.animate-up {
  opacity: 0;

  /* MUCH smoother + premium feel */
  transition:
    opacity 2.1s cubic-bezier(0.22, 1, 0.36, 1),
    transform 2.1s cubic-bezier(0.22, 1, 0.36, 1);

  /* GPU stability */
  will-change: transform, opacity;
  transform: translate3d(0,0,0);
  backface-visibility: hidden;
}



/* =========================================
   Directions (small = elegant)
   Large moves cause jitter
========================================= */

.fade-up    { transform: translateY(40px); }
.fade-down  { transform: translateY(-40px); }
.fade-left  { transform: translateX(-40px); }
.fade-right { transform: translateX(40px); }
.fade-in    { transform: scale(0.94); }



/* =========================================
   Visible state
========================================= */

.show {
  opacity: 1;
  transform: translate3d(0,0,0) scale(1);
}



/* =========================================
   Keyframe cinematic versions
   (extra premium slow motion)
========================================= */

.animate-down,
.animate-up {
  transition: none;
}


/* Top → Down */
@keyframes slideDownFade {
  from {
    opacity: 0;
    transform: translateY(-100px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* Bottom → Up */
@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(100px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* slower cinematic timing */
.show.animate-down {
  animation: slideDownFade 1.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.show.animate-up {
  animation: slideUpFade 1.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}



/* =========================================
   Optional: slight stagger helper
   (makes page feel premium)
========================================= */

.fade-up:nth-child(1) { transition-delay: .05s }
.fade-up:nth-child(2) { transition-delay: .12s }
.fade-up:nth-child(3) { transition-delay: .20s }
.fade-up:nth-child(4) { transition-delay: .28s }


/* Mobile carousels  */

.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}




/* About foundation cards */
.apx-foundation-track::-webkit-scrollbar {
  display: none;
}
.apx-foundation-track {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
#apxFoundationSlider::-webkit-scrollbar{display:none}
#apxFoundationSlider{-ms-overflow-style:none;scrollbar-width:none}




/* /product page  */
/* slides */
.spec-slide{
  position:absolute;
  inset:0;
  opacity:0;
  transform:translateY(15px);
  transition:.4s ease;
  pointer-events:none;   /* prevent clicking hidden slides */
}

.spec-slide.active{
  opacity:1;
  transform:translateY(0);
  position:relative;
  pointer-events:auto;   /* enable only active slide */
}


/* items */
.spec-item{
  cursor:pointer;
  padding-bottom:12px;
  transition:.25s ease;
}

.spec-item:hover{
  transform:translateY(-3px);
}


/* underline */
.spec-underline{
  display:block;
  width:0;
  height:2px;
  background:#dc2626;
  margin-top:6px;
  transition:width .35s ease;
}

.spec-item:hover .spec-underline,
.spec-item.active .spec-underline{
  width:70px;
}


/* images */
.spec-img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:0;
  transition:.6s;
}

.active-img{
  opacity:1;
}


/* progress */
.progress-bar{
  flex:1;
  height:2px;
  background:#e5e7eb;
  position:relative;
  overflow:hidden;
}

.progress-bar::after{
  content:'';
  position:absolute;
  height:100%;
  width:0;
  background:#dc2626;
}

.progress-bar.fill::after{
  animation:fill 3s linear forwards;
}

@keyframes fill{
  from{width:0}
  to{width:100%}
}



/* Advanced Quality Control section Auto slider css */

 #qcSlider::-webkit-scrollbar {
    display: none;
  }
  #qcSlider {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }



  @keyframes waveSlide {
  0% {
    transform: translateY(-25%);
  }
  50% {
    transform: translateY(0%);
  }
  100% {
    transform: translateY(-25%);
  }
}

.wave-overlay {
  animation: waveSlide 6s ease-in-out infinite;
}


/* Technology /QUALITY - infrastructure section */

.line-draw {
  stroke-dasharray: 500;
  stroke-dashoffset: 500;
  transition: stroke-dashoffset 0.6s ease;
}

.group:hover .line-draw {
  stroke-dashoffset: 0;
}


 #steps {
    position: relative;
    min-height: 280px;
    overflow: hidden;
  }

  .step {
    transition: all 0.6s ease-in-out;
  }

  .hidden-step {
    opacity: 0;
    transform: translateY(40px);
    position: absolute;
    left: 0;
    right: 0;
    pointer-events: none;
  }


/* All carousel slides */

  #prevBtn , #nextBtn{
    cursor: pointer;
  }