/* =============================================
   DATA PARTNER — Liquid Motion Animations
   Liquid Glass + Motion Effects
   ============================================= */

/* ===== LIQUID BLOB MORPHING (100% GPU Accelerated) ===== */
@keyframes liquidBlob1 {
  0%, 100% { 
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }
  25% { 
    transform: translate3d(30px, -20px, 0) rotate(90deg) scale(1.04);
  }
  50% { 
    transform: translate3d(-15px, 25px, 0) rotate(180deg) scale(0.96);
  }
  75% { 
    transform: translate3d(15px, 10px, 0) rotate(270deg) scale(1.02);
  }
}

@keyframes liquidBlob2 {
  0%, 100% { 
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  33% { 
    transform: translate3d(-35px, 15px, 0) rotate(120deg);
  }
  66% { 
    transform: translate3d(20px, -30px, 0) rotate(240deg);
  }
}

@keyframes liquidBlob3 {
  0%, 100% { 
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% { 
    transform: translate3d(40px, -15px, 0) scale(1.08);
  }
}

/* ===== PAGE TRANSITIONS ===== */
@keyframes pageSlideIn {
  from { 
    opacity: 0; 
    transform: translate3d(0, 12px, 0); 
  }
  to { 
    opacity: 1; 
    transform: translate3d(0, 0, 0); 
  }
}

@keyframes pageSlideOut {
  from { 
    opacity: 1; 
    transform: translate3d(0, 0, 0); 
  }
  to { 
    opacity: 0; 
    transform: translate3d(0, -8px, 0); 
  }
}

/* ===== FADE IN VARIANTS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translate3d(0, 14px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translate3d(0, -14px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translate3d(-14px, 0, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translate3d(14px, 0, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ===== SCALE / ZOOM ===== */
@keyframes scaleIn {
  from { opacity: 0; transform: scale3d(0.96, 0.96, 1); }
  to { opacity: 1; transform: scale3d(1, 1, 1); }
}

@keyframes scaleInBounce {
  0% { opacity: 0; transform: scale3d(0.6, 0.6, 1); }
  60% { opacity: 1; transform: scale3d(1.05, 1.05, 1); }
  80% { transform: scale3d(0.97, 0.97, 1); }
  100% { transform: scale3d(1, 1, 1); }
}

@keyframes liquidZoomIn {
  0% { opacity: 0; transform: scale3d(0.7, 0.7, 1); border-radius: 50%; }
  50% { opacity: 0.8; transform: scale3d(1.02, 1.02, 1); border-radius: 24px; }
  100% { opacity: 1; transform: scale3d(1, 1, 1); border-radius: var(--radius-xl); }
}

/* ===== GLASS RIPPLE ===== */
@keyframes glassRipple {
  0% { 
    transform: translate(-50%, -50%) scale(0); 
    opacity: 0.5;
  }
  100% { 
    transform: translate(-50%, -50%) scale(4); 
    opacity: 0;
  }
}

/* ===== GLOW EFFECTS ===== */
@keyframes pulseGlow {
  0%, 100% { box-shadow: var(--glow-sm); }
  50% { box-shadow: var(--glow-accent); }
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

@keyframes neonFlicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% { 
    text-shadow: 0 0 7px currentColor, 0 0 10px currentColor; 
    opacity: 1;
  }
  20%, 24%, 55% { 
    text-shadow: none;
    opacity: 0.8;
  }
}

@keyframes borderGlow {
  0%, 100% { border-color: var(--glass-border); }
  50% { border-color: var(--glass-border-active); }
}

/* ===== LIQUID GRADIENT BORDER ===== */
@keyframes liquidBorderFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ===== FLOATING / HOVER ===== */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes floatSlow {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  25% { transform: translateY(-8px) rotate(1deg); }
  75% { transform: translateY(4px) rotate(-1deg); }
}

@keyframes hoverLift {
  from { transform: translateY(0); box-shadow: var(--card-shadow); }
  to { transform: translateY(-4px); box-shadow: var(--card-shadow-hover); }
}

/* ===== PARTICLE FLOAT ===== */
@keyframes floatParticle {
  0% { transform: translateY(100vh) scale(0); opacity: 0; }
  10% { opacity: var(--particle-opacity, 1); }
  90% { opacity: var(--particle-opacity, 1); }
  100% { transform: translateY(-20vh) scale(1); opacity: 0; }
}

@keyframes floatParticleHorizontal {
  0% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(30px, -20px) rotate(120deg); }
  66% { transform: translate(-20px, 10px) rotate(240deg); }
  100% { transform: translate(0, 0) rotate(360deg); }
}

/* ===== SHIMMER / LOADING ===== */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes skeletonPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}

/* ===== SPINNER ===== */
@-webkit-keyframes spin {
  0% { -webkit-transform: rotate(0deg); transform: rotate(0deg); }
  100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); }
}
@keyframes spin {
  0% { -webkit-transform: rotate(0deg); transform: rotate(0deg); }
  100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); }
}

