/* Luxury Right-to-Left Product Card Carousel for Hero Phase 2 */

/* Hero Phase 2 Milestone Scrubbing Overlay - Fully Transparent Backdrop */
.hero-scrub-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 28;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background: transparent !important;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.hero-scrub-overlay.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* While product scrub overlay or bento overlay is active, smoothly hide milestone text */
.stage.hero-scrub-active .cap,
.stage.bento-active .cap,
.stage:has(.hero-scrub-overlay.visible) .cap,
.stage:has(.bento-box-overlay.visible) .cap {
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 0.25s ease !important;
}

.hero-scrub-header {
  text-align: center;
  margin-bottom: 20px;
  z-index: 2;
}

.hero-scrub-header .eyebrow {
  font-size: 11px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--muted, rgba(239, 236, 228, 0.85));
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
}

.hero-scrub-header h2 {
  font-family: var(--serif, "Google Sans Flex", Georgia, serif);
  font-size: clamp(26px, 3.2vw, 44px);
  font-weight: 500;
  color: var(--ink, #efece4);
  margin-top: 6px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.9);
}

.hero-scrub-track {
  display: flex;
  gap: 28px;
  padding: 10px 10vw;
  will-change: transform;
  transform: translate3d(100vw, 0, 0);
  -webkit-transform: translate3d(100vw, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  contain: layout paint;
}

/* Individual Product Card - Luxury Dark Frosted Glass Card Background */
.product-card {
  flex: 0 0 310px;
  width: 310px;
  height: 410px;
  background: rgba(16, 16, 20, 0.88) !important;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.75), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  contain: layout paint;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: radial-gradient(circle at 50% 15%, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.product-card:hover {
  transform: translate3d(0, -8px, 0) scale(1.02);
  border-color: rgba(229, 202, 101, 0.5);
  box-shadow: 0 24px 48px -10px rgba(0, 0, 0, 0.9), 0 0 24px rgba(229, 202, 101, 0.18);
}

.product-card-wishlist {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: all 0.25s ease;
}

.product-card-wishlist svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--ink, #efece4);
  stroke-width: 1.8;
  transition: all 0.25s ease;
}

.product-card-wishlist:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: scale(1.1);
}

.product-card-wishlist.active svg {
  fill: #e65c5c;
  stroke: #e65c5c;
}

.product-card-img-wrap {
  width: 100%;
  height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  position: relative;
}

.product-card-img-wrap img {
  max-width: 88%;
  max-height: 88%;
  object-fit: contain;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .product-card-img-wrap img {
  transform: scale(1.08) rotate(-1deg);
}

.product-card-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
}

.product-card-title {
  font-family: var(--serif, "Google Sans Flex", Georgia, serif);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink, #efece4);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-card-subtitle {
  font-size: 12px;
  color: var(--muted, rgba(239, 236, 228, 0.6));
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-card-price-row {
  margin-top: 4px;
}

.product-card-price {
  font-size: 15px;
  font-weight: 600;
  color: #e6ca65;
  letter-spacing: 0.02em;
}

.product-card-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.product-card-emi-text {
  font-size: 11px;
  color: rgba(239, 236, 228, 0.55);
}

.product-card-emi-pill {
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 20px;
  background: rgba(229, 202, 101, 0.15);
  color: #e6ca65;
  border: 1px solid rgba(229, 202, 101, 0.3);
  font-weight: 500;
}

/* ==========================================================================
   BENTO BOX SECTION (LINE-BY-LINE STAGGERED SCROLL ARRIVAL)
   Matches Reference Box Layout with Pure Transparent 3D Stage Backdrop
   ========================================================================== */

.bento-box-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 26;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  padding: 70px 24px 30px;
  box-sizing: border-box;
  will-change: transform, opacity;
}

.bento-box-overlay.visible {
  visibility: visible;
}

.bento-stage-container {
  width: 100%;
  max-width: 1220px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: auto;
}

