/* ================================================================
   HIVIEN – Additional Animations & Polish
================================================================ */

/* ---- RING GRADIENT SUPPORT ---- */
.result-ring svg defs linearGradient stop { stop-color: var(--cyan); }

/* nav-cta hover handled in style.css */

/* ---- CURSOR SPOTLIGHT ---- */
.cursor-spotlight {
  position: fixed; pointer-events: none; z-index: 0;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(0,212,255,0.04) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: transform 0.15s linear;
  border-radius: 50%;
}

/* ---- ANIMATED NUMBER PILL ---- */
.animated-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(0,212,255,0.08);
  border: 1px solid rgba(0,212,255,0.2);
  border-radius: 8px; padding: 4px 12px;
  font-size: 12px; font-weight: 600; color: var(--cyan);
}

/* ---- GLITCH EFFECT (optional for hero title) ---- */
@keyframes glitch {
  0% { clip-path: inset(40% 0 61% 0); transform: translate(-2px); }
  20% { clip-path: inset(92% 0 1% 0); transform: translate(2px); }
  40% { clip-path: inset(43% 0 1% 0); transform: translate(-2px); }
  60% { clip-path: inset(25% 0 58% 0); transform: translate(2px); }
  80% { clip-path: inset(54% 0 7% 0); transform: translate(-2px); }
  100% { clip-path: inset(58% 0 43% 0); transform: translate(0); }
}

/* ---- SHIMMER EFFECT ---- */
.shimmer {
  position: relative; overflow: hidden;
}
.shimmer::after {
  content: '';
  position: absolute; top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
  animation: shimmerAnim 3s ease-in-out infinite;
}
@keyframes shimmerAnim {
  0% { left: -100%; }
  100% { left: 200%; }
}

/* ---- BORDER GLOW PULSE ---- */
.glow-pulse {
  animation: borderGlow 3s ease-in-out infinite;
}
@keyframes borderGlow {
  0%, 100% { box-shadow: 0 0 0 rgba(0,212,255,0); border-color: rgba(0,212,255,0.2); }
  50% { box-shadow: 0 0 30px rgba(0,212,255,0.15); border-color: rgba(0,212,255,0.5); }
}

/* ---- FLOATING LABELS ---- */
.form-group { position: relative; }
.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label {
  transform: translateY(-28px) scale(0.85);
  color: var(--cyan);
}

/* ---- SCROLL INDICATOR ---- */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 3px; z-index: 9999;
  background: linear-gradient(90deg, var(--cyan), var(--cyan-dim), #a78bfa);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.1s linear;
}

/* ---- PARTICLE TRAILS ---- */
@keyframes particleFade {
  0% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(0); }
}

/* ---- SERVICE CARD ANIMATED BORDER ---- */
.service-card.featured::after {
  content: '';
  position: absolute; inset: -1px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-dim), transparent, var(--cyan));
  background-size: 300% 300%;
  animation: gradientBorder 4s ease-in-out infinite;
  z-index: -1;
  opacity: 0.5;
}
@keyframes gradientBorder {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ---- CHAT TYPING INDICATOR ---- */
.typing-indicator {
  display: flex; align-items: center; gap: 4px; padding: 4px 0;
}
.typing-indicator span {
  width: 6px; height: 6px; background: var(--cyan);
  border-radius: 50%; opacity: 0.6;
  animation: typing 1.4s ease-in-out infinite;
}
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

/* ---- RESULT RING GRADIENT ---- */
.ring-fill {
  stroke: var(--cyan);
  filter: drop-shadow(0 0 6px rgba(0,212,255,0.5));
}

/* ---- ENHANCED BUTTONS ---- */
.btn-primary::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
  border-radius: inherit;
  opacity: 0; transition: opacity 0.3s;
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary { position: relative; }

/* ---- HERO TITLE ACCENT LINE ---- */
.hero-title-underline {
  display: block;
  width: 80px; height: 4px;
  background: linear-gradient(90deg, var(--cyan), var(--cyan-dim));
  border-radius: 2px; margin: 16px auto;
}
