/* ═════════════════════════════════════════════════════════════════════
   PRATEEK JEWELLERS — 3D POEM ANIMATION & IMMERSIVE SHOWROOM EXPERIENCE
   Faithfully inspired by 3d-animation / Living Work architecture
   Featuring: 3D perspective cube room, scrolling run-line poetry, 
   luxurious floor reflection, and master concierge presenting high jewellery
   ═════════════════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');


.poem-showroom-section {
  position: relative;
  width: 100%;
  padding: clamp(60px, 8vw, 100px) 0 clamp(40px, 6vw, 80px);
  background: radial-gradient(circle at 50% 20%, rgba(20, 24, 33, 0.4) 0%, #08090C 70%);
  overflow: hidden;
  border-top: 1px solid rgba(226, 230, 236, 0.08);
}

.poem-showroom-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.4), rgba(226, 230, 236, 0.5), rgba(212, 175, 55, 0.4), transparent);
}

.poem-header-wrapper {
  max-width: 1200px;
  margin: 0 auto clamp(28px, 4vw, 44px);
  padding: 0 clamp(16px, 4vw, 32px);
  text-align: center;
}

.poem-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: 9999px;
  background: rgba(226, 230, 236, 0.04);
  border: 1px solid rgba(226, 230, 236, 0.16);
  color: #C5CBD3;
  font-family: var(--font-jakarta, 'Plus Jakarta Sans', sans-serif);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 16px;
  backdrop-filter: blur(10px);
}

.poem-badge-pill svg {
  color: #D4AF37;
}

.poem-title {
  font-family: var(--font-playfair, 'Playfair Display', serif);
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  font-weight: 600;
  color: #F8F9FA;
  letter-spacing: -0.02em;
  line-height: 1.18;
  margin: 0 0 12px;
}

.poem-title em {
  font-style: italic;
  background: linear-gradient(135deg, #FFEBA3 0%, #D4AF37 50%, #B89628 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.poem-subtitle {
  font-family: var(--font-jakarta, 'Plus Jakarta Sans', sans-serif);
  color: #C0C7D2;
  font-size: clamp(14.5px, 1.7vw, 17px);
  font-style: italic;
  font-weight: 500;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
  letter-spacing: 0.01em;
}

/* ═════════════════════════════════════════════════════════════════════
   3D HERO CONTAINER & PERSPECTIVE STAGE
   ═════════════════════════════════════════════════════════════════════ */
.poem-stage-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 clamp(12px, 3vw, 24px);
}

.poem-scale-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  max-width: 1000px;
}

/* Base fixed canvas size (16:9 ratio, 1000x562) - responsively scaled by JS */
.poem-content {
  position: relative;
  width: 1000px;
  height: 562px;
  transform-origin: top center;
  flex-shrink: 0;
  border-radius: 18px;
  background: #000;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.85), 
              0 0 0 1px rgba(226, 230, 236, 0.12),
              0 0 50px rgba(212, 175, 55, 0.08);
  overflow: hidden;
}

.container-full {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* Ambient lighting overlay */
.animated.hue {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: radial-gradient(ellipse at 50% 35%, rgba(212, 175, 55, 0.1) 0%, rgba(13, 20, 36, 0.03) 60%, transparent 85%);
  pointer-events: none;
  opacity: 0.85;
}

/* Background Showroom Architecture */
.backgroundImage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  z-index: 1;
  filter: brightness(0.92) contrast(1.08);
  user-select: none;
  -webkit-user-drag: none;
}

/* ═════════════════════════════════════════════════════════════════════
   3D ROOM CUBE & CONTINUOUS RUN-LINE POETRY
   ═════════════════════════════════════════════════════════════════════ */
.container {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  user-select: none;
  z-index: 3;
}

.cube {
  position: relative;
  width: 870px;
  height: 190px;
  transform-style: preserve-3d;
  perspective: 480px;
  perspective-origin: 51% 70%;
  pointer-events: none;
  user-select: none;
}

.face {
  position: absolute;
  width: 870px;
  height: 190px;
  display: flex;
  align-items: center;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  opacity: 0.96;
}

