#bg-canvas, #websitebg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.gallery-item figure {
  background-color: #000;
  position: relative;
  z-index: 1;
}

/* for let's chat css */
:root {
  --purple-jam: #782b81;
  --raspberry-pink: #ee4780;
  --watermelon: #f04f58;
  --cyan-blue: #43c5e6;
  --pink-flare: #ecbdba;
  --daffodil: #fff730;
  --white: #ffffff;
  --black: #1a1a1a;
}

@keyframes peekUp {
  0% {
    transform: translateY(100%) scale(0.7);
    opacity: 0;
  }

  50% {
    transform: translateY(-10%) scale(1.05);
    opacity: 1;
  }

  70% {
    transform: translateY(4%) scale(0.97);
  }

  100% {
    transform: translateY(0%) scale(1);
    opacity: 1;
  }
}

@keyframes peekDown {
  0% {
    transform: translateY(0%) scale(1);
    opacity: 1;
  }

  100% {
    transform: translateY(110%) scale(0.7);
    opacity: 0;
  }
}

@keyframes gentleBob {

  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-3px) rotate(0.8deg);
  }
}

@keyframes hoverWiggle {

  0%,
  100% {
    transform: translateY(-2px) rotate(0deg);
  }

  25% {
    transform: translateY(-4px) rotate(-3deg);
  }

  50% {
    transform: translateY(0px) rotate(2deg);
  }

  75% {
    transform: translateY(-3px) rotate(-1.5deg);
  }
}

@keyframes buttonPulse {

  0%,
  100% {
    box-shadow: 4px 4px 0px var(--black);
  }

  50% {
    box-shadow:
      4px 4px 0px var(--black),
      0 0 0 4px rgba(238, 71, 128, 0.2);
  }
}

@keyframes bubbleIn {
  0% {
    transform: scale(0.8) translateY(10px);
    opacity: 0;
  }

  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

@keyframes bubbleOut {
  0% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }

  100% {
    transform: scale(0.8) translateY(10px);
    opacity: 0;
  }
}

