/* ==========================================================================
   Experimental Layouts (V6 Sticky Stacking & V7 Cinematic Parallax)
   ========================================================================== */

/* ------------------------------------------------
   V6: Sticky Stacked Cards Layout
   ------------------------------------------------ */
.stacked-cards-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-3xl);
  padding-bottom: 15vh;
  position: relative;
}

.stacked-card {
  position: sticky;
  top: calc(95px + var(--card-offset, 0px));
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  display: flex;
  min-height: 480px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  z-index: var(--card-z, 1);
}

.stacked-card:hover {
  border-color: var(--color-primary-light);
}

.stacked-card:nth-child(1) { --card-offset: 0px; --card-z: 1; }
.stacked-card:nth-child(2) { --card-offset: 16px; --card-z: 2; }
.stacked-card:nth-child(3) { --card-offset: 32px; --card-z: 3; }
.stacked-card:nth-child(4) { --card-offset: 48px; --card-z: 4; }
.stacked-card:nth-child(5) { --card-offset: 64px; --card-z: 5; }
.stacked-card:nth-child(6) { --card-offset: 80px; --card-z: 6; }
.stacked-card:nth-child(7) { --card-offset: 96px; --card-z: 7; }

.stacked-card-content {
  flex: 1.1;
  padding: var(--space-3xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stacked-card-image {
  flex: 1.2;
  background: var(--bg-surface);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-left: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.stacked-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.4s ease;
}

.stacked-card:hover .stacked-card-image img {
  transform: scale(1.03);
}

.stacked-card-zoom-hint {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: rgba(13, 17, 23, 0.85);
  backdrop-filter: blur(8px);
  color: var(--text-primary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.15);
  opacity: 0;
  transform: translateY(4px);
  transition: all 0.25s ease;
  pointer-events: none;
}

.stacked-card:hover .stacked-card-zoom-hint {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 992px) {
  .stacked-cards-container {
    padding-bottom: 0;
    gap: var(--space-2xl);
  }
  .stacked-card {
    position: relative !important;
    top: 0 !important;
    flex-direction: column;
    min-height: 0;
    height: auto;
  }
  .stacked-card-content {
    padding: var(--space-xl);
  }
  .stacked-card-image {
    flex: none;
    width: 100%;
    height: 260px;
    border-left: none;
    border-top: 1px solid var(--border-color);
  }
}


/* ------------------------------------------------
   V7: Cinematic Parallax Glassmorphism Layout
   ------------------------------------------------ */
.cinematic-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-4xl);
  margin-bottom: var(--space-4xl);
}

.cinematic-section {
  position: relative;
  min-height: 80vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: var(--space-4xl) 8%;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8);
}

.cinematic-section.align-right {
  justify-content: flex-end;
}

.cinematic-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.cinematic-bg img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.6s ease;
}

.cinematic-section:hover .cinematic-bg img {
  transform: scale(1.03);
}

.cinematic-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(105deg, rgba(13, 17, 23, 0.94) 0%, rgba(13, 17, 23, 0.75) 50%, rgba(13, 17, 23, 0.3) 100%);
  z-index: 1;
}

.cinematic-section.align-right .cinematic-overlay {
  background: linear-gradient(285deg, rgba(13, 17, 23, 0.94) 0%, rgba(13, 17, 23, 0.75) 50%, rgba(13, 17, 23, 0.3) 100%);
}

.cinematic-glass-panel {
  position: relative;
  z-index: 2;
  width: 48%;
  min-width: 420px;
  max-width: 580px;
  background: rgba(18, 24, 38, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: var(--space-3xl);
  border-radius: var(--radius-xl);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.cinematic-glass-panel:hover {
  border-color: var(--color-primary-light);
}

.cinematic-inspect-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: var(--space-lg);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-primary-light);
  cursor: pointer;
  transition: color 0.2s ease, gap 0.2s ease;
}

.cinematic-inspect-btn:hover {
  color: #fff;
  gap: 12px;
}

@media (max-width: 992px) {
  .cinematic-section,
  .cinematic-section.align-right {
    padding: var(--space-2xl) var(--space-lg);
    justify-content: center;
    min-height: auto;
  }
  .cinematic-overlay,
  .cinematic-section.align-right .cinematic-overlay {
    background: rgba(13, 17, 23, 0.88) !important;
  }
  .cinematic-glass-panel {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: var(--space-xl);
  }
}

/* ------------------------------------------------
   Shared: Checklist (used in V6 & V7 content panels)
   ------------------------------------------------ */
.bento-checklist {
  list-style: none;
  padding: 0;
  margin: var(--space-md) 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bento-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.bento-checklist .check-icon {
  color: var(--color-primary);
  flex-shrink: 0;
  font-weight: bold;
}