.face.top, .face.bottom {
  width: 870px;
  height: 870px;
  opacity: 0;
}

.face.front {
  transform: translateZ(435px);
  display: none;
}
.face.back {
  transform: translateZ(-435px) rotateY(180deg) scaleX(-1);
}
.face.left {
  transform: translateX(-435px) rotateY(-90deg) scaleX(-1);
}
.face.right {
  transform: translateX(435px) rotateY(90deg) scaleX(-1);
}
.face.top {
  transform: translateY(-435px) rotateX(90deg) scaleY(-1);
}
.face.bottom {
  transform: translateY(-245px) rotateX(-90deg) scaleY(-1);
}

/* ═════════════════════════════════════════════════════════════════════
   3D ROOM CUBE TYPOGRAPHY & CONTINUOUS NON-STOP MARQUEE
   ═════════════════════════════════════════════════════════════════════ */
.face.text {
  overflow: hidden;
  display: flex;
  align-items: center;
}

.poem-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: roomMarqueeLoop 45s linear infinite;
  animation-play-state: running;
  padding-top: 25px;
}

/* Staggered delay creates a single unified ribbon flowing around room walls */
.face.left .poem-track {
  animation-delay: 0s;
}
.face.back .poem-track {
  animation-delay: -12s;
}
.face.right .poem-track {
  animation-delay: -24s;
}

.poem-unit {
  display: flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
  font-family: 'Bebas Neue', var(--font-jakarta, 'Plus Jakarta Sans', sans-serif);
  font-size: 54px;
  letter-spacing: 0.05em;
  line-height: 1;
}

.poem-unit .txt-primary {
  color: #0b0e14;
  font-weight: 500;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75), 0 0 14px rgba(212, 175, 55, 0.45);
  padding: 0 4px;
}

.poem-unit .txt-gold {
  color: #9c7314;
  font-weight: 700;
  text-shadow: 0 0 16px rgba(212, 175, 55, 0.85), 0 0 30px rgba(255, 215, 0, 0.4);
  padding: 0 4px;
}

.poem-unit .txt-bullet {
  color: #d4af37;
  font-size: 32px;
  opacity: 0.85;
  padding: 0 10px;
}

/* Mathematically seamless infinite loop: -50% translation matches exact clone unit */
@keyframes roomMarqueeLoop {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

/* ═════════════════════════════════════════════════════════════════════
   POLISHED FLOOR REFLECTION (MIRRORED CUBE)
   ═════════════════════════════════════════════════════════════════════ */
.container-reflect {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 380px;
  filter: blur(5px);
  opacity: 0.32;
  z-index: 4;
  pointer-events: none;
  user-select: none;
}

.container-reflect .cube {
  perspective-origin: 51% -30%;
}
.container-reflect .back {
  transform: translateZ(-435px) rotateY(180deg) scaleX(-1) scaleY(-1);
}
.container-reflect .left {
  transform: translateX(-435px) rotateY(-90deg) scaleX(-1) scaleY(-1);
}
.container-reflect .right {
  transform: translateX(435px) rotateY(90deg) scaleX(-1) scaleY(-1);
}
.container-reflect .poem-track {
  transform: scaleY(70%);
  filter: blur(3.5px);
  opacity: 0.38;
}

/* ═════════════════════════════════════════════════════════════════════
   FOREGROUND STAFF FIGURE PRESENTING LUXURY JEWELLERY
   Matches exact proportions of reference figure (Height: 52%, bottom: 0)
   ═════════════════════════════════════════════════════════════════════ */
.boyImage.staff-jewellery-figure {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 74%;
  width: auto;
  max-width: none;
  z-index: 8;
  pointer-events: none;
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.9));
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  -webkit-user-drag: none;
}

/* Subtle luxury showroom vignette overlay */
.poem-room-vignette {
  position: absolute;
  inset: 0;
  z-index: 9;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, transparent 55%, rgba(0, 0, 0, 0.55) 100%),
              linear-gradient(to bottom, rgba(8,9,12,0.4) 0%, transparent 15%, transparent 80%, rgba(8,9,12,0.6) 100%);
}

