/* ============================================================
   ZARYON.PK — 5-LAKH ULTRA-LUXURY 3D CINEMATIC TRAILER v6.0
   Cinema Grade | Dark Obsidian & Radiant Amber | 60fps GPU
   ============================================================ */

/* ── CINEMA SCREEN STAGE ── */
#zyrNextGen3dStage {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: #06070B;
  z-index: 999999;
  overflow: hidden;
  font-family: 'Montserrat', 'Poppins', -apple-system, sans-serif;
  opacity: 1;
  visibility: visible;
  perspective: 1400px;
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.85s ease;
  will-change: opacity, transform;
}
#zyrNextGen3dStage.zyr-stage-dismissed {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(1.04);
}

/* ── VOLUMETRIC LIGHT & PARTICLES CANVAS ── */
#zyrNextGenCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

/* ── LUXURY STUDIO AMBIENT SPOTLIGHTS ── */
.zyr-cin-spotlight {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 65% 65% at 68% 48%, rgba(255, 90, 0, 0.18) 0%, rgba(255, 60, 0, 0.05) 45%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 30% 60%, rgba(255, 140, 0, 0.06) 0%, transparent 60%);
  animation: spotlightPulse 5s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes spotlightPulse {
  0%   { opacity: 0.75; transform: scale(1); }
  100% { opacity: 1;    transform: scale(1.08); }
}

/* ── 3D DEPTH GRID FLOOR ── */
.zyr-cin-grid {
  position: absolute;
  inset: -20%;
  z-index: 1;
  background-image:
    linear-gradient(rgba(255, 90, 0, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 90, 0, 0.04) 1px, transparent 1px);
  background-size: 70px 70px;
  transform: perspective(600px) rotateX(65deg) translateY(180px);
  transform-origin: center bottom;
  mask-image: radial-gradient(ellipse 70% 60% at 60% 70%, rgba(0,0,0,0.8), transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 70%, rgba(0,0,0,0.8), transparent 75%);
  pointer-events: none;
}

/* ── CINEMATIC GLASS SKIP BUTTON ── */
.zyr-nextgen-skip-btn {
  position: fixed;
  top: 26px;
  right: 32px;
  z-index: 1000000;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.85);
  font-size: 11.5px;
  font-weight: 800;
  padding: 10px 24px;
  border-radius: 999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.zyr-nextgen-skip-btn:hover {
  background: #FF5A00;
  border-color: #FF5A00;
  color: #FFFFFF;
  box-shadow: 0 0 30px rgba(255, 90, 0, 0.65), 0 4px 15px rgba(0,0,0,0.4);
  transform: translateY(-2px) scale(1.03);
}

/* ── MAIN CINEMATIC STAGE LAYOUT ── */
.zyr-cin-layout {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(40px, 6vw, 100px);
  padding: 0 clamp(24px, 6vw, 90px);
  pointer-events: none;
}

/* ── LEFT: CINEMATIC STORY TEXT COLUMN ── */
.zyr-cin-text-col {
  flex: 0 0 auto;
  width: clamp(320px, 35vw, 480px);
  position: relative;
  min-height: 240px;
}

.zyr-nextgen-chapter-box {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transform: translateY(28px) scale(0.96);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.5s ease;
}
.zyr-nextgen-chapter-box.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  position: relative;
}

/* Premium Glowing Pill Badge */
.zyr-nextgen-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(255, 90, 0, 0.18) 0%, rgba(255, 46, 0, 0.08) 100%);
  border: 1px solid rgba(255, 120, 0, 0.4);
  color: #FFA057;
  font-size: 11px;
  font-weight: 800;
  padding: 6px 18px;
  border-radius: 999px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  box-shadow: 0 0 20px rgba(255, 90, 0, 0.2);
}

