/* ══════════════════════════════════════════════════
   FINANTIX CRMs — Animations & Extra Styles
   ══════════════════════════════════════════════════ */

/* ─── Glowing borders on featured card ─────────── */
@keyframes borderGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(0,230,118,0.15); }
  50% { box-shadow: 0 0 40px rgba(0,230,118,0.3), 0 0 60px rgba(41,121,255,0.15); }
}
.platform-featured {
  animation: borderGlow 4s ease-in-out infinite;
}

/* ─── Ticker pause on hover ─────────────────────── */
.ticker-wrap:hover .ticker-track {
  animation-play-state: paused;
}

/* ─── Custom scrollbar ──────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: rgba(41,121,255,0.4); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(41,121,255,0.7); }

/* ─── Selection color ───────────────────────────── */
::selection { background: rgba(41,121,255,0.35); color: #fff; }

/* ─── Platform card entry animations ───────────── */
@keyframes slideIn {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Navbar active link indicator ─────────────── */
.nav-link.active {
  position: relative;
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 50%;
  transform: translateX(-50%);
  width: 14px; height: 2px;
  background: var(--accent-green);
  border-radius: 2px;
}

/* ─── Sparkline hover effect ────────────────────── */
.cp-asset:hover .cp-sparkline svg polyline {
  stroke-width: 2.5;
  filter: drop-shadow(0 0 4px currentColor);
}

/* ─── Floating action hint on hero ─────────────── */
@keyframes arrowBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}
.hero-scroll { animation: arrowBounce 2s ease-in-out infinite; }

/* ─── Button ripple effect ──────────────────────── */
.btn { position: relative; overflow: hidden; }
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background 0.3s;
}
.btn:active::after { background: rgba(255,255,255,0.1); }

/* ─── Smooth form transitions ───────────────────── */
.form-group input,
.form-group select,
.form-group textarea {
  caret-color: var(--accent-blue);
}
.form-group input:focus ~ .input-highlight,
.form-group select:focus ~ .input-highlight {
  width: 100%;
}

/* ─── Service card icon glow on hover ───────────── */
.service-card:hover .service-icon-green  { box-shadow: 0 0 20px rgba(0,230,118,0.3); }
.service-card:hover .service-icon-blue   { box-shadow: 0 0 20px rgba(41,121,255,0.3); }
.service-card:hover .service-icon-purple { box-shadow: 0 0 20px rgba(124,58,237,0.3); }
.service-card:hover .service-icon-orange { box-shadow: 0 0 20px rgba(255,109,0,0.3); }
.service-card:hover .service-icon-cyan   { box-shadow: 0 0 20px rgba(0,245,255,0.3); }
.service-card:hover .service-icon-pink   { box-shadow: 0 0 20px rgba(236,72,153,0.3); }

/* ─── Mobile nav link transition ────────────────── */
@media (max-width: 768px) {
  .nav-links {
    transition: opacity 0.3s;
    z-index: 999;
  }
  .nav-links:not(.open) {
    opacity: 0;
    pointer-events: none;
  }
  .nav-links.open {
    opacity: 1;
  }
  .hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .hamburger.open span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}

/* ─── Screen body glow ──────────────────────────── */
.platform-screen {
  transition: box-shadow 0.4s, transform 0.4s;
}
.platform-card:hover .platform-screen {
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 40px rgba(41,121,255,0.12);
  transform: translateY(-4px) rotate3d(0,1,0,0deg);
}