.floating-container {
  position: absolute;
  top: 65%;
  right: 10%;
  z-index: 9998;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.interaction-wrapper {
  position: relative;
  cursor: pointer;
}

.avatar-container {
  position: absolute;
  bottom: 35px;
  right: 0px;
  width: 110px;
  height: 86px;
  z-index: -1;
  overflow: visible;
  display: none;
  pointer-events: none;
}

.avatar-container.peeking {
  display: block;
  animation: peekUp 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.avatar-container.hiding {
  display: block;
  animation: peekDown 0.3s ease-in forwards;
}

.avatar-img-wrapper {
  width: 100%;
  height: 100%;
  animation: gentleBob 2s ease-in-out infinite;
}

.avatar-container.hovered .avatar-img-wrapper {
  animation: hoverWiggle 0.7s ease-in-out infinite;
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.chat-bubble {
  position: absolute;
  bottom: 120px;
  right: 0;
  margin-bottom: 20px;
  background: var(--white);
  padding: 12px 18px;
  border-radius: 18px 18px 5px 18px;
  border: 3px solid var(--black);
  box-shadow: 4px 4px 0px var(--black);
  min-width: 12.24vw;
  display: none;
  transform-origin: bottom right;
}

.chat-bubble.visible {
  display: block;
  animation: bubbleIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.chat-bubble.hiding {
  display: block;
  animation: bubbleOut 0.2s ease-in forwards;
}

.bubble-text {
  font-weight: 600;
  font-size: 14px;
  text-align: center;
  display: block;
}

.bubble-arrow {
  position: absolute;
  bottom: -12px;
  right: 20px;
  width: 20px;
  height: 12px;
}

.chat-button {
  position: relative;
  background: linear-gradient(135deg,
      var(--purple-jam) 0%,
      var(--raspberry-pink) 100%);
  border: 3px solid var(--black);
  border-radius: 14px;
  padding: 14px 24px;
  box-shadow: 4px 4px 0px var(--black);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  animation: buttonPulse 2.5s ease-in-out infinite;
}

.chat-button a {
  text-decoration: none;
}

.chat-button.interacted {
  animation: none;
}

.chat-button.hovered {
  box-shadow: 6px 6px 0px var(--black);
  transform: translate(-1px, -1px);
}

.halftone-overlay {
  position: absolute;
  inset: 0;
  border-radius: 11px;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.07;
  background-image: radial-gradient(circle, var(--black) 1px, transparent 1px);
  background-size: 4px 4px;
}

.btn-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--white);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.btn-text {
  color: var(--white);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 3px;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

.btn-text span {
  font-weight: 300;
}

/* Demo styles */
.demo-content {
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}

.demo-logo {
  background: var(--purple-jam);
  border-radius: 50%;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  border: 3px solid var(--black);
  box-shadow: 3px 3px 0px var(--black);
}

.demo-logo span {
  color: white;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 2px;
}

.floating-container h1 {
  font-weight: 700;
  font-size: 28px;
  letter-spacing: 5px;
  color: var(--purple-jam);
  margin: 0;
  text-transform: uppercase;
}

.floating-container h1 span {
  font-weight: 300;
}

.floating-container p {
  font-weight: 300;
  font-size: 14px;
  color: #666;
  line-height: 1.7;
  margin-top: 16px;
  max-width: 340px;
}

.fvm-ourexpert .video-section,
.fvm-ourexpert .video-section .hero-video,
#spinal-container-3d,
#spinal-container-3d canvas {
  pointer-events: none;
}

.fvm-ourexpert .video-section .hero-video,
#spinal-container-3d canvas {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: absolute;
  left: 0;
  right: 0;
  top: -8px;
}

#spinal-container-3d {
  position: absolute;
  top: 30px;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.mySwiper {
  width: 100%;
  height: 230px;
}

.mobile-swipper .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.mobile-swipper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.mobile-swipper .swiper-button-next:after,
.mobile-swipper .swiper-button-prev:after {
  font-size: 14px;
}

.mobile-swipper .swiper-button-next,
.mobile-swipper .swiper-button-prev {
  color: #fff;
  border-radius: 21.333px;
  border: 0.571px solid #fff;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 10.286px 22.857px 0 rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(16px);
  width: 32px;
  height: 32px;
  padding: 2px;
  gap: 5.333px;
}

.mobile-swipper .swiper-button-prev {
  left: 5px;
}

.mobile-swipper .swiper-button-next {
  right: 5px;
}

@media (min-width: 768px) and (max-width: 1024px) {
  .floating-container {
    top: 60%;
    right: 5%;
  }

  .chat-bubble {
    min-width: 30.24vw;
  }

  .mySwiper {
    height: 387px;
  }

  .mobile-swipper .swiper-button-prev {
    left: calc(100% - 195px);
    top: auto;
    bottom: 0;
  }

  .mobile-swipper .swiper-button-next {
    right: 64px;
    top: auto;
    bottom: 0;
  }

  .mobile-swipper .swiper-button-next,
  .mobile-swipper .swiper-button-prev {
    width: 56px;
    height: 56px;
    border-radius: 76.333px;
  }
}

@media (max-width: 767px) {
  .chat-button {
    padding: 8px 20px;
    border-radius: 11px;
  }

  .chat-bubble {
    padding: 12px 18px;
    border-radius: 13px 13px 3px 13px;
    min-width: 200px;
    margin-bottom: 0;
  }

  .bubble-text {
    font-size: 12px;
  }

  .avatar-container {
    width: 75px;
    height: 75px;
  }

  .btn-text {
    font-size: 12px;
  }

  .floating-container {
    top: 83%;
    right: 0;
    left: 0;
    align-items: center;
  }
}

/* Mobile Touch & Scroll Performance Optimizations for Hero Section */
@media (max-width: 992px) {
  .fvm-hero {
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
  }

  .fvm-hero .hero-content {
    will-change: transform, opacity;
  }
}

/* Mobile Touch & Scroll Performance Optimizations for Our Expert Section */
@media (max-width: 992px) {
  .fvm-ourexpert {
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
  }

  .fvm-ourexpert .viewport,
  .fvm-ourexpert .spiral-container {
    touch-action: pan-y;
  }

  .fvm-ourexpert .card,
  .fvm-ourexpert .card .card-front,
  .fvm-ourexpert .card .card-content {
    transition: none !important;
  }
}

/* Mobile Touch & Scroll Performance Optimizations for How We Work Section */
@media (max-width: 992px) {
  .fvm-howwework {
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
  }

  .howwework-card {
    will-change: transform;
    touch-action: pan-y;
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }

  .howwework-card .card-panel {
    will-change: transform;
    transform: translateZ(0);
  }

  .card-wrapper {
    touch-action: pan-y;
  }
}

/* Mobile Touch & Scroll Performance Optimizations for Review Section & What We Made Section */
@media (max-width: 992px) {
  .fvm-whatclient,
  .fvm-whatclient #root {
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 767px) {
  .fvm-whatwemade,
  .fvm-whatwemade .scroll-container,
  .fvm-whatwemade .sticky-viewport,
  .fvm-whatwemade .card-stage {
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
  }

  .fvm-whatwemade .card {
    transition: none !important;
    will-change: transform, opacity;
    touch-action: pan-y;
  }

  .fvm-whatwemade .card .card-image,
  .fvm-whatwemade .card .card-mobile-video {
    pointer-events: none !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    -webkit-user-drag: none !important;
  }

  .fvm-whatwemade .scroll-container .sticky-viewport {
    height: 100vh;
    height: 100svh;
    height: 100dvh;
    box-sizing: border-box;
    justify-content: space-between;
  }


  .fvm-footer {
    height: 100vh;
    height: 100svh;
    height: 100dvh;
    min-height: 100svh;
    min-height: 100dvh;
    box-sizing: border-box;
    padding-bottom: max(24px, env(safe-area-inset-bottom));
  }
}

/* ========================================================
   Mobile Viewport Review Section Styles (<= 767px)
   ======================================================== */
@media (max-width: 767px) {
  .fvm-whatclient .section-header {
    position: absolute !important;
    top: calc(12px + env(safe-area-inset-top, 0px)) !important;
    left: 0 !important;
    right: 0 !important;
    padding-inline: 20px !important;
    z-index: 40 !important;
    display: flex !important;
    pointer-events: none !important;
  }

  .fvm-whatclient .section-header .horizontal-line {
    transform: scaleX(1) !important;
    opacity: 0.8 !important;
  }

  .fvm-whatclient .review-content .button-div {
    margin-top: 0 !important;
    z-index: 35 !important;
  }

  .fvm-whatclient .review-content .review-wrap {
    z-index: 35 !important;
  }



  .fvm-whatclient .review-content .desc-boxmain {
    position: absolute !important;
    bottom: calc(78px + env(safe-area-inset-bottom, 0px)) !important;
    left: 20px !important;
    right: 20px !important;
    max-width: calc(100% - 40px) !important;
    margin-inline: auto !important;
    z-index: 50 !important;
    pointer-events: auto !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    row-gap: clamp(8px, 2vh, 18px) !important;
  }

  @media (max-height: 720px) {
    .fvm-whatclient .review-content .desc-boxmain {
      bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
      row-gap: 6px !important;
    }
  }

  .review-pagination-dots {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 10px !important;
    margin-top: 6px !important;
    pointer-events: auto !important;
    padding: 8px 16px !important;
    touch-action: manipulation !important;
    z-index: 60 !important;
  }

  .review-pagination-dots .review-dot {
    width: 7px !important;
    height: 7px !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.3) !important;
    cursor: pointer !important;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
    outline: none !important;
    position: relative !important;
    touch-action: manipulation !important;
  }

  .review-pagination-dots .review-dot::after {
    content: '' !important;
    position: absolute !important;
    top: -12px !important;
    bottom: -12px !important;
    left: -10px !important;
    right: -10px !important;
  }

  .review-pagination-dots .review-dot.active {
    background: #ffffff !important;
    transform: scale(1.35) !important;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.9) !important;
  }

  /* Websites Section - Mobile Phone Frames */
  .ws-phone-frame .ws-phone-play-icon,
  .ws-phone-frame .ws-phone-zoom-btn {
    display: none !important;
  }
}

