/* ==========================================================================
   JEWELIX.DESIGN - DYNAMIC LUXURY VISUAL EFFECTS & MICRO-ANIMATIONS
   Transforms the landing page with interactive 3D physics, ambient glows,
   shimmering jewelry accents, and smooth scroll animations.
   ========================================================================== */

/* 1. Global Performance & Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* 2. Interactive Ambient Cursor Spotlight Follower */
.ambient-cursor-glow {
  position: fixed;
  width: 550px;
  height: 550px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(circle, rgba(110, 114, 242, 0.07) 0%, rgba(212, 175, 55, 0.04) 40%, transparent 70%);
  filter: blur(50px);
  transform: translate(-50%, -50%);
  transition: transform 0.15s cubic-bezier(0.2, 0, 0.2, 1), opacity 0.3s ease;
  opacity: 0;
}
body:hover .ambient-cursor-glow {
  opacity: 1;
}

/* 3. Floating Aurora Ambient Orbs in Hero */
.hero-split-section {
  position: relative;
  overflow: hidden;
}

.hero-aurora-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(70px);
  z-index: 0;
}

.hero-orb-1 {
  top: -100px;
  left: 20%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(110, 114, 242, 0.18) 0%, rgba(168, 85, 247, 0.1) 50%, transparent 70%);
  animation: floatOrb1 14s ease-in-out infinite alternate;
}

.hero-orb-2 {
  bottom: -50px;
  right: 15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.14) 0%, rgba(245, 158, 11, 0.08) 50%, transparent 70%);
  animation: floatOrb2 16s ease-in-out infinite alternate;
}

@keyframes floatOrb1 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 40px) scale(1.1); }
  100% { transform: translate(-30px, 80px) scale(0.95); }
}

@keyframes floatOrb2 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-50px, -40px) scale(1.12); }
  100% { transform: translate(40px, -60px) scale(0.92); }
}

/* 4. Hero Ring 3D Levitation & Ambient Pedestal */
.hero-showcase-container {
  position: relative;
  z-index: 2;
  perspective: 1200px;
}

.hero-showcase-img {
  animation: ringFloat 6.5s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate !important;
  filter: drop-shadow(0 25px 45px rgba(15, 23, 42, 0.24)) drop-shadow(0 0 35px rgba(110, 114, 242, 0.16)) !important;
  transition: transform 0.4s ease, filter 0.4s ease !important;
  will-change: transform;
}

.hero-showcase-container:hover .hero-showcase-img {
  filter: drop-shadow(0 30px 60px rgba(15, 23, 42, 0.32)) drop-shadow(0 0 50px rgba(110, 114, 242, 0.28)) !important;
}

@keyframes ringFloat {
  0% {
    transform: translateY(0px) rotate(0deg) scale(1);
  }
  50% {
    transform: translateY(-16px) rotate(1deg) scale(1.015);
  }
  100% {
    transform: translateY(-4px) rotate(-0.5deg) scale(1);
  }
}

/* Soft Ring Pedestal Shadow */
.hero-ring-pedestal {
  position: absolute;
  bottom: 2%;
  left: 50%;
  transform: translateX(-50%);
  width: 58%;
  height: 32px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(30, 41, 59, 0.28) 0%, rgba(30, 41, 59, 0.1) 45%, transparent 70%);
  filter: blur(10px);
  animation: pedestalBreathe 6.5s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate;
  pointer-events: none;
  z-index: 1;
}

@keyframes pedestalBreathe {
  0% {
    transform: translateX(-50%) scale(1);
    opacity: 0.35;
  }
  50% {
    transform: translateX(-50%) scale(0.82);
    opacity: 0.18;
  }
  100% {
    transform: translateX(-50%) scale(0.96);
    opacity: 0.32;
  }
}

/* 5. Floating Luxury Glass Badges around the Hero Ring */
.hero-floating-pill {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 12px 32px -4px rgba(15, 23, 42, 0.12), 0 0 20px rgba(110, 114, 242, 0.08);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  color: #1e293b;
  letter-spacing: 0.02em;
  z-index: 10;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  white-space: nowrap;
}

.hero-floating-pill:hover {
  transform: translateY(-4px) scale(1.05) !important;
  box-shadow: 0 18px 40px -4px rgba(110, 114, 242, 0.22), 0 0 25px rgba(212, 175, 55, 0.2) !important;
  border-color: rgba(110, 114, 242, 0.4) !important;
}

