/* ==========================================================================
   SHA MONEY MITHRA FINSERV — WORLD-CLASS 3D ANIMATION ENGINE & GPU KEYFRAMES
   Classic Luxury & Dynamic Interactive 3D Architecture
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. 3D PERSPECTIVE & SPATIAL ENGINE
   -------------------------------------------------------------------------- */
.perspective-container {
  perspective: 1200px;
  transform-style: preserve-3d;
}

.preserve-3d {
  transform-style: preserve-3d;
}

/* 3D Interactive Tilt Card Base */
[data-tilt-3d],
.card-3d {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.4, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  will-change: transform;
  overflow: hidden;
}

/* Specular Light Glare (Simulates real-world dynamic glass/metallic reflection) */
.tilt-glare {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: radial-gradient(circle 240px at var(--glare-x, 50%) var(--glare-y, 50%), rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.04) 45%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 10;
  border-radius: inherit;
  mix-blend-mode: overlay;
}

[data-tilt-3d]:hover .tilt-glare,
.card-3d:hover .tilt-glare {
  opacity: 1;
}

/* 3D Depth Layering Inside Cards */
.layer-depth-1 {
  transform: translateZ(14px);
  transform-style: preserve-3d;
}

.layer-depth-2 {
  transform: translateZ(28px);
  transform-style: preserve-3d;
}

.layer-depth-3 {
  transform: translateZ(44px);
  transform-style: preserve-3d;
}

/* --------------------------------------------------------------------------
   2. 3D HERO CANVAS STYLING
   -------------------------------------------------------------------------- */
.hero-3d-canvas-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: auto;
  z-index: 1;
  overflow: hidden;
}

#hero3dCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hero-finserv > .container {
  position: relative;
  z-index: 2;
}

/* --------------------------------------------------------------------------
   3. 3D KEYFRAME ANIMATIONS
   -------------------------------------------------------------------------- */
@keyframes float3d {
  0% {
    transform: translate3d(0, 0px, 0) rotate(0deg);
  }
  50% {
    transform: translate3d(0, -12px, 20px) rotate(1.5deg);
  }
  100% {
    transform: translate3d(0, 0px, 0) rotate(0deg);
  }
}

@keyframes float3dReverse {
  0% {
    transform: translate3d(0, 0px, 0) rotate(0deg);
  }
  50% {
    transform: translate3d(0, 10px, -15px) rotate(-1.5deg);
  }
  100% {
    transform: translate3d(0, 0px, 0) rotate(0deg);
  }
}

@keyframes badgeFloat {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-6px) rotate(-1deg);
  }
}

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

@keyframes orbPulse {
  0% {
    transform: scale(0.96);
    opacity: 0.45;
  }
  50% {
    transform: scale(1.08);
    opacity: 0.75;
  }
  100% {
    transform: scale(0.96);
    opacity: 0.45;
  }
}

@keyframes pulseGlowCrimson {
  0% {
    box-shadow: 0 0 0 0 rgba(158, 27, 50, 0.45), 0 10px 25px rgba(158, 27, 50, 0.2);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(158, 27, 50, 0), 0 16px 35px rgba(158, 27, 50, 0.35);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(158, 27, 50, 0), 0 10px 25px rgba(158, 27, 50, 0.2);
  }
}

@keyframes pulseGlowGold {
  0% {
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.5), 0 8px 20px rgba(212, 175, 55, 0.25);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(212, 175, 55, 0), 0 12px 30px rgba(212, 175, 55, 0.35);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0), 0 8px 20px rgba(212, 175, 55, 0.25);
  }
}

.anim-float-3d {
  animation: float3d 5s ease-in-out infinite;
}

.anim-float-reverse {
  animation: float3dReverse 6s ease-in-out infinite;
}

.anim-badge-float {
  animation: badgeFloat 3.8s ease-in-out infinite;
}

.anim-pulse-gold {
  animation: pulseGlowGold 2.8s infinite;
}

/* --------------------------------------------------------------------------
   4. CLASSIC LUXURY METALLIC & GLASS ACCENTS
   -------------------------------------------------------------------------- */
.text-shimmer-gold {
  background: linear-gradient(90deg, #D4AF37 0%, #FFF3C4 35%, #D4AF37 60%, #AA771C 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmerGold 5s linear infinite;
  display: inline-block;
}

.classic-glass-card {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(212, 175, 55, 0.28);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(212, 175, 55, 0.15);
  border-radius: 20px;
}

.classic-dark-glass {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
}

/* Classic Luxury Crest / Seal */
.classic-seal-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.18) 0%, rgba(158, 27, 50, 0.12) 100%);
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 9999px;
  padding: 6px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #D4AF37;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.15);
}

/* --------------------------------------------------------------------------
   5. WORLD-CLASS 3D DUAL-STAGE MAGNETIC CURSOR
   -------------------------------------------------------------------------- */
.custom-cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background: #D4AF37;
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: opacity 0.2s ease, transform 0.08s ease;
  box-shadow: 0 0 10px #D4AF37, 0 0 20px rgba(212, 175, 55, 0.6);
}

.custom-cursor-aura {
  position: fixed;
  top: 0;
  left: 0;
  width: 38px;
  height: 38px;
  border: 1.5px solid rgba(212, 175, 55, 0.55);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              height 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.25s ease,
              background-color 0.25s ease;
}

.custom-cursor-aura.cursor-hover {
  width: 58px;
  height: 58px;
  border-color: #D4AF37;
  background: rgba(212, 175, 55, 0.12);
  backdrop-filter: blur(2px);
}

.custom-cursor-aura.cursor-active {
  width: 32px;
  height: 32px;
  border-color: #9E1B32;
  background: rgba(158, 27, 50, 0.25);
}

.cursor-ripple {
  position: fixed;
  border: 2px solid #D4AF37;
  border-radius: 50%;
  pointer-events: none;
  z-index: 99997;
  transform: translate(-50%, -50%) scale(0.2);
  animation: rippleSpread 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes rippleSpread {
  0% {
    width: 20px;
    height: 20px;
    opacity: 0.9;
    transform: translate(-50%, -50%) scale(0.2);
  }
  100% {
    width: 90px;
    height: 90px;
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.4);
  }
}

/* --------------------------------------------------------------------------
   6. RESPONSIVE / REDUCED MOTION SAFEGUARD
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
    transform: none !important;
  }
  .custom-cursor-dot,
  .custom-cursor-aura {
    display: none !important;
  }
}
