/* ==========================================================================
   3D FAN CAROUSEL — Rs Associates Process Cards
   ========================================================================== */

/* ---- Section ---- */
.process-section {
  position: relative;
  background: #f8fafc;
  padding: 100px 0 90px;
  overflow: hidden;
}

/* Large Rs logo watermark in background */
.process-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 700px;
  background-image: url('images/logo.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.04;
  pointer-events: none;
  z-index: 0;
}

/* Subtle top border accent */
.process-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, #0D6BA3 30%, #3FA8DC 70%, transparent);
  pointer-events: none;
}

/* ---- Heading ---- */
.process-header {
  text-align: center;
  margin-bottom: 56px;
  position: relative;
  z-index: 2;
}

.process-header .section-label {
  display: inline-block;
  color: #0D6BA3;
  border-color: rgba(13, 107, 163, 0.3);
  background: rgba(13, 107, 163, 0.07);
}

.process-header h2 {
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: clamp(26px, 3.5vw, 44px);
  font-weight: 900;
  color: #0A2438;
  margin-top: 12px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.process-header p {
  color: #475569;
  font-size: 16px;
  font-weight: 500;
  max-width: 620px;
  margin: 14px auto 0;
  line-height: 1.6;
}

/* ---- 3D Stage ---- */
.process-3d-stage {
  position: relative;
  width: 100%;
  height: 480px;
  perspective: 1400px;
  perspective-origin: 50% 50%;
  z-index: 2;
  overflow: visible;
}

/* ---- Individual card ---- */
.pc3-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 320px;
  height: 420px;
  transform-style: preserve-3d;
  transform-origin: center center;
  cursor: pointer;
  user-select: none;
  will-change: transform, opacity;
  transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.3s ease;
}

.pc3-card-inner {
  width: 100%;
  height: 100%;
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid rgba(10, 77, 120, 0.12);
  border-top: 4px solid #0D6BA3;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s ease, border-top-color 0.3s ease;
  transform-style: preserve-3d;
}

/* Active center card highlight */
.pc3-card.is-center .pc3-card-inner {
  border-top-color: #3FA8DC;
  box-shadow: 0 20px 60px rgba(13, 107, 163, 0.2), 0 4px 16px rgba(0,0,0,0.1);
}

.pc3-card.is-center:hover .pc3-card-inner {
  box-shadow: 0 28px 70px rgba(13, 107, 163, 0.28), 0 6px 20px rgba(0,0,0,0.12);
}

/* ---- Card image area ---- */
.pc3-image {
  position: relative;
  height: 180px;
  flex-shrink: 0;
  overflow: hidden;
  background: #0A2438;
}

.pc3-image img.pc3-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
  opacity: 0.92;
}

.pc3-card.is-center .pc3-image img.pc3-photo {
  opacity: 1;
}

.pc3-card:hover .pc3-image img.pc3-photo {
  transform: scale(1.06);
}

/* Rs logo watermark in each image */
.pc3-logo-wm {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  opacity: 0.5;
  filter: brightness(10) drop-shadow(0 1px 3px rgba(0,0,0,0.5));
  border-radius: 50%;
  pointer-events: none;
}

/* Step badge */
.pc3-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(10, 36, 56, 0.9);
  backdrop-filter: blur(6px);
  color: #ffffff;
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid rgba(63, 168, 220, 0.4);
  letter-spacing: 0.07em;
  z-index: 2;
}

