/* ==========================================================================
   RUANG THERAPY — FLAGSHIP MOTION PRIMITIVES & REACT-BITS SUITE
   Inspired by React Bits, Motion Primitives (Ibelick), Kokonut UI & Lenis
   ========================================================================== */

/* 1. REACT-BITS CELESTIAL AURORA BOREALIS LAYER */
.aurora-bg-mesh {
  position: absolute;
  inset: -50%;
  width: 200%;
  height: 200%;
  background-image: 
    radial-gradient(ellipse at 20% 30%, rgba(227, 188, 154, 0.28) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 40%, rgba(172, 97, 97, 0.22) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(139, 155, 120, 0.25) 0%, transparent 50%);
  filter: blur(60px);
  animation: auroraMorph 18s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
  opacity: 0.8;
}

@keyframes auroraMorph {
  0% { transform: rotate(0deg) scale(1) translate(0, 0); }
  50% { transform: rotate(180deg) scale(1.15) translate(-4%, 3%); }
  100% { transform: rotate(360deg) scale(1) translate(3%, -4%); }
}

/* 2. SOMATIC CLICK WATER RIPPLE */
.somatic-click-ripple {
  position: fixed;
  border-radius: 50%;
  border: 1.5px solid rgba(182, 109, 70, 0.55);
  background: radial-gradient(circle, rgba(227, 188, 154, 0.2) 0%, rgba(182, 109, 70, 0) 70%);
  transform: translate(-50%, -50%) scale(0);
  pointer-events: none;
  z-index: 99990;
  animation: expandRipple 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes expandRipple {
  0% {
    width: 0px;
    height: 0px;
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(0);
  }
  100% {
    width: 280px;
    height: 280px;
    opacity: 0;
    transform: translate(-50%, -50%) scale(1);
  }
}

/* 3. SPLIT-WORD DECRYPT REVEAL */
.split-char-reveal {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}

.split-char-inner {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.75s ease;
}

.is-revealed .split-char-inner {
  transform: translateY(0%);
  opacity: 1;
}

/* 4. KOKONUT UI-STYLE GLOWING BENTO CONSTELLATION */
.bento-glow-container {
  position: relative;
}

.bento-glow-container::after {
  content: '';
  position: absolute;
  inset: -1px;
  background: radial-gradient(
    400px circle at var(--mouse-x, 0px) var(--mouse-y, 0px),
    rgba(182, 109, 70, 0.25),
    transparent 60%
  );
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.bento-glow-container:hover::after {
  opacity: 1;
}
