/* ============================================================
   RAYLOM 3D EFFECTS & ADVANCED INTERACTIONS
   Premium · Interactive · Fully Responsive
   ============================================================ */

/* ============================================================
   3D PERSPECTIVE WRAPPER
   ============================================================ */
.has-3d {
  perspective: 1200px;
  transform-style: preserve-3d;
}

/* ============================================================
   HERO SECTION 3D
   ============================================================ */
.hero-section {
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(
      circle at 20% 30%,
      rgba(212, 175, 55, 0.08) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(212, 175, 55, 0.06) 0%,
      transparent 40%
    );
  pointer-events: none;
  z-index: 1;
}

.hero-headline {
  transform-style: preserve-3d;
  animation: heroFloat 6s ease-in-out infinite;
}

@keyframes heroFloat {
  0%,
  100% {
    transform: translateY(0) rotateX(0deg);
  }
  50% {
    transform: translateY(-8px) rotateX(2deg);
  }
}

.hero-eyebrow {
  transform-style: preserve-3d;
  animation: badgeFloat3D 4s ease-in-out infinite;
}

@keyframes badgeFloat3D {
  0%,
  100% {
    transform: translateZ(0) rotateY(0deg);
  }
  50% {
    transform: translateZ(15px) rotateY(5deg);
  }
}

