/* ==========================================================================
   WELLNUVIA x RENEW - CINEMATIC BRAND REVEAL EXPERIENCE
   Exclusive Standalone Showcase System
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Cinzel:wght@500;600;700&display=swap');

:root {
  --gold-primary: #C59D5F;
  --gold-light: #EBD3A7;
  --gold-bright: #FFF3D6;
  --gold-dark: #8C6528;
  --gold-gradient: linear-gradient(135deg, #FFF3D6 0%, #C59D5F 50%, #8C6528 100%);
  --gold-glow: rgba(197, 157, 95, 0.45);
  
  --emerald-deep: #021211;
  --emerald-mid: #062624;
  --emerald-accent: #0E4842;
  
  --sage-accent: #80A98F;
  --sage-bright: #A8D7B8;
  --sage-glow: rgba(128, 169, 143, 0.45);

  --ease-cinematic: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.25, 1, 0.5, 1);
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--emerald-deep);
  font-family: 'Plus Jakarta Sans', 'Cairo', system-ui, sans-serif;
  color: #FFF;
  user-select: none;
  -webkit-font-smoothing: antialiased;
}

/* --- CINEMATIC VIEWPORT & STAGE --- */
.cinema-viewport {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
  overflow: hidden;
}

/* Background Emerald Texture & Ken Burns Subtle Pan */
.bg-layer {
  position: absolute;
  inset: -5%;
  width: 110%;
  height: 110%;
  z-index: 1;
  background-image: url('../assets/renew-bg.png');
  background-size: cover;
  background-position: center;
  opacity: 0.42;
  filter: contrast(1.15) saturate(1.2);
  mix-blend-mode: screen;
  animation: bgPan 30s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes bgPan {
  0% { transform: scale(1) translate(0, 0); }
  50% { transform: scale(1.06) translate(-1%, -1%); }
  100% { transform: scale(1.03) translate(1%, 1%); }
}

/* Ambient Radial Vignette */
.vignette-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: radial-gradient(circle at 50% 50%, rgba(7, 43, 39, 0.2) 0%, rgba(2, 18, 17, 0.75) 60%, rgba(1, 10, 9, 0.96) 100%);
  pointer-events: none;
}

/* Canvas for Bio-Luminous & Gold Particles */
#particles-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}

/* Central Volumetric Golden Bloom */
.volumetric-bloom {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(197, 157, 95, 0.18) 0%, rgba(14, 72, 66, 0.22) 45%, transparent 70%);
  filter: blur(90px);
  border-radius: 50%;
  z-index: 4;
  animation: bloomPulse 7s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes bloomPulse {
  0% { transform: translate(-50%, -50%) scale(0.88); opacity: 0.6; }
  100% { transform: translate(-50%, -50%) scale(1.18); opacity: 1; }
}



/* --- THE MAIN REVEAL STAGE --- */
.reveal-stage {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 90%;
  max-width: 960px;
  padding: 50px 20px;
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out;
}

/* 1. WELLNUVIA BRAND WRAPPER */
.wellnuvia-box {
  position: relative;
  display: inline-block;
  opacity: 0;
  transform: translateY(32px) scale(0.92) translateZ(30px);
  filter: blur(14px);
  transition: opacity 1.8s var(--ease-cinematic), transform 1.8s var(--ease-cinematic), filter 1.8s var(--ease-cinematic);
}

.reveal-active .wellnuvia-box {
  opacity: 1;
  transform: translateY(0) scale(1) translateZ(30px);
  filter: blur(0);
  transition-delay: 0.6s;
}

.wellnuvia-logo-img {
  width: 100%;
  max-width: 620px;
  height: auto;
  display: block;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 35px rgba(197, 157, 95, 0.45));
  position: relative;
  z-index: 5;
}

/* Liquid Gold Sheen Specular Wave with Feathered Emerald Edges */
.wellnuvia-box::after {
  content: '';
  position: absolute;
  inset: -25px -40px;
  background: linear-gradient(
    115deg,
    transparent 0%,
    rgba(2, 18, 17, 0) 22%,
    rgba(6, 42, 38, 0.45) 36%,
    rgba(197, 157, 95, 0.6) 45%,
    rgba(255, 248, 226, 0.98) 50%,
    rgba(197, 157, 95, 0.6) 55%,
    rgba(6, 42, 38, 0.45) 64%,
    rgba(2, 18, 17, 0) 78%,
    transparent 100%
  );
  background-size: 250% 100%;
  mix-blend-mode: screen;
  pointer-events: none;
  opacity: 0;
  z-index: 9;
  filter: blur(2.5px) drop-shadow(0 0 20px rgba(197, 157, 95, 0.55));
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 50%, black 45%, transparent 95%);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 50%, black 45%, transparent 95%);
}

.reveal-active .wellnuvia-box::after {
  animation: liquidGoldSheen 2.9s 1.1s var(--ease-smooth) forwards;
}

@keyframes liquidGoldSheen {
  0% { background-position: 200% 0; opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { background-position: -200% 0; opacity: 0; }
}

/* 2. REFINED HERITAGE BADGE (WITH FLANKING GOLDEN LINES) */
.heritage-badge-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 24px 0 18px 0;
  width: 100%;
  opacity: 0;
  transform: translateY(16px) translateZ(20px);
  transition: all 1.4s var(--ease-cinematic);
}

