#bg-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 .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;
}
