/* Manufacturing page — advanced scroll, flip & overlay animations */
.tt-manufacturing-page {
  --tt-mfg-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --tt-mfg-teal: #36c1df;
  --tt-mfg-dark: #071827;
}

.tt-mfg-scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  z-index: 9999;
  pointer-events: none;
  background: rgba(7, 24, 39, 0.06);
}
.tt-mfg-scroll-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #12a8d0, #36c1df, #17b978);
  box-shadow: 0 0 18px rgba(54, 193, 223, 0.55);
  transition: width 0.12s linear;
}

.tt-manufacturing-page .tt-mfg-section {
  position: relative;
  overflow: hidden;
}
.tt-mfg-section-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.tt-mfg-section-overlay::before,
.tt-mfg-section-overlay::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(0);
  animation: ttMfgOrbFloat 14s ease-in-out infinite alternate;
}
.tt-mfg-section-overlay::before {
  width: 420px;
  height: 420px;
  top: -180px;
  right: -120px;
  background: radial-gradient(circle, rgba(54, 193, 223, 0.16), transparent 68%);
}
.tt-mfg-section-overlay::after {
  width: 320px;
  height: 320px;
  bottom: -140px;
  left: -80px;
  background: radial-gradient(circle, rgba(23, 185, 120, 0.1), transparent 70%);
  animation-delay: -5s;
}
.tt-mfg-section-grid {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(54, 193, 223, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(54, 193, 223, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
}
.tt-manufacturing-page .tt-info-container,
.tt-manufacturing-page .tt-info-strip-track {
  position: relative;
  z-index: 1;
}

.tt-manufacturing-page .tt-info-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 18% 22%, rgba(54, 193, 223, 0.14), transparent 42%),
    radial-gradient(circle at 82% 78%, rgba(23, 185, 120, 0.08), transparent 38%);
  pointer-events: none;
  animation: ttMfgHeroPulse 8s ease-in-out infinite alternate;
}
.tt-manufacturing-page .tt-info-hero-shimmer {
  position: absolute;
  inset: -40% auto -40% -60%;
  width: 42%;
  z-index: 1;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
  transform: translateX(-120%) rotate(16deg);
  animation: ttMfgHeroShine 7s ease-in-out infinite;
  pointer-events: none;
}
.tt-manufacturing-page .tt-info-hero-bg {
  will-change: transform;
}
.tt-manufacturing-page.tt-mfg-ready .tt-info-hero-bg {
  transition: transform 0.1s linear;
}

/* Scroll-triggered entrance animations (Animate.css style) */
.tt-mfg-reveal {
  opacity: 0;
  visibility: hidden;
  will-change: transform, opacity;
}
.tt-mfg-reveal.tt-mfg-visible {
  visibility: visible;
  opacity: 1;
}
.tt-mfg-reveal.tt-mfg-visible[data-animate="back-in-left"] {
  animation: ttMfgBackInLeft 0.95s var(--tt-mfg-ease) both;
  animation-delay: var(--tt-mfg-delay, 0ms);
}
.tt-mfg-reveal.tt-mfg-visible[data-animate="back-in-right"] {
  animation: ttMfgBackInRight 0.95s var(--tt-mfg-ease) both;
  animation-delay: var(--tt-mfg-delay, 0ms);
}
.tt-mfg-reveal.tt-mfg-visible[data-animate="back-in-down"] {
  animation: ttMfgBackInDown 0.95s var(--tt-mfg-ease) both;
  animation-delay: var(--tt-mfg-delay, 0ms);
}
.tt-mfg-reveal.tt-mfg-visible[data-animate="bounce-in-up"] {
  animation: ttMfgBounceInUp 1.05s cubic-bezier(0.215, 0.61, 0.355, 1) both;
  animation-delay: var(--tt-mfg-delay, 0ms);
}

.tt-manufacturing-page .tt-info-strip.tt-mfg-reveal {
  opacity: 0;
}
.tt-manufacturing-page .tt-info-strip.tt-mfg-visible {
  animation: ttMfgBackInDown 0.9s var(--tt-mfg-ease) both;
}

.tt-manufacturing-page .tt-info-stat {
  opacity: 0;
  visibility: hidden;
}
.tt-manufacturing-page.tt-mfg-hero-ready .tt-info-stat {
  visibility: visible;
  animation: ttMfgBounceInUp 0.9s cubic-bezier(0.215, 0.61, 0.355, 1) both;
  animation-delay: calc(var(--tt-mfg-stat-i, 0) * 100ms + 250ms);
}

.tt-manufacturing-page .tt-image-card {
  position: relative;
  transform-style: preserve-3d;
}
.tt-manufacturing-page .tt-image-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(54, 193, 223, 0.22), transparent 55%);
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}
.tt-manufacturing-page .tt-image-card.tt-mfg-visible::after {
  opacity: 1;
}
.tt-manufacturing-page .tt-image-card img {
  transition: transform 1.1s var(--tt-mfg-ease);
}
.tt-manufacturing-page .tt-image-card.tt-mfg-visible img {
  transform: scale(1.04);
}