.btn-hero-primary,
.btn-hero-secondary {
  transform-style: preserve-3d;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-hero-primary:hover {
  transform: translateY(-5px) rotateX(-5deg) translateZ(20px);
  box-shadow:
    0 25px 50px rgba(15, 23, 42, 0.35),
    0 0 30px rgba(212, 175, 55, 0.3);
}

.btn-hero-secondary:hover {
  transform: translateY(-5px) rotateX(-5deg) translateZ(20px);
}

.hero-trust-item {
  transform-style: preserve-3d;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-trust-item:hover {
  transform: translateZ(20px) scale(1.05);
}

/* ============================================================
   LUXURY BANNER 3D
   ============================================================ */
.luxury-banner-wrapper {
  transform-style: preserve-3d;
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.luxury-banner-wrapper:hover {
  transform: perspective(1500px) rotateY(-1deg) rotateX(1deg);
}

.luxury-banner-floating-badge {
  transform-style: preserve-3d;
  animation: floatBadge3D 4s ease-in-out infinite;
}

@keyframes floatBadge3D {
  0%,
  100% {
    transform: translateY(0) translateZ(0) rotateY(0deg);
  }
  50% {
    transform: translateY(-10px) translateZ(20px) rotateY(8deg);
  }
}

.luxury-banner-title {
  transform-style: preserve-3d;
  text-shadow:
    0 2px 0 rgba(15, 23, 42, 0.05),
    0 4px 20px rgba(212, 175, 55, 0.15);
}

.luxury-banner-image img {
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.luxury-banner-wrapper:hover .luxury-banner-image img {
  transform: scale(1.08) translateZ(30px);
}

.trust-avatar {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  transform-style: preserve-3d;
}

.trust-avatar:hover {
  transform: translateY(-8px) translateZ(25px) scale(1.15);
  box-shadow: 0 15px 35px rgba(212, 175, 55, 0.4);
}

/* ============================================================
   LIVE STATS 3D
   ============================================================ */
.live-stat-box {
  transform-style: preserve-3d;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.live-stat-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at center,
    rgba(212, 175, 55, 0.08),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.live-stat-box:hover::before {
  opacity: 1;
}

.live-stat-box:hover {
  transform: translateY(-8px) translateZ(30px) rotateX(-5deg);
}

.live-stat-icon {
  transform-style: preserve-3d;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.live-stat-box:hover .live-stat-icon {
  transform: translateZ(30px) rotateY(360deg) scale(1.2);
}

/* ============================================================
   CATEGORIES 3D
   ============================================================ */
.category-card {
  transform-style: preserve-3d;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  perspective: 1000px;
}

.category-card:hover {
  transform: translateY(-10px) rotateY(5deg) rotateX(-5deg) translateZ(30px);
  box-shadow:
    0 30px 60px rgba(15, 23, 42, 0.25),
    0 0 0 1px rgba(212, 175, 55, 0.3);
}

.category-card img {
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  transform-style: preserve-3d;
}

.category-card:hover img {
  transform: scale(1.15) translateZ(40px);
}

.category-title {
  transform: translateZ(30px);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.category-link {
  transform: translateZ(40px);
}

/* ============================================================
   PRODUCT CARDS — 3D TILT
   ============================================================ */
.modern-product-card {
  transform-style: preserve-3d;
  perspective: 1000px;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

/* 3D tilt on mouse move - driven by JS */
.modern-product-card.tilt-active {
  transform: perspective(1000px) rotateY(var(--rotate-y, 0deg))
    rotateX(var(--rotate-x, 0deg)) translateZ(20px) translateY(-8px);
  box-shadow:
    0 30px 60px rgba(15, 23, 42, 0.18),
    0 0 0 1px rgba(212, 175, 55, 0.2);
  border-color: rgba(212, 175, 55, 0.5);
}

.modern-product-image {
  transform-style: preserve-3d;
}

.modern-product-image img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  transform-style: preserve-3d;
}

.modern-product-card.tilt-active .modern-product-image img {
  transform: scale(1.08) translateZ(30px);
}

.modern-product-badge {
  transform: translateZ(40px);
}

.modern-wishlist-btn {
  transform: translateZ(40px);
}

.modern-product-body {
  transform-style: preserve-3d;
}

.modern-product-title {
  transform: translateZ(15px);
  transition: all 0.4s ease;
}

.modern-product-card.tilt-active .modern-product-title {
  color: #d4af37;
  transform: translateZ(25px);
}

.modern-price-current {
  transform: translateZ(20px);
  transition: all 0.4s ease;
}

.modern-product-card.tilt-active .modern-price-current {
  transform: translateZ(30px) scale(1.05);
}

.modern-btn-add,
.modern-btn-noon {
  transform-style: preserve-3d;
}

.modern-btn-add:hover {
  transform: translateZ(25px) translateY(-2px);
}

/* ============================================================
   FEATURED CARDS — 3D TILT
   ============================================================ */
.modern-featured-card {
  transform-style: preserve-3d;
  perspective: 1000px;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.modern-featured-card.tilt-active {
  transform: perspective(1000px) rotateY(var(--rotate-y, 0deg))
    rotateX(var(--rotate-x, 0deg)) translateZ(20px) translateY(-8px);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(212, 175, 55, 0.25);
  border-color: rgba(212, 175, 55, 0.5);
}

.modern-featured-image {
  transform-style: preserve-3d;
}

.modern-featured-image img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.modern-featured-card.tilt-active .modern-featured-image img {
  transform: scale(1.08) translateZ(30px);
}

.modern-featured-badge,
.modern-featured-wishlist {
  transform: translateZ(40px);
}

.modern-featured-title {
  transform: translateZ(15px);
  transition: all 0.4s ease;
}

.modern-featured-card.tilt-active .modern-featured-title {
  color: #d4af37;
}

.modern-featured-price-new {
  transform: translateZ(20px);
}

.modern-featured-card.tilt-active .modern-featured-price-new {
  transform: translateZ(30px) scale(1.05);
}

/* ============================================================
   FEATURES BAR 3D
   ============================================================ */
.feature-item {
  transform-style: preserve-3d;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 10px;
  border-radius: 12px;
}

.feature-item:hover {
  transform: translateY(-6px) translateZ(25px);
  background: rgba(212, 175, 55, 0.05);
}

.feature-icon-box {
  transform-style: preserve-3d;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-item:hover .feature-icon-box {
  transform: rotateY(360deg) translateZ(30px) scale(1.15);
  background: linear-gradient(135deg, #d4af37, #f4d03f);
  color: #0f172a;
}

/* ============================================================
   HOW IT WORKS 3D
   ============================================================ */
.how-step-card {
  transform-style: preserve-3d;
  perspective: 1000px;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.how-step-card:hover {
  transform: translateY(-12px) rotateX(-5deg) translateZ(40px);
  box-shadow:
    0 30px 60px rgba(15, 23, 42, 0.15),
    0 0 0 1px rgba(212, 175, 55, 0.3);
}

.how-step-icon {
  transform-style: preserve-3d;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.how-step-card:hover .how-step-icon {
  transform: rotateY(360deg) rotateX(-10deg) translateZ(40px) scale(1.12);
  background: linear-gradient(135deg, #d4af37, #f4d03f);
  color: #0f172a;
  box-shadow: 0 15px 35px rgba(212, 175, 55, 0.5);
}

.how-step-number {
  transform: translateZ(25px);
  transition: all 0.5s ease;
}

.how-step-card:hover .how-step-number {
  transform: translateZ(45px) scale(1.25) rotateZ(-8deg);
  color: rgba(212, 175, 55, 0.8);
}

.how-step-title {
  transform: translateZ(20px);
  transition: all 0.4s ease;
}

.how-step-tag {
  transform: translateZ(15px);
}

/* ============================================================
   TESTIMONIAL CARDS 3D
   ============================================================ */
.testimonial-card {
  transform-style: preserve-3d;
  perspective: 1000px;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.testimonial-card:hover {
  transform: translateY(-10px) rotateY(3deg) rotateX(-3deg) translateZ(30px);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.3),
    0 0 30px rgba(212, 175, 55, 0.15);
}

.testimonial-avatar {
  transform-style: preserve-3d;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.testimonial-card:hover .testimonial-avatar {
  transform: translateZ(35px) scale(1.15);
  box-shadow: 0 15px 30px rgba(212, 175, 55, 0.4);
}

.testimonial-quote-mark {
  transform: translateZ(25px);
  transition: all 0.5s ease;
}

.testimonial-card:hover .testimonial-quote-mark {
  transform: translateZ(45px) scale(1.2) rotate(-8deg);
}

/* ============================================================
   BRAND STORY CARDS 3D
   ============================================================ */
.story-icon-card {
  transform-style: preserve-3d;
  perspective: 800px;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.story-icon-card:hover {
  transform: translateY(-10px) rotateY(5deg) rotateX(-5deg) translateZ(30px);
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.12);
}

.story-icon-circle {
  transform-style: preserve-3d;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.story-icon-card:hover .story-icon-circle {
  transform: rotateY(360deg) translateZ(40px) scale(1.15);
  background: linear-gradient(135deg, #d4af37, #f4d03f);
  color: #0f172a;
  box-shadow: 0 15px 35px rgba(212, 175, 55, 0.5);
}

/* ============================================================
   FAQ 3D
   ============================================================ */
.faq-item {
  transform-style: preserve-3d;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item:hover {
  transform: translateX(5px) translateZ(15px);
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.1);
}

.faq-item.active {
  transform: translateZ(20px);
  box-shadow:
    0 20px 45px rgba(212, 175, 55, 0.2),
    0 0 0 1px rgba(212, 175, 55, 0.3);
}

.faq-q-icon {
  transform-style: preserve-3d;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.active .faq-q-icon {
  transform: rotateY(360deg) rotateZ(-8deg) translateZ(20px);
}

/* ============================================================
   SUPPORT HUB CARD 3D
   ============================================================ */
.support-hub-card {
  transform-style: preserve-3d;
  perspective: 1200px;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.support-hub-card:hover {
  transform: perspective(1200px) rotateY(-2deg) rotateX(2deg) translateZ(20px);
  box-shadow:
    0 40px 80px rgba(15, 23, 42, 0.4),
    0 0 50px rgba(212, 175, 55, 0.2);
}

.support-hub-icon {
  transform-style: preserve-3d;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.support-hub-card:hover .support-hub-icon {
  transform: rotateY(360deg) translateZ(40px) scale(1.1);
}

.support-channel {
  transform-style: preserve-3d;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.support-channel:hover {
  transform: translateX(8px) translateZ(25px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.support-channel-icon {
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.support-channel:hover .support-channel-icon {
  transform: scale(1.15) rotateY(360deg) translateZ(20px);
}

/* ============================================================
   FEED TILES 3D
   ============================================================ */
.feed-tile {
  transform-style: preserve-3d;
  perspective: 1000px;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.feed-tile:hover {
  transform: translateY(-8px) rotateY(5deg) translateZ(30px);
  box-shadow:
    0 25px 50px rgba(15, 23, 42, 0.2),
    0 0 0 2px rgba(212, 175, 55, 0.4);
}

.feed-tile img {
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.feed-tile:hover img {
  transform: scale(1.15) translateZ(30px);
}

/* ============================================================
   PROMO BANNERS 3D
   ============================================================ */
.promo-banner-flash,
.promo-banner-summer {
  transform-style: preserve-3d;
  perspective: 1200px;
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.promo-banner-flash::after,
.promo-banner-summer::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 40%,
    rgba(212, 175, 55, 0.15) 50%,
    transparent 60%
  );
  transform: translateX(-100%);
  transition: transform 0.8s ease;
  pointer-events: none;
}

.promo-banner-flash:hover::after,
.promo-banner-summer:hover::after {
  transform: translateX(100%);
}

.promo-banner-flash:hover {
  transform: rotateY(-3deg) rotateX(2deg) translateZ(30px);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4);
}

.promo-banner-summer:hover {
  transform: rotateY(3deg) rotateX(2deg) translateZ(30px);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4);
}

.timer-unit {
  transform-style: preserve-3d;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.timer-unit:hover {
  transform: translateY(-5px) translateZ(25px) scale(1.08);
  box-shadow: 0 15px 30px rgba(212, 175, 55, 0.3);
}

/* ============================================================
   TRUST BAR 3D
   ============================================================ */
.trust-bar-section .p-2 {
  transform-style: preserve-3d;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 12px;
}

.trust-bar-section .p-2:hover {
  transform: translateY(-8px) translateZ(25px);
  background: rgba(212, 175, 55, 0.05);
}

.trust-bar-section .p-2 i {
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-block;
}

.trust-bar-section .p-2:hover i {
  transform: rotateY(360deg) scale(1.2);
}

/* ============================================================
   ANNOUNCEMENT BAR 3D SHINE
   ============================================================ */
.announcement-bar {
  position: relative;
  overflow: hidden;
}

.announcement-bar::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(212, 175, 55, 0.15) 50%,
    transparent 100%
  );
  animation: announceShine 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes announceShine {
  0% {
    left: -100%;
  }
  50%,
  100% {
    left: 100%;
  }
}

/* ============================================================
   NAVBAR 3D
   ============================================================ */
.navbar-main {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar-main.navbar-scrolled {
  box-shadow:
    0 10px 30px rgba(15, 23, 42, 0.15),
    0 2px 8px rgba(212, 175, 55, 0.1);
  backdrop-filter: blur(20px);
}

.action-icon-btn {
  transform-style: preserve-3d;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.action-icon-btn:hover {
  transform: translateY(-3px) translateZ(20px);
  box-shadow: 0 12px 25px rgba(212, 175, 55, 0.3);
}

.action-icon-btn i {
  transition: all 0.4s ease;
}

.action-icon-btn:hover i {
  transform: rotateY(360deg);
}

/* ============================================================
   PARTICLES CANVAS — 3D DEPTH
   ============================================================ */
#particles-canvas {
  filter: drop-shadow(0 0 3px rgba(212, 175, 55, 0.3));
}

/* ============================================================
   SCROLL REVEAL 3D ANIMATIONS
   ============================================================ */
.reveal-3d {
  opacity: 0;
  transform: perspective(1000px) rotateX(-15deg) translateY(60px)
    translateZ(-100px);
  transition:
    opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-3d.revealed {
  opacity: 1;
  transform: perspective(1000px) rotateX(0deg) translateY(0) translateZ(0);
}

/* ============================================================
   FLOATING ORBS — BACKGROUND 3D
   ============================================================ */
.floating-orb {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
  filter: blur(40px);
  will-change: transform;
}

.floating-orb.orb-1 {
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(212, 175, 55, 0.15),
    transparent 70%
  );
  top: 15%;
  left: 5%;
  animation: orbFloat1 20s ease-in-out infinite;
}

.floating-orb.orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(100, 116, 139, 0.12),
    transparent 70%
  );
  top: 50%;
  right: 5%;
  animation: orbFloat2 25s ease-in-out infinite;
}

.floating-orb.orb-3 {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.1), transparent 70%);
  bottom: 20%;
  left: 30%;
  animation: orbFloat3 22s ease-in-out infinite;
}

@keyframes orbFloat1 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(60px, -40px) scale(1.1);
  }
  66% {
    transform: translate(-30px, 30px) scale(0.9);
  }
}

@keyframes orbFloat2 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-80px, 50px) scale(1.15);
  }
}

@keyframes orbFloat3 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(50px, -60px) scale(1.2);
  }
}

/* ============================================================
   CURSOR GLOW EFFECT
   ============================================================ */
.cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(212, 175, 55, 0.12),
    transparent 70%
  );
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
  opacity: 0;
  filter: blur(40px);
  will-change: transform;
}

body:hover .cursor-glow {
  opacity: 1;
}

@media (max-width: 991px) {
  .cursor-glow {
    display: none;
  }
  .floating-orb {
    display: none;
  }
}

/* ============================================================
   MOBILE — DISABLE HEAVY 3D
   ============================================================ */
@media (max-width: 767px) {
  .modern-product-card,
  .modern-featured-card,
  .category-card,
  .testimonial-card,
  .how-step-card,
  .story-icon-card,
  .support-hub-card,
  .feed-tile,
  .promo-banner-flash,
  .promo-banner-summer,
  .feature-item,
  .live-stat-box {
    transform: none !important;
    perspective: none;
  }

  .modern-product-card:hover,
  .modern-featured-card:hover {
    transform: translateY(-4px) !important;
  }

  .live-stat-box:hover .live-stat-icon,
  .feature-item:hover .feature-icon-box,
  .story-icon-card:hover .story-icon-circle,
  .how-step-card:hover .how-step-icon,
  .testimonial-card:hover .testimonial-avatar,
  .support-hub-card:hover .support-hub-icon,
  .category-card:hover img,
  .feed-tile:hover img {
    transform: scale(1.08) !important;
  }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transform: none !important;
  }
}

/* ============================================================
   GPU ACCELERATION
   ============================================================ */
.modern-product-card,
.modern-featured-card,
.category-card,
.testimonial-card,
.how-step-card,
.story-icon-card,
.support-hub-card,
.feed-tile,
.promo-banner-flash,
.promo-banner-summer,
.luxury-banner-wrapper {
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-perspective: 1000px;
  perspective: 1000px;
}
