/* Overrides for template behavior */
@media (max-width: 1700px) {
  .hero-3 .hero-anime-img {
    display: block;
  }
}

/* Restore first service item in custom mobile nav submenu */
.bb-mobile-nav__menu.th-mobile-menu ul li ul li:first-child {
  display: list-item !important;
}

/* Premium floating glass navbar */
.header-layout3 .bb-premium-nav {
  --bb-nav-cta-start: #d23fa8;
  --bb-nav-cta-end: #d4b01e;
  --bb-nav-cta-start-hover: #de4eb4;
  --bb-nav-cta-end-hover: #e4bf31;
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 120;
  background: transparent !important;
  border: 0;
  box-shadow: none;
}

.header-layout3 .bb-premium-nav.sticky,
.header-layout3 .bb-premium-nav.will-sticky {
  background: transparent !important;
}

.header-layout3 .bb-premium-nav.sticky {
  animation: none !important;
}

.header-layout3 .bb-premium-nav .menu-area {
  position: relative;
  width: min(1520px, calc(100% - 42px));
  margin: 14px auto 0;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, var(--bb-nav-border-alpha, 0.2));
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, var(--bb-nav-tint-start, 0.09)) 0%,
      rgba(255, 255, 255, var(--bb-nav-tint-mid, 0.02)) 52%,
      rgba(212, 175, 55, var(--bb-nav-tint-end, 0)) 100%
    ),
    rgba(9, 14, 25, var(--bb-nav-bg-alpha, 0.08));
  -webkit-backdrop-filter: blur(var(--bb-nav-blur, 3px));
  backdrop-filter: blur(var(--bb-nav-blur, 3px));
  box-shadow:
    0 12px 34px rgba(2, 7, 20, var(--bb-nav-shadow-alpha, 0.16)),
    inset 0 1px 0 rgba(255, 255, 255, var(--bb-nav-highlight-alpha, 0.15)),
    inset 0 0 0 1px rgba(212, 175, 55, var(--bb-nav-gold-alpha, 0.04));
  transition:
    background-color 0.45s ease,
    border-color 0.45s ease,
    box-shadow 0.45s ease,
    -webkit-backdrop-filter 0.45s ease,
    backdrop-filter 0.45s ease;
}

.header-layout3 .bb-premium-nav .menu-area > .container-fluid {
  padding-left: clamp(20px, 2.8vw, 34px);
  padding-right: clamp(20px, 2.8vw, 34px);
}

.header-layout3 .bb-premium-nav .header-logo {
  margin-left: 0;
  margin-top: 0;
}

.header-layout3 .bb-premium-nav .header-logo img {
  max-height: 62px;
  width: auto;
}

.header-layout3 .bb-premium-nav .main-menu > ul > li {
  margin: 0 clamp(11px, 1.1vw, 20px);
}

.header-layout3 .bb-premium-nav .main-menu > ul > li > a {
  padding: 28px 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.header-layout3 .bb-premium-nav .main-menu > ul > li > a:hover {
  color: #ffe6a7;
}

.header-layout3 .bb-premium-nav .main-menu ul.sub-menu {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(10, 15, 28, 0.88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
}

.header-layout3 .bb-premium-nav .main-menu ul.sub-menu li a {
  color: rgba(255, 255, 255, 0.9);
}

.header-layout3 .bb-premium-nav .main-menu ul.sub-menu li a:hover {
  color: #ffd88a;
}

.header-layout3 .bb-premium-nav .nav-divider {
  width: 1px;
  height: 26px;
  display: block;
  -webkit-flex-shrink: 0;
  -ms-flex-negative: 0;
  flex-shrink: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.06) 0%,
    rgba(255, 255, 255, 0.38) 50%,
    rgba(212, 175, 55, 0.24) 100%
  );
  margin-right: 18px;
}

.header-layout3 .bb-premium-nav .header-button {
  margin-right: 0;
  gap: 12px;
}