.tt-manufacturing-page .tt-mini-grid .tt-mfg-reveal {
  opacity: 0;
  visibility: hidden;
}
.tt-manufacturing-page .tt-mini-grid .tt-mfg-reveal.tt-mfg-visible {
  visibility: visible;
  animation: ttMfgBounceInUp 0.85s cubic-bezier(0.215, 0.61, 0.355, 1) both;
  animation-delay: var(--tt-mfg-delay, 0ms);
}
.tt-manufacturing-page .tt-mini-grid div:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 50px rgba(7, 24, 39, 0.12);
}

.tt-mfg-flip-card {
  perspective: 1100px;
  transform-style: preserve-3d;
}
.tt-mfg-flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: inherit;
  transform-style: preserve-3d;
  transition: transform 0.78s var(--tt-mfg-ease);
}
.tt-mfg-flip-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: inherit;
}
.tt-mfg-flip-front {
  position: relative;
  height: 100%;
}
.tt-mfg-flip-back {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(145deg, #061827 0%, #0b344a 100%);
  color: #fff;
  transform: rotateY(180deg);
  box-shadow: inset 0 0 0 1px rgba(103, 215, 239, 0.2);
}
.tt-mfg-flip-back::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(103, 215, 239, 0.18);
  border-radius: 6px;
  pointer-events: none;
}
.tt-mfg-flip-back h3 {
  margin: 0 0 12px;
  color: #fff !important;
  font-size: 18px;
}
.tt-mfg-flip-back p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88) !important;
  font-size: 14px;
  line-height: 1.65;
  position: relative;
  z-index: 2;
}

.tt-manufacturing-page .tt-card.tt-mfg-flip-card {
  min-height: 260px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.tt-manufacturing-page .tt-card.tt-mfg-flip-card .tt-mfg-flip-front {
  padding: 24px;
  background: #fff;
  border: 1px solid rgba(134, 162, 181, 0.22);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(7, 24, 39, 0.07);
  overflow: hidden;
}
.tt-manufacturing-page .tt-card.tt-mfg-flip-card .tt-mfg-flip-front::after {
  content: "";
  position: absolute;
  inset: -40% auto -40% -75%;
  width: 48%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.75), transparent);
  transform: translateX(-130%) rotate(18deg);
  transition: transform 0.65s ease;
  pointer-events: none;
}
.tt-manufacturing-page .tt-card.tt-mfg-flip-card:hover .tt-mfg-flip-front::after {
  transform: translateX(360%) rotate(18deg);
}
.tt-manufacturing-page .tt-card.tt-mfg-flip-card::after {
  display: none;
}
.tt-manufacturing-page .tt-card.tt-mfg-flip-card:hover .tt-mfg-flip-inner,
.tt-manufacturing-page .tt-card.tt-mfg-flip-card.tt-mfg-flipped .tt-mfg-flip-inner {
  transform: rotateY(180deg);
}

.tt-manufacturing-page .tt-step.tt-mfg-flip-card {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  min-height: 300px;
}
.tt-manufacturing-page .tt-step.tt-mfg-flip-card .tt-mfg-flip-front {
  padding: 26px;
  background: #fff;
  border: 1px solid rgba(134, 162, 181, 0.22);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(7, 24, 39, 0.07);
}
.tt-manufacturing-page .tt-step.tt-mfg-flip-card .tt-mfg-flip-front p {
  display: none;
}
.tt-manufacturing-page .tt-step.tt-mfg-flip-card:hover .tt-mfg-flip-inner,
.tt-manufacturing-page .tt-step.tt-mfg-flip-card.tt-mfg-flipped .tt-mfg-flip-inner {
  transform: rotateY(180deg);
}
.tt-manufacturing-page .tt-step.tt-mfg-flip-card.tt-mfg-visible .tt-step-number {
  animation: ttMfgStepPop 0.55s var(--tt-mfg-ease) both;
}

.tt-manufacturing-page .tt-feature-card {
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.45s var(--tt-mfg-ease), box-shadow 0.45s ease;
}
.tt-manufacturing-page .tt-feature-card .tt-mfg-feature-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, transparent 35%, rgba(7, 24, 39, 0.72) 100%);
  opacity: 0.85;
  transition: opacity 0.4s ease;
}
.tt-manufacturing-page .tt-feature-card .tt-mfg-feature-shine {
  position: absolute;
  inset: -50% auto -50% -70%;
  width: 45%;
  z-index: 3;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: translateX(-130%) rotate(18deg);
  pointer-events: none;
}
.tt-manufacturing-page .tt-feature-card.tt-mfg-visible .tt-mfg-feature-shine {
  animation: ttMfgCardShine 1.1s ease 0.2s forwards;
}
.tt-manufacturing-page .tt-feature-card img {
  transition: transform 0.9s var(--tt-mfg-ease);
}
.tt-manufacturing-page .tt-feature-card.tt-mfg-visible img {
  transform: scale(1.06);
}
.tt-manufacturing-page .tt-feature-card:hover {
  transform: translateY(-10px) rotateX(4deg);
  box-shadow: 0 28px 70px rgba(7, 24, 39, 0.16);
}
.tt-manufacturing-page .tt-feature-card:hover .tt-mfg-feature-overlay {
  opacity: 0.55;
}
.tt-manufacturing-page .tt-feature-card div {
  position: relative;
  z-index: 4;
}

