/* ==========================================================================
   HERBAL BLOOM - MODERN BOTANICAL STYLING & ANIMATION SYSTEM
   Brand Tokens: Obsidian Green (#0E2A22), Hunter Green (#3E5A47),
                 Fawn Gold (#DCAD5D), Deep Dark (#111111), Sand Cream (#FAF7F2)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=EB+Garamond:ital,wght@0,400..800;1,400..800&display=swap');

:root {
  --hb-obsidian: #0E2A22;
  --hb-hunter: #3E5A47;
  --hb-gold: #DCAD5D;
  --hb-gold-light: #F4E2BD;
  --hb-dark: #0D201A;
  --hb-cream: #EBF2F4;          /* Himalayan Glacial Sky Mist (Sampled from Mountain Sky) */
  --hb-glacial-alt: #E4ECEE;     /* Subtle section mist variation */
  --hb-porcelain: #FDFFFF;       /* Crisp Alpine Card Surface */
  --hb-granite: #3A4B47;         /* Mountain Granite Body Copy */
  --hb-granite-muted: #5B6E6A;   /* Secondary Granite Subtext */
  --hb-mineral: #C5D4D7;         /* Mineral Mist Line Divider */
  --hb-sand: #E4ECEE;
  --hb-sand-light: #F0F5F6;
  --hb-border: rgba(197, 212, 215, 0.7);
  --hb-glass-bg: rgba(235, 242, 244, 0.92);
  --hb-glass-border: rgba(220, 173, 93, 0.25);
  --font-serif: 'EB Garamond', Georgia, serif;
  --font-sans: 'DM Sans', system-ui, -apple-system, sans-serif;
}

/* ---------------- Smooth Scrolling & Base Typography ---------------- */
html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: #0E2A22;
  color: #FFFFFF;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  background-image: url('../images/himalayan_sky_canvas_light.jpg?v=light3');
  background-attachment: fixed;
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
  color: #FFFFFF;
  min-height: 100vh;
}

::selection {
  background-color: var(--hb-gold);
  color: #0E2A22;
}

h1, h2, h3, h4, .font-serif {
  font-family: var(--font-serif);
}

/* ---------------- Custom Keyframe Animations ---------------- */
@keyframes floatSlow {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(0.8deg);
  }
}

@keyframes floatReverse {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(8px) rotate(-0.8deg);
  }
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(220, 173, 93, 0.4);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(220, 173, 93, 0);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@keyframes rotateLeaves {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes counterBar {
  from {
    width: 0%;
  }
  to {
    width: var(--target-width, 100%);
  }
}

/* Animation utility classes */
.animate-float {
  animation: floatSlow 6s ease-in-out infinite;
}

.animate-float-reverse {
  animation: floatReverse 7s ease-in-out infinite;
}

.animate-pulse-glow {
  animation: pulseGlow 2.5s infinite;
}

.animate-spin-slow {
  animation: rotateLeaves 30s linear infinite;
}

/* ---------------- Scroll Reveal Engine ---------------- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  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.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  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-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  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-right.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  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-scale.active {
  opacity: 1;
  transform: scale(1);
}

/* Stagger delay helpers */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }
.delay-600 { transition-delay: 600ms; }

/* ---------------- Glassmorphic & Botanical UI Elements ---------------- */
.glass-nav {
  background: rgba(235, 242, 244, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(197, 212, 215, 0.7);
}

.glass-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(220, 173, 93, 0.22);
}

.glass-dark {
  background: rgba(14, 42, 34, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(220, 173, 93, 0.2);
}

/* ---------------- Botanical Card Hover Dynamics & 3D Tilt ---------------- */
.product-card {
  position: relative;
  transform-style: preserve-3d;
  perspective: 1000px;
  will-change: transform;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.4s ease;
}

.product-card:hover {
  box-shadow: 0 25px 45px -12px rgba(14, 42, 34, 0.18);
  border-color: rgba(220, 173, 93, 0.6);
}

.card-glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  opacity: 0;
  z-index: 10;
  transition: opacity 0.3s ease;
  mix-blend-mode: soft-light;
}

.btn-primary {
  background-color: var(--hb-obsidian);
  color: #FFFFFF;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(14, 42, 34, 0.18);
}

.btn-primary:hover {
  background-color: #173f34;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(14, 42, 34, 0.25);
}

.btn-gold {
  background-color: var(--hb-gold);
  color: #0E2A22;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(220, 173, 93, 0.35);
}