.reveal-active .heritage-badge-wrap {
  opacity: 1;
  transform: translateY(0) translateZ(20px);
  transition-delay: 1.8s;
}

.filament-line {
  height: 1px;
  flex: 1;
  max-width: 130px;
  background: linear-gradient(90deg, transparent, rgba(197, 157, 95, 0.75), transparent);
}

.heritage-text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--gold-light);
  text-shadow: 0 0 12px rgba(197, 157, 95, 0.45);
  white-space: nowrap;
}

/* 3. RENEW HEALTH & WELLNESS LOGO (INCREASED 1.5X) */
.renew-box {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transform: translateY(18px) scale(0.95) translateZ(25px);
  filter: blur(8px);
  transition: all 1.5s var(--ease-cinematic);
}

.reveal-active .renew-box {
  opacity: 1;
  transform: translateY(0) scale(1) translateZ(25px);
  filter: blur(0);
  transition-delay: 2.5s;
}

.renew-logo-img {
  width: 100%;
  max-width: 260px; /* Increased 1.5x as requested */
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.75)) drop-shadow(0 0 18px rgba(255, 255, 255, 0.28));
  transition: transform 0.3s ease;
}

/* 4. CLINICAL CREDO / MOTTO: Science. Luxury. Wellness */
.credo-bar {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 14px;
  opacity: 0;
  transform: translateY(18px);
  transition: all 1.3s var(--ease-cinematic);
}

.reveal-active .credo-bar {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 3.4s;
}

.credo-word {
  font-family: 'Plus Jakarta Sans', 'Cinzel', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: rgba(235, 245, 240, 0.88);
  text-transform: uppercase;
}

.credo-dot {
  color: var(--gold-primary);
  font-size: 16px;
  line-height: 1;
  text-shadow: 0 0 8px var(--gold-primary);
}

/* --- FLOATING CINEMATIC CONTROLS (DISCREET & LUXURIOUS) --- */
.cinema-controls {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 22px;
  border-radius: 40px;
  background: rgba(4, 25, 23, 0.7);
  border: 1px solid rgba(197, 157, 95, 0.35);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 15px rgba(197, 157, 95, 0.15);
  opacity: 0;
  transform: translate(-50%, 20px);
  transition: all 1s var(--ease-cinematic);
}

.reveal-active .cinema-controls {
  opacity: 1;
  transform: translate(-50%, 0);
  transition-delay: 4.2s;
}

.control-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(235, 245, 240, 0.85);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.control-btn:hover {
  background: rgba(197, 157, 95, 0.2);
  border-color: var(--gold-primary);
  color: #FFF;
  box-shadow: 0 0 15px rgba(197, 157, 95, 0.3);
}

.control-btn.primary {
  background: var(--gold-gradient);
  color: #021211;
  font-weight: 700;
  border-color: transparent;
  box-shadow: 0 4px 18px rgba(197, 157, 95, 0.4);
}

.control-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(197, 157, 95, 0.65);
}

.control-btn svg {
  flex-shrink: 0;
}

/* Audio active state */
.control-btn.audio-on {
  border-color: var(--gold-primary);
  color: var(--gold-bright);
}

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 768px) {
  .wellnuvia-logo-img {
    max-width: 330px;
  }
  .renew-logo-img {
    max-width: 185px;
  }
  .filament-line {
    max-width: 50px;
  }
  .heritage-text {
    font-size: 10px;
    letter-spacing: 0.22em;
  }
  .credo-bar {
    margin-top: 24px;
    gap: 10px;
  }
  .credo-word {
    font-size: 11px;
    letter-spacing: 0.16em;
  }
  .cinema-controls {
    bottom: 20px;
    padding: 8px 16px;
    gap: 10px;
    width: 90%;
    justify-content: center;
  }
  .control-btn {
    padding: 7px 12px;
    font-size: 12px;
  }
  .control-btn span.btn-label {
    display: none;
  }
}

/* --- LUXURY SOUND ACTIVATION PROMPT --- */
.sound-prompt {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 22px;
  border-radius: 30px;
  background: rgba(4, 25, 23, 0.88);
  border: 1px solid var(--gold-primary);
  color: var(--gold-bright);
  font-family: 'Plus Jakarta Sans', 'Cairo', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(197, 157, 95, 0.35);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease, transform 0.6s ease;
  pointer-events: auto;
  animation: promptGlow 2.5s infinite alternate ease-in-out;
}

.sound-prompt.visible {
  opacity: 1;
  visibility: visible;
}

.sound-prompt svg {
  color: var(--gold-light);
  flex-shrink: 0;
}

@keyframes promptGlow {
  0% { transform: translateX(-50%) scale(0.98); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(197, 157, 95, 0.3); }
  100% { transform: translateX(-50%) scale(1.02); box-shadow: 0 12px 35px rgba(0, 0, 0, 0.7), 0 0 25px rgba(197, 157, 95, 0.6); }
}
