/* ============== GMC 3D STACKED SCREENSHOTS SECTION ============== */
.gmc-stack-sec {
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  padding: 90px 0;
  max-width: 100%;
  margin: 0 auto;
  font-family: inherit;
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
}

.gmc-stack-stage {
  position: relative;
  height: 720px;
  max-width: 1100px;
  margin: 20px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 70px;
  box-sizing: border-box;
}

/* ============== MOBILE SCREEN STACK (NO CARDS) ============== */
.gmc-stack-card {
  position: absolute;
  inset: 0;
  margin: auto;
  width: min(270px, 86vw);
  height: 650px;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
  transition:
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
  opacity: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (prefers-reduced-motion: reduce) {
  .gmc-stack-card {
    transition: opacity 0.3s ease !important;
  }
}

/* Card fallback backgrounds removed */
.gmc-stack-card.v-photo,
.gmc-stack-card.v-video,
.gmc-stack-card.v-temp,
.gmc-stack-card.v-file,
.gmc-stack-card.v-pdf,
.gmc-stack-card.v-location,
.gmc-stack-card.v-rec {
  background: transparent;
}

/* ============== STACK POSITIONS ============== */

/* CENTER */
.gmc-stack-card.is-center {
  z-index: 10;
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
  filter: none;
  background: transparent;
}

/* LEFT */
.gmc-stack-card.is-left {
  z-index: 8;
  opacity: 1;
  transform: translateX(-52%) scale(0.85);
  filter: blur(2.5px) brightness(0.96);
  background: transparent;
}

/* RIGHT */
.gmc-stack-card.is-right {
  z-index: 8;
  opacity: 1;
  transform: translateX(52%) scale(0.85);
  filter: blur(2.5px) brightness(0.96);
  background: transparent;
}

/* FAR LEFT */
.gmc-stack-card.is-far-left {
  z-index: 6;
  opacity: 1;
  transform: translateX(-94%) scale(0.74);
  filter: blur(4px) brightness(0.94);
  background: transparent;
}

/* FAR RIGHT */
.gmc-stack-card.is-far-right {
  z-index: 6;
  opacity: 1;
  transform: translateX(94%) scale(0.74);
  filter: blur(4px) brightness(0.94);
  background: transparent;
}

.gmc-stack-card.is-hidden {
  z-index: 1;
  opacity: 0;
  transform: translateX(0) scale(0.7);
  pointer-events: none;
  filter: blur(6px);
}

/* Overlay veil removed */
.gmc-stack-card::after {
  display: none;
}

/* ============== PHONE MOCKUP ============== */
.gmc-card-visual {
  width: 100%;
  height: 560px;
  flex: 0 0 560px;
  position: relative;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.gmc-card-visual .phone {
  height: 100%;
  width: auto;
  aspect-ratio: 9 / 19.5;
  background: #0b1526;
  border: 4px solid #0b1526;
  border-radius: 36px;
  box-sizing: border-box;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  box-shadow:
    0 20px 42px -10px rgba(15, 23, 42, 0.18),
    0 8px 18px -6px rgba(15, 23, 42, 0.1);
}

.gmc-card-visual .phone::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 90px;
  width: 3px;
  height: 26px;
  background: #0b1526;
  border-radius: 3px 0 0 3px;
  box-shadow:
    0 36px 0 #0b1526,
    0 70px 0 #0b1526;
  z-index: 3;
}

.gmc-card-visual .phone::after {
  content: "";
  position: absolute;
  right: -7px;
  top: 110px;
  width: 3px;
  height: 44px;
  background: #0b1526;
  border-radius: 0 3px 3px 0;
  z-index: 3;
}

.gmc-card-visual .phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 32px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #0b1526;
  box-sizing: border-box;
  position: relative;
}

.gmc-card-visual .phone-screen::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 34%;
  height: 16px;
  background: #0b1526;
  border-radius: 10px;
  z-index: 4;
}

.screen-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border: 0;
  transform: scale(1.01);
  transform-origin: center;
}

.gmc-card-info {
  flex-shrink: 0;
  margin-top: 35px;
  padding: 0 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}

.gmc-card-info h3 {
  font-family: "Poppins", sans-serif;
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  line-height: 1.25;
  letter-spacing: -0.3px;
  white-space: nowrap;
  transition: all 0.5s ease;
}

/* Active center card title stands out boldly */
.gmc-stack-card.is-center .gmc-card-info {
  opacity: 1;
  transform: translateY(0);
}

.gmc-stack-card.is-center .gmc-card-info h3 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.4px;
}

/* Side cards text subtly muted for cleaner visual hierarchy */
.gmc-stack-card:not(.is-center) .gmc-card-info {
  opacity: 0.5;
  filter: blur(0.5px);
}

.gmc-stack-card:not(.is-center) .gmc-card-info h3 {
  font-size: 17px;
  font-weight: 600;
}

/* ============== ARROWS ============== */
.gmc-stack-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #ffffff;
  color: #3478ed;
  border: 1.5px solid #d9e5f7;
  box-shadow:
    0 8px 24px rgba(42, 82, 140, 0.12),
    0 2px 6px rgba(42, 82, 140, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 30;
  padding: 0;
  outline: none;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.gmc-stack-nav svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  display: block;
  transition: transform 0.2s ease;
}

.gmc-stack-nav.prev {
  left: 8px;
}

.gmc-stack-nav.next {
  right: 8px;
}

.gmc-stack-nav:hover {
  background: #3478ed;
  color: #ffffff;
  border-color: #3478ed;
  box-shadow: 0 10px 28px rgba(52, 120, 237, 0.32);
  transform: translateY(-50%) scale(1.08);
}

.gmc-stack-nav:active {
  transform: translateY(-50%) scale(0.96);
}

@media (max-width: 1100px) {
  .gmc-stack-stage {
    padding: 0 58px;
  }

  .gmc-stack-nav.prev {
    left: 6px;
  }

  .gmc-stack-nav.next {
    right: 6px;
  }
}

@media (max-width: 768px) {
  .gmc-stack-sec {
    padding: 65px 0;
  }

  .gmc-stack-stage {
    height: 570px;
    padding: 0 12px;
  }

  .gmc-stack-card {
    width: min(220px, 72vw);
    height: 520px;
  }

  .gmc-card-visual {
    height: 440px;
    flex: 0 0 440px;
  }

  .gmc-card-info {
    margin-top: 20px;
    padding: 0 6px;
  }

  .gmc-card-info h3 {
    font-size: 14px;
    white-space: normal;
  }

  .gmc-stack-card.is-center .gmc-card-info h3 {
    font-size: 16.5px;
  }

  .gmc-stack-card:not(.is-center) .gmc-card-info {
    opacity: 0.35;
  }

  .gmc-stack-card:not(.is-center) .gmc-card-info h3 {
    font-size: 13px;
  }

  .gmc-stack-card.is-left {
    opacity: 0.35;
    transform: translateX(-38%) scale(0.8);
    filter: blur(3px);
  }

  .gmc-stack-card.is-right {
    opacity: 0.35;
    transform: translateX(38%) scale(0.8);
    filter: blur(3px);
  }

  .gmc-stack-card.is-far-left,
  .gmc-stack-card.is-far-right {
    opacity: 0;
  }

  .gmc-stack-nav {
    display: none;
  }
}