.btn-gold:hover {
  background-color: #e5b96d;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(220, 173, 93, 0.45);
}

.btn-outline {
  border: 1px solid var(--hb-obsidian);
  color: var(--hb-obsidian);
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background-color: var(--hb-obsidian);
  color: #FFFFFF;
}

/* ---------------- Custom Scrollbar ---------------- */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--hb-sand-light);
}
::-webkit-scrollbar-thumb {
  background: var(--hb-hunter);
  border-radius: 5px;
  border: 2px solid var(--hb-sand-light);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--hb-obsidian);
}

/* ---------------- Accordion Smooth Transitions ---------------- */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.4s ease,
              padding 0.4s ease;
  opacity: 0;
}

.accordion-item.active .accordion-content {
  max-height: 480px;
  opacity: 1;
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

/* ---------------- Luxury Interactive Follower Cursor ---------------- */
#custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
  will-change: transform;
}

#cursor-pill {
  width: 14px;
  height: 14px;
  border-radius: 9999px;
  background-color: var(--hb-gold);
  border: 1px solid rgba(220, 173, 93, 0.4);
  box-shadow: 0 0 12px rgba(220, 173, 93, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: width 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              height 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.25s ease,
              border-color 0.25s ease,
              box-shadow 0.25s ease;
}

#cursor-text {
  opacity: 0;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 3px;
  transition: opacity 0.2s ease;
}

/* Hovering over products */
#custom-cursor.hover-product #cursor-pill {
  width: 86px;
  height: 32px;
  background: rgba(14, 42, 34, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-color: rgba(220, 173, 93, 0.6);
  box-shadow: 0 8px 24px rgba(14, 42, 34, 0.35);
}

#custom-cursor.hover-product #cursor-text {
  opacity: 1;
  color: #F5E4C2;
}

/* Hovering over CTA / Buy Buttons */
#custom-cursor.hover-cta #cursor-pill {
  width: 80px;
  height: 32px;
  background: #DCAD5D;
  border-color: #F5E4C2;
  box-shadow: 0 8px 24px rgba(220, 173, 93, 0.5);
}

#custom-cursor.hover-cta #cursor-text {
  opacity: 1;
  color: #0E2A22;
}

/* Hovering over general links */
#custom-cursor.hover-link #cursor-pill {
  width: 28px;
  height: 28px;
  background: rgba(62, 90, 71, 0.4);
  backdrop-filter: blur(4px);
  border-color: var(--hb-gold);
}

/* ---------------- Apple-Style Magnification Dock ---------------- */
#botanical-dock-wrapper {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translate(-50%, 140%);
  opacity: 0;
  pointer-events: none;
  z-index: 45;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

#botanical-dock {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 8px 14px 10px 14px;
  background: rgba(14, 42, 34, 0.45);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(220, 173, 93, 0.35);
  border-radius: 9999px;
  box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.25),
              0 0 0 1px rgba(255, 255, 255, 0.12);
}

.dock-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #F5E4C2;
  text-decoration: none;
  transform-origin: bottom center;
  will-change: transform, width, height;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.dock-item:hover {
  background: rgba(62, 90, 71, 0.85);
  border-color: var(--hb-gold);
  color: #FFFFFF;
}

.dock-item.dock-cta {
  background: var(--hb-gold);
  color: #0E2A22;
  border-color: #FFFFFF;
  box-shadow: 0 0 14px rgba(220, 173, 93, 0.4);
}

.dock-item.dock-cta:hover {
  background: #f0c57c;
  color: #0E2A22;
}