/* Luxury Headline */
.zyr-nextgen-headline {
  font-size: clamp(2.1rem, 3.4vw, 3.8rem);
  font-weight: 900;
  line-height: 1.05;
  color: #FFFFFF;
  margin: 0 0 16px;
  letter-spacing: -0.035em;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
}
.zyr-nextgen-headline .zyr-orange {
  background: linear-gradient(135deg, #FF7700 0%, #FF3300 50%, #FF9900 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 18px rgba(255, 90, 0, 0.55));
}

/* Elegant Subtext */
.zyr-nextgen-subtext {
  font-size: clamp(0.85rem, 1.2vw, 1.05rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
  max-width: 420px;
}

/* ── RIGHT: 3D VISUAL STAGE (BAG + PRODUCTS) ── */
.zyr-cin-visual-col {
  flex: 0 0 auto;
  position: relative;
  width: clamp(380px, 42vw, 540px);
  height: clamp(380px, 42vw, 540px);
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
}

/* ── CENTRAL HERO: ZARYON SHOPPING BAG ── */
.zyr-cin-bag {
  position: absolute;
  width: 76%;
  height: 76%;
  left: 50%;
  top: 50%;
  margin-left: -38%;
  margin-top: -38%;
  opacity: 0;
  transform: scale(0.35) translateY(90px) rotateY(-25deg) rotateX(15deg);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
  z-index: 6;
  transform-style: preserve-3d;
}
.zyr-cin-bag.visible {
  opacity: 1;
  transform: scale(1) translateY(0) rotateY(0deg) rotateX(0deg);
  animation: bag3dFloat 5s ease-in-out infinite alternate;
}
.zyr-cin-bag img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter:
    drop-shadow(0 35px 70px rgba(255, 90, 0, 0.45))
    drop-shadow(0 15px 35px rgba(0, 0, 0, 0.8))
    drop-shadow(0 -5px 25px rgba(255, 130, 0, 0.2));
}
@keyframes bag3dFloat {
  0%   { transform: translateY(0px) rotateY(-7deg) rotateX(3deg) scale(1); }
  50%  { transform: translateY(-20px) rotateY(0deg) rotateX(-2deg) scale(1.03); }
  100% { transform: translateY(-8px) rotateY(7deg) rotateX(4deg) scale(1.01); }
}

/* Radiant Backlight Halo behind Bag */
.zyr-cin-bag-glow {
  position: absolute;
  width: 110%;
  height: 110%;
  left: -5%;
  top: -5%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 90, 0, 0.25) 0%, rgba(255, 46, 0, 0.08) 40%, transparent 70%);
  animation: auraBreath 3s ease-in-out infinite alternate;
  z-index: 3;
  pointer-events: none;
}
@keyframes auraBreath {
  from { transform: scale(0.88); opacity: 0.65; }
  to   { transform: scale(1.18); opacity: 1; }
}

/* Floor Contact Shadow */
.zyr-cin-bag-halo {
  position: absolute;
  bottom: 2%;
  left: 50%;
  width: 70%;
  height: 16%;
  margin-left: -35%;
  background: radial-gradient(ellipse, rgba(255, 90, 0, 0.45) 0%, rgba(0, 0, 0, 0.6) 40%, transparent 75%);
  border-radius: 50%;
  filter: blur(16px);
  animation: shadowBreathe 3s ease-in-out infinite alternate;
  z-index: 4;
}
@keyframes shadowBreathe {
  from { opacity: 0.4; transform: scaleX(0.85); }
  to   { opacity: 0.95; transform: scaleX(1.2); }
}

