/* 
   Sleek Overlay Modal & 3D Tilted Card - Workforce Hero Integration CSS V1
*/

/* Modal Overlay Container */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, 0.55);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              backdrop-filter 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 1rem;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* Modal Content Card Wrapper */
.modal-card-container {
  width: 100%;
  max-width: 900px;
  transform: translateY(60px) scale(0.8);
  opacity: 0;
  transition: transform 0.65s cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.modal-overlay.active .modal-card-container {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* Close Button Icon */
.modal-close-trigger {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 24px;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  z-index: 1110;
  background: transparent;
  border: 0;
  line-height: 1;
  transition: color 0.25s, transform 0.25s;
}

.modal-close-trigger:hover {
  color: #ffffff;
  transform: scale(1.1);
}

/* Blur backdrop background lock */
body.modal-open {
  overflow: hidden;
}

/* --- 3D TILTED CARD SHOWCASE SYSTEM --- */
.tilt-perspective {
  perspective: 1500px;
  width: 100%;
  max-width: 400px; /* Aligned with workforce console visual sizing */
  margin-left: auto;
}

.tilt-card {
  position: relative;
  width: 100%;
  aspect-ratio: 1.15;
  background: linear-gradient(135deg, rgba(8, 12, 24, 0.94), rgba(4, 6, 12, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 29px;
  padding: 30px;
  transform-style: preserve-3d;
  transform: rotateX(8deg) rotateY(-18deg); /* Default Rest position */
  transition: transform 0.15s ease-out, border-color 0.3s, box-shadow 0.3s;
  box-shadow: -25px 35px 70px rgba(0, 0, 0, 0.75), 
              0 0 50px rgba(167, 139, 250, 0.02);
  cursor: pointer;
  overflow: hidden;
}

.tilt-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.8;
  pointer-events: none;
  z-index: 1;
}

.tilt-card:hover {
  border-color: rgba(167, 139, 250, 0.35); /* Purple accent */
  box-shadow: -35px 50px 90px rgba(0, 0, 0, 0.85), 
              0 0 60px rgba(167, 139, 250, 0.08);
}

/* Parallax depth layers */
.tilt-depth-bg {
  transform: translateZ(15px);
  transform-style: preserve-3d;
}

.tilt-depth-mid {
  transform: translateZ(50px);
  transform-style: preserve-3d;
}

.tilt-depth-front {
  transform: translateZ(90px);
  transform-style: preserve-3d;
}

/* Glare shine effect */
.tilt-card-glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, transparent 35%, rgba(255, 255, 255, 0.22) 50%, transparent 65%);
  opacity: 0;
  mix-blend-mode: overlay;
  z-index: 10;
  transition: opacity 0.3s;
  background-size: 300% 300%;
  background-position: var(--glare-x, 50%) var(--glare-y, 50%);
}

.tilt-card:hover .tilt-card-glare {
  opacity: 1;
}

/* High Fidelity Mock UI Elements */
.mock-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 12px;
  margin-bottom: 24px;
}

.mock-window-dots {
  display: flex;
  gap: 5px;
}

.mock-window-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}

.mock-window-dots i:first-child {
  background: #a78bfa;
  box-shadow: 0 0 8px #a78bfa;
}

.mock-indicator-led {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 8px;
  font-family: monospace;
  letter-spacing: 0.1em;
}

.mock-led-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  animation: mock-blink 2s infinite;
}

@keyframes mock-blink {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* Layout blocks */
.mock-control-row {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.mock-select-btn {
  flex: 1;
  height: 24px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.012);
  border: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  transition: all 0.25s;
}

.mock-select-btn.active {
  background: rgba(167, 139, 250, 0.03);
  border-color: rgba(167, 139, 250, 0.2);
  color: #a78bfa;
  box-shadow: 0 0 10px rgba(167, 139, 250, 0.05);
}

/* Mini SVG Graph - Hover Micro-Animation Flowing Path */
.mock-graph-svg {
  width: 100%;
  height: 100%;
  stroke: rgba(167, 139, 250, 0.3);
  stroke-width: 1.5;
  fill: none;
}

.mock-graph-svg .mock-graph-path {
  transition: stroke 0.3s, stroke-width 0.3s, filter 0.3s;
}

.tilt-card:hover .mock-graph-svg .mock-graph-path {
  stroke: #a78bfa;
  stroke-width: 1.8px;
  filter: drop-shadow(0 0 5px #a78bfa);
  animation: flow-graph-pulse-purple 2s ease-in-out infinite;
}

@keyframes flow-graph-pulse-purple {
  0%, 100% { stroke: #a78bfa; filter: drop-shadow(0 0 5px #a78bfa); }
  50% { stroke: rgba(167, 139, 250, 0.5); filter: drop-shadow(0 0 2px rgba(167, 139, 250, 0.2)); }
}

/* Circular SVG Gauge */
.mock-circle-gauge {
  position: relative;
  width: 82px;
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.tilt-card:hover .mock-circle-gauge {
  transform: scale(1.05);
}

.mock-gauge-svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}

.mock-gauge-bg {
  stroke: rgba(255, 255, 255, 0.03);
  stroke-width: 4;
  fill: none;
}

.mock-gauge-fill {
  stroke-width: 4;
  fill: none;
  stroke-dasharray: 126; /* Circumference = 2 * PI * r = 2 * 3.14 * 20 = 125.66 */
  stroke-dashoffset: 31.5; /* 75% static fill: 126 - (126 * 0.75) = 31.5 */
  transition: stroke-dashoffset 0.4s ease, stroke 0.3s, filter 0.3s;
}

.tilt-card:hover .mock-gauge-fill {
  filter: drop-shadow(0 0 5px #a78bfa);
}

.mock-gauge-val-label {
  position: absolute;
  font-size: 8.5px;
  font-weight: 700;
  font-family: monospace;
  transition: color 0.3s, text-shadow 0.3s;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.tilt-card:hover .mock-gauge-val-label {
  text-shadow: 0 0 6px rgba(167, 139, 250, 0.6);
}

/* Floating Pulsing Trigger indicator */
.tilt-pulse-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  animation: pulse-ring-purple 1.5s infinite;
}

@keyframes pulse-ring-purple {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 10px #a78bfa; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

/* --- HERO ASSET CYCLE SYSTEM --- */
.hero-cycle-wrapper {
  position: relative;
  min-height: 400px;
  width: 100%;
}

.hero-cycle-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  pointer-events: none;
  transform: scale(0.96);
  z-index: 1;
}

.hero-cycle-item.active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
  z-index: 10;
}