.dock-label {
  position: absolute;
  top: -38px;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  white-space: nowrap;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(14, 42, 34, 0.95);
  border: 1px solid rgba(220, 173, 93, 0.4);
  color: #F5E4C2;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.dock-item:hover .dock-label {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------------- Unique Botanical & Topographic SVG Textures ---------------- */
.bg-topo-pattern {
  background-image: url('../images/himalayan_topography.svg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.bg-leaf-vein-pattern {
  background-image: url('../images/golden_leaf_vein.svg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

@keyframes topoDrift {
  0%, 100% {
    transform: scale(1) translate(0, 0);
  }
  50% {
    transform: scale(1.025) translate(-8px, -4px);
  }
}

.animate-topo-drift {
  animation: topoDrift 24s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes veinGlowPulse {
  0%, 100% {
    opacity: 0.24;
    filter: drop-shadow(0 0 2px rgba(220, 173, 93, 0.1));
  }
  50% {
    opacity: 0.38;
    filter: drop-shadow(0 0 14px rgba(220, 173, 93, 0.35));
  }
}

.animate-vein-pulse {
  animation: veinGlowPulse 8s ease-in-out infinite alternate;
  will-change: opacity, filter;
}

/* ---------------- Sticky Header Visibility Controller (Hidden on Initial Page) ---------------- */
#sticky-header-container {
  transform: translateY(-110%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
  will-change: transform, opacity;
}

#sticky-header-container.header-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* ==========================================================================
   BOTANICAL BENTO RECOMMENDATION GRID (HIGH-END ANIMATION PANEL)
   ========================================================================== */
.bento-dot-grid {
  background-image: radial-gradient(circle, rgba(220, 173, 93, 0.16) 1px, transparent 1px);
  background-size: 16px 16px;
}

.bento-tile-grid {
  background-size: 28px 28px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
}

@keyframes bentoRippleBreath {
  0%, 100% {
    transform: scale(0.993);
    opacity: var(--base-op, 0.4);
  }
  50% {
    transform: scale(1.018);
    opacity: calc(var(--base-op, 0.4) * 1.35);
  }
}

.bento-ripple-ring {
  animation: bentoRippleBreath 5.6s ease-in-out infinite;
  will-change: transform, opacity;
}

@keyframes cursorBobFloat {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-4px) rotate(1.2deg);
  }
}

.bento-cursor-bob {
  animation: cursorBobFloat 4.6s ease-in-out infinite;
}

.bento-cursor-track {
  transition: left 0.55s cubic-bezier(0.16, 1, 0.3, 1), top 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes bentoSweep {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(450%); }
}

.bento-light-sweep {
  animation: bentoSweep 13s ease-in-out infinite;
}

/* ---------------- Infinite Slider (Continuous Marquee) ---------------- */
@keyframes infiniteSliderReverse {
  0% {
    transform: translateX(calc(-50% - 12px));
  }
  100% {
    transform: translateX(0);
  }
}

@keyframes infiniteSliderForward {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-50% - 12px));
  }
}

.infinite-slider-track-reverse {
  display: flex;
  align-items: center;
  gap: 24px;
  width: max-content;
  animation: infiniteSliderReverse 34s linear infinite;
  will-change: transform;
}

.infinite-slider-track-reverse:hover {
  animation-play-state: paused;
}

.infinite-slider-track-forward {
  display: flex;
  align-items: center;
  gap: 24px;
  width: max-content;
  animation: infiniteSliderForward 34s linear infinite;
  will-change: transform;
}

.infinite-slider-track-forward:hover {
  animation-play-state: paused;
}

.infinite-slider-mask {
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

/* ---------------- 3D Perspective Carousel (Framer Cover-Flow) ---------------- */
.perspective-stage {
  perspective: 1200px;
  perspective-origin: 50% 50%;
  position: relative;
  width: 100%;
  height: 650px;
}

.perspective-card-wrapper {
  position: absolute;
  top: 0;
  left: 50%;
  width: 100%;
  max-width: 380px;
  will-change: transform, opacity, filter;
  transition: transform 0.85s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.65s ease,
              box-shadow 0.65s ease;
}

/* Center Active Card */
.perspective-card-center {
  transform: translate3d(-50%, 0, 0) scale(1) rotateY(0deg);
  opacity: 1;
  filter: blur(0px);
  z-index: 30;
  pointer-events: auto;
}

.perspective-card-center article {
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35), 0 0 28px rgba(220, 173, 93, 0.22);
  border-color: rgba(220, 173, 93, 0.6);
}

/* Left Flanking Card */
.perspective-card-left {
  transform: translate3d(calc(-50% - 310px), 0, 0) scale(0.86) rotateY(30deg);
  opacity: 0.78;
  filter: blur(0.3px);
  z-index: 20;
  cursor: pointer;
}

.perspective-card-left:hover {
  opacity: 0.96;
  filter: blur(0px);
  transform: translate3d(calc(-50% - 300px), 0, 0) scale(0.88) rotateY(25deg);
}

.perspective-card-left article {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
}

/* Right Flanking Card */
.perspective-card-right {
  transform: translate3d(calc(-50% + 310px), 0, 0) scale(0.86) rotateY(-30deg);
  opacity: 0.78;
  filter: blur(0.3px);
  z-index: 20;
  cursor: pointer;
}

