/* ═══════════════════════════════════════════════════════════════════
   VORTEXSOFT INNOVATIONS — ADVANCED EXTENSIONS & PLUGINS STYLES
   - Scroll Progress Indicator
   - Command Palette Search (Ctrl+K / ⌘K)
   - Live Social Proof Toast Widget
   - 1-Click Social Share & Tooltip Feedback
   ═══════════════════════════════════════════════════════════════════ */

/* ── 1. Top Scroll Reading Progress Bar ────────────────────────── */
#vortexScrollProgress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3.5px;
  background: linear-gradient(90deg, #1C2280 0%, #5BA8D4 40%, #CC2228 100%);
  z-index: 100000;
  width: 0%;
  transition: width 0.1s ease-out;
  box-shadow: 0 1px 6px rgba(28, 34, 128, 0.4);
}

/* ── 2. Command Palette (Ctrl+K / ⌘K Spotlight Search) ────────── */
#vortexCommandPalette {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(8, 11, 26, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 999999;
  align-items: flex-start;
  justify-content: center;
  padding: 80px 20px 20px;
  animation: vcpFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
#vortexCommandPalette.active {
  display: flex;
}
@keyframes vcpFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.vcp-modal {
  width: 100%;
  max-width: 640px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(28, 34, 128, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: vcpSlideDown 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 80vh;
}
@keyframes vcpSlideDown {
  from { opacity: 0; transform: translateY(-16px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.vcp-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  border-bottom: 1.5px solid #eef2ff;
  background: #ffffff;
}
.vcp-search-icon {
  font-size: 18px;
  color: #1C2280;
}
.vcp-input {
  flex: 1;
  border: none;
  outline: none;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #0F172A;
  background: transparent;
}
.vcp-input::placeholder {
  color: #94a3b8;
}
.vcp-badge-esc {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  user-select: none;
}

.vcp-body {
  overflow-y: auto;
  padding: 12px;
  max-height: calc(80vh - 120px);
}
.vcp-category-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #64748b;
  padding: 8px 12px 4px;
  margin-top: 6px;
}
.vcp-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 12px;
  color: #1e293b;
  text-decoration: none;
  transition: all 0.15s ease;
  cursor: pointer;
}
.vcp-item:hover, .vcp-item.selected {
  background: #f0f4ff;
  color: #1C2280;
  transform: translateX(3px);
}
.vcp-item-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #eef2ff;
  color: #1C2280;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  transition: all 0.15s ease;
}
.vcp-item:hover .vcp-item-icon, .vcp-item.selected .vcp-item-icon {
  background: #1C2280;
  color: #ffffff;
}
.vcp-item-info {
  flex: 1;
  min-width: 0;
}
.vcp-item-title {
  font-size: 14px;
  font-weight: 700;
  color: inherit;
  line-height: 1.3;
}
.vcp-item-desc {
  font-size: 12px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}
.vcp-item-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  background: #e2e8f0;
  color: #475569;
}
.vcp-item:hover .vcp-item-badge {
  background: rgba(28, 34, 128, 0.15);
  color: #1C2280;
}

.vcp-footer {
  padding: 12px 20px;
  background: #f8fafc;
  border-top: 1px solid #eef2ff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #64748b;
}
.vcp-footer-keys {
  display: flex;
  gap: 12px;
}
.vcp-footer-keys span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.vcp-key {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 10px;
  font-weight: 700;
  color: #475569;
}