.pc3-card.is-center .pc3-badge {
  background: rgba(13, 107, 163, 0.95);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

/* ---- Card body ---- */
.pc3-body {
  padding: 22px 22px 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.pc3-category {
  font-family: var(--font-mono, monospace);
  color: #0D6BA3;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.pc3-title {
  color: #0A2438;
  font-family: var(--font-display, sans-serif);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 10px;
}

.pc3-desc {
  color: #64748b;
  font-size: 13px;
  line-height: 1.6;
  font-weight: 500;
  flex-grow: 1;
}

.pc3-footer {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pc3-line {
  width: 24px;
  height: 2px;
  background: #0D6BA3;
  border-radius: 2px;
  transition: width 0.4s ease;
}

.pc3-card:hover .pc3-line,
.pc3-card.is-center .pc3-line {
  width: 40px;
}

.pc3-step-lbl {
  font-family: var(--font-mono, monospace);
  color: #94a3b8;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

/* "Click to expand" hint — only on center */
.pc3-click-hint {
  position: absolute;
  bottom: -32px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  color: #0D6BA3;
  font-weight: 700;
  letter-spacing: 0.1em;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.pc3-card.is-center .pc3-click-hint {
  opacity: 0.7;
}

/* ---- Navigation controls ---- */
.process-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 50px;
  position: relative;
  z-index: 10;
}

.process-nav-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid rgba(13, 107, 163, 0.3);
  background: #ffffff;
  color: #0D6BA3;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  flex-shrink: 0;
}

.process-nav-btn:hover {
  background: #0D6BA3;
  color: #ffffff;
  border-color: #0D6BA3;
  box-shadow: 0 6px 20px rgba(13, 107, 163, 0.3);
  transform: scale(1.08);
}

.process-nav-btn:active {
  transform: scale(0.96);
}

/* Dot indicators */
.process-dots {
  display: flex;
  gap: 7px;
  align-items: center;
}

.process-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(13, 107, 163, 0.18);
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.process-dot.is-active {
  background: #0D6BA3;
  transform: scale(1.45);
  box-shadow: 0 0 8px rgba(13, 107, 163, 0.5);
}

/* Progress bar */
.process-progress-bar {
  width: 160px;
  height: 3px;
  background: rgba(13, 107, 163, 0.12);
  border-radius: 3px;
  overflow: hidden;
}

.process-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #0D6BA3, #3FA8DC);
  border-radius: 3px;
  transition: width 0.55s ease;
}

/* CTA button row */
.process-explore-btn {
  text-align: center;
  margin-top: 50px;
}

/* ================================================================
   DETAIL MODAL
   ================================================================ */

.pc3-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 15, 30, 0.72);
  backdrop-filter: blur(6px);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.pc3-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.pc3-modal {
  background: #ffffff;
  border-radius: 18px;
  width: 100%;
  max-width: 640px;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 30px 80px rgba(0,0,0,0.3), 0 0 0 1px rgba(13,107,163,0.1);
  transform: translateY(30px) scale(0.97);
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  border-top: 5px solid #0D6BA3;
}

.pc3-modal-overlay.is-open .pc3-modal {
  transform: translateY(0) scale(1);
}

.pc3-modal-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.pc3-modal-body {
  padding: 32px 36px 36px;
}

.pc3-modal-step {
  font-family: var(--font-mono, monospace);
  color: #0D6BA3;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.pc3-modal-title {
  font-family: var(--font-display, sans-serif);
  color: #0A2438;
  font-size: 26px;
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 16px;
}

.pc3-modal-desc {
  color: #475569;
  font-size: 16px;
  line-height: 1.7;
  font-weight: 500;
}

.pc3-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(10, 36, 56, 0.08);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #0A2438;
  transition: background 0.2s ease, transform 0.2s ease;
}

.pc3-modal-close:hover {
  background: rgba(13, 107, 163, 0.12);
  transform: rotate(90deg);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .process-section {
    padding: 70px 0 60px;
  }
  .process-3d-stage {
    height: 420px;
  }
  .pc3-card {
    width: 270px;
    height: 380px;
  }
  .pc3-image {
    height: 150px;
  }
  .pc3-title {
    font-size: 15px;
  }
  .pc3-modal-body {
    padding: 24px 22px 28px;
  }
  .pc3-modal-title {
    font-size: 22px;
  }
}
