/* ==========================================================================
   3D CINEMATIC SERVICES SHOWCASE
   ========================================================================== */

.services-showcase {
  background: var(--bg);
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  z-index: 10;
}

/* --- Background Cinematic Elements --- */
.services-showcase__background {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.services-showcase__bg-typography {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(120px, 25vw, 380px);
  font-weight: 900;
  color: rgba(255, 255, 255, 0.015);
  letter-spacing: 15px;
  white-space: nowrap;
  user-select: none;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.services-showcase__bg-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80vw;
  height: 80vh;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(232, 168, 84, 0.035) 0%, transparent 60%);
}

/* --- Layout --- */
.services-showcase__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: center;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

.services-showcase__header {
  position: relative;
  z-index: 10;
  text-align: left;
}

.services-showcase__header .section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.services-showcase__header .section-kicker::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--gold);
}

.services-showcase__header .section-title {
  font-size: clamp(32px, 5vw, 60px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -1.5px;
  color: var(--text);
  margin: 0 0 16px;
}

.gold-text, .text-gold {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.services-showcase__header .section-desc {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 500px;
  margin: 0;
}

/* --- 3D Stage --- */
.services-showcase__stage {
  position: relative;
  height: 700px;
  width: 100%;
  perspective: 2000px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.services-showcase__cards {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Cards (Flip Structure) --- */
.sc-card {
  position: absolute;
  width: clamp(280px, min(30vw, 50vh), 420px);
  height: clamp(400px, min(43vw, 72vh), 600px);
  cursor: pointer;
  perspective: 2000px; /* Perspective for the flip itself */
  will-change: transform, filter, opacity;
}

.sc-card__inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-style: preserve-3d;
}

.sc-card.is-flipped .sc-card__inner {
  transform: rotateY(180deg);
}

.sc-card__front,
.sc-card__back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 24px;
  background: var(--bg2);
  border: 1px solid var(--border);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.sc-card.is-active .sc-card__front,
.sc-card.is-active .sc-card__back {
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25), inset 0 0 0 1.5px rgba(232, 168, 84, 0.4);
}

/* Front Face */
.sc-card__front {
  display: flex;
  flex-direction: column;
  container-type: inline-size;
}

.sc-card__visual {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, var(--card), transparent 70%);
  position: relative;
  overflow: hidden;
}

.sc-card__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.sc-card:hover .sc-card__visual img {
  transform: scale(1.05) translateY(-5px);
}

.sc-card__front-content {
  padding: 32px;
  background: linear-gradient(to top, var(--bg2) 10%, transparent 100%);
  transition: opacity 0.5s ease;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.sc-card__title-front {
  font-size: clamp(22px, 7cqi, 28px);
  font-weight: 900;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 8px;
  text-wrap: balance;
}

.sc-card__flip-hint {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--muted);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* Back Face */
.sc-card__back {
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  padding: 40px 32px;
}

.sc-card__kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}

.sc-card__title {
  font-size: 28px;
  font-weight: 900;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 16px;
}

.sc-card__desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: auto;
}

.sc-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-decoration: none;
  margin-top: 24px;
}
.sc-card__btn svg {
  width: 14px; height: 14px;
  transition: transform 0.3s ease;
}
.sc-card__btn:hover svg {
  transform: translateX(4px);
}

/* --- Controls / Timeline --- */
.services-showcase__controls {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 20;
}

.sc-timeline-fill {
  height: 100%;
  width: 0%;
  background: var(--gold-grad);
  box-shadow: 0 0 10px rgba(232, 168, 84, 0.5);
  transition: width 0.1s linear;
}

/* --- Responsive --- */
@media(max-width: 1024px) {
  .sc-card {
    width: clamp(280px, 40vw, 320px);
    height: clamp(400px, 57vw, 480px);
  }
}

@media(max-width: 900px) {
  .services-showcase__inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 100px 24px 60px;
  }
  .services-showcase__header {
    text-align: center;
  }
  .services-showcase__stage {
    height: 520px;
    perspective: 1000px;
  }
  .sc-card {
    width: clamp(280px, 85vw, 360px);
    height: clamp(400px, 120vw, 480px);
  }
  .services-showcase__controls {
    bottom: -20px;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .sc-card, .services-showcase__bg-typography {
    transition: opacity 0.5s ease !important;
  }
  .sc-card__inner {
    transition: none !important;
  }
}