/* ── 3. Live Social Proof Toast Widget (Disabled from bottom-left) ── */
#vortexSocialProofToast {
  display: none !important;
  position: fixed;
  bottom: 24px;
  left: 24px;
  max-width: 380px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 14px 40px rgba(8, 11, 26, 0.18), 0 0 0 1px rgba(28, 34, 128, 0.08);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 1035;
  transform: translateY(120px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
}
#vortexSocialProofToast.show {
  transform: translateY(0);
  opacity: 1;
}
.spt-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1C2280 0%, #2D35C4 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(28, 34, 128, 0.25);
}
.spt-content {
  flex: 1;
  min-width: 0;
}
.spt-title {
  font-size: 13px;
  font-weight: 700;
  color: #0F172A;
  line-height: 1.35;
  margin-bottom: 2px;
}
.spt-meta {
  font-size: 11.5px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 6px;
}
.spt-verified {
  color: #10b981;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.spt-close {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 16px;
  cursor: pointer;
  padding: 2px 4px;
  line-height: 1;
  transition: color 0.15s;
}
.spt-close:hover {
  color: #0F172A;
}

@media (max-width: 767px) {
  #vortexSocialProofToast {
    left: 12px;
    right: 12px;
    bottom: 84px;
    max-width: calc(100vw - 24px);
  }
}

/* ── 4. Floating Share & Copy Link Feedback ───────────────────── */
.vortex-copied-toast {
  position: fixed;
  top: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: #0F172A;
  color: #ffffff;
  padding: 10px 22px;
  border-radius: 30px;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  z-index: 1000000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 8px;
}
.vortex-copied-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Navbar search trigger button */
.nav-search-trigger {
  background: rgba(28, 34, 128, 0.06);
  border: 1px solid rgba(28, 34, 128, 0.12);
  border-radius: 8px;
  padding: 7px 12px;
  color: #1C2280;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-left: 8px;
}
.nav-search-trigger:hover {
  background: #1C2280;
  color: #ffffff;
  border-color: #1C2280;
  box-shadow: 0 4px 12px rgba(28, 34, 128, 0.2);
}
.nav-search-trigger .search-kbd {
  background: rgba(0, 0, 0, 0.06);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 10.5px;
  font-weight: 700;
}
.nav-search-trigger:hover .search-kbd {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

/* ═══════════════════════════════════════════════════════════════════
   5. AWARD-WINNING MOTION DESIGN (Linear / Stripe / Framer Showcase)
   ═══════════════════════════════════════════════════════════════════ */

/* ── 3D Card Tilt & Dynamic Specular Glare ─────────────────────── */
.motion-tilt, .service-card, .contact-card, .faq-item, .platform-card {
  transform-style: preserve-3d;
  perspective: 1000px;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
  will-change: transform;
  position: relative;
}
.motion-glare-overlay {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle 320px at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.18) 0%, transparent 65%);
  transition: opacity 0.25s ease;
  z-index: 4;
}
.motion-tilt:hover .motion-glare-overlay,
.service-card:hover .motion-glare-overlay,
.platform-card:hover .motion-glare-overlay {
  opacity: 1;
}

/* ── Ambient Spotlight Dark Mesh (Linear Dark Glow) ───────────── */
.spotlight-dark-mesh {
  position: relative;
  overflow: hidden;
}
.spotlight-dark-mesh::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(650px circle at var(--spot-x, 50%) var(--spot-y, 50%), rgba(91, 168, 212, 0.15) 0%, rgba(204, 34, 40, 0.06) 40%, transparent 70%);
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 1;
}
.spotlight-dark-mesh:hover::before {
  opacity: 1;
}

/* ── Kinetic Float & Harmonic Bobbing ─────────────────────────── */
@keyframes motionFloatSoft {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-7px) rotate(0.6deg); }
}
.motion-float {
  animation: motionFloatSoft 4.5s ease-in-out infinite;
  will-change: transform;
}

/* ── Shimmer Border Pulse (Stripe CTA) ─────────────────────────── */
.btn-shimmer {
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.btn-shimmer::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg at 50% 50%, transparent 0deg, rgba(255, 255, 255, 0.3) 45deg, transparent 90deg);
  animation: shimmerRotate 3.5s linear infinite;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: -1;
}
.btn-shimmer:hover::after {
  opacity: 1;
}
@keyframes shimmerRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
