/* ==========================================================================
   EFFECT LIBRARY - 100% Pure CSS Animation & Effect Engine
   Zero Third-Party Dependencies - Compatible with Tailwind CSS & Vanilla HTML
   Theme: Light Modern Medical Palette (Teal, Slate, Cyan, Amber, Indigo)
   ========================================================================== */

/* ==========================================================================
   1. HOVER EFFECTS (35+ Pure CSS Hover Utilities)
   ========================================================================== */

/* 1.1 Smooth Lift & Elevation */
.fx-hover-lift {
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform, box-shadow;
}
.fx-hover-lift:hover {
  transform: translateY(-7px);
  box-shadow: 0 20px 30px -10px rgba(15, 118, 110, 0.18), 0 10px 15px -5px rgba(0, 0, 0, 0.05);
}

/* 1.2 Extreme Lift (Heroic Elevation) */
.fx-hover-lift-lg {
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
  will-change: transform, box-shadow;
}
.fx-hover-lift-lg:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 25px 40px -12px rgba(13, 148, 136, 0.25), 0 15px 25px -8px rgba(0, 0, 0, 0.08);
}

/* 1.3 Tactile Press Sink */
.fx-hover-press {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.fx-hover-press:active {
  transform: translateY(2px) scale(0.98);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 1.4 Luminous Teal Glow */
.fx-hover-glow {
  transition: box-shadow 0.35s ease, border-color 0.35s ease;
}
.fx-hover-glow:hover {
  box-shadow: 0 0 25px rgba(20, 184, 166, 0.4), 0 0 10px rgba(13, 148, 136, 0.2);
  border-color: rgba(20, 184, 166, 0.6) !important;
}

/* 1.5 Warm Amber Luminous Glow */
.fx-hover-glow-amber {
  transition: box-shadow 0.35s ease, border-color 0.35s ease;
}
.fx-hover-glow-amber:hover {
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.4), 0 0 10px rgba(217, 119, 6, 0.2);
  border-color: rgba(245, 158, 11, 0.6) !important;
}

/* 1.6 Indigo Royal Glow */
.fx-hover-glow-indigo {
  transition: box-shadow 0.35s ease, border-color 0.35s ease;
}
.fx-hover-glow-indigo:hover {
  box-shadow: 0 0 25px rgba(99, 102, 241, 0.4), 0 0 10px rgba(79, 70, 229, 0.2);
  border-color: rgba(99, 102, 241, 0.6) !important;
}

/* 1.7 Diagonal Light Glare Wipe (Shine) */
.fx-hover-shine {
  position: relative;
  overflow: hidden;
}
.fx-hover-shine::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -150%;
  width: 60%;
  height: 200%;
  background: linear-gradient(
    105deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(25deg);
  transition: left 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
  z-index: 5;
}
.fx-hover-shine:hover::after {
  left: 200%;
}

/* 1.8 Vertical Scan Beam Shine */
.fx-hover-shine-vertical {
  position: relative;
  overflow: hidden;
}
.fx-hover-shine-vertical::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 40%;
  background: linear-gradient(180deg, transparent 0%, rgba(20, 184, 166, 0.35) 50%, transparent 100%);
  transition: top 0.7s ease;
  pointer-events: none;
}
.fx-hover-shine-vertical:hover::after {
  top: 150%;
}

/* 1.9 Micro Scale Bounce */
.fx-hover-scale {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.fx-hover-scale:hover {
  transform: scale(1.05);
}

/* 1.10 Scale Down Focus */
.fx-hover-scale-down {
  transition: transform 0.3s ease;
}
.fx-hover-scale-down:hover {
  transform: scale(0.96);
}

/* 1.11 3D Dynamic Tilt Left */
.fx-hover-tilt-left {
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  transform-origin: center center;
}
.fx-hover-tilt-left:hover {
  transform: perspective(1000px) rotateY(-8deg) rotateX(4deg) translateY(-5px);
}

/* 1.12 3D Dynamic Tilt Right */
.fx-hover-tilt-right {
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  transform-origin: center center;
}
.fx-hover-tilt-right:hover {
  transform: perspective(1000px) rotateY(8deg) rotateX(4deg) translateY(-5px);
}

/* 1.13 3D Pop (Isometric Elevation) */
.fx-hover-pop-3d {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  transform-style: preserve-3d;
}
.fx-hover-pop-3d:hover {
  transform: perspective(800px) translateZ(20px) translateY(-6px);
  box-shadow: -10px 15px 25px rgba(15, 118, 110, 0.15);
}

/* 1.14 Icon Pop & Shake */
.fx-hover-icon-pop i,
.fx-hover-icon-pop svg {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.fx-hover-icon-pop:hover i,
.fx-hover-icon-pop:hover svg {
  transform: scale(1.25) rotate(-8deg);
}

/* 1.15 Icon Full Spin */
.fx-hover-icon-spin i,
.fx-hover-icon-spin svg {
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.fx-hover-icon-spin:hover i,
.fx-hover-icon-spin:hover svg {
  transform: rotate(360deg);
}

/* 1.16 Icon Ringing Shake */
.fx-hover-icon-shake:hover i,
.fx-hover-icon-shake:hover svg {
  animation: fx-shake 0.5s ease-in-out both;
}
@keyframes fx-shake {
  0%, 100% { transform: rotate(0deg); }
  20% { transform: rotate(-15deg); }
  40% { transform: rotate(15deg); }
  60% { transform: rotate(-10deg); }
  80% { transform: rotate(10deg); }
}

/* 1.17 Frosted Glass Dynamic Reveal */
.fx-hover-glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.35s ease, backdrop-filter 0.35s ease, border-color 0.35s ease;
}
.fx-hover-glass:hover {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-color: rgba(20, 184, 166, 0.4);
}

/* 1.18 Internal Image Zoom */
.fx-hover-zoom-img {
  overflow: hidden;
}
.fx-hover-zoom-img img {
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}
.fx-hover-zoom-img:hover img {
  transform: scale(1.12);
}

/* 1.19 Internal Image Zoom + Rotation */
.fx-hover-zoom-img-rotate {
  overflow: hidden;
}
.fx-hover-zoom-img-rotate img {
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.fx-hover-zoom-img-rotate:hover img {
  transform: scale(1.15) rotate(2deg);
}

/* 1.20 Animated Gradient Border Glow */
.fx-hover-border-glow {
  position: relative;
  z-index: 1;
}
.fx-hover-border-glow::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, #0d9488, #14b8a6, #38bdf8, #0d9488);
  background-size: 300% 300%;
  opacity: 0;
  z-index: -1;
  transition: opacity 0.4s ease;
}
.fx-hover-border-glow:hover::before {
  opacity: 1;
  animation: fx-gradient-shift 3s ease infinite;
}
@keyframes fx-gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* 1.21 Expanding Border Outline */
.fx-hover-border-expand {
  position: relative;
}
.fx-hover-border-expand::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid #0d9488;
  border-radius: inherit;
  opacity: 0;
  transform: scale(0.92);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s ease;
  pointer-events: none;
}
.fx-hover-border-expand:hover::after {
  opacity: 1;
  transform: scale(1.04);
}

/* 1.22 Expanding Underline Slide */
.fx-hover-underline {
  position: relative;
  display: inline-block;
}
.fx-hover-underline::after {
  content: '';
  position: absolute;
  bottom: -2px;
  right: 0;
  width: 0;
  height: 2px;
  background: #0d9488;
  transition: width 0.35s ease;
}
.fx-hover-underline:hover::after {
  width: 100%;
}

/* 1.23 Skew Perspective Slide */
.fx-hover-skew {
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.fx-hover-skew:hover {
  transform: skewX(-4deg) translateY(-4px);
}

/* 1.24 Grayscale to Vibrant Color */
.fx-hover-grayscale {
  filter: grayscale(100%);
  transition: filter 0.4s ease, transform 0.4s ease;
}
.fx-hover-grayscale:hover {
  filter: grayscale(0%);
  transform: scale(1.02);
}

/* 1.25 Radial Expanding Ripple Pulse */
.fx-hover-ripple {
  position: relative;
  overflow: hidden;
}
.fx-hover-ripple::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(20, 184, 166, 0.25);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease-out, height 0.6s ease-out, opacity 0.6s ease-out;
  opacity: 1;
  pointer-events: none;
}
.fx-hover-ripple:hover::before {
  width: 300%;
  height: 300%;
  opacity: 0;
}

/* 1.26 3D Physical Push-Button Press */
.fx-hover-depth-press {
  transform: translateY(0);
  box-shadow: 0 6px 0 #0f766e;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.fx-hover-depth-press:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 0 #0f766e;
}
.fx-hover-depth-press:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 #0f766e;
}

