/* ==========================================================================
   PADMAVATI JEWELLERS — LUXURY 3D ANIMATIONS & INTERACTIONS
   Subtle, elegant perspective effects without gaming aesthetics
   ========================================================================== */

/* 1. 3D Perspective Container for Cards */
.card-3d-perspective {
  perspective: 1200px;
  transform-style: preserve-3d;
}

.card-3d-inner {
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
  will-change: transform;
}

/* Subtle Card Hover Tilt & Specular Light Effect */
.card-3d-inner:hover {
  transform: perspective(1000px) rotateX(var(--rotate-x, 0deg)) rotateY(var(--rotate-y, 0deg)) translateZ(8px);
}

.card-specular-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.25) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  pointer-events: none;
  transition: left 0.75s ease-in-out;
  z-index: 5;
}

.product-card:hover .card-specular-shine {
  left: 150%;
}

/* 2. Parallax Floating Elements */
.parallax-float-slow {
  transition: transform 0.8s cubic-bezier(0.1, 1, 0.1, 1);
  will-change: transform;
}

/* 3. Smooth Fade-in Reveal Animations */
.reveal-fade-up {
  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);
  will-change: opacity, transform;
}

.reveal-fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delay classes */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* 4. Luxury 3D Ring Canvas Viewer */
.three-viewer-active {
  box-shadow: inset 0 0 40px rgba(179, 142, 70, 0.12);
}

.three-instructions-hint {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(20, 20, 20, 0.75);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 9999px;
  pointer-events: none;
  opacity: 0.9;
  z-index: 15;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* 5. Shimmer Badge Animation */
@keyframes goldShimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.gold-shimmer-text {
  background: linear-gradient(90deg, #B38E46 0%, #F5DEB3 50%, #B38E46 100%);
  background-size: 200% auto;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  animation: goldShimmer 4s infinite linear;
}

/* 6. Respect Reduced Motion */
@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;
  }
  .reveal-fade-up {
    opacity: 1 !important;
    transform: none !important;
  }
  .card-3d-inner:hover {
    transform: none !important;
  }
}