@media (min-width: 768px) {
  .review-pagination-dots {
    display: none !important;
  }
}

/* ==========================================================================
   iPhone (iOS Phone) Specific Smoothness & GPU Offload Optimizations
   Strictly scoped to .is-ios-phone so Desktop, iPad, and Android are untouched
   ========================================================================== */
/* html.is-ios-phone,
html.is-ios-phone body {
  scroll-behavior: auto !important;
  touch-action: pan-y;
}

html.is-ios-phone * {
  -webkit-tap-highlight-color: transparent;
}

html.is-ios-phone .header,
html.is-ios-phone .fvm-whatclient .card,
html.is-ios-phone .gallery-wrapperbox,
html.is-ios-phone .sayhello-box,
html.is-ios-phone .desc-boxmain,
html.is-ios-phone .button-div .read-all-btn,
html.is-ios-phone .review-content .review-wrap,
html.is-ios-phone .fvm-expt-popup-content,
html.is-ios-phone .fvm-expt-modal-header,
html.is-ios-phone .expt-tab-btn {
  
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transition-property: opacity, transform, visibility !important;
}

html.is-ios-phone .fvm-whatwemade .sticky-viewport,
html.is-ios-phone .fvm-whatclient #root,
html.is-ios-phone .howwework-card {
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  will-change: transform;
} */

#smooth-wrapper {
  overflow-x: clip;
}

html,
body {
  scroll-behavior: auto !important;
}
