/* ==========================================================================
   RUANG THERAPY — NEXT-LEVEL MODERN UI ADVANCEMENTS (2026 STANDARDS)
   Inspired by Aceternity UI, Magic UI, ShaderGradient & 21st.dev
   ========================================================================== */

/* 1. ANIMATED TEXT SHIMMER (MAGIC UI STYLE) */
.text-shimmer {
  background: linear-gradient(
    110deg,
    var(--c-charcoal) 35%,
    var(--c-primary-dark) 50%,
    var(--c-charcoal) 65%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textShimmer 4.5s ease-in-out infinite;
}

@keyframes textShimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* 2. ACETERNITY-STYLE MOVING LASER BORDER BEAMS */
@property --border-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

.border-beam-card {
  position: relative;
  border-radius: var(--radius-lg);
  background: #FFFFFF;
  z-index: 1;
}

.border-beam-card::after {
  content: '';
  position: absolute;
  inset: -1.5px;
  border-radius: inherit;
  background: conic-gradient(
    from var(--border-angle),
    transparent 70%,
    rgba(182, 109, 70, 0.9) 88%,
    rgba(139, 155, 120, 0.9) 95%,
    transparent 100%
  );
  z-index: -1;
  animation: rotateBorderBeam 6s linear infinite;
  opacity: 0.85;
}

@keyframes rotateBorderBeam {
  to {
    --border-angle: 360deg;
  }
}

/* 3. INTERACTIVE LIVING SHADER HERO BACKDROP */
.living-shader-viewport {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
  mix-blend-mode: multiply;
}

.living-shader-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* 4. APPLE-STYLE FLOATING QUICK-COMMAND DOCK */
.floating-sanctuary-dock {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  background: rgba(32, 29, 26, 0.82);
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-full);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 9999;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-sanctuary-dock:hover {
  transform: translateX(-50%) translateY(-3px) scale(1.02);
  box-shadow: 0 26px 56px rgba(0, 0, 0, 0.45);
}

.dock-item-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.75);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.dock-item-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
  transform: scale(1.06);
}
.dock-item-btn.active {
  background: var(--c-primary);
  color: var(--c-charcoal);
}

.dock-divider {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.15);
}

/* 5. KINETIC VELOCITY MARQUEE STRIP */
.kinetic-marquee-container {
  overflow: hidden;
  white-space: nowrap;
  background: var(--c-sand);
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  padding: 16px 0;
  display: flex;
}

.kinetic-marquee-track {
  display: flex;
  gap: 48px;
  animation: kineticScroll 24s linear infinite;
  will-change: transform;
}

@keyframes kineticScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.marquee-word-pill {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--c-charcoal-light);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.marquee-word-pill span { color: var(--c-primary); }

@media (max-width: 768px) {
  .floating-sanctuary-dock {
    bottom: 14px;
    padding: 6px 8px;
    gap: 4px;
    max-width: 94vw;
    overflow-x: auto;
  }
  .dock-item-btn { font-size: 0.72rem; padding: 6px 10px; }
}