.pill-sparkle { color: #f59e0b; font-size: 14px; text-shadow: 0 0 10px rgba(245, 158, 11, 0.6); }
.pill-gem { color: #3b82f6; font-size: 14px; }
.pill-bolt { color: #8b5cf6; font-size: 14px; }
.pill-check { color: #10b981; font-weight: 900; }

.pill-pos-1 {
  top: 10%;
  left: -15px;
  animation: floatPill1 5.8s ease-in-out infinite alternate;
}

.pill-pos-2 {
  top: 18%;
  right: -10px;
  animation: floatPill2 6.4s ease-in-out infinite alternate 0.5s;
}

.pill-pos-3 {
  bottom: 12%;
  left: 20px;
  animation: floatPill3 6.1s ease-in-out infinite alternate 1s;
}

.pill-pos-4 {
  bottom: 8%;
  right: 15px;
  animation: floatPill4 5.5s ease-in-out infinite alternate 1.5s;
}

@keyframes floatPill1 {
  0% { transform: translateY(0px) rotate(0deg); }
  100% { transform: translateY(-10px) rotate(-1.5deg); }
}

@keyframes floatPill2 {
  0% { transform: translateY(0px) rotate(0deg); }
  100% { transform: translateY(-12px) rotate(1.5deg); }
}

@keyframes floatPill3 {
  0% { transform: translateY(0px) rotate(0deg); }
  100% { transform: translateY(-8px) rotate(1deg); }
}

@keyframes floatPill4 {
  0% { transform: translateY(0px) rotate(0deg); }
  100% { transform: translateY(-11px) rotate(-1deg); }
}

@media (max-width: 768px) {
  .hero-floating-pill {
    padding: 6px 12px;
    font-size: 11px;
  }
  .pill-pos-1 { top: 4%; left: 5px; }
  .pill-pos-2 { top: 8%; right: 5px; }
  .pill-pos-3 { bottom: 6%; left: 5px; }
  .pill-pos-4 { bottom: 2%; right: 5px; }
}

/* 6. Dynamic Shimmer on Headings & Gradient Texts */
.text-gradient {
  background: linear-gradient(135deg, #6E72F2 0%, #a855f7 40%, #eab308 100%) !important;
  background-size: 200% auto !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  animation: textShimmer 6s linear infinite !important;
}

@keyframes textShimmer {
  0% { background-position: 0% center; }
  50% { background-position: 100% center; }
  100% { background-position: 0% center; }
}

/* 7. Radiant Button Effects with Shimmer Sweep */
.hero-btn-primary,
.cta-btn-primary {
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px -2px rgba(110, 114, 242, 0.45), 0 0 35px rgba(110, 114, 242, 0.2) !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.hero-btn-primary::after,
.cta-btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 80%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.32), transparent);
  transform: skewX(-25deg);
  animation: btnSweep 4.5s ease-in-out infinite;
}

@keyframes btnSweep {
  0%, 70% { left: -120%; }
  100% { left: 220%; }
}

.hero-btn-primary:hover,
.cta-btn-primary:hover {
  transform: translateY(-3px) scale(1.02) !important;
  box-shadow: 0 14px 34px -2px rgba(110, 114, 242, 0.6), 0 0 45px rgba(212, 175, 55, 0.3) !important;
}

/* Play Icon Pulsing Ring on Take a Tour Button */
.hero-play-icon {
  position: relative;
}
.hero-play-icon::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(110, 114, 242, 0.4);
  animation: playPulse 2s ease-out infinite;
}

@keyframes playPulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* 8. Interactive 3D Card Hover Effects with Specular Sheen */
.showcase-card,
.feature-luxury-card,
.cta-banner-card {
  position: relative;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease !important;
  will-change: transform;
}

.showcase-card:hover {
  transform: translateY(-8px) scale(1.01) !important;
  box-shadow: 0 24px 50px -10px rgba(110, 114, 242, 0.2), 0 0 30px rgba(212, 175, 55, 0.08) !important;
  border-color: rgba(110, 114, 242, 0.5) !important;
}

.feature-luxury-card:hover {
  transform: translateY(-6px) scale(1.01) !important;
  box-shadow: 0 20px 45px -8px rgba(110, 114, 242, 0.18), 0 0 25px rgba(212, 175, 55, 0.08) !important;
  border-color: rgba(110, 114, 242, 0.45) !important;
}

/* Specular mouse-follow shine on cards */
.showcase-card::before,
.feature-luxury-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(110, 114, 242, 0.09), transparent 60%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.showcase-card:hover::before,
.feature-luxury-card:hover::before {
  opacity: 1;
}

/* 9. Scroll-Driven Reveal Animations - Safe Fallback */
.reveal-on-scroll {
  opacity: 1 !important;
  transform: translateY(0) !important;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 10. Sticky Frosted Glass Navbar on Scroll */
header#main-header.is-scrolled {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 68px !important;
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid rgba(229, 231, 235, 0.9) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06) !important;
  z-index: 9999 !important;
}
  border-bottom: 1px solid rgba(110, 114, 242, 0.12) !important;
  box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.08) !important;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
  z-index: 9999 !important;
}

/* 11. Subtle Diamond Sparkle Star Animation */
.diamond-sparkle {
  position: absolute;
  color: #f59e0b;
  pointer-events: none;
  animation: sparkleTwinkle 3s ease-in-out infinite alternate;
  font-size: 18px;
  filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.8));
  z-index: 3;
}

@keyframes sparkleTwinkle {
  0% { transform: scale(0.6) rotate(0deg); opacity: 0.2; }
  50% { transform: scale(1.2) rotate(45deg); opacity: 1; }
  100% { transform: scale(0.7) rotate(90deg); opacity: 0.3; }
}

/* 12. CTA Banner Laptop Hover Float */
.cta-laptop-img {
  animation: laptopFloat 7s ease-in-out infinite alternate !important;
}

@keyframes laptopFloat {
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-8px) scale(1.01); }
  100% { transform: translateY(0) scale(1); }
}

/* ==========================================================================
   UNIFIED JEWELIX3D.DESIGN BRAND LOGO STYLES (MATCHING MINI EDITOR)
   ========================================================================== */
.logo-link, a.logo-link.brand-logo {
  display: inline-flex !important;
  align-items: center !important;
  text-decoration: none !important;
  font-size: 20px !important;
  font-weight: 800 !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Plus Jakarta Sans", sans-serif !important;
  letter-spacing: -0.5px !important;
  color: #1e1b4b !important;
  transition: opacity 0.15s ease !important;
}

.logo-link:hover {
  opacity: 0.9 !important;
}

.logo-gradient {
  background: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

/* ==========================================================================
   AUTHENTIC 3D MODEL LOADING SCREEN LOGO (MATCHING IMAGE 1)
   ========================================================================== */
.loadingScreen, .loading-screen, #loading-screen, .webgi-loading-screen {
  background: #0f172a !important;
}

img.loadingScreenLogoImage, .loading-screen-logo img, .loading-logo img {
  content: url('/icons/idesign.svg') !important;
  max-width: 260px !important;
  height: auto !important;
}
