/* =========================================================
   TECHBETTA HOMEPAGE CAROUSEL
   Isolated styles — does not alter existing site components
   ========================================================= */

#techbetta-carousel {
  position: relative;
  width: 100%;
  min-height: 590px;
  overflow: hidden;
  background: #071a33;
  color: #fff;
}

#techbetta-carousel .tb-carousel-track {
  position: relative;
  min-height: 590px;
}

#techbetta-carousel .tb-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  min-height: 590px;
  padding: 80px 0 95px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .8s ease, visibility .8s ease;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

#techbetta-carousel .tb-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

#techbetta-carousel .tb-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(4, 20, 40, .96) 0%,
      rgba(5, 31, 57, .90) 38%,
      rgba(5, 42, 66, .67) 66%,
      rgba(5, 47, 65, .40) 100%
    );
}

#techbetta-carousel .tb-carousel-inner {
  position: relative;
  z-index: 3;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

#techbetta-carousel .tb-slide-content {
  max-width: 700px;
}

#techbetta-carousel .tb-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #54d7d0;
}

#techbetta-carousel .tb-eyebrow::before {
  content: "";
  width: 32px;
  height: 2px;
  background: currentColor;
}

#techbetta-carousel h1 {
  max-width: 760px;
  margin: 0 0 22px;
  color: #fff;
  font-size: clamp(2.6rem, 5vw, 4.65rem);
  line-height: 1.03;
  letter-spacing: -.045em;
}

#techbetta-carousel .tb-description {
  max-width: 670px;
  margin: 0 0 30px;
  color: rgba(255,255,255,.88);
  font-size: 1.08rem;
  line-height: 1.75;
}

#techbetta-carousel .tb-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

#techbetta-carousel .tb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 23px;
  border-radius: 7px;
  text-decoration: none;
  font-weight: 700;
  transition: transform .2s ease, background .2s ease;
}

#techbetta-carousel .tb-btn:hover {
  transform: translateY(-2px);
}

#techbetta-carousel .tb-btn-primary {
  background: #19b7b0;
  color: #041d31;
}

#techbetta-carousel .tb-btn-secondary {
  border: 1px solid rgba(255,255,255,.55);
  background: rgba(255,255,255,.08);
  color: #fff;
  backdrop-filter: blur(5px);
}

/* Secure / Optimise / Grow */

#techbetta-carousel .tb-pillars {
  position: absolute;
  z-index: 4;
  right: max(24px, calc((100% - 1180px) / 2));
  bottom: 88px;
  display: flex;
  gap: 10px;
}

#techbetta-carousel .tb-pillar {
  padding: 10px 16px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  background: rgba(5,30,52,.55);
  color: rgba(255,255,255,.92);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .05em;
  backdrop-filter: blur(8px);
}

/* Navigation arrows */

#techbetta-carousel .tb-arrow {
  position: absolute;
  z-index: 6;
  top: 50%;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 50%;
  background: rgba(4,24,43,.45);
  color: #fff;
  cursor: pointer;
  transform: translateY(-50%);
  font-size: 1.35rem;
  transition: background .2s ease;
}

#techbetta-carousel .tb-arrow:hover {
  background: rgba(25,183,176,.85);
}

#techbetta-carousel .tb-prev {
  left: 20px;
}

#techbetta-carousel .tb-next {
  right: 20px;
}

/* Dots */

#techbetta-carousel .tb-dots {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: 27px;
  display: flex;
  gap: 9px;
  transform: translateX(-50%);
}

#techbetta-carousel .tb-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.40);
  cursor: pointer;
  transition: width .25s ease, border-radius .25s ease,
              background .25s ease;
}

#techbetta-carousel .tb-dot.is-active {
  width: 30px;
  border-radius: 10px;
  background: #32d2c9;
}

/* Subtle technology bubbles */

#techbetta-carousel .tb-bubble {
  position: absolute;
  z-index: 3;
  border: 1px solid rgba(71,221,211,.32);
  border-radius: 50%;
  background: rgba(36,190,182,.10);
  box-shadow: 0 0 35px rgba(36,190,182,.08);
  pointer-events: none;
  animation: tbFloat 12s ease-in-out infinite;
}

#techbetta-carousel .tb-bubble-one {
  width: 190px;
  height: 190px;
  right: 8%;
  top: 8%;
}

#techbetta-carousel .tb-bubble-two {
  width: 90px;
  height: 90px;
  right: 28%;
  bottom: 12%;
  animation-delay: -3s;
}

#techbetta-carousel .tb-bubble-three {
  width: 45px;
  height: 45px;
  right: 3%;
  bottom: 31%;
  animation-delay: -5s;
}

@keyframes tbFloat {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }

  25% {
    transform: translate(-18px, -28px) scale(1.04);
  }

  50% {
    transform: translate(12px, -48px) scale(1.08);
  }

  75% {
    transform: translate(24px, -20px) scale(1.03);
  }
}

/* Mobile */

@media (max-width: 768px) {
  #techbetta-carousel,
  #techbetta-carousel .tb-carousel-track,
  #techbetta-carousel .tb-slide {
    min-height: 610px;
  }

  #techbetta-carousel .tb-slide {
    padding: 65px 0 100px;
  }

  #techbetta-carousel .tb-carousel-inner {
    width: min(100% - 40px, 1180px);
  }

  #techbetta-carousel h1 {
    font-size: clamp(2.35rem, 11vw, 3.45rem);
  }

  #techbetta-carousel .tb-description {
    font-size: 1rem;
    line-height: 1.65;
  }

  #techbetta-carousel .tb-pillars {
    right: auto;
    left: 20px;
    bottom: 61px;
    flex-wrap: wrap;
  }

  #techbetta-carousel .tb-arrow {
    display: none;
  }

  #techbetta-carousel .tb-dots {
    bottom: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #techbetta-carousel *,
  #techbetta-carousel *::before,
  #techbetta-carousel *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition-duration: .01ms !important;
  }
}
/* Prevent the original homepage hero flashing before the carousel mounts */
html.tb-carousel-loading #app .hero,
html.tb-carousel-loading #app .home-hero,
html.tb-carousel-loading #app .hero-section,
html.tb-carousel-loading #app [data-home-hero],
html.tb-carousel-loading #app main > section:first-child {
    visibility: hidden;
}