/* ==========================================================================
   LUV' SCENT FRAGRANCES — LUXURY SCROLL ANIMATIONS & INTERACTIVE SYSTEM
   - Top section native page-load animation (guaranteed on every load/reload)
   - In-viewport scroll reveals (triggers only when element reaches reading zone)
   - Slower cinematic motion (1.5s - 1.9s with soft focus dissolve)
   - Play-once stability, 3D glint & tactile ripples
   ========================================================================== */

/* 1. Global Scroll Progress Indicator */
#scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #965012 0%, #dfba73 50%, #f7eedd 100%);
  z-index: 10001;
  pointer-events: none;
  box-shadow: 0 0 16px rgba(223, 186, 115, 0.75);
  transition: width 0.12s linear;
}

/* 2. Floating Back to Top Button */
#back-to-top {
  position: fixed;
  bottom: 28px;
  right: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(10, 8, 6, 0.88);
  border: 1.5px solid rgba(223, 186, 115, 0.45);
  color: #dfba73;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8), 0 0 16px rgba(223, 186, 115, 0.2);
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.85);
  transition: opacity 0.45s ease,
              transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.45s,
              background-color 0.3s,
              border-color 0.3s,
              color 0.3s,
              box-shadow 0.3s;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

#back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

#back-to-top:hover {
  background: rgba(223, 186, 115, 0.22);
  border-color: #dfba73;
  color: #ffffff;
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.9), 0 0 24px rgba(223, 186, 115, 0.55);
}

#back-to-top svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

#back-to-top:hover svg {
  transform: translateY(-2px);
}

/* 3. Active Nav Link Indicator */
.nav-link {
  position: relative;
  transition: color 0.35s ease, text-shadow 0.35s ease;
}

.nav-link.active-nav {
  color: #dfba73 !important;
  text-shadow: 0 0 14px rgba(223, 186, 115, 0.65);
}

.nav-link.active-nav::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, #dfba73, transparent);
  box-shadow: 0 0 8px #dfba73;
}

/* ==========================================================================
   4. TOP SECTIONS PAGE-LOAD ENTRANCE (Natively executes on every load & reload)
   ========================================================================== */
@keyframes pageLoadFadeUp {
  0% {
    opacity: 0;
    transform: translateY(32px);
    filter: blur(6px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0px);
  }
}

@keyframes pageLoadScaleUp {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.92);
    filter: blur(8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0px);
  }
}

/* Guarantee bar at top of page (100% static position, zero layout shift, zero vertical transform) */
.site-guarantee-bar {
  transform: none !important;
}

.site-guarantee-bar .guar-inner {
  animation: pureFadeIn 1.2s ease 0.1s both;
  transform: none !important;
}

@keyframes pureFadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* Hero Section: Reveal all content inside hero-container-v2 together with current animation (calm, majestic slow speed) */
.hero-container-v2 {
  animation: pageLoadFadeUp 2.4s cubic-bezier(0.16, 1, 0.3, 1) 0.25s both;
}

/* ==========================================================================
   5. SLOW, CINEMATIC SCROLL REVEAL STYLES (Content-Specific)
   Triggers when user actually reaches the element in viewport
   ========================================================================== */

/* Base Generic Reveal */
.scroll-reveal {
  opacity: 0;
  transform: translateY(32px);
  filter: blur(6px);
  transition: opacity 1.55s cubic-bezier(0.19, 1, 0.22, 1),
              transform 1.55s cubic-bezier(0.19, 1, 0.22, 1),
              filter 1.55s cubic-bezier(0.19, 1, 0.22, 1);
  will-change: opacity, transform, filter;
}

/* A. Headings & Main Titles (Majestic slow vertical drift + soft blur clear) */
.scroll-reveal.reveal-heading {
  opacity: 0;
  transform: translateY(38px);
  filter: blur(6px);
  transition: opacity 1.65s cubic-bezier(0.19, 1, 0.22, 1),
              transform 1.65s cubic-bezier(0.19, 1, 0.22, 1),
              filter 1.65s cubic-bezier(0.19, 1, 0.22, 1);
}

/* B. Descriptions & Paragraphs (Silky text glide) */
.scroll-reveal.reveal-text {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(5px);
  transition: opacity 1.55s cubic-bezier(0.19, 1, 0.22, 1) 0.1s,
              transform 1.55s cubic-bezier(0.19, 1, 0.22, 1) 0.1s,
              filter 1.55s cubic-bezier(0.19, 1, 0.22, 1) 0.1s;
}

/* C. Badges, Eyebrows & Accents (Delicate expand & rise) */
.scroll-reveal.reveal-badge {
  opacity: 0;
  transform: translateY(20px) scale(0.93);
  filter: blur(4px);
  transition: opacity 1.4s cubic-bezier(0.19, 1, 0.22, 1),
              transform 1.4s cubic-bezier(0.19, 1, 0.22, 1),
              filter 1.4s cubic-bezier(0.19, 1, 0.22, 1);
}