.tt-manufacturing-page .tt-cta-box {
  position: relative;
  overflow: hidden;
}
.tt-manufacturing-page .tt-cta-box .tt-mfg-cta-glow {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(54, 193, 223, 0.35), transparent 70%);
  top: -80px;
  right: -40px;
  animation: ttMfgOrbFloat 10s ease-in-out infinite alternate;
  pointer-events: none;
}
.tt-manufacturing-page .tt-cta-box > div,
.tt-manufacturing-page .tt-cta-box > a {
  position: relative;
  z-index: 2;
}
.tt-manufacturing-page .tt-cta-box.tt-mfg-visible {
  animation: ttMfgBackInDown 1s var(--tt-mfg-ease) both;
}

.tt-manufacturing-page .tt-info-strip {
  position: relative;
}
.tt-manufacturing-page .tt-info-strip::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #071827, transparent 12%, transparent 88%, #071827);
  pointer-events: none;
  z-index: 2;
}

@keyframes ttMfgBackInLeft {
  0% {
    opacity: 0;
    transform: translateX(-120px) scale(0.82);
  }
  75% {
    opacity: 1;
    transform: translateX(8px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}
@keyframes ttMfgBackInRight {
  0% {
    opacity: 0;
    transform: translateX(120px) scale(0.82);
  }
  75% {
    opacity: 1;
    transform: translateX(-8px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}
@keyframes ttMfgBackInDown {
  0% {
    opacity: 0;
    transform: translateY(-110px) scale(0.82);
  }
  78% {
    opacity: 1;
    transform: translateY(10px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes ttMfgBounceInUp {
  0% {
    opacity: 0;
    transform: translate3d(0, 80px, 0) scale(0.92);
  }
  55% {
    opacity: 1;
    transform: translate3d(0, -14px, 0) scale(1.02);
  }
  72% {
    transform: translate3d(0, 8px, 0) scale(0.99);
  }
  88% {
    transform: translate3d(0, -4px, 0) scale(1);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes ttMfgHeroPulse {
  from { opacity: 0.65; }
  to { opacity: 1; }
}
@keyframes ttMfgHeroShine {
  0%, 72% { transform: translateX(-120%) rotate(16deg); }
  100% { transform: translateX(280%) rotate(16deg); }
}
@keyframes ttMfgOrbFloat {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(24px, -18px) scale(1.08); }
}
@keyframes ttMfgStepPop {
  0% { transform: scale(0.7); opacity: 0; }
  70% { transform: scale(1.06); }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes ttMfgCardShine {
  from { transform: translateX(-130%) rotate(18deg); }
  to { transform: translateX(360%) rotate(18deg); }
}
@keyframes ttMfgCtaPulse {
  0% { transform: scale(0.96); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

@media (max-width: 760px) {
  .tt-manufacturing-page .tt-info-hero,
  .tt-manufacturing-page .tt-feature-card,
  .tt-manufacturing-page .tt-cta-box {
    overflow: hidden;
  }
  .tt-manufacturing-page .tt-info-hero-shimmer,
  .tt-manufacturing-page .tt-feature-card .tt-mfg-feature-shine,
  .tt-manufacturing-page .tt-cta-box .tt-mfg-cta-glow {
    display: none !important;
  }
  .tt-manufacturing-page .tt-info-hero-bg,
  .tt-manufacturing-page .tt-info-hero-img {
    width: 100% !important;
    max-width: 100% !important;
    transform: none !important;
  }
  .tt-manufacturing-page .tt-card.tt-mfg-flip-card:hover .tt-mfg-flip-inner,
  .tt-manufacturing-page .tt-step.tt-mfg-flip-card:hover .tt-mfg-flip-inner {
    transform: none;
  }
  .tt-manufacturing-page .tt-step.tt-mfg-flip-card .tt-mfg-flip-front p {
    display: block;
  }
  .tt-manufacturing-page .tt-step.tt-mfg-flip-card.tt-mfg-flipped .tt-mfg-flip-inner {
    transform: rotateY(180deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tt-mfg-scroll-progress,
  .tt-mfg-section-overlay::before,
  .tt-mfg-section-overlay::after,
  .tt-manufacturing-page .tt-info-hero-shimmer,
  .tt-manufacturing-page .tt-info-hero-bg,
  .tt-manufacturing-page .tt-info-strip-track,
  .tt-mfg-reveal,
  .tt-manufacturing-page .tt-info-stat,
  .tt-manufacturing-page .tt-mini-grid div,
  .tt-mfg-flip-inner,
  .tt-manufacturing-page .tt-feature-card,
  .tt-manufacturing-page .tt-image-card img {
    animation: none !important;
    transition: none !important;
  }
  .tt-mfg-reveal,
  .tt-manufacturing-page .tt-info-stat,
  .tt-manufacturing-page .tt-mini-grid .tt-mfg-reveal {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }
}