/* ═════════════════════════════════════════════════════════════════════
   DECK FOOTER BAR (INTERACTIVE CONCIERGE CALLOUT)
   ═════════════════════════════════════════════════════════════════════ */
.poem-deck-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1000px;
  max-width: 100%;
  margin-top: 20px;
  padding: 14px 22px;
  background: rgba(14, 16, 21, 0.75);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(226, 230, 236, 0.12);
  border-radius: 14px;
  font-family: var(--font-jakarta, 'Plus Jakarta Sans', sans-serif);
  font-size: 13px;
  color: #C5CBD3;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.poem-deck-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.poem-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #D4AF37;
  box-shadow: 0 0 10px #D4AF37;
  animation: poemPulse 2s infinite ease-in-out;
}

@keyframes poemPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.3); }
}

.poem-deck-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.poem-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: 9999px;
  font-family: var(--font-body, 'Plus Jakarta Sans', sans-serif);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
  cursor: pointer;
}

.poem-cta-btn .label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.poem-cta-btn--customize {
  background: linear-gradient(135deg, #1C1F28 0%, #2A2F3D 100%);
  color: #FFFFFF;
  border: 1px solid rgba(212, 175, 55, 0.45);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.poem-cta-btn--customize:hover {
  background: linear-gradient(135deg, #2A3040 0%, #373E4F 100%);
  border-color: rgba(255, 235, 163, 0.8);
  color: #FFE58F;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.3);
}

.poem-cta-btn--call {
  background: linear-gradient(135deg, #181B22 0%, #111317 100%);
  color: #E2E8F0;
  border: 1px solid rgba(203, 213, 225, 0.25);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.poem-cta-btn--call:hover {
  background: linear-gradient(135deg, #242934 0%, #181B22 100%);
  border-color: rgba(255, 255, 255, 0.5);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.poem-cta-btn--contact {
  background: linear-gradient(135deg, #FFEBA3 0%, #D4AF37 50%, #B89628 100%);
  color: #08090C;
  border: none;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.35);
}

.poem-cta-btn--contact:hover {
  background: linear-gradient(135deg, #FFF0B8 0%, #E5BF45 50%, #C9A430 100%);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.55);
  transform: translateY(-2px);
  color: #000000;
}

.poem-cta-btn svg {
  transition: transform 0.25s ease;
}

.poem-cta-btn:hover svg {
  transform: translateX(2px);
}

/* ═════════════════════════════════════════════════════════════════════
   RESPONSIVE DESIGN
   ═════════════════════════════════════════════════════════════════════ */
@media (max-width: 1040px) {
  .poem-deck-footer {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .poem-badge-pill,
  .poem-deck-footer {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: #0E1015 !important;
  }

  .poem-showroom-section {
    padding: 36px 0 24px !important;
  }
  .poem-header-wrapper {
    margin-bottom: 16px !important;
    padding: 0 16px !important;
  }
  .poem-badge-pill {
    padding: 4px 12px !important;
    font-size: 10px !important;
    margin-bottom: 8px !important;
  }
  .poem-title {
    font-size: 1.55rem !important;
    margin-bottom: 6px !important;
  }
  .poem-subtitle {
    font-size: 12.5px !important;
    line-height: 1.5 !important;
  }
  .poem-deck-footer {
    flex-direction: column;
    gap: 10px;
    text-align: center;
    padding: 12px 14px;
    margin-top: 14px;
    width: 95%;
  }
  .poem-deck-info {
    justify-content: center;
    font-size: 12px;
  }
  .face.text {
    font-size: 36px;
  }
  /* Save 50% GPU memory on mobile devices */
  .container-reflect {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .face.text {
    font-size: 28px;
  }
  .poem-deck-actions {
    width: 100%;
    gap: 8px;
  }
  .poem-cta-btn {
    flex: 1 1 calc(50% - 6px);
    min-width: 125px;
    justify-content: center;
    padding: 8px 10px;
    font-size: 10.5px;
  }
  .poem-cta-btn--contact {
    flex: 1 1 100%;
  }
}