/* D. Cards & Grid Items (Soft depth elevation) */
.scroll-reveal.reveal-card {
  opacity: 0;
  transform: translateY(36px) scale(0.97);
  filter: blur(5px);
  transition: opacity 1.6s cubic-bezier(0.19, 1, 0.22, 1),
              transform 1.6s cubic-bezier(0.19, 1, 0.22, 1),
              filter 1.6s cubic-bezier(0.19, 1, 0.22, 1);
}

/* Micro-stagger for even-numbered paired cards in 2-column grids */
.tp-card:nth-child(even),
.fw-card:nth-child(even) {
  transition-delay: 0.12s;
}

/* E. Flacons, Showcase Banners & Visual Media (Rich luxury bloom) */
.scroll-reveal.reveal-media {
  opacity: 0;
  transform: translateY(32px) scale(0.93);
  filter: blur(8px);
  transition: opacity 1.85s cubic-bezier(0.19, 1, 0.22, 1) 0.15s,
              transform 1.85s cubic-bezier(0.19, 1, 0.22, 1) 0.15s,
              filter 1.85s cubic-bezier(0.19, 1, 0.22, 1) 0.15s;
}

/* F. CTA Buttons & Button Groups (Spring-like rise) */
.scroll-reveal.reveal-cta {
  opacity: 0;
  transform: translateY(24px) scale(0.95);
  filter: blur(4px);
  transition: opacity 1.5s cubic-bezier(0.19, 1, 0.22, 1) 0.12s,
              transform 1.5s cubic-bezier(0.19, 1, 0.22, 1) 0.12s,
              filter 1.5s cubic-bezier(0.19, 1, 0.22, 1) 0.12s;
}

/* G. Directional Reveals: Left & Right */
.scroll-reveal.reveal-left {
  opacity: 0;
  transform: translateX(-48px);
  filter: blur(6px);
  transition: opacity 1.65s cubic-bezier(0.19, 1, 0.22, 1),
              transform 1.65s cubic-bezier(0.19, 1, 0.22, 1),
              filter 1.65s cubic-bezier(0.19, 1, 0.22, 1);
}

.scroll-reveal.reveal-right {
  opacity: 0;
  transform: translateX(48px);
  filter: blur(6px);
  transition: opacity 1.65s cubic-bezier(0.19, 1, 0.22, 1),
              transform 1.65s cubic-bezier(0.19, 1, 0.22, 1),
              filter 1.65s cubic-bezier(0.19, 1, 0.22, 1);
}

/* H. Pure Fade */
.scroll-reveal.reveal-fade {
  opacity: 0;
  transform: none;
  filter: blur(6px);
  transition: opacity 1.6s cubic-bezier(0.19, 1, 0.22, 1),
              filter 1.6s cubic-bezier(0.19, 1, 0.22, 1);
}

/* ACTIVE STATE: Applied when element reaches the viewport trigger line */
.scroll-reveal.is-revealed {
  opacity: 1 !important;
  transform: translate(0, 0) scale(1) !important;
  filter: blur(0px) !important;
}

/* ==========================================================================
   6. COMPACT HORIZONTAL STRIP STAGGER (For Single-Row Feature Bars)
   ========================================================================== */
.scroll-stagger > * {
  opacity: 0;
  transform: translateY(24px) scale(0.97);
  filter: blur(4px);
  transition: opacity 1.4s cubic-bezier(0.19, 1, 0.22, 1),
              transform 1.4s cubic-bezier(0.19, 1, 0.22, 1),
              filter 1.4s cubic-bezier(0.19, 1, 0.22, 1);
  will-change: opacity, transform, filter;
}

.scroll-stagger.is-revealed > * {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0px);
}

.scroll-stagger.is-revealed > *:nth-child(1) { transition-delay: 0.08s; }
.scroll-stagger.is-revealed > *:nth-child(2) { transition-delay: 0.22s; }
.scroll-stagger.is-revealed > *:nth-child(3) { transition-delay: 0.36s; }
.scroll-stagger.is-revealed > *:nth-child(4) { transition-delay: 0.50s; }
.scroll-stagger.is-revealed > *:nth-child(5) { transition-delay: 0.64s; }
.scroll-stagger.is-revealed > *:nth-child(6) { transition-delay: 0.78s; }
.scroll-stagger.is-revealed > *:nth-child(7) { transition-delay: 0.92s; }

/* Dedicated Luxury Styling for Art Trust Strip (Section 12) */
.art-trust-strip.scroll-stagger {
  opacity: 0;
  transform: translateY(24px);
  filter: blur(5px);
  transition: opacity 1.5s cubic-bezier(0.19, 1, 0.22, 1),
              transform 1.5s cubic-bezier(0.19, 1, 0.22, 1),
              filter 1.5s cubic-bezier(0.19, 1, 0.22, 1);
  will-change: opacity, transform, filter;
}