.header-layout3 .bb-premium-nav .header-button .th-btn {
  display: -webkit-inline-box !important;
  display: -webkit-inline-flex !important;
  display: -ms-inline-flexbox !important;
  display: inline-flex !important;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  margin-left: 0;
  border-radius: 999px;
  padding: 13px 26px;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(100deg, var(--bb-nav-cta-start) 0%, var(--bb-nav-cta-end) 100%);
  box-shadow: 0 10px 24px rgba(210, 63, 168, 0.3);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.header-layout3 .bb-premium-nav .header-button .th-btn:before,
.header-layout3 .bb-premium-nav .header-button .th-btn:after {
  display: none;
}

.header-layout3 .bb-premium-nav .header-button .th-btn:hover {
  transform: translateY(-1px);
  color: #fff;
  background: linear-gradient(
    100deg,
    var(--bb-nav-cta-start-hover) 0%,
    var(--bb-nav-cta-end-hover) 100%
  );
  box-shadow: 0 14px 30px rgba(210, 63, 168, 0.4);
}

.header-layout3 .bb-premium-nav .bb-hamburger {
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.header-layout3 .bb-premium-nav .bb-hamburger:hover {
  background: rgba(255, 255, 255, 0.14);
}

.header-layout3 .bb-premium-nav .bb-hamburger .bb-hamburger__line {
  background: rgba(255, 255, 255, 0.96);
}

@media (max-width: 1399px) {
  .header-layout3 .bb-premium-nav .header-button .th-btn {
    padding: 12px 22px;
  }
}

@media (max-width: 1199px) {
  .header-layout3 .bb-premium-nav .menu-area {
    width: calc(100% - 24px);
    margin-top: 10px;
    border-radius: 15px;
  }

  .header-layout3 .bb-premium-nav .menu-area > .container-fluid {
    padding-left: 16px;
    padding-right: 16px;
  }

  .header-layout3 .bb-premium-nav .nav-divider,
  .header-layout3 .bb-premium-nav .header-button .th-btn {
    display: none !important;
  }

  .header-layout3 .bb-premium-nav .header-logo img {
    max-height: 52px;
  }
}

@media (min-width: 1920px) {
  .header-layout3 .bb-premium-nav .menu-area {
    width: min(1600px, calc(100% - 64px));
  }

  .header-layout3 .bb-premium-nav .header-button .th-btn {
    padding: 14px 32px;
  }
}

@media (max-width: 991px) {
  .hero-3 .hero-anime-img {
    display: none;
  }
}


.premium-hero{
  position: relative;
  overflow: hidden;
}

.hero-bg-video{
  position: absolute;
  top: 50%;
  left: 50%;
  width: 110%;
  height: 110%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  z-index: 1;
}

/* overlay above video */
.hero-overlay{
  position: absolute;
  inset: 0;
  z-index: 2;
}

/* content above everything */
.hero-content-wrap,
.hero-scroll-cue{
  position: relative;
  z-index: 3;
}

/* Premium home hero */
.th-hero-wrapper.hero-3.home-hero.premium-hero {
  position: relative;
  min-height: 120svh;
  height: 100svh;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  isolation: isolate;
}

.th-hero-wrapper.hero-3.home-hero.premium-hero::before {
  content: "";
  position: absolute;
  inset: -4%;
  /* background-image: url("/assets/img/hero/banner2.jpg"); */
  background-size: cover;
  background-position: center center;
  transform: translate3d(0, 0, 0) scale(1.07);
  animation: homeHeroFloat 16s ease-in-out infinite;
  z-index: 1;
}

.th-hero-wrapper.hero-3.home-hero.premium-hero .hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.6) 0%,
      rgba(0, 0, 0, 0.4) 40%,
      rgba(0, 0, 0, 0.82) 100%
    ),
    radial-gradient(circle at 50% 35%, rgba(255, 47, 166, 0.14) 0%, rgba(255, 47, 166, 0) 54%);
  z-index: 2;
}

.th-hero-wrapper.hero-3.home-hero.premium-hero .hero-content-wrap {
  position: relative;
  z-index: 3;
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: clamp(150px, 18vh, 220px);
  padding-bottom: clamp(80px, 12vh, 140px);
}