/* Bento Rows (Lines of boxes) */
.bento-row {
  display: grid;
  gap: 16px;
  will-change: transform, opacity;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: none; /* Managed smoothly by requestAnimationFrame LERP */
}

.bento-row-1 {
  grid-template-columns: 1.12fr 0.88fr;
  min-height: 190px;
}

.bento-row-2 {
  grid-template-columns: 1fr 1fr;
  min-height: 190px;
}

.bento-row-3 {
  grid-template-columns: 1fr 1fr 1fr;
  min-height: 175px;
}

/* Bento Card Styles - Glassmorphism floating above 3D video */
.bento-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(14, 14, 18, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  will-change: transform, opacity;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  contain: layout paint;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-sizing: border-box;
}

.bento-card:hover {
  transform: translate3d(0, -4px, 0);
  border-color: rgba(229, 202, 101, 0.45);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.65), 0 0 20px rgba(229, 202, 101, 0.16);
}

/* Hero Branding Card (Row 1 Left) */
.bento-hero-card {
  padding: 28px 36px;
  justify-content: center;
  background: rgba(12, 12, 16, 0.88) !important;
}

.bento-eyebrow {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #c8b98f;
  margin-bottom: 8px;
  font-weight: 500;
  display: block;
}

.bento-hero-title {
  font-family: var(--serif, "Google Sans Flex", Georgia, serif);
  font-size: clamp(23px, 2.3vw, 34px);
  font-weight: 400;
  line-height: 1.22;
  color: #efece4;
  margin: 0 0 10px 0;
  letter-spacing: -0.01em;
}

.bento-gold-italic {
  font-style: italic;
  color: #e6ca65;
  font-family: Georgia, serif;
}

.bento-hero-sub {
  font-size: clamp(13px, 1.1vw, 15px);
  color: rgba(239, 236, 228, 0.72);
  line-height: 1.5;
  margin: 0;
  font-weight: 300;
}

/* Image Cards (with background photography and bottom text) */
.bento-img-card {
  min-height: 180px;
}

.bento-img-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.bento-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-card:hover .bento-img-wrap img {
  transform: scale(1.06);
}

.bento-card-gradient {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(10, 10, 14, 0.32) 42%, rgba(10, 10, 14, 0.88) 100%);
  pointer-events: none;
}

.bento-card-content {
  position: relative;
  z-index: 3;
  padding: 20px 24px;
}

.bento-card-title {
  font-family: var(--serif, "Google Sans Flex", Georgia, serif);
  font-size: clamp(18px, 1.6vw, 24px);
  font-weight: 400;
  color: #efece4;
  margin: 0 0 6px 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
}

.bento-link {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #e6ca65;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.25s ease, gap 0.25s ease;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

.bento-card:hover .bento-link {
  color: #ffffff;
  gap: 9px;
}

.bento-arrow {
  transition: transform 0.25s ease;
}

.bento-card:hover .bento-arrow {
  transform: translateX(3px);
}

/* Responsive Scaling */
@media (max-height: 850px) {
  .bento-box-overlay {
    padding: 60px 18px 20px;
  }
  .bento-stage-container {
    gap: 12px;
  }
  .bento-row {
    gap: 12px;
  }
  .bento-row-1, .bento-row-2 {
    min-height: 160px;
  }
  .bento-row-3 {
    min-height: 145px;
  }
  .bento-hero-card {
    padding: 20px 26px;
  }
  .bento-card-content {
    padding: 14px 18px;
  }
}

@media (max-width: 900px) {
  .bento-row-1, .bento-row-2 {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .bento-row-3 {
    grid-template-columns: 1fr 1fr;
    min-height: auto;
  }
  .bento-card {
    min-height: 140px;
  }
}

/* ==========================================================================
   PERMANENTLY REMOVE GALLERY SECTION ACROSS ALL PROJECTS
   ========================================================================== */
#gallery,
.gallery,
section#gallery,
section.gallery,
section[id="gallery"] {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  overflow: hidden !important;
  pointer-events: none !important;
}