.art-trust-strip.scroll-stagger.is-revealed {
  opacity: 1 !important;
  transform: translateY(0) !important;
  filter: blur(0px) !important;
}

.art-trust-strip.scroll-stagger .art-trust-sep {
  opacity: 0;
  transform: none !important;
  filter: none !important;
  transition: opacity 1.2s cubic-bezier(0.19, 1, 0.22, 1) 0.25s;
}

.art-trust-strip.scroll-stagger.is-revealed .art-trust-sep {
  opacity: 1 !important;
}

.art-trust-strip.scroll-stagger .art-trust-item {
  opacity: 0;
  transform: translateY(18px) scale(0.96);
  filter: blur(4px);
  transition: opacity 1.35s cubic-bezier(0.19, 1, 0.22, 1),
              transform 1.35s cubic-bezier(0.19, 1, 0.22, 1),
              filter 1.35s cubic-bezier(0.19, 1, 0.22, 1);
  will-change: opacity, transform, filter;
}

.art-trust-strip.scroll-stagger.is-revealed .art-trust-item {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
  filter: blur(0px) !important;
}

.art-trust-strip.scroll-stagger.is-revealed .art-trust-item:nth-child(1) { transition-delay: 0.10s; }
.art-trust-strip.scroll-stagger.is-revealed .art-trust-item:nth-child(3) { transition-delay: 0.24s; }
.art-trust-strip.scroll-stagger.is-revealed .art-trust-item:nth-child(5) { transition-delay: 0.38s; }
.art-trust-strip.scroll-stagger.is-revealed .art-trust-item:nth-child(7) { transition-delay: 0.52s; }

/* ==========================================================================
   7. DESKTOP INTERACTIVE 3D TILT WITH SPECULAR GLINT
   ========================================================================== */
@media (hover: hover) and (pointer: fine) {
  .interactive-tilt {
    position: relative;
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.32s ease;
    transform-style: preserve-3d;
    perspective: 1000px;
    will-change: transform;
  }

  .interactive-tilt:hover {
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.85), 0 0 24px rgba(223, 186, 115, 0.25) !important;
  }

  .interactive-tilt .tilt-glint {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(223, 186, 115, 0.18) 0%, transparent 60%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 8;
  }

  .interactive-tilt:hover .tilt-glint {
    opacity: 1;
  }
}

/* ==========================================================================
   8. INTERACTIVE BUTTON RIPPLES & HOVER PHYSICS
   ========================================================================== */
.interactive-ripple {
  position: relative;
  overflow: hidden;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.28s ease,
              background-color 0.28s ease;
}

.interactive-ripple:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(223, 186, 115, 0.35);
}

.interactive-ripple:active {
  transform: translateY(0) scale(0.98);
}

.interactive-ripple .btn-wave {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.45) 0%, rgba(223, 186, 115, 0.25) 55%, transparent 75%);
  transform: scale(0);
  animation: rippleWave 0.65s ease-out forwards;
  pointer-events: none;
  z-index: 10;
}

@keyframes rippleWave {
  to {
    transform: scale(3.5);
    opacity: 0;
  }
}

/* ==========================================================================
   9. AMBIENT LUXURY AESTHETICS (Floating Flacons & Glowing Accents)
   ========================================================================== */
@keyframes floatSubtle {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}

.float-ambient {
  animation: floatSubtle 6s ease-in-out infinite;
}

@keyframes diamondGlow {
  0%, 100% {
    filter: drop-shadow(0 0 2px rgba(223, 186, 115, 0.3));
    transform: scale(1);
  }
  50% {
    filter: drop-shadow(0 0 9px rgba(223, 186, 115, 0.85));
    transform: scale(1.15);
  }
}

.glow-diamond {
  display: inline-block;
  animation: diamondGlow 3.5s ease-in-out infinite;
}

/* ==========================================================================
   10. ANIMATED NUMBER COUNTERS
   ========================================================================== */
.counter-value {
  display: inline-block;
  font-variant-numeric: tabular-nums;
  transition: color 0.4s ease;
}

.counter-value.counted {
  color: #dfba73;
}

/* ==========================================================================
   11. SHIMMERING GOLD GRADIENT TEXT
   ========================================================================== */
@keyframes goldShimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.shimmer-gold {
  background: linear-gradient(90deg, #dfba73 0%, #ffffff 35%, #dfba73 60%, #b88d3b 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: goldShimmer 5s linear infinite;
}

/* ==========================================================================
   12. ACCESSIBILITY: PREFERS REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .site-guarantee-bar,
  .hero-container-v2,
  .scroll-reveal,
  .scroll-stagger,
  .scroll-stagger > *,
  .art-trust-strip,
  .art-trust-item,
  .art-trust-sep,
  #back-to-top,
  .float-ambient,
  .glow-diamond,
  .interactive-tilt,
  .shimmer-gold {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
    animation: none !important;
    visibility: visible !important;
  }

  #scroll-progress-bar {
    display: none !important;
  }
}