.th-hero-wrapper.hero-3.home-hero.premium-hero .hero-content {
  width: min(100%, 760px);
  text-align: center;
  opacity: 0;
  animation: fadeUp 1.2s ease forwards;
}

.th-hero-wrapper.hero-3.home-hero.premium-hero .subtitle {
  color: #ff2fa6;
  font-size: clamp(14px, 1.35vw, 20px);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin: 0 0 18px;
  display: inline-block;
}

.th-hero-wrapper.hero-3.home-hero.premium-hero .hero-title {
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(44px, 5.6vw, 86px);
  font-weight: 600;
  line-height: 1.14;
  text-transform: none;
  text-shadow:
    0 4px 20px rgba(0, 0, 0, 0.6),
    0 0 20px rgba(255, 0, 150, 0.15);
}

.th-hero-wrapper.hero-3.home-hero.premium-hero .divider {
  width: 60px;
  height: 2px;
  margin: 0 auto 18px;
  background: linear-gradient(90deg, #ff2fa6, #d4af37);
  border-radius: 999px;
}

.th-hero-wrapper.hero-3.home-hero.premium-hero .cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  min-width: 220px;
  padding: 15px 44px;
  border-radius: 16px;
  background: linear-gradient(90deg, #ff2fa6, #d4af37);
  border: none;
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.5),
    0 8px 25px rgba(255, 0, 150, 0.3);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.th-hero-wrapper.hero-3.home-hero.premium-hero .cta-btn:hover {
  transform: translateY(-4px);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.6),
    0 10px 35px rgba(255, 0, 150, 0.4);
}

.th-hero-wrapper.hero-3.home-hero.premium-hero .hero-meta-row,
.th-hero-wrapper.hero-3.home-hero.premium-hero .hero-scroll-cue {
  display: none;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes homeHeroFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1.07);
  }
  50% {
    transform: translate3d(0, -18px, 0) scale(1.1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .th-hero-wrapper.hero-3.home-hero.premium-hero::before,
  .th-hero-wrapper.hero-3.home-hero.premium-hero .hero-content {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 991px) {
  .th-hero-wrapper.hero-3.home-hero.premium-hero .hero-overlay {
    background:
      linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.58) 0%,
        rgba(0, 0, 0, 0.34) 38%,
        rgba(0, 0, 0, 0.86) 100%
      ),
      radial-gradient(circle at 20% 84%, rgba(212, 175, 55, 0.26) 0%, rgba(212, 175, 55, 0) 46%),
      radial-gradient(circle at 82% 88%, rgba(78, 116, 255, 0.24) 0%, rgba(78, 116, 255, 0) 48%),
      radial-gradient(circle at 52% 64%, rgba(255, 47, 166, 0.2) 0%, rgba(255, 47, 166, 0) 56%);
  }

  .th-hero-wrapper.hero-3.home-hero.premium-hero::before {
    background-image: url("/assets/img/hero/hero-mobiletablet1.jpg"), url("/assets/img/hero/home banner.jpg");
    background-position: center 26%;
    transform: translate3d(0, 0, 0) scale(1.04);
  }

  .th-hero-wrapper.hero-3.home-hero.premium-hero .hero-content-wrap {
    align-items: center;
    padding-top: clamp(108px, 14vh, 152px);
    padding-bottom: clamp(56px, 9vh, 92px);
  }

  .th-hero-wrapper.hero-3.home-hero.premium-hero .hero-content {
    position: relative;
    max-width: 560px;
  }

  .th-hero-wrapper.hero-3.home-hero.premium-hero .hero-content::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -34px;
    width: 58%;
    height: 90px;
    transform: translateX(-50%);
    pointer-events: none;
    background: radial-gradient(
      ellipse at center,
      rgba(255, 47, 166, 0.28) 0%,
      rgba(212, 175, 55, 0.18) 34%,
      rgba(255, 47, 166, 0) 72%
    );
    filter: blur(8px);
  }

  .th-hero-wrapper.hero-3.home-hero.premium-hero .hero-title {
    font-size: clamp(40px, 7.4vw, 62px);
    margin-top: 6px;
    margin-bottom: 10px;
  }

  .th-hero-wrapper.hero-3.home-hero.premium-hero .divider {
    margin-bottom: 12px;
  }

  .th-hero-wrapper.hero-3.home-hero.premium-hero .hero-meta-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
  }

  .th-hero-wrapper.hero-3.home-hero.premium-hero .hero-meta-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 14px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.94);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: linear-gradient(120deg, rgba(255, 47, 166, 0.2), rgba(212, 175, 55, 0.16));
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.24);
  }

  .th-hero-wrapper.hero-3.home-hero.premium-hero .hero-scroll-cue {
    position: absolute;
    left: 50%;
    bottom: clamp(18px, 4vh, 34px);
    transform: translateX(-50%);
    z-index: 4;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    opacity: 0.75;
  }

  .th-hero-wrapper.hero-3.home-hero.premium-hero .hero-scroll-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
  }

  .th-hero-wrapper.hero-3.home-hero.premium-hero .hero-scroll-line {
    width: 1px;
    height: 34px;
    background: linear-gradient(
      to bottom,
      rgba(255, 47, 166, 0.85),
      rgba(212, 175, 55, 0.75),
      rgba(255, 255, 255, 0.2)
    );
    border-radius: 999px;
  }
}