.perspective-card-right:hover {
  opacity: 0.96;
  filter: blur(0px);
  transform: translate3d(calc(-50% + 300px), 0, 0) scale(0.88) rotateY(-25deg);
}

.perspective-card-right article {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
}

/* Inactive Card Click Shield (Full-card seamless tap target) */
.p-card-click-shield {
  position: absolute;
  inset: 0;
  z-index: 35;
  cursor: pointer;
  border-radius: 1.5rem;
  background: transparent;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.p-card-click-shield:hover {
  background: rgba(220, 173, 93, 0.04);
}

/* Responsive Scaling for Tablets */
@media (max-width: 900px) {
  .perspective-stage {
    height: 650px;
  }
  .perspective-card-wrapper {
    max-width: 340px;
  }
  .perspective-card-left {
    transform: translate3d(calc(-50% - 220px), 0, 0) scale(0.82) rotateY(26deg);
    opacity: 0.75;
  }
  .perspective-card-left:hover {
    transform: translate3d(calc(-50% - 215px), 0, 0) scale(0.84) rotateY(22deg);
  }
  .perspective-card-right {
    transform: translate3d(calc(-50% + 220px), 0, 0) scale(0.82) rotateY(-26deg);
    opacity: 0.75;
  }
  .perspective-card-right:hover {
    transform: translate3d(calc(-50% + 215px), 0, 0) scale(0.84) rotateY(-22deg);
  }
}

/* Responsive Scaling for Mobile Screens */
@media (max-width: 640px) {
  .perspective-stage {
    height: 670px;
  }
  .perspective-card-wrapper {
    max-width: 300px;
  }
  .perspective-card-left {
    transform: translate3d(calc(-50% - 130px), 0, 0) scale(0.78) rotateY(20deg);
    opacity: 0.65;
  }
  .perspective-card-left:hover {
    transform: translate3d(calc(-50% - 125px), 0, 0) scale(0.80) rotateY(16deg);
  }
  .perspective-card-right {
    transform: translate3d(calc(-50% + 130px), 0, 0) scale(0.78) rotateY(-20deg);
    opacity: 0.65;
  }
  .perspective-card-right:hover {
    transform: translate3d(calc(-50% + 125px), 0, 0) scale(0.80) rotateY(-16deg);
  }
}

/* ---------------- 3D Botanical Inward Curvy Screen Carousel (5-in-1 Section) ---------------- */
:root {
  --cylinder-radius: 430px;
  --cylinder-width: 480px;
  --cylinder-height: 220px;
  --stage-height: 380px;
  --screen-offset-z: 160px;
}

@media (max-width: 900px) {
  :root {
    --cylinder-radius: 350px;
    --cylinder-width: 380px;
    --cylinder-height: 190px;
    --stage-height: 320px;
    --screen-offset-z: 130px;
  }
}

@media (max-width: 640px) {
  :root {
    --cylinder-radius: 250px;
    --cylinder-width: 280px;
    --cylinder-height: 155px;
    --stage-height: 250px;
    --screen-offset-z: 90px;
  }
}

.cylinder-stage {
  perspective: 1100px;
  perspective-origin: 50% 50%;
  width: 100%;
  height: var(--stage-height);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
}

/* Centerpiece: Hero 5-in-1 Bottle & Box */
.cylinder-centerpiece {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translateZ(60px);
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: auto;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.cylinder-centerpiece:hover {
  transform: translate(-50%, -50%) translateZ(90px) scale(1.05);
}

.cylinder-centerpiece-img {
  max-height: 255px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 30px rgba(220, 173, 93, 0.4));
  transition: filter 0.35s ease;
}

.cylinder-centerpiece:hover .cylinder-centerpiece-img {
  filter: drop-shadow(0 25px 40px rgba(0, 0, 0, 0.95)) drop-shadow(0 0 45px rgba(220, 173, 93, 0.7));
}

.cylinder-centerpiece-glow {
  position: absolute;
  bottom: 0px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 55px;
  background: radial-gradient(ellipse at center, rgba(220, 173, 93, 0.55) 0%, rgba(14, 42, 34, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}

.cylinder-centerpiece-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 4px 12px;
  margin-top: 8px;
  border-radius: 9999px;
  background: rgba(14, 42, 34, 0.85);
  border: 1px solid rgba(220, 173, 93, 0.6);
  color: #F5E4C2;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

@media (max-width: 900px) {
  .cylinder-centerpiece-img {
    max-height: 210px;
  }
}

@media (max-width: 640px) {
  .cylinder-centerpiece-img {
    max-height: 165px;
  }
  .cylinder-centerpiece-badge {
    font-size: 10px;
    padding: 3px 10px;
  }
}

.cylinder-track {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--cylinder-width);
  height: var(--cylinder-height);
  margin-top: calc(var(--cylinder-height) * -0.5);
  margin-left: calc(var(--cylinder-width) * -0.5);
  transform-style: preserve-3d;
  will-change: transform;
}

.cylinder-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: rotateY(calc(-1 * var(--item-angle))) translateZ(calc(-1 * var(--cylinder-radius)));
  transform-style: preserve-3d;
  cursor: pointer;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.cylinder-card {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid rgba(220, 173, 93, 0.4);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55), 0 0 20px rgba(14, 42, 34, 0.4);
  background: #0E2A22;
  transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.cylinder-item:hover .cylinder-card {
  border-color: rgba(220, 173, 93, 0.95);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.75), 0 0 30px rgba(220, 173, 93, 0.4);
  transform: scale(1.025);
}

.cylinder-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
  filter: brightness(0.85);
}