/* [NEW 1.27] Holographic Foil Reflection */
.fx-hover-holo-foil {
  position: relative;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.fx-hover-holo-foil::after {
  content: '';
  position: absolute;
  inset: -100%;
  background: linear-gradient(
    115deg,
    transparent 0%,
    rgba(20, 184, 166, 0.2) 25%,
    rgba(56, 189, 248, 0.3) 45%,
    rgba(236, 72, 153, 0.2) 65%,
    transparent 100%
  );
  transform: rotate(-45deg) translateY(-100%);
  transition: transform 0.75s ease;
  pointer-events: none;
  mix-blend-mode: color-dodge;
}
.fx-hover-holo-foil:hover::after {
  transform: rotate(-45deg) translateY(100%);
}

/* [NEW 1.28] Liquid Rise Fill */
.fx-hover-liquid-fill {
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.fx-hover-liquid-fill::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: linear-gradient(to top, rgba(20, 184, 166, 0.15), rgba(45, 212, 191, 0.05));
  transition: height 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: -1;
}
.fx-hover-liquid-fill:hover::before {
  height: 100%;
}

/* [NEW 1.29] Corner Peel 3D Fold */
.fx-hover-corner-peel {
  position: relative;
  transition: transform 0.35s ease;
}
.fx-hover-corner-peel::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 0 0 0;
  border-color: #0d9488 transparent transparent transparent;
  transition: all 0.3s ease;
}
.fx-hover-corner-peel:hover::after {
  border-width: 24px 24px 0 0;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.15);
}