@media (max-width: 767px) {
  .th-hero-wrapper.hero-3.home-hero.premium-hero .hero-content-wrap {
    padding-top: 112px;
    padding-bottom: 58px;
  }
  

  .th-hero-wrapper.hero-3.home-hero.premium-hero .hero-content {
    max-width: 380px;
  }

  .th-hero-wrapper.hero-3.home-hero.premium-hero .hero-title {
    font-size: clamp(36px, 10.5vw, 50px);
    line-height: 1.12;
    margin-top: 6px;
    margin-bottom: 10px;
  }

  .th-hero-wrapper.hero-3.home-hero.premium-hero .hero-meta-row {
    gap: 8px;
    margin-top: 14px;
  }

  .th-hero-wrapper.hero-3.home-hero.premium-hero .hero-meta-pill {
    font-size: 11px;
    padding: 6px 12px;
    min-height: 32px;
  }
}

@media (max-width: 575px) {
  .th-hero-wrapper.hero-3.home-hero.premium-hero .hero-content {
    max-width: 340px;
  }
  .about-section .about-floating-card {
    display: none;
  }

  .th-hero-wrapper.hero-3.home-hero.premium-hero .subtitle {
    font-size: 14px;
    letter-spacing: 0.2em;
  }

  .th-hero-wrapper.hero-3.home-hero.premium-hero .hero-title {
    font-size: clamp(32px, 11vw, 44px);
  }

  .th-hero-wrapper.hero-3.home-hero.premium-hero .cta-btn {
    min-width: 100%;
    width: 100%;
  }
}