.cylinder-item:hover .cylinder-bg-img {
  transform: scale(1.06);
  filter: brightness(0.96);
}

.cylinder-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14, 42, 34, 0.96) 0%, rgba(14, 42, 34, 0.65) 50%, rgba(14, 42, 34, 0.25) 100%);
  pointer-events: none;
}

.cylinder-content {
  position: relative;
  z-index: 10;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.15rem 1.35rem;
}

@media (max-width: 640px) {
  .cylinder-content {
    padding: 0.75rem 0.85rem;
  }
}

.cylinder-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 9999px;
  background: rgba(220, 173, 93, 0.25);
  border: 1px solid rgba(220, 173, 93, 0.5);
  color: #F5E4C2;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* ---------------- Synchronized Himalayan 3D Mountain Depth Canvas ---------------- */
.hero-mountain-layer {
  background-repeat: no-repeat;
  /* Mobile & Tall Portrait: Scale height by 118vh and anchor to bottom for natural mountain balance */
  background-size: auto 118vh;
  background-position: center bottom;
  will-change: transform;
}

@media (orientation: landscape) {
  .hero-mountain-layer {
    /* Desktop, Laptop & Widescreen: Full cinematic panoramic cover centered */
    background-size: cover;
    background-position: center center;
  }
}

/* ---------------- 3D Mountain Behind-Text Typography Positioning ---------------- */
/* 1. Base Mobile Portrait (Default) */
#hero-depth-letters {
  top: 51.5%;
}

@media (min-width: 640px) and (min-aspect-ratio: 1/1) {
  #hero-depth-letters {
    top: 42%;
  }
}

/* 2. Laptops & Widescreen Desktop Displays */
@media (min-width: 768px) and (min-aspect-ratio: 1/1) {
  #hero-depth-letters {
    top: 38.5%;
  }
}

@media (orientation: landscape) and (max-height: 500px) {
  #hero-depth-letters {
    top: 38%;
  }
}

/* 3. Universal Portrait & Mobile "Desktop View" Lock:
   Guarantees that on ANY portrait/tall display (phone normal, phone desktop-view, tablet portrait),
   the text remains locked at 51.5% directly behind the mountain ridge with zero disturbance to laptop! */
@media (max-aspect-ratio: 1/1) {
  #hero-depth-letters {
    top: 51.5% !important;
  }
}

/* ---------------- Mobile UX & Sticky-Safe Edge Canvas ---------------- */
html {
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-x: none;
  background-color: #0E2A22;
}

body {
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-x: none;
  background-color: #0E2A22;
  overflow-x: clip;
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
}

@media (pointer: coarse), (max-width: 1024px) {
  #custom-cursor,
  #botanical-dock-wrapper {
    display: none !important;
  }
}

#freeze-cards-container {
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 640px) {
  .cylinder-content {
    padding: 0.65rem 0.8rem;
  }
  .cylinder-card h3 {
    font-size: 0.95rem;
    line-height: 1.25;
  }
  .cylinder-card p {
    font-size: 10px;
    line-height: 1.35;
  }
}
