/* ==========================================================================
   EVIDR PREMIUM MOTION & DESIGN SYSTEM TIGHTENING
   Engineered Minimalism · Deep Navy #0A0E23 · Electric Blue #3B82F6 · Off-White #F8FAFC
   ========================================================================== */

/* ─── Hardware Acceleration & Smoothing ─── */
html {
  scroll-behavior: auto !important; /* Lenis handles smooth scrolling */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ─── Spotlight Card (React Bits Specular Card) ─── */
.ev-spotlight,
[data-spotlight] {
  position: relative !important;
  overflow: hidden !important;
  isolation: isolate;
}

.ev-spotlight::before,
[data-spotlight]::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    600px circle at var(--spot-x, 50%) var(--spot-y, 50%),
    rgba(47, 107, 255, 0.12),
    transparent 65%
  );
  transition: opacity 320ms cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}

.ev-spotlight:hover::before,
[data-spotlight]:hover::before {
  opacity: 1;
}

/* ─── Shiny / Shimmer Text for English Display Words & Badges ─── */
.ev-shiny-text {
  background: linear-gradient(
    115deg,
    currentColor 0%,
    currentColor 38%,
    rgba(255, 255, 255, 0.95) 50%,
    currentColor 62%,
    currentColor 100%
  );
  background-size: 250% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: ev-shimmer 6.5s ease-in-out infinite;
}

@keyframes ev-shimmer {
  0%, 55% { background-position: 250% 0; }
  100% { background-position: -250% 0; }
}

/* ─── Magnetic Element Support ─── */
[data-magnetic] {
  display: inline-flex;
  will-change: transform;
  transform-style: preserve-3d;
}

/* ─── Refined Ambient Occlusion Shadows ─── */
.ev-card-ambient {
  box-shadow:
    0 1px 2px 0 rgba(11, 17, 40, 0.04),
    0 12px 28px -10px rgba(11, 17, 40, 0.08),
    0 24px 48px -18px rgba(11, 17, 40, 0.12) !important;
}

.ev-card-ambient:hover {
  box-shadow:
    0 1px 2px 0 rgba(47, 107, 255, 0.06),
    0 16px 36px -10px rgba(47, 107, 255, 0.16),
    0 32px 64px -20px rgba(47, 107, 255, 0.22) !important;
}

/* ─── Refined Pill & Border Hairlines ─── */
.ev-hairline {
  border: 1px solid rgba(11, 17, 40, 0.08) !important;
}

html[data-theme="dark"] .ev-hairline {
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* ─── Smooth Micro-interactions ─── */
.ev-interactive-link {
  transition: color 240ms cubic-bezier(0.16, 1, 0.3, 1), transform 240ms cubic-bezier(0.16, 1, 0.3, 1);
}
.ev-interactive-link:hover {
  transform: translateY(-1px);
}

/* ─── Stagger Reveal Initial States ─── */
.ev-motion-ready [data-ev-reveal] {
  opacity: 0;
  transform: translateY(24px);
  will-change: opacity, transform;
}

/* ─── Accessibility & Reduced Motion ─── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .ev-motion-ready [data-ev-reveal],
  [data-ev-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
  .ev-shiny-text {
    animation: none !important;
    background: none !important;
    -webkit-text-fill-color: currentColor !important;
  }
}