/* HomeAbout responsive alignment fixes */
@media (max-width: 991px) {
  .about-section .about-floating-card {
    display: none !important;
  }

  .about-section .row {
    row-gap: 38px;
  }

  .about-section .about-media-col {
    margin-bottom: 0 !important;
  }

  .about-section .about-content-col {
    margin-top: 0 !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .about-section .about-image-wrapper {
    max-width: 560px;
    padding-left: 14px;
    padding-right: 14px;
    padding-bottom: 106px;
  }

  .about-section .about-gradient-border {
    right: 6px;
    width: 86%;
    height: 80%;
    border-radius: 32px;
  }

  .about-section .about-img-main {
    width: 100%;
    animation: aboutMainFloatResponsive 6s ease-in-out infinite;
  }

  .about-section .about-img-small {
    position: absolute;
    width: min(62%, 300px);
    right: 14px;
    left: auto;
    bottom: 56px;
    transform: none;
    margin: 0;
    border-width: 6px;
    border-radius: 22px;
    animation: aboutSmallFloatResponsive 7s ease-in-out infinite;
  }

  .about-section .about-floating-card {
    display: flex;
    position: absolute;
    left: 50%;
    bottom: 8px;
    transform: translateX(-50%);
    margin: 0;
    min-width: 240px;
    width: max-content;
    max-width: calc(100% - 24px);
    align-items: center;
  }

  .about-section .about-sub-title {
    justify-content: center;
    padding-top: 0;
    margin-bottom: 14px;
  }

  .about-section .about-title,
  .about-section .about-description {
    text-align: center;
  }

  .about-section .about-title {
    font-size: clamp(34px, 6vw, 48px);
    margin-bottom: 18px;
  }

  .about-section .about-description {
    margin-bottom: 26px;
  }

  .about-section .about-feature-list {
    max-width: 580px;
    margin: 0 auto 26px;
  }

  .about-section .about-divider {
    max-width: 580px;
    margin: 0 auto 24px;
  }

  .about-section .about-bottom {
    justify-content: center;
    gap: 18px 24px;
  }
}

@media (max-width: 769px) {
  .about-section .about-floating-card {
    display: none !important;
  }

  .about-section {
    padding: 56px 0 72px;
  }

  .about-section .about-media-col {
    margin-bottom: 26px !important;
  }

  .about-section .about-content-col {
    margin-top: 12px !important;
  }

  .about-section .about-image-wrapper {
    max-width: 400px;
    padding-left: 10px;
    padding-right: 10px;
    padding-bottom: 92px;
  }

  .about-section .about-gradient-border {
    display: block;
    right: 8px;
    width: 86%;
    height: 70%;
    border-radius: 26px;
  }

  .about-section .about-img-main {
    border-radius: 24px;
    animation-duration: 5.6s;
  }

  .about-section .about-img-small {
    width: min(62%, 236px);
    right: 10px;
    bottom: 48px;
    margin: 0;
    border-width: 5px;
    border-radius: 20px;
    animation-duration: 6.2s;
  }

  .about-section .about-floating-card {
    left: 50%;
    bottom: 2px;
    transform: translateX(-50%);
    min-width: 220px;
    padding: 12px 16px;
    border-radius: 18px;
    margin: 0;
  }

  .about-section .client-text {
    font-size: 14px;
    text-align: center;
  }

  .about-section .about-title {
    font-size: clamp(30px, 9.5vw, 42px);
    line-height: 1.18;
  }

  .about-section .about-description {
    font-size: 16px;
    line-height: 1.62;
    margin-bottom: 22px;
  }

  .about-section .feature-item {
    gap: 10px;
  }

  .about-section .feature-text {
    font-size: 16px;
  }

  .about-section .about-bottom {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .about-section .about-bottom .th-btn {
    width: 100%;
    text-align: center;
  }

  .about-section .experience-box {
    justify-content: center;
  }
}

@media (max-width: 575px) {
  .about-section .about-image-wrapper {
    padding-left: 8px;
    padding-right: 8px;
    padding-bottom: 86px;
  }

  .about-section .about-img-small {
    width: min(64%, 222px);
    right: 8px;
    bottom: 44px;
    margin: 0;
  }

  .about-section .about-gradient-border {
    right: 6px;
    width: 88%;
    height: 66%;
  }

  .about-section .about-floating-card {
    min-width: 200px;
    padding: 10px 14px;
    bottom: 0;
  }

  .about-section .about-sub-title span {
    font-size: 12px;
    letter-spacing: 1.6px;
  }

  .about-section .about-title {
    font-size: clamp(28px, 10.6vw, 38px);
  }
}

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

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

@media (prefers-reduced-motion: reduce) {
  .about-section .about-img-main,
  .about-section .about-img-small {
    animation: none !important;
  }
}

/* Hide About floating card on tablet and mobile */
@media (max-width: 991px) {
  .about-section .about-floating-card {
    display: none !important;
  }
}