/* ── 3D PRODUCT FLOATING CAPSULES ── */
.zyr-cin-product {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  z-index: 9;
  transform-style: preserve-3d;
  will-change: transform, opacity;
}
.zyr-cin-product-inner {
  width: 88px;
  height: 88px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 16px 45px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 90, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease;
}
.zyr-cin-product-inner img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.4));
}
.zyr-cin-product-label {
  margin-top: 9px;
  background: rgba(15, 18, 28, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 90, 0, 0.35);
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 10.5px;
  font-weight: 800;
  color: #FFAE73;
  white-space: nowrap;
  letter-spacing: 0.06em;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

/* ── 3D PRODUCT KEYFRAME ANIMATIONS ── */
@keyframes prodBurst {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.15) rotate(15deg); }
  60%  { opacity: 1; transform: translate(-50%, -50%) scale(1.12) rotate(-3deg); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(0deg); }
}
@keyframes prodFloat {
  0%   { transform: translate(-50%, -50%) translateY(0px) scale(1); }
  100% { transform: translate(-50%, -50%) translateY(-14px) scale(1.03); }
}

/* ── SCENE 5: 3D HYPERDRIVE EXPLOSION ── */
@keyframes prodExplodeNW {
  from { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  to   { opacity: 0; transform: translate(calc(-50% - 320px), calc(-50% - 240px)) scale(0.2) rotate(-35deg); }
}
@keyframes prodExplodeNE {
  from { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  to   { opacity: 0; transform: translate(calc(-50% + 320px), calc(-50% - 220px)) scale(0.2) rotate(35deg); }
}
@keyframes prodExplodeSW {
  from { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  to   { opacity: 0; transform: translate(calc(-50% - 300px), calc(-50% + 240px)) scale(0.2) rotate(-30deg); }
}
@keyframes prodExplodeSE {
  from { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  to   { opacity: 0; transform: translate(calc(-50% + 300px), calc(-50% + 230px)) scale(0.2) rotate(30deg); }
}
@keyframes prodExplodeCenter {
  from { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  to   { opacity: 0; transform: translate(-50%, calc(-50% + 320px)) scale(0.2); }
}

/* ── CINEMATIC WHITE/AMBER FLASH WIPE (Scene 5) ── */
.zyr-cin-flash {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 65% 50%, #FFFFFF 0%, #FFF3EB 60%, #FFD6BA 100%);
  opacity: 0;
  z-index: 80;
  pointer-events: none;
  transition: opacity 0.4s ease-out;
}
.zyr-cin-flash.active {
  opacity: 1;
}

/* ── PROGRESS BAR ── */
.zyr-nextgen-progress-wrap {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: min(280px, 68vw);
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  z-index: 100;
}
.zyr-nextgen-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #FF7700 0%, #FF3300 60%, #FFAA00 100%);
  border-radius: 999px;
  box-shadow: 0 0 12px rgba(255, 90, 0, 0.9);
  transition: width 0.12s linear;
}

/* ── MOBILE CINEMATIC ADAPTATION ── */
@media (max-width: 991.98px) {
  .zyr-cin-layout {
    flex-direction: column-reverse !important;
    gap: 16px !important;
    padding: 70px 20px 24px !important;
    text-align: center !important;
    justify-content: center !important;
  }
  .zyr-cin-text-col {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 120px !important;
    text-align: center !important;
  }
  .zyr-nextgen-headline {
    font-size: clamp(1.8rem, 6.5vw, 2.4rem) !important;
    margin-bottom: 8px !important;
  }
  .zyr-nextgen-subtext {
    font-size: 13px !important;
    margin: 0 auto !important;
  }
  .zyr-cin-visual-col {
    width: clamp(260px, 68vw, 320px) !important;
    height: clamp(260px, 68vw, 320px) !important;
  }
  .zyr-cin-bag {
    width: 82% !important;
    height: 82% !important;
    margin-left: -41% !important;
    margin-top: -41% !important;
  }
  .zyr-cin-product-inner {
    width: 62px !important;
    height: 62px !important;
    border-radius: 18px !important;
  }
  .zyr-cin-product-inner img {
    width: 44px !important;
    height: 44px !important;
  }
  .zyr-cin-product-label {
    display: none !important;
  }
  .zyr-nextgen-skip-btn {
    top: 18px !important;
    right: 18px !important;
    padding: 8px 18px !important;
    font-size: 11px !important;
  }
}