/* [NEW 1.30] Laser Border Orbit */
.fx-hover-neon-laser {
  position: relative;
  overflow: hidden;
}
.fx-hover-neon-laser::before {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  top: -50%;
  left: -50%;
  background: conic-gradient(transparent, transparent, #0d9488, #14b8a6, transparent);
  animation: fx-laser-spin 4s linear infinite;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.fx-hover-neon-laser:hover::before {
  opacity: 1;
}
@keyframes fx-laser-spin {
  100% { transform: rotate(360deg); }
}

/* [NEW 1.31] Diagonal Split Slice */
.fx-hover-split-slice {
  transition: transform 0.35s ease;
  position: relative;
}
.fx-hover-split-slice:hover {
  transform: perspective(600px) rotateX(4deg) translateY(-4px);
  box-shadow: 0 15px 30px -5px rgba(13, 148, 136, 0.2);
}

/* [NEW 1.32] Isometric Floating Cube */
.fx-hover-isometric-cube {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
}
.fx-hover-isometric-cube:hover {
  transform: rotate(-2deg) skewX(2deg) translateY(-8px) scale(1.03);
  box-shadow: 12px 20px 30px -5px rgba(15, 118, 110, 0.2);
}

/* [NEW 1.33] Cyber RGB Glitch Shift */
.fx-hover-glitch-shift {
  transition: transform 0.2s ease;
}
.fx-hover-glitch-shift:hover {
  animation: fx-glitch-anim 0.35s ease infinite alternate;
}
@keyframes fx-glitch-anim {
  0% { transform: translate(0, 0); text-shadow: 1px 0 #0d9488, -1px 0 #ec4899; }
  50% { transform: translate(-2px, 1px); text-shadow: -1px 0 #0d9488, 1px 0 #ec4899; }
  100% { transform: translate(1px, -1px); text-shadow: 1px 0 #0d9488, -1px 0 #ec4899; }
}

/* [NEW 1.34] Magnetic Cursor Border Trace */
.fx-hover-magnetic-trace {
  position: relative;
  background-clip: padding-box;
  transition: box-shadow 0.3s ease;
}
.fx-hover-magnetic-trace:hover {
  box-shadow: inset 0 0 0 2px #0d9488, 0 10px 25px -5px rgba(13, 148, 136, 0.15);
}

/* [NEW 1.35] Depth Rack Focus Hover */
.fx-hover-rack-focus {
  transition: filter 0.4s ease, transform 0.4s ease;
}
.fx-hover-rack-focus:hover {
  filter: contrast(110%) brightness(105%);
  transform: scale(1.03);
}


/* ==========================================================================
   2. FIXED & PARALLAX BACKGROUNDS (32+ Pure CSS & Scroll Effects)
   ========================================================================== */

/* 2.1 Standard Pure CSS Fixed Background Attachment */
.fx-fixed-bg {
  background-attachment: fixed !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
}

/* 2.2 Fixed Background Slot Viewport */
.fx-fixed-viewport {
  position: relative;
  overflow: hidden;
  background-attachment: fixed !important;
  background-position: center !important;
  background-size: cover !important;
  min-height: 420px;
}

/* 2.3 Fixed Geometric Blueprint Grid */
.fx-fixed-grid-bg {
  background-size: 32px 32px;
  background-image: 
    linear-gradient(to right, rgba(13, 148, 136, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(13, 148, 136, 0.08) 1px, transparent 1px);
  background-attachment: fixed !important;
}

/* 2.4 Fixed Polka Dot Mesh */
.fx-fixed-dots-bg {
  background-image: radial-gradient(rgba(13, 148, 136, 0.18) 1.5px, transparent 1.5px);
  background-size: 20px 20px;
  background-attachment: fixed !important;
}

/* 2.5 Fixed Radial Spotlight Overlay */
.fx-fixed-radial-bg {
  background: radial-gradient(circle at 50% 30%, rgba(20, 184, 166, 0.12) 0%, rgba(240, 253, 250, 0) 70%),
              radial-gradient(circle at 80% 80%, rgba(14, 165, 233, 0.08) 0%, rgba(240, 253, 250, 0) 50%);
  background-attachment: fixed !important;
}

/* 2.6 Dual Fixed Viewports (FIXED & FULLY FUNCTIONAL) */
.fx-dual-fixed-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  width: 100%;
  position: relative;
}
.fx-fixed-window-1 {
  background-image: url('../../src/assets/images/photo-1588776814546-1ffcf47267a5.png');
  background-attachment: fixed !important;
  background-position: left center !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  min-height: 380px;
  border-radius: 1.5rem;
  position: relative;
  overflow: hidden;
}
.fx-fixed-window-2 {
  background-image: url('../../src/assets/images/photo-1629909613654-28e377c37b09.jpeg');
  background-attachment: fixed !important;
  background-position: right center !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  min-height: 380px;
  border-radius: 1.5rem;
  position: relative;
  overflow: hidden;
}

/* 2.7 Parallax Simulated Layers */
.fx-parallax-stage {
  perspective: 1000px;
  transform-style: preserve-3d;
}
.fx-parallax-layer-slow {
  transform: translateZ(-200px) scale(1.2);
  transition: transform 0.5s ease-out;
}
.fx-parallax-layer-medium {
  transform: translateZ(-100px) scale(1.1);
  transition: transform 0.5s ease-out;
}
.fx-parallax-layer-fast {
  transform: translateZ(0);
}

/* 2.8 Fixed Curtain Window Reveal */
.fx-fixed-curtain {
  position: relative;
  clip-path: inset(0 0 0 0);
  min-height: 350px;
}
.fx-fixed-curtain-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  pointer-events: none;
  z-index: -1;
}

/* 2.9 Fixed Circular Aperture Mask */
.fx-fixed-mask-circle {
  clip-path: circle(42% at 50% 50%);
  background-attachment: fixed !important;
  background-size: cover;
}

/* 2.10 Fixed Diagonal Slit Mask */
.fx-fixed-mask-slant {
  clip-path: polygon(0 8%, 100% 0%, 100% 92%, 0% 100%);
  background-attachment: fixed !important;
  background-size: cover;
}

/* 2.11 Fixed Animated Aurora Mesh */
.fx-fixed-aurora-bg {
  background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 40%, #e0f2fe 70%, #f0fdfa 100%);
  background-size: 400% 400%;
  background-attachment: fixed !important;
  animation: fx-aurora 15s ease infinite;
}
@keyframes fx-aurora {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* 2.12 Fixed Frosted Glass Lens */
.fx-fixed-glass-lens {
  position: relative;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

/* ==========================================================================
   NEW: FIXED BACKGROUNDS WITH HORIZONTAL SCROLLING ON SCROLL (10+ Effects)
   ========================================================================== */

/* [NEW 2.13] Fixed Background with Horizontal Sliding Cards Rail on Scroll */
.fx-fixed-h-rail-container {
  position: relative;
  overflow: hidden;
  padding: 3.5rem 1rem;
}
.fx-fixed-h-rail-track,
.fx-fixed-h-track-left {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  will-change: transform;
  animation: fx-h-glide 24s linear infinite alternate;
}
.fx-fixed-h-rail-track:hover,
.fx-fixed-h-track-left:hover {
  animation-play-state: paused;
}
@keyframes fx-h-glide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-40%); }
}

/* [NEW 2.14] Reverse Direction Horizontal Rail on Fixed BG */
.fx-fixed-h-rail-reverse,
.fx-fixed-h-track-right {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  will-change: transform;
  animation: fx-h-glide-rev 24s linear infinite alternate;
}
.fx-fixed-h-rail-reverse:hover,
.fx-fixed-h-track-right:hover {
  animation-play-state: paused;
}
@keyframes fx-h-glide-rev {
  0% { transform: translateX(-40%); }
  100% { transform: translateX(0); }
}

/* [NEW 2.15] Bidirectional Dual Horizontal Tracks over Fixed Background */
.fx-fixed-bidirectional-wrapper {
  background-attachment: fixed !important;
  background-position: center !important;
  background-size: cover !important;
  overflow: hidden;
  padding: 3rem 0;
  position: relative;
}

/* [NEW 2.16] Continuous Ticker Ribbon over Fixed Viewport */
.fx-fixed-ticker-ribbon {
  display: flex;
  overflow: hidden;
  white-space: nowrap;
  user-select: none;
}
.fx-fixed-ticker-inner {
  display: flex;
  gap: 2rem;
  animation: fx-ticker-move 20s linear infinite;
  will-change: transform;
}
@keyframes fx-ticker-move {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* [NEW 2.17] Perspective 3D Conveyor on Fixed Mesh */
.fx-fixed-perspective-conveyor {
  perspective: 1200px;
  overflow: hidden;
  background-attachment: fixed !important;
  padding: 4rem 1rem;
}
.fx-fixed-perspective-track {
  display: flex;
  gap: 2rem;
  transform: rotateX(12deg) rotateY(-8deg);
  animation: fx-h-glide 30s linear infinite alternate;
}

/* [NEW 2.18] Fixed Background with Sticky Horizontal Scroll Timeline */
.fx-fixed-horizontal-sticky {
  position: sticky;
  top: 70px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #0d9488 #f1f5f9;
  background-attachment: fixed !important;
}

/* [NEW 2.19] Dual-Axis Horizontal Pan Viewport */
.fx-fixed-dual-pan {
  background-attachment: fixed !important;
  background-position: center !important;
  background-size: cover !important;
  position: relative;
}
.fx-fixed-pan-layer-left {
  animation: fx-pan-left-kf 18s ease-in-out infinite alternate;
}
.fx-fixed-pan-layer-right {
  animation: fx-pan-right-kf 18s ease-in-out infinite alternate;
}
@keyframes fx-pan-left-kf {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50px); }
}
@keyframes fx-pan-right-kf {
  0% { transform: translateX(0); }
  100% { transform: translateX(50px); }
}

/* [NEW 2.20] Angled Badge Ribbon Tape over Fixed Viewport */
.fx-fixed-angled-ribbon {
  transform: rotate(-3deg);
  margin: -1rem -2rem;
  animation: fx-ribbon-drift 22s linear infinite alternate;
}
@keyframes fx-ribbon-drift {
  0% { transform: rotate(-3deg) translateX(-5%); }
  100% { transform: rotate(-3deg) translateX(5%); }
}

/* [NEW 2.21] Horizontal Shutter Slices on Fixed Background */
.fx-fixed-h-shutter {
  position: relative;
  overflow: hidden;
  background-attachment: fixed !important;
}
.fx-fixed-h-shutter-slice {
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.fx-fixed-h-shutter:hover .fx-fixed-h-shutter-slice:nth-child(even) {
  transform: translateX(25px);
}
.fx-fixed-h-shutter:hover .fx-fixed-h-shutter-slice:nth-child(odd) {
  transform: translateX(-25px);
}

/* [NEW 2.22] Multi-Velocity Horizontal Floating Parallax Cards */
.fx-fixed-h-velocity-1 { animation: fx-h-glide 35s linear infinite alternate; }
.fx-fixed-h-velocity-2 { animation: fx-h-glide 22s linear infinite alternate; }
.fx-fixed-h-velocity-3 { animation: fx-h-glide 15s linear infinite alternate; }


/* ==========================================================================
   3. FLOATING BACKGROUNDS & AMBIENT OBJECTS (35+ Pure CSS Effects)
   ========================================================================== */

/* 3.1 Serene Floating (Slow 8s) */
.fx-float-slow {
  animation: fx-float-bob 8s ease-in-out infinite;
  will-change: transform;
}

/* 3.2 Dynamic Floating (Medium 5s) */
.fx-float-medium {
  animation: fx-float-bob 5s ease-in-out infinite;
  will-change: transform;
}

/* 3.3 Energized Floating (Fast 3s) */
.fx-float-fast {
  animation: fx-float-bob 3s ease-in-out infinite;
  will-change: transform;
}

/* 3.4 Inverted Phase Floating (Reverse 6s) */
.fx-float-reverse {
  animation: fx-float-bob-rev 6s ease-in-out infinite;
  will-change: transform;
}

@keyframes fx-float-bob {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-16px) rotate(2deg); }
}

@keyframes fx-float-bob-rev {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(16px) rotate(-2deg); }
}

/* 3.5 Horizontal Drift (8s) */
.fx-float-horizontal {
  animation: fx-float-drift 8s ease-in-out infinite;
}
@keyframes fx-float-drift {
  0%, 100% { transform: translateX(0px); }
  50% { transform: translateX(20px); }
}

/* 3.6 Slow Ambient Horizontal Drift (14s) */
.fx-float-horizontal-slow {
  animation: fx-float-drift-slow 14s ease-in-out infinite;
}
@keyframes fx-float-drift-slow {
  0%, 100% { transform: translateX(0px) translateY(0px); }
  50% { transform: translateX(-30px) translateY(-10px); }
}

/* 3.7 Diagonal Orbit Loop */
.fx-float-diagonal {
  animation: fx-float-diag 9s ease-in-out infinite;
}
@keyframes fx-float-diag {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(18px, -18px); }
}

/* 3.8 Infinity Figure-8 Path */
.fx-float-figure8 {
  animation: fx-fig8 12s ease-in-out infinite;
}
@keyframes fx-fig8 {
  0% { transform: translate(0, 0); }
  25% { transform: translate(15px, -12px); }
  50% { transform: translate(0, 0); }
  75% { transform: translate(-15px, 12px); }
  100% { transform: translate(0, 0); }
}

/* 3.9 Pendulum Swaying Swing */
.fx-float-pendulum {
  transform-origin: top center;
  animation: fx-pendulum 6s ease-in-out infinite;
}
@keyframes fx-pendulum {
  0%, 100% { transform: rotate(5deg); }
  50% { transform: rotate(-5deg); }
}

/* 3.10 Circular Orbital Path */
.fx-float-orbital {
  animation: fx-orbit 16s linear infinite;
}
@keyframes fx-orbit {
  0% { transform: rotate(0deg) translateX(25px) rotate(0deg); }
  100% { transform: rotate(360deg) translateX(25px) rotate(-360deg); }
}

