/* 
   Sleek Overlay Modal & 3D Tilted Card - Response Recovery Hero Integration CSS
*/

/* 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: 100;
  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 - POP OPEN Spring Animation */
.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: 110;
  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: 480px;
  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 slight tilt 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(0, 229, 255, 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(0, 229, 255, 0.35); /* Cyan accent */
  box-shadow: -35px 50px 90px rgba(0, 0, 0, 0.85), 
              0 0 60px rgba(0, 229, 255, 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.32) 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-indicator-led {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 8px;
  font-family: monospace;
  letter-spacing: 0.1em;
  color: #00e5ff;
}

.mock-led-dot {
  width: 5px;
  height: 5px;
  background: #00e5ff;
  border-radius: 50%;
  box-shadow: 0 0 8px #00e5ff;
  animation: mock-blink 2s infinite;
}

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

.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: #00e5ff;
  box-shadow: 0 0 8px #00e5ff;
}

/* 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(0, 229, 255, 0.03);
  border-color: rgba(0, 229, 255, 0.2);
  color: #00e5ff;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.05);
}

/* Mini SVG Graph - Hover Micro-Animation Flowing Path */
.mock-graph-svg {
  width: 100%;
  height: 100%;
  stroke: rgba(0, 229, 255, 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: #00e5ff;
  stroke-width: 1.8px;
  filter: drop-shadow(0 0 5px #00e5ff);
  animation: flow-graph-pulse 2s ease-in-out infinite;
}

@keyframes flow-graph-pulse {
  0%, 100% { stroke: #00e5ff; filter: drop-shadow(0 0 5px #00e5ff); }
  50% { stroke: rgba(0, 229, 255, 0.5); filter: drop-shadow(0 0 2px rgba(0, 229, 255, 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: #00e5ff;
  stroke-width: 4;
  fill: none;
  stroke-dasharray: 220;
  stroke-dashoffset: 55; /* 75% static fill */
  transition: stroke-dashoffset 0.4s ease, stroke 0.3s, filter 0.3s;
}

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

.mock-gauge-val-label {
  position: absolute;
  font-size: 8.5px;
  font-weight: 700;
  color: #00e5ff;
  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 {
  color: #00e5ff;
  text-shadow: 0 0 6px rgba(0, 229, 255, 0.6);
}

/* Floating Pulsing Trigger indicator */
.tilt-pulse-dot {
  width: 5px;
  height: 5px;
  background: #00e5ff;
  border-radius: 50%;
  box-shadow: 0 0 8px #00e5ff;
  animation: pulse-ring-cyan 1.5s infinite;
}

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

/* Tone down the active tab button style (no full solid cyan) */
.mcc-tab-btn.active {
  background: rgba(0, 229, 255, 0.08) !important;
  color: #00e5ff !important;
  box-shadow: inset 0 0 8px rgba(0, 229, 255, 0.05) !important;
}