/* ===== COUNTER NUMBER ===== */
@keyframes countUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== TOAST ===== */
@keyframes toastSlideIn {
  0% { transform: translate3d(120%, 0, 0); opacity: 0; }
  60% { transform: translate3d(-8px, 0, 0); }
  100% { transform: translate3d(0, 0, 0); opacity: 1; }
}

@keyframes toastSlideOut {
  0% { transform: translate3d(0, 0, 0); opacity: 1; }
  100% { transform: translate3d(120%, 0, 0); opacity: 0; }
}

/* ===== SUB-NAVBAR DROPDOWN ===== */
@keyframes dropdownSlideIn {
  from { 
    opacity: 0; 
    transform: translate3d(0, -8px, 0) scale3d(0.96, 0.96, 1); 
  }
  to { 
    opacity: 1; 
    transform: translate3d(0, 0, 0) scale3d(1, 1, 1); 
  }
}

@keyframes dropdownSlideOut {
  from { opacity: 1; transform: translate3d(0, 0, 0); }
  to { opacity: 0; transform: translate3d(0, -8px, 0); }
}

/* ===== BACKGROUND AURORA ===== */
@keyframes auroraShift {
  0%, 100% { 
    background-position: 0% 50%;
    filter: hue-rotate(0deg);
  }
  25% { background-position: 50% 100%; }
  50% { 
    background-position: 100% 50%;
    filter: hue-rotate(15deg);
  }
  75% { background-position: 50% 0%; }
}

@keyframes bgPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

/* ===== GRID MOVEMENT ===== */
@keyframes gridMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(60px, 60px); }
}

/* ===== STAGGER ENTRANCE ===== */
@keyframes staggerIn {
  from { 
    opacity: 0; 
    transform: translateY(20px) scale(0.95); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0) scale(1); 
  }
}

/* ===== TYPEWRITER ===== */
@keyframes typewriter {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blinkCursor {
  0%, 100% { border-color: transparent; }
  50% { border-color: var(--text-accent); }
}

/* ===== SCROLL REVEAL ===== */
@keyframes scrollReveal {
  from { 
    opacity: 0; 
    transform: translateY(40px) scale(0.96); 
    filter: blur(4px); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0) scale(1); 
    filter: blur(0); 
  }
}