/* 3.11 Breathing Size Scale Pulse */
.fx-float-pulse-scale {
  animation: fx-pulse-scale 5s ease-in-out infinite;
}
@keyframes fx-pulse-scale {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

/* 3.12 Luminous Pulsing Aura */
.fx-float-pulse-glow {
  animation: fx-pulse-glow-anim 4s ease-in-out infinite;
}
@keyframes fx-pulse-glow-anim {
  0%, 100% { box-shadow: 0 0 10px rgba(20, 184, 166, 0.2); }
  50% { box-shadow: 0 0 35px rgba(20, 184, 166, 0.6), 0 0 15px rgba(13, 148, 136, 0.4); }
}

/* 3.13 Organic Shape Morphing Blob 1 */
.fx-float-morph-blob-1 {
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  animation: fx-morph-1 10s ease-in-out infinite alternate;
}
@keyframes fx-morph-1 {
  0% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; transform: rotate(0deg); }
  50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; transform: rotate(180deg); }
  100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; transform: rotate(360deg); }
}

/* 3.14 Organic Shape Morphing Blob 2 */
.fx-float-morph-blob-2 {
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  animation: fx-morph-2 8s ease-in-out infinite alternate;
}
@keyframes fx-morph-2 {
  0% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
  100% { border-radius: 70% 30% 50% 50% / 30% 60% 40% 70%; }
}

/* 3.15 Rising Bubble Float */
.fx-float-bubble {
  animation: fx-bubble-rise 6s ease-in infinite;
}
@keyframes fx-bubble-rise {
  0% { transform: translateY(50px) scale(0.8); opacity: 0; }
  50% { opacity: 0.8; }
  100% { transform: translateY(-100px) scale(1.1); opacity: 0; }
}

/* 3.16 Medical Heartbeat Pulse */
.fx-float-heartbeat {
  animation: fx-heartbeat 2.5s ease-in-out infinite;
}
@keyframes fx-heartbeat {
  0%, 100% { transform: scale(1); }
  14% { transform: scale(1.15); }
  28% { transform: scale(1); }
  42% { transform: scale(1.15); }
  70% { transform: scale(1); }
}

/* [NEW 3.17] Floating Aurora Wave Curtain */
.fx-float-aurora-wave {
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.15), rgba(56, 189, 248, 0.15), rgba(99, 102, 241, 0.1));
  background-size: 300% 300%;
  animation: fx-aurora-wave 12s ease infinite alternate;
}
@keyframes fx-aurora-wave {
  0% { background-position: 0% 0%; }
  50% { background-position: 100% 100%; }
  100% { background-position: 50% 0%; }
}

/* [NEW 3.18] Constellation Starfield Mesh */
.fx-float-constellation {
  background-image: radial-gradient(rgba(20, 184, 166, 0.4) 1px, transparent 1px);
  background-size: 24px 24px;
  animation: fx-constellation-shift 20s linear infinite;
}
@keyframes fx-constellation-shift {
  0% { background-position: 0 0; }
  100% { background-position: 48px 48px; }
}

/* [NEW 3.19] Medical DNA Helix Spin */
.fx-float-dna-helix {
  animation: fx-dna-spin 10s linear infinite;
  transform-style: preserve-3d;
}
@keyframes fx-dna-spin {
  0% { transform: rotateY(0deg); }
  100% { transform: rotateY(360deg); }
}

/* [NEW 3.20] Floating Bokeh Light Spheres */
.fx-float-bokeh {
  animation: fx-bokeh-drift 14s ease-in-out infinite alternate;
}
@keyframes fx-bokeh-drift {
  0% { transform: translate(0, 0) scale(1); opacity: 0.4; }
  50% { transform: translate(30px, -40px) scale(1.2); opacity: 0.7; }
  100% { transform: translate(-20px, 30px) scale(0.9); opacity: 0.5; }
}

/* [NEW 3.21] Digital Circuit Node Pulse */
.fx-float-circuit-node {
  animation: fx-node-pulse 3s ease-in-out infinite;
}
@keyframes fx-node-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(20, 184, 166, 0.4); }
  50% { transform: scale(1.1); box-shadow: 0 0 0 12px rgba(20, 184, 166, 0); }
}

/* [NEW 3.22] Cosmic Nebula Color Gradient Pulse */
.fx-float-nebula-pulse {
  animation: fx-nebula-pulse 8s ease-in-out infinite alternate;
}
@keyframes fx-nebula-pulse {
  0% { filter: hue-rotate(0deg) blur(20px); transform: scale(1); }
  100% { filter: hue-rotate(60deg) blur(30px); transform: scale(1.2); }
}

/* [NEW 3.23] Floating Isometric Dental Tiles */
.fx-float-iso-tile {
  animation: fx-iso-float 6s ease-in-out infinite alternate;
}
@keyframes fx-iso-float {
  0% { transform: rotateX(60deg) rotateZ(-45deg) translateZ(0); }
  100% { transform: rotateX(60deg) rotateZ(-45deg) translateZ(24px); }
}

/* [NEW 3.24] Liquid Droplet Caustic Ripple */
.fx-float-caustic {
  animation: fx-caustic-shift 7s ease-in-out infinite;
}
@keyframes fx-caustic-shift {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.6; }
  50% { transform: scale(1.15) rotate(5deg); opacity: 0.9; }
}

/* [NEW 3.25] 3D Wireframe Polyhedron Float */
.fx-float-wireframe {
  animation: fx-wireframe-rot 18s linear infinite;
  transform-style: preserve-3d;
}
@keyframes fx-wireframe-rot {
  0% { transform: perspective(800px) rotateX(0deg) rotateY(0deg); }
  100% { transform: perspective(800px) rotateX(360deg) rotateY(360deg); }
}

/* [NEW 3.26] Surgical Theater Spotlight Beam */
.fx-float-spotlight-beam {
  animation: fx-spotlight-sweep 10s ease-in-out infinite alternate;
}
@keyframes fx-spotlight-sweep {
  0% { transform: rotate(-25deg); opacity: 0.3; }
  100% { transform: rotate(25deg); opacity: 0.7; }
}

/* [NEW 3.27] Advanced Floating Dynamics */
.fx-float-drift-diagonal {
  animation: fx-drift-diagonal 7s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes fx-drift-diagonal {
  0% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(16px, -18px) rotate(3deg); }
  100% { transform: translate(-14px, 12px) rotate(-2deg); }
}

