/* ==========================================================================
   RUANG THERAPY — LUXURY MOTION & SOMATIC INTERACTION ENGINE
   2026 Awwwards-Grade Mindful Motion, 3D Card Tilts, Specular Light & Grain
   ========================================================================== */

/* 1. ANALOG EDITORIAL FILM GRAIN OVERLAY */
.editorial-grain-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 99999;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* 2. SOMATIC FLUID AURA CURSOR (DESKTOP ONLY) */
@media (pointer: fine) {
  .somatic-cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background: var(--c-primary-dark);
    border-radius: 50%;
    pointer-events: none;
    z-index: 100000;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease, width 0.3s ease, height 0.3s ease, background-color 0.3s ease;
  }

  .somatic-cursor-aura {
    position: fixed;
    top: 0;
    left: 0;
    width: 36px;
    height: 36px;
    border: 1.5px solid rgba(182, 109, 70, 0.4);
    background: radial-gradient(circle, rgba(227, 188, 154, 0.18) 0%, rgba(227, 188, 154, 0) 75%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    transform: translate(-50%, -50%);
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), width 0.35s var(--ease-smooth), height 0.35s var(--ease-smooth), border-color 0.35s ease;
  }

  body.cursor-hovering .somatic-cursor-aura {
    width: 64px;
    height: 64px;
    border-color: rgba(139, 155, 120, 0.65);
    background: radial-gradient(circle, rgba(139, 155, 120, 0.22) 0%, rgba(139, 155, 120, 0) 75%);
  }
  body.cursor-hovering .somatic-cursor-dot {
    transform: translate(-50%, -50%) scale(1.5);
    background: var(--c-matcha);
  }
}

/* 3. DYNAMIC 3D TILT & SPECULAR SHEEN CARDS */
.tilt-card-luxury {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
  will-change: transform;
}

.tilt-card-luxury::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(255, 255, 255, 0.35),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 2;
}

.tilt-card-luxury:hover::before {
  opacity: 1;
}

/* 4. SCROLL-TRIGGERED LUXURY REVEAL ANIMATIONS */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* 5. MAGNETIC BUTTON MICRO-SPRING EFFECT */
.btn-magnetic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
  will-change: transform;
}