/* ===== TABLE ROW STAGGER ===== */
@keyframes tableRowIn {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ===== THEME TRANSITION ===== */
@keyframes themeFade {
  0% { opacity: 0.7; }
  100% { opacity: 1; }
}

/* ===== LIQUID GLASS REFRACTION ===== */
@keyframes glassRefraction {
  0% { background-position: 0% 0%; }
  100% { background-position: 200% 200%; }
}

/* ===== UTILITY CLASSES ===== */
.animate-fade-up { animation: fadeInUp 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.animate-fade-down { animation: fadeInDown 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.animate-fade-left { animation: fadeInLeft 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.animate-fade-right { animation: fadeInRight 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.animate-scale { animation: scaleIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.animate-scale-bounce { animation: scaleInBounce 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; }
.animate-float { animation: float 3s ease-in-out infinite; }
.animate-float-slow { animation: floatSlow 6s ease-in-out infinite; }
.animate-page-in { animation: pageSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.animate-stagger { animation: staggerIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.animate-glow { animation: pulseGlow 2s ease-in-out infinite; }
.animate-shimmer {
  background: linear-gradient(90deg, transparent 0%, var(--card-shimmer) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }
.delay-7 { animation-delay: 0.7s; }
.delay-8 { animation-delay: 0.8s; }

/* ===== SCROLL REVEAL — Applied by JS ===== */
.scroll-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ===== LIQUID GLASS CARD REFRACTION ===== */
.liquid-glass-refraction {
  position: relative;
  overflow: hidden;
}
.liquid-glass-refraction::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 40%,
    rgba(255, 255, 255, 0.03) 45%,
    rgba(255, 255, 255, 0.05) 50%,
    rgba(255, 255, 255, 0.03) 55%,
    transparent 60%
  );
  animation: glassRefraction 8s linear infinite;
  pointer-events: none;
}

/* ===== ANIMATED GLOWING SCROLLBAR & SCROLL EFFECTS ===== */
@keyframes scrollbarGlowPulse {
  0%, 100% {
    filter: brightness(1) drop-shadow(0 0 4px var(--scrollbar-glow, rgba(0, 245, 255, 0.4)));
  }
  50% {
    filter: brightness(1.25) drop-shadow(0 0 10px var(--scrollbar-glow, rgba(0, 245, 255, 0.8)));
  }
}

.smooth-scroll,
.data-table-wrapper,
.modal-content,
.sub-navbar-inner {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

/* ===== THEME TRANSITION SMOOTH ===== */
.theme-transitioning,
.theme-transitioning *,
.theme-transitioning *::before,
.theme-transitioning *::after {
  transition: background-color 0.5s ease, color 0.3s ease, border-color 0.4s ease, box-shadow 0.4s ease, fill 0.3s ease, stroke 0.3s ease !important;
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *:not(.liquid-jump-logo):not(.splash-logo-img):not(.liquid-jump-shadow):not(.splash-jump-shadow):not(.liquid-jump-ring):not(.splash-pulse-ring):not(.liquid-jump-aura):not(.splash-aura-glow):not(.spinner):not(.btn-loading):not([class*="spinner"]):not(.news-ticker-track):not(.news-ticker-content):not(marquee),
  *:not(.liquid-jump-logo):not(.splash-logo-img):not(.liquid-jump-shadow):not(.splash-jump-shadow):not(.liquid-jump-ring):not(.splash-pulse-ring):not(.liquid-jump-aura):not(.splash-aura-glow):not(.spinner):not(.btn-loading):not([class*="spinner"]):not(.news-ticker-track):not(.news-ticker-content):not(marquee)::before,
  *:not(.liquid-jump-logo):not(.splash-logo-img):not(.liquid-jump-shadow):not(.splash-jump-shadow):not(.liquid-jump-ring):not(.splash-pulse-ring):not(.liquid-jump-aura):not(.splash-aura-glow):not(.spinner):not(.btn-loading):not([class*="spinner"]):not(.news-ticker-track):not(.news-ticker-content):not(marquee)::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .scroll-reveal { opacity: 1; transform: none; }
}

/* ===== 3D LOGO JUMPING KEYFRAMES (High-Performance GPU-Only) ===== */
@keyframes splashLogoJump3D {
  0% {
    transform: translate3d(0, 0, 0) scale(1.22, 0.78);
  }
  15% {
    transform: translate3d(0, -16px, 0) scale(0.85, 1.22);
  }
  45% {
    transform: translate3d(0, -46px, 0) scale(1.06, 0.94);
  }
  55% {
    transform: translate3d(0, -46px, 0) scale(1, 1);
  }
  75% {
    transform: translate3d(0, -18px, 0) scale(0.88, 1.2);
  }
  90% {
    transform: translate3d(0, 2px, 0) scale(1.26, 0.74);
  }
  100% {
    transform: translate3d(0, 0, 0) scale(1.22, 0.78);
  }
}

@keyframes splashShadowPulse {
  0%, 90%, 100% {
    transform: scale(1.25);
    opacity: 0.85;
  }
  45%, 55% {
    transform: scale(0.35);
    opacity: 0.2;
  }
}

@keyframes splashRingRipple {
  0% {
    transform: scale(0.35);
    opacity: 0.9;
  }
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

@keyframes splashAuraPulse {
  0% { transform: scale(0.85); opacity: 0.4; }
  100% { transform: scale(1.15); opacity: 0.8; }
}

/* ===== CARDS & BOXES DYNAMIC MOUSE HOVER GLOW ===== */
.card, .glass-card, .stat-card, .dashboard-card, .kpi-card, 
.ad-banner-card, .quick-action-card, .form-card, .overview-card, 
.info-card, .summary-card, .feature-card, .auth-card, .modal-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}

/* Inside-Card Radial Spotlight directly under cursor */
.card::before, .glass-card::before, .stat-card::before, 
.dashboard-card::before, .kpi-card::before, .ad-banner-card::before, 
.quick-action-card::before, .form-card::before, .overview-card::before, 
.info-card::before, .summary-card::before, .feature-card::before, 
.auth-card::before, .modal-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    320px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    var(--accent-glow, rgba(0, 245, 255, 0.28)),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.card:hover::before, .glass-card:hover::before, .stat-card:hover::before, 
.dashboard-card:hover::before, .kpi-card:hover::before, .ad-banner-card:hover::before, 
.quick-action-card:hover::before, .form-card:hover::before, .overview-card:hover::before, 
.info-card:hover::before, .summary-card:hover::before, .feature-card:hover::before, 
.auth-card:hover::before, .modal-card:hover::before {
  opacity: 1;
}

.card:hover, .glass-card:hover, .stat-card:hover, 
.dashboard-card:hover, .kpi-card:hover, .ad-banner-card:hover, 
.quick-action-card:hover, .form-card:hover, .overview-card:hover, 
.info-card:hover, .summary-card:hover, .feature-card:hover, .auth-card:hover {
  border-color: var(--accent-glow, rgba(0, 245, 255, 0.5));
  box-shadow: 0 10px 30px -10px var(--accent-glow, rgba(0, 245, 255, 0.35)), 
              0 0 18px var(--accent-glow, rgba(0, 245, 255, 0.2));
  transform: translateY(-2px);
}

/* Ensure card text, inputs, buttons are cleanly above the glow */
.card > *, .glass-card > *, .stat-card > *, .dashboard-card > *, .kpi-card > *, .quick-action-card > * {
  position: relative;
  z-index: 2;
}

/* ===== MODAL ACCIDENTAL CLOSE PROTECTION FEEDBACK ===== */
@keyframes modalShake {
  0%, 100% { transform: scale(1) translateX(0); }
  20%, 60% { transform: scale(1.01) translateX(-6px); }
  40%, 80% { transform: scale(1.01) translateX(6px); }
}
.modal-shake {
  animation: modalShake 0.35s ease-in-out !important;
  box-shadow: 0 0 25px rgba(0, 245, 255, 0.45) !important;
}