.fx-float-figure-8,
.fx-float-figure8 {
  animation: fx-fig8-dynamic 9s ease-in-out infinite;
  will-change: transform;
}
@keyframes fx-fig8-dynamic {
  0% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(18px, -14px) rotate(4deg); }
  50% { transform: translate(0, 0) rotate(0deg); }
  75% { transform: translate(-18px, 14px) rotate(-4deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

.fx-float-jelly {
  animation: fx-jelly-squash 3.2s ease-in-out infinite;
  will-change: transform;
}
@keyframes fx-jelly-squash {
  0%, 100% { transform: scale(1, 1) translateY(0); }
  30% { transform: scale(1.18, 0.82) translateY(6px); }
  60% { transform: scale(0.85, 1.15) translateY(-14px); }
  80% { transform: scale(1.06, 0.94) translateY(-2px); }
}

.fx-float-shadow-sync {
  animation: fx-shadow-sync-bounce 4s ease-in-out infinite;
  will-change: transform, box-shadow;
}
@keyframes fx-shadow-sync-bounce {
  0%, 100% {
    transform: translateY(0);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  }
  50% {
    transform: translateY(-18px);
    box-shadow: 0 25px 35px -8px rgba(13, 148, 136, 0.28), 0 12px 18px -4px rgba(0, 0, 0, 0.08);
  }
}

.fx-float-spiral-orbit {
  animation: fx-spiral-3d 8s ease-in-out infinite;
  will-change: transform;
  transform-style: preserve-3d;
}
@keyframes fx-spiral-3d {
  0% { transform: perspective(600px) rotateY(0deg) translateZ(0) translateY(0); }
  25% { transform: perspective(600px) rotateY(20deg) translateZ(25px) translateY(-12px); }
  50% { transform: perspective(600px) rotateY(0deg) translateZ(0) translateY(0); }
  75% { transform: perspective(600px) rotateY(-20deg) translateZ(-25px) translateY(12px); }
  100% { transform: perspective(600px) rotateY(0deg) translateZ(0) translateY(0); }
}

.fx-float-bubble-rise {
  animation: fx-bubble-rise-wobble 5s ease-in-out infinite;
  will-change: transform, opacity;
}
@keyframes fx-bubble-rise-wobble {
  0% { transform: translateY(20px) translateX(0) scale(0.9); opacity: 0.6; }
  33% { transform: translateY(-5px) translateX(8px) scale(1.05); opacity: 1; }
  66% { transform: translateY(-25px) translateX(-8px) scale(0.98); opacity: 0.85; }
  100% { transform: translateY(20px) translateX(0) scale(0.9); opacity: 0.6; }
}

.fx-float-magnetic-drift {
  animation: fx-mag-drift 10s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite alternate;
  will-change: transform;
}
@keyframes fx-mag-drift {
  0% { transform: translate(0, 0); }
  33% { transform: translate(15px, -15px); }
  66% { transform: translate(-12px, -8px); }
  100% { transform: translate(8px, 16px); }
}

.fx-float-pendulum-swing {
  transform-origin: top center;
  animation: fx-pendulum 4.5s ease-in-out infinite;
}

.fx-float-bounce-hop {
  animation: fx-bounce-hop-kf 2.4s ease-in-out infinite;
}
@keyframes fx-bounce-hop-kf {
  0%, 100% { transform: translateY(0); }
  40% { transform: translateY(-16px) scale(1.04); }
  60% { transform: translateY(0) scale(0.97); }
}

.fx-float-perspective-orbit {
  animation: fx-orbit-3d 12s linear infinite;
  transform-style: preserve-3d;
}
@keyframes fx-orbit-3d {
  0% { transform: perspective(700px) rotateY(0deg) translateX(20px) rotateY(0deg); }
  100% { transform: perspective(700px) rotateY(360deg) translateX(20px) rotateY(-360deg); }
}

/* 3.28 Stagger Delays for Floating Elements */
.fx-float-stagger-1 { animation-delay: 0.5s !important; }
.fx-float-stagger-2 { animation-delay: 1.2s !important; }
.fx-float-stagger-3 { animation-delay: 2.1s !important; }
.fx-float-stagger-4 { animation-delay: 3.0s !important; }
.fx-float-stagger-5 { animation-delay: 4.2s !important; }


/* ==========================================================================
   4. SCROLL & ENTRANCE ANIMATIONS (36+ Pure CSS Animations & Delays)
   Triggered on Viewport Scroll Intersection via .fx-in-view or Scroll Timelines
   ========================================================================== */

/* Sections themselves must never have scroll animations - only elements inside */
section {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}

/* Base State for Scroll Reveal Elements */
.fx-scroll-reveal {
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s ease;
  will-change: opacity, transform, filter;
}
.fx-scroll-reveal.fx-in-view {
  opacity: 1;
  transform: none;
  filter: none;
}

/* 4.1 Smooth Fade Up */
.fx-animate-fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.fx-animate-fade-up.fx-in-view {
  opacity: 1;
  transform: translateY(0);
}

/* 4.2 Smooth Fade Down */
.fx-animate-fade-down {
  opacity: 0;
  transform: translateY(-32px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.fx-animate-fade-down.fx-in-view {
  opacity: 1;
  transform: translateY(0);
}

/* 4.3 Smooth Fade Left (RTL friendly) */
.fx-animate-fade-left {
  opacity: 0;
  transform: translateX(36px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.fx-animate-fade-left.fx-in-view {
  opacity: 1;
  transform: translateX(0);
}

/* 4.4 Smooth Fade Right */
.fx-animate-fade-right {
  opacity: 0;
  transform: translateX(-36px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.fx-animate-fade-right.fx-in-view {
  opacity: 1;
  transform: translateX(0);
}

/* 4.5 Zoom In / Scale In Reveal */
.fx-animate-zoom-in,
.fx-animate-scale-in {
  opacity: 0;
  transform: scale(0.88);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}
.fx-animate-zoom-in.fx-in-view,
.fx-animate-scale-in.fx-in-view {
  opacity: 1;
  transform: scale(1);
}

/* 4.6 Zoom Out Reveal */
.fx-animate-zoom-out {
  opacity: 0;
  transform: scale(1.15);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}
.fx-animate-zoom-out.fx-in-view {
  opacity: 1;
  transform: scale(1);
}

/* 4.7 Defocus to Sharp Blur Reveal */
.fx-animate-blur-in {
  opacity: 0;
  filter: blur(16px);
  transform: translateY(16px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), filter 0.85s ease, transform 0.85s ease;
}
.fx-animate-blur-in.fx-in-view {
  opacity: 1;
  filter: blur(0px);
  transform: translateY(0);
}

/* 4.8 3D Horizontal Flip (Flip X) */
.fx-animate-flip-x {
  opacity: 0;
  transform: perspective(800px) rotateX(70deg);
  transition: opacity 0.85s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.85s cubic-bezier(0.2, 0.8, 0.2, 1);
  transform-style: preserve-3d;
}
.fx-animate-flip-x.fx-in-view {
  opacity: 1;
  transform: perspective(800px) rotateX(0deg);
}

/* 4.9 3D Vertical Flip (Flip Y) */
.fx-animate-flip-y {
  opacity: 0;
  transform: perspective(800px) rotateY(70deg);
  transition: opacity 0.85s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.85s cubic-bezier(0.2, 0.8, 0.2, 1);
  transform-style: preserve-3d;
}
.fx-animate-flip-y.fx-in-view {
  opacity: 1;
  transform: perspective(800px) rotateY(0deg);
}

/* 4.10 Bouncy Elastic Pop Reveal */
.fx-animate-pop-in {
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.7s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.fx-animate-pop-in.fx-in-view {
  opacity: 1;
  transform: scale(1);
}

/* 4.11 Dramatic 80px Upward Slide */
.fx-animate-slide-up-lg {
  opacity: 0;
  transform: translateY(80px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.fx-animate-slide-up-lg.fx-in-view {
  opacity: 1;
  transform: translateY(0);
}

/* 4.12 3D Door Open Unfold */
.fx-animate-door-open {
  opacity: 0;
  transform-origin: right center;
  transform: perspective(1000px) rotateY(90deg);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.fx-animate-door-open.fx-in-view {
  opacity: 1;
  transform: perspective(1000px) rotateY(0deg);
}

/* 4.13 Curtain Clip Wipe */
.fx-animate-curtain {
  opacity: 0;
  clip-path: inset(0 100% 0 0);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), clip-path 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.fx-animate-curtain.fx-in-view {
  opacity: 1;
  clip-path: inset(0 0 0 0);
}

/* 4.14 Letter-Spacing Tracking Focus Entrance */
.fx-animate-tracking-in {
  opacity: 0;
  letter-spacing: -0.5em;
  filter: blur(8px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), letter-spacing 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.8s ease;
}
.fx-animate-tracking-in.fx-in-view {
  opacity: 1;
  letter-spacing: normal;
  filter: blur(0);
}

/* [NEW 4.15] 3D Scroll Rotate In */
.fx-animate-rotate-in-3d {
  opacity: 0;
  transform: perspective(900px) rotateX(-30deg) translateY(40px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}
.fx-animate-rotate-in-3d.fx-in-view {
  opacity: 1;
  transform: perspective(900px) rotateX(0deg) translateY(0);
}

/* [NEW 4.16] Spiral Zoom Reveal */
.fx-animate-spiral-zoom {
  opacity: 0;
  transform: scale(0.7) rotate(-15deg);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.fx-animate-spiral-zoom.fx-in-view {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

/* [NEW 4.17] Elastic Drop In */
.fx-animate-elastic-drop {
  opacity: 0;
  transform: translateY(-60px);
  transition: opacity 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.fx-animate-elastic-drop.fx-in-view {
  opacity: 1;
  transform: translateY(0);
}

/* [NEW 4.18] Skew Slide In */
.fx-animate-skew-slide {
  opacity: 0;
  transform: translateX(-50px) skewX(12deg);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.fx-animate-skew-slide.fx-in-view {
  opacity: 1;
  transform: translateX(0) skewX(0deg);
}

/* [NEW 4.19] Circular Lens Expand Reveal */
.fx-animate-mask-circle {
  opacity: 0;
  clip-path: circle(0% at 50% 50%);
  transition: opacity 0.85s ease, clip-path 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}
.fx-animate-mask-circle.fx-in-view {
  opacity: 1;
  clip-path: circle(75% at 50% 50%);
}

/* [NEW 4.20] Origami Split Fold Unfold */
.fx-animate-split-unfold {
  opacity: 0;
  transform: scaleY(0.1);
  transform-origin: top center;
  transition: opacity 0.75s ease, transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}
.fx-animate-split-unfold.fx-in-view {
  opacity: 1;
  transform: scaleY(1);
}

/* [NEW 4.21] Smooth 3D Roll In */
.fx-animate-roll-in {
  opacity: 0;
  transform: translateX(-80px) rotate(-120deg);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.fx-animate-roll-in.fx-in-view {
  opacity: 1;
  transform: translateX(0) rotate(0deg);
}

/* [NEW 4.22] Perspective Rise from Depth */
.fx-animate-perspective-rise {
  opacity: 0;
  transform: perspective(1000px) translateZ(-150px) translateY(50px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.fx-animate-perspective-rise.fx-in-view {
  opacity: 1;
  transform: perspective(1000px) translateZ(0) translateY(0);
}

/* 4.23 Cascading Delay Utilities - Substantially increased so user clearly sees animations upon scroll */
.fx-delay-75 { transition-delay: 200ms !important; animation-delay: 200ms !important; }
.fx-delay-100 { transition-delay: 300ms !important; animation-delay: 300ms !important; }
.fx-delay-150 { transition-delay: 420ms !important; animation-delay: 420ms !important; }
.fx-delay-200 { transition-delay: 550ms !important; animation-delay: 550ms !important; }
.fx-delay-300 { transition-delay: 700ms !important; animation-delay: 700ms !important; }
.fx-delay-400 { transition-delay: 850ms !important; animation-delay: 850ms !important; }
.fx-delay-500 { transition-delay: 1000ms !important; animation-delay: 1000ms !important; }
.fx-delay-600 { transition-delay: 1150ms !important; animation-delay: 1150ms !important; }
.fx-delay-700 { transition-delay: 1300ms !important; animation-delay: 1300ms !important; }
.fx-delay-800 { transition-delay: 1450ms !important; animation-delay: 1450ms !important; }
.fx-delay-1000 { transition-delay: 1650ms !important; animation-delay: 1650ms !important; }
.fx-delay-1200 { transition-delay: 1850ms !important; animation-delay: 1850ms !important; }

/* 4.24 Automatic Cascading Delay for Grid Children */
.fx-stagger-grid > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.fx-stagger-grid > *.fx-in-view {
  opacity: 1;
  transform: translateY(0);
}
.fx-stagger-grid > *:nth-child(1),
.fx-stagger-grid > *:nth-child(1) [class*="fx-animate-"] { transition-delay: 300ms !important; animation-delay: 300ms !important; }
.fx-stagger-grid > *:nth-child(2),
.fx-stagger-grid > *:nth-child(2) [class*="fx-animate-"] { transition-delay: 550ms !important; animation-delay: 550ms !important; }
.fx-stagger-grid > *:nth-child(3),
.fx-stagger-grid > *:nth-child(3) [class*="fx-animate-"] { transition-delay: 800ms !important; animation-delay: 800ms !important; }
.fx-stagger-grid > *:nth-child(4),
.fx-stagger-grid > *:nth-child(4) [class*="fx-animate-"] { transition-delay: 1050ms !important; animation-delay: 1050ms !important; }
.fx-stagger-grid > *:nth-child(5),
.fx-stagger-grid > *:nth-child(5) [class*="fx-animate-"] { transition-delay: 1300ms !important; animation-delay: 1300ms !important; }
.fx-stagger-grid > *:nth-child(6),
.fx-stagger-grid > *:nth-child(6) [class*="fx-animate-"] { transition-delay: 1550ms !important; animation-delay: 1550ms !important; }
.fx-stagger-grid > *:nth-child(7),
.fx-stagger-grid > *:nth-child(7) [class*="fx-animate-"] { transition-delay: 1800ms !important; animation-delay: 1800ms !important; }
.fx-stagger-grid > *:nth-child(8),
.fx-stagger-grid > *:nth-child(8) [class*="fx-animate-"] { transition-delay: 2050ms !important; animation-delay: 2050ms !important; }

/* 4.25 Pure CSS Modern Scroll Timelines (Progressive Enhancement) */
@supports (animation-timeline: view()) {
  .fx-scroll-timeline-fade-up {
    animation: fx-scroll-fade-up linear both;
    animation-timeline: view();
    animation-range: entry 10% cover 35%;
  }
  .fx-scroll-timeline-zoom {
    animation: fx-scroll-zoom linear both;
    animation-timeline: view();
    animation-range: entry 5% cover 30%;
  }
}
@keyframes fx-scroll-fade-up {
  from { opacity: 0; transform: translateY(40px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes fx-scroll-zoom {
  from { opacity: 0; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1); }
}


/* ==========================================================================
   5. ZOOM & KEN BURNS EFFECTS (32+ Pure CSS Effects)
   ========================================================================== */

/* 5.1 Subtle Ken Burns Slow Zoom (20s) */
.fx-zoom-slow {
  animation: fx-zoom-in-kf 20s cubic-bezier(0.25, 1, 0.5, 1) infinite alternate;
  will-change: transform;
}

/* 5.2 Dynamic Ken Burns Medium Zoom (12s) */
.fx-zoom-medium {
  animation: fx-zoom-in-kf 12s cubic-bezier(0.25, 1, 0.5, 1) infinite alternate;
  will-change: transform;
}

/* 5.3 Energized Ken Burns Fast Zoom (6s) */
.fx-zoom-fast {
  animation: fx-zoom-in-kf 6s cubic-bezier(0.25, 1, 0.5, 1) infinite alternate;
  will-change: transform;
}

/* 5.4 Ken Burns Zoom Out Slow (20s) */
.fx-zoom-out-slow {
  animation: fx-zoom-out-kf 20s cubic-bezier(0.25, 1, 0.5, 1) infinite alternate;
  will-change: transform;
}

/* 5.5 Ken Burns Zoom Out Medium (12s) */
.fx-zoom-out-medium {
  animation: fx-zoom-out-kf 12s cubic-bezier(0.25, 1, 0.5, 1) infinite alternate;
  will-change: transform;
}

/* 5.6 Ken Burns Zoom Out Fast (6s) */
.fx-zoom-out-fast {
  animation: fx-zoom-out-kf 6s cubic-bezier(0.25, 1, 0.5, 1) infinite alternate;
  will-change: transform;
}

@keyframes fx-zoom-in-kf {
  0% { transform: scale(1); }
  100% { transform: scale(1.16); }
}

@keyframes fx-zoom-out-kf {
  0% { transform: scale(1.18); }
  100% { transform: scale(1); }
}

/* 5.7 Zoom & Pan Top-Left (Clearly Visible Dynamic Movement) */
.fx-zoom-pan-tl {
  transform-origin: 15% 15% !important;
  animation: fx-pan-tl-kf 4s ease-in-out infinite alternate !important;
  will-change: transform;
}
@keyframes fx-pan-tl-kf {
  0% { transform: scale(1); }
  100% { transform: scale(1.75); }
}

/* 5.8 Zoom & Pan Top-Right */
.fx-zoom-pan-tr {
  transform-origin: 85% 15% !important;
  animation: fx-pan-tr-kf 4s ease-in-out infinite alternate !important;
  will-change: transform;
}
@keyframes fx-pan-tr-kf {
  0% { transform: scale(1); }
  100% { transform: scale(1.75); }
}

/* 5.9 Zoom & Pan Bottom-Left */
.fx-zoom-pan-bl {
  transform-origin: 15% 85% !important;
  animation: fx-pan-bl-kf 4s ease-in-out infinite alternate !important;
  will-change: transform;
}
@keyframes fx-pan-bl-kf {
  0% { transform: scale(1); }
  100% { transform: scale(1.75); }
}

/* 5.10 Zoom & Pan Bottom-Right */
.fx-zoom-pan-br {
  transform-origin: 85% 85% !important;
  animation: fx-pan-br-kf 4s ease-in-out infinite alternate !important;
  will-change: transform;
}
@keyframes fx-pan-br-kf {
  0% { transform: scale(1); }
  100% { transform: scale(1.75); }
}

/* 5.11 Zoom with Gentle Clockwise Angle Tilt */
.fx-zoom-rotate-cw {
  animation: fx-zoom-rot-cw 10s ease infinite alternate;
}
@keyframes fx-zoom-rot-cw {
  0% { transform: scale(1) rotate(0deg); }
  100% { transform: scale(1.22) rotate(4deg); }
}

/* 5.12 Zoom with Gentle Counter-Clockwise Tilt */
.fx-zoom-rotate-ccw {
  animation: fx-zoom-rot-ccw 10s ease infinite alternate;
}
@keyframes fx-zoom-rot-ccw {
  0% { transform: scale(1) rotate(0deg); }
  100% { transform: scale(1.22) rotate(-4deg); }
}

/* 5.13 Continuous Breathing Harmonic Zoom */
.fx-zoom-breathe {
  animation: fx-zoom-breathe-kf 8s ease-in-out infinite;
}
@keyframes fx-zoom-breathe-kf {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.09); }
}

/* 5.14 Optical Magnifying Hover Lens */
.fx-zoom-lens-container {
  overflow: hidden;
  position: relative;
}
.fx-zoom-lens-container img {
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  transform-origin: center center;
}
.fx-zoom-lens-container:hover img {
  transform: scale(1.35);
}

/* [NEW 5.15] Anamorphic Ultra-Wide Zoom */
.fx-zoom-anamorphic {
  animation: fx-anamorphic-kf 15s ease-in-out infinite alternate;
}
@keyframes fx-anamorphic-kf {
  0% { transform: scaleX(1) scaleY(1); }
  100% { transform: scaleX(1.25) scaleY(1.08); }
}

/* [NEW 5.16] Vortex Spiral Zoom */
.fx-zoom-vortex {
  animation: fx-vortex-kf 20s linear infinite alternate;
}
@keyframes fx-vortex-kf {
  0% { transform: scale(1) rotate(0deg); }
  100% { transform: scale(1.25) rotate(15deg); }
}

/* [NEW 5.17] Smart 4-Corner Ken Burns Carousel */
.fx-zoom-kenburns-quad {
  animation: fx-quad-kb 28s ease-in-out infinite;
}
@keyframes fx-quad-kb {
  0% { transform: scale(1) translate(0, 0); }
  25% { transform: scale(1.2) translate(-3%, -3%); }
  50% { transform: scale(1.15) translate(3%, -3%); }
  75% { transform: scale(1.25) translate(3%, 3%); }
  100% { transform: scale(1) translate(0, 0); }
}

/* [NEW 5.18] Rack Focus Depth Zoom */
.fx-zoom-rack-focus {
  animation: fx-rack-focus-kf 10s ease-in-out infinite alternate;
}
@keyframes fx-rack-focus-kf {
  0% { transform: scale(1); filter: blur(0px); }
  50% { transform: scale(1.1); filter: blur(4px); }
  100% { transform: scale(1.2); filter: blur(0px); }
}

/* [NEW 5.19] Cyber Pulse Zoom */
.fx-zoom-cyber-pulse {
  animation: fx-cyber-zoom 4s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}
@keyframes fx-cyber-zoom {
  0% { transform: scale(1); }
  15% { transform: scale(1.12); }
  30% { transform: scale(1.04); }
  100% { transform: scale(1); }
}

/* [NEW 5.20] Prism Color Split Zoom */
.fx-zoom-prism {
  animation: fx-prism-zoom 12s ease-in-out infinite alternate;
}
@keyframes fx-prism-zoom {
  0% { transform: scale(1); filter: drop-shadow(0 0 0 transparent); }
  100% { transform: scale(1.15); filter: drop-shadow(2px 0 0 rgba(20, 184, 166, 0.7)) drop-shadow(-2px 0 0 rgba(236, 72, 153, 0.7)); }
}

/* [NEW 5.21] Frame Inset Zoom */
.fx-zoom-frame-inset {
  overflow: hidden;
  position: relative;
}
.fx-zoom-frame-inset img {
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.fx-zoom-frame-inset:hover img {
  transform: scale(1.2) translateY(-2%);
}

/* [NEW 5.22] 3D Perspective Tunnel Zoom */
.fx-zoom-perspective-tunnel {
  animation: fx-tunnel-zoom 14s ease-in-out infinite alternate;
  transform-style: preserve-3d;
}
@keyframes fx-tunnel-zoom {
  0% { transform: perspective(800px) translateZ(0); }
  100% { transform: perspective(800px) translateZ(100px); }
}


/* ==========================================================================
   6. TEXT ANIMATIONS & TYPOGRAPHIC EFFECTS (25+ Pure CSS Effects)
   ========================================================================== */

/* 6.1 Metallic Shimmer Sweep & Gradient Wave */
.fx-text-shimmer,
.fx-text-gradient-shimmer {
  background: linear-gradient(
    90deg,
    #0f172a 0%,
    #0d9488 20%,
    #38bdf8 50%,
    #0d9488 80%,
    #0f172a 100%
  );
  background-size: 200% auto;
  color: transparent !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  animation: fx-text-shimmer-anim 3.5s linear infinite;
  display: inline-block;
}
@keyframes fx-text-shimmer-anim {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* 6.2 Glowing Neon Gas Tube & Pulse */
.fx-text-neon-flicker,
.fx-text-glow-pulse {
  color: #0d9488;
  animation: fx-neon-glow-pulse 3s ease-in-out infinite alternate;
  display: inline-block;
}
@keyframes fx-neon-glow-pulse {
  0% {
    text-shadow: 
      0 0 4px rgba(20, 184, 166, 0.4),
      0 0 10px rgba(20, 184, 166, 0.2);
  }
  50% {
    text-shadow: 
      0 0 8px rgba(20, 184, 166, 0.9),
      0 0 18px rgba(20, 184, 166, 0.6),
      0 0 30px rgba(13, 148, 136, 0.4);
  }
  100% {
    text-shadow: 
      0 0 4px rgba(20, 184, 166, 0.4),
      0 0 10px rgba(20, 184, 166, 0.2);
  }
}

/* 6.3 Animated Marker Highlighter Sweep */
.fx-text-marker {
  position: relative;
  display: inline-block;
  z-index: 1;
}
.fx-text-marker::before {
  content: '';
  position: absolute;
  bottom: 10%;
  left: -4px;
  right: -4px;
  height: 45%;
  background: linear-gradient(90deg, #fef08a 0%, #fde047 100%);
  border-radius: 4px;
  z-index: -1;
  transform-origin: right center;
  animation: fx-marker-draw 3s cubic-bezier(0.2, 0.8, 0.2, 1) infinite alternate;
}
@keyframes fx-marker-draw {
  0% { transform: scaleX(0); }
  40%, 100% { transform: scaleX(1); }
}

/* 6.4 Typewriter Terminal Effect */
.fx-text-typewriter,
.fx-text-typing {
  display: inline-block;
  overflow: hidden;
  border-left: 2px solid #0d9488;
  white-space: nowrap;
  animation: fx-typing 5s steps(28, end) infinite, fx-blink-caret 0.75s step-end infinite;
  vertical-align: middle;
}
@keyframes fx-typing {
  0%, 10% { width: 0; }
  60%, 85% { width: 100%; }
  100% { width: 0; }
}
@keyframes fx-blink-caret {
  from, to { border-color: transparent; }
  50% { border-color: #0d9488; }
}

/* 6.5 3D Isometric Extrusion (Pop 3D) */
.fx-text-pop-3d {
  display: inline-block;
  color: #0f766e;
  text-shadow: 
    1px 1px 0 #0d9488,
    2px 2px 0 #0f766e,
    3px 3px 0 #115e59,
    4px 4px 0 #134e4a,
    5px 7px 12px rgba(15, 118, 110, 0.35);
  animation: fx-pop-3d-breathe 4s ease-in-out infinite alternate;
}
@keyframes fx-pop-3d-breathe {
  0% {
    transform: translateY(0);
    text-shadow: 
      1px 1px 0 #0d9488,
      2px 2px 0 #0f766e,
      3px 3px 0 #115e59,
      4px 4px 0 #134e4a,
      4px 6px 10px rgba(15, 118, 110, 0.25);
  }
  100% {
    transform: translateY(-4px);
    text-shadow: 
      1px 1px 0 #0d9488,
      2px 2px 0 #0f766e,
      3px 3px 0 #115e59,
      4px 4px 0 #134e4a,
      5px 5px 0 #042f2e,
      6px 6px 0 #042f2e,
      7px 10px 16px rgba(15, 118, 110, 0.4);
  }
}

/* 6.6 Cyberpunk Gas Neon Flicker */
.fx-text-neon {
  color: #22d3ee;
  text-shadow: 
    0 0 5px #06b6d4,
    0 0 10px #0891b2,
    0 0 20px #0e7490;
  animation: fx-neon-flicker-full 4s infinite;
  display: inline-block;
}
@keyframes fx-neon-flicker-full {
  0%, 18%, 22%, 25%, 53%, 57%, 100% {
    opacity: 1;
    text-shadow: 
      0 0 5px #22d3ee,
      0 0 10px #06b6d4,
      0 0 20px #0891b2,
      0 0 35px #0e7490;
  }
  20%, 24%, 55% {
    opacity: 0.35;
    text-shadow: none;
  }
}

/* 6.7 Defocus Lens to Sharp Blur Transition */
.fx-text-blur-sharp {
  display: inline-block;
  animation: fx-blur-sharp-anim 5s ease-in-out infinite alternate;
}
@keyframes fx-blur-sharp-anim {
  0% { filter: blur(6px); opacity: 0.4; }
  50%, 100% { filter: blur(0); opacity: 1; }
}

/* 6.8 Cyber RGB Glitch Text */
.fx-text-glitch {
  display: inline-block;
  position: relative;
  animation: fx-glitch-text-kf 3s ease-in-out infinite;
}
@keyframes fx-glitch-text-kf {
  0%, 80%, 100% {
    transform: translate(0, 0);
    text-shadow: none;
  }
  82% {
    transform: translate(-2px, 1px);
    text-shadow: 2px 0 #0d9488, -2px 0 #ec4899;
  }
  84% {
    transform: translate(2px, -1px);
    text-shadow: -2px 0 #0d9488, 2px 0 #ec4899;
  }
  86% {
    transform: translate(0, 0);
    text-shadow: none;
  }
}

/* 6.9 Sine Wave Undulating Text */
.fx-text-wave {
  display: inline-block;
  animation: fx-sine-wave 3s ease-in-out infinite;
}
@keyframes fx-sine-wave {
  0%, 100% { transform: translateY(0); }
  25% { transform: translateY(-6px) rotate(-1deg); }
  75% { transform: translateY(6px) rotate(1deg); }
}

/* 6.10 Dynamic Multi-Color Gradient Flow */
.fx-text-gradient-flow {
  background: linear-gradient(135deg, #0d9488, #38bdf8, #6366f1, #0d9488);
  background-size: 300% 300%;
  color: transparent !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  animation: fx-gradient-flow-kf 6s ease infinite;
  display: inline-block;
}
@keyframes fx-gradient-flow-kf {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* 6.11 3D Flip Letters on Hover */
.fx-text-flip-hover {
  display: inline-block;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-style: preserve-3d;
}
.fx-text-flip-hover:hover {
  transform: perspective(600px) rotateX(360deg);
  color: #0d9488;
}

/* 6.12 Bouncy Kinetic Elastic Text */
.fx-text-bouncy {
  display: inline-block;
  animation: fx-text-bounce 3s ease-in-out infinite;
}
@keyframes fx-text-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* 6.13 Liquid Wave Fill in Text */
.fx-text-liquid-fill {
  position: relative;
  color: rgba(13, 148, 136, 0.25);
  display: inline-block;
}
.fx-text-liquid-fill::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  color: #0d9488;
  overflow: hidden;
  transition: height 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.fx-text-liquid-fill:hover::after {
  height: 100%;
}

/* 6.14 Kinetic Tracking Expansion */
.fx-text-kinetic-tracking {
  transition: letter-spacing 0.4s ease, color 0.4s ease;
  display: inline-block;
}
.fx-text-kinetic-tracking:hover {
  letter-spacing: 0.15em;
  color: #0d9488;
}

/* 6.15 Spotlight Clip Reveal */
.fx-text-spotlight {
  background: radial-gradient(circle at 50% 50%, #0d9488 0%, #0f172a 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  animation: fx-spotlight-text 6s ease-in-out infinite alternate;
  display: inline-block;
}
@keyframes fx-spotlight-text {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

/* 6.16 Disperse Blur on Hover */
.fx-text-blur-hover {
  transition: filter 0.35s ease, opacity 0.35s ease;
  display: inline-block;
}
.fx-text-blur-hover:hover {
  filter: blur(4px);
  opacity: 0.6;
}

/* ========================================================================= */
/* 7. PERSIAN UI/UX TYPOGRAPHY & RTL ACCESSIBILITY ENGINE (WCAG 2.1 AA)      */
/* ========================================================================= */

:root {
  --font-persian-base: 'Vazirmatn', system-ui, -apple-system, sans-serif;
  --font-persian-heading: 'Shabnam', 'Vazirmatn', sans-serif;
  --font-persian-editorial: 'Sahel', 'Vazirmatn', serif;
  --font-persian-warm: 'Samim', 'Vazirmatn', sans-serif;
  --font-persian-display: 'Lalezar', 'Vazirmatn', cursive;
  --font-persian-kufi: 'Noto Kufi Arabic', 'Vazirmatn', sans-serif;
}

/* 7.1 Root Directionality & OpenType Engine Settings */
html[dir="rtl"], body[dir="rtl"], [dir="rtl"] {
  font-feature-settings: "ss01" 1, "tnum" 1, "kern" 1;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* 7.2 Strict Persian Ligature Protection (Ban positive tracking on connected script) */
[dir="rtl"] *:not([dir="ltr"]):not(code):not(pre):not(.font-mono) {
  letter-spacing: normal !important;
}
.tracking-tight, .tracking-tighter, .tracking-wide, .tracking-wider, .tracking-widest {
  letter-spacing: normal !important;
}
[dir="ltr"] .tracking-tight {
  letter-spacing: -0.025em !important;
}
[dir="ltr"] .tracking-wide {
  letter-spacing: 0.025em !important;
}

/* 7.3 Typographic Scale & Heading Leading */
[dir="rtl"] h1 {
  line-height: 1.25 !important;
  font-feature-settings: "ss01" 1, "tnum" 1;
}
[dir="rtl"] h2 {
  line-height: 1.3 !important;
  font-feature-settings: "ss01" 1, "tnum" 1;
}
[dir="rtl"] h3 {
  line-height: 1.35 !important;
  font-feature-settings: "ss01" 1, "tnum" 1;
}

/* 7.4 Persian Paragraph Bounds & Optimal Line Heights */
[dir="rtl"] p {
  line-height: 1.75;
  font-feature-settings: "ss01" 1, "tnum" 1;
}

/* 7.5 WCAG 2.1 AA Touch Targets (Min 44x44px for primary controls) */
@media (max-width: 640px) {
  button:not(.btn-compact), 
  a.btn-touch,
  input[type="button"], 
  input[type="submit"],
  select,
  summary {
    min-height: 44px;
    min-width: 44px;
    touch-action: manipulation;
  }
}

/* 7.6 Logical Spacing & Layout Utilities */
.text-start { text-align: start !important; }
.text-end { text-align: end !important; }
.ms-auto { margin-inline-start: auto !important; }
.me-auto { margin-inline-end: auto !important; }
.ps-4 { padding-inline-start: 1rem !important; }
.pe-4 { padding-inline-end: 1rem !important; }
.border-s { border-inline-start-width: 1px !important; }
.border-e { border-inline-end-width: 1px !important; }

/* Navigation Dropdown Hover Utility */
.nav-dropdown:hover .dropdown-menu {
  display: block !important;
}


