/* ===================================================
   NAQSH JEWELLERS — LUXURY MICRO-ANIMATIONS & MOTIONS
   =================================================== */

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

.gold-shimmer-text {
  background: linear-gradient(
    90deg,
    #B88A3A 0%,
    #D4AF37 25%,
    #FFF4D0 50%,
    #D4AF37 75%,
    #B88A3A 100%
  );
  background-size: 200% auto;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  animation: goldShimmer 6s ease-in-out infinite;
}

.gold-shimmer-border {
  position: relative;
}
.gold-shimmer-border::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(212, 175, 55, 0.6),
    rgba(255, 244, 208, 0.9),
    rgba(184, 138, 58, 0.3),
    rgba(212, 175, 55, 0.8)
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

@keyframes slowSparkleFloat {
  0%, 100% {
    transform: translateY(0px) rotate(0deg) scale(1);
    opacity: 0.35;
  }
  50% {
    transform: translateY(-12px) rotate(15deg) scale(1.15);
    opacity: 0.85;
  }
}

.floating-sparkle {
  position: absolute;
  pointer-events: none;
  animation: slowSparkleFloat 7s ease-in-out infinite;
}

.floating-sparkle:nth-child(2) {
  animation-duration: 9s;
  animation-delay: 1.5s;
}

.floating-sparkle:nth-child(3) {
  animation-duration: 6s;
  animation-delay: 3s;
}

/* Page Transitions */
.page-fade-in {
  animation: pageFadeIn 0.55s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes pageFadeIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll reveal helper */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  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);
}

/* Product Card Lift & Zoom */
.product-card {
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.45s ease;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 38px rgba(184, 138, 58, 0.12), 0 6px 14px rgba(0, 0, 0, 0.04);
  border-color: rgba(197, 160, 89, 0.55);
}

.product-image-container {
  overflow: hidden;
  position: relative;
}

.product-image-container img {
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.product-card:hover .product-image-container img {
  transform: scale(1.065);
}

/* Category 3D Tilt Hover */
.category-tilt-card {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
  perspective: 1000px;
}

.category-tilt-card:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 24px 45px rgba(28, 25, 23, 0.08), 0 8px 18px rgba(184, 138, 58, 0.1);
}

/* Gold Underline Animation */
.gold-line-expand {
  position: relative;
  display: inline-block;
}

.gold-line-expand::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0%;
  height: 1.5px;
  background: linear-gradient(90deg, #D4AF37, #EED59B);
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.gold-line-expand:hover::after,
.gold-line-expand.active::after {
  width: 100%;
}

/* Slide in drawer */
.drawer-backdrop {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.drawer-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.drawer-panel {
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.drawer-backdrop.active .drawer-panel {
  transform: translateX(0);
}

/* Modal Popup */
.modal-overlay {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  transform: translateY(20px) scale(0.97);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
  opacity: 0;
}

.modal-overlay.active .modal-box {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* Button micro-interactions */
.btn-gold-primary {
  background: linear-gradient(135deg, #C5A059 0%, #B88A3A 50%, #9E7B35 100%);
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.3s ease;
  box-shadow: 0 4px 14px rgba(184, 138, 58, 0.24);
}

.btn-gold-primary:hover {
  background: linear-gradient(135deg, #D4AF37 0%, #C5A059 50%, #B88A3A 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(184, 138, 58, 0.38);
}

.btn-gold-primary:active {
  transform: translateY(0);
}

.btn-gold-outline {
  border: 1px solid rgba(197, 160, 89, 0.7);
  color: #8B651B;
  background: transparent;
  transition: all 0.3s ease;
}

.btn-gold-outline:hover {
  border-color: #B88A3A;
  background: rgba(212, 175, 55, 0.08);
  color: #694C12;
  transform: translateY(-2px);
}

/* Subtle Indian Jaali Pattern Background */
.bg-jaali-subtle {
  background-color: #FAF8F5;
  background-image: radial-gradient(rgba(197, 160, 89, 0.12) 1px, transparent 1px), radial-gradient(rgba(197, 160, 89, 0.08) 1px, #FAF8F5 1px);
  background-size: 32px 32px;
  background-position: 0 0, 16px 16px;
}

/* Cinematic Hero Glow */
.hero-glow-sphere {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(238, 213, 155, 0.25) 0%, rgba(212, 175, 55, 0.08) 50%, transparent 75%);
  filter: blur(40px);
  pointer-events: none;
  animation: glowPulse 8s ease-in-out infinite alternate;
}

@keyframes glowPulse {
  0% {
    transform: scale(0.9) translate(-20px, 0);
    opacity: 0.5;
  }
  100% {
    transform: scale(1.15) translate(20px, -15px);
    opacity: 0.9;
  }
}

/* Pulsing Badge */
.pulse-badge {
  animation: softPulse 2.8s infinite;
}

@keyframes softPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(197, 160, 89, 0.4);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(197, 160, 89, 0);
  }
}

/* ==================================================
   LUXURY 3D JEWELLERY SHOWROOM VISUALS
   ================================================== */

.jewellery-3d-card {
  perspective: 1000px;
  transform-style: preserve-3d;
  will-change: transform;
  position: relative;
  transition: box-shadow 0.4s ease;
}

.jewellery-3d-card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12), 0 8px 16px rgba(184, 138, 58, 0.18);
}

.jewellery-3d-card .product-card-image-wrap {
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
}

.jewellery-3d-glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  border-radius: inherit;
  z-index: 4;
  transition: opacity 0.3s ease;
  mix-blend-mode: overlay;
}

/* Subtle luxury floating motion */
.jewellery-floating {
  animation: subtleJewelleryFloat 5.5s ease-in-out infinite;
}

@keyframes subtleJewelleryFloat {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-7px) rotate(0.4deg);
  }
}

/* Metallic gold facet gleam */
.metallic-gleam-effect {
  position: relative;
  overflow: hidden;
}

.metallic-gleam-effect::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    60deg,
    transparent 35%,
    rgba(255, 255, 255, 0.4) 48%,
    rgba(229, 199, 129, 0.6) 50%,
    rgba(255, 255, 255, 0.4) 52%,
    transparent 65%
  );
  transform: translateX(-100%) rotate(25deg);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.jewellery-3d-card:hover .metallic-gleam-effect::after,
.product-card:hover .metallic-gleam-effect::after {
  opacity: 1;
  animation: metallicGleamPass 1.4s ease-out forwards;
}

@keyframes metallicGleamPass {
  0% {
    transform: translateX(-100%) rotate(25deg);
  }
  100% {
    transform: translateX(100%) rotate(25deg);
  }
}

/* 360 Turntable Viewer Badge & Controls */
.viewer-360-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(28, 25, 23, 0.82);
  color: #FAF7F2;
  border: 1px solid rgba(197, 160, 89, 0.5);
  backdrop-filter: blur(8px);
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  z-index: 5;
  cursor: grab;
  user-select: none;
  transition: all 0.25s ease;
}

.viewer-360-badge:hover {
  background: #1C1917;
  border-color: #D4AF37;
  transform: scale(1.05);
}

.viewer-thumb-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(197, 160, 89, 0.4);
  transition: all 0.2s ease;
}

.viewer-thumb-dot.active {
  background: #8B651B;
  transform: scale(1.4);
}

