/* ============================================================
   LIVOERA GROUP — Animations Stylesheet
   ============================================================ */

/* ---- Keyframes ---- */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-18px); }
}

@keyframes float-slow {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33%       { transform: translateY(-12px) rotate(2deg); }
  66%       { transform: translateY(-6px) rotate(-1deg); }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(0,255,209,0.4); }
  50%       { opacity: 0.85; transform: scale(1.1); box-shadow: 0 0 0 8px rgba(0,255,209,0); }
}

@keyframes pulse-ring {
  0%   { transform: scale(0.85); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}

@keyframes gradient-shift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes shimmer {
  0%   { left: -100%; }
  100% { left: 200%; }
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes counter-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(-360deg); }
}

@keyframes slide-up {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in-scale {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes draw-line {
  from { width: 0; }
  to   { width: 100%; }
}

@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(0,255,209,0.2); }
  50%       { box-shadow: 0 0 40px rgba(0,255,209,0.5), 0 0 80px rgba(0,255,209,0.15); }
}

@keyframes particle-float {
  0%   { transform: translateY(100vh) scale(0); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 0.5; }
  100% { transform: translateY(-100px) scale(1); opacity: 0; }
}

@keyframes typewriter {
  from { width: 0; }
  to   { width: 100%; }
}

@keyframes blink-cursor {
  0%, 100% { border-color: transparent; }
  50%       { border-color: var(--accent); }
}

/* ---- Hero Entrance Animations ---- */
.hero-badge       { animation: slide-up 0.7s ease 0.1s both; }
.hero-title       { animation: slide-up 0.7s ease 0.25s both; }
.hero-subtitle    { animation: slide-up 0.7s ease 0.4s both; }
.hero-cta         { animation: slide-up 0.7s ease 0.55s both; }
.hero-stats       { animation: slide-up 0.7s ease 0.7s both; }

/* ---- Animated Gradient Text ---- */
.gradient-animated {
  background: linear-gradient(270deg, var(--grad-1), var(--accent), var(--grad-2), var(--gold));
  background-size: 300% 300%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-shift 5s ease infinite;
}

/* ---- Glowing Border ---- */
.glow-border {
  animation: glow-pulse 3s ease-in-out infinite;
}

/* ---- Floating Decorative Elements ---- */
.deco-circle {
  position: absolute; border-radius: 50%;
  border: 1px solid var(--border);
  animation: spin-slow 20s linear infinite;
}
.deco-circle-inner {
  animation: counter-spin 15s linear infinite;
}

/* ---- Shimmer Effect on Cards ---- */
.shimmer-card {
  position: relative; overflow: hidden;
}
.shimmer-card::after {
  content: ''; position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.04), transparent);
  animation: shimmer 3s infinite 1s;
}

/* ---- Number Counter Animation ---- */
.count-up {
  display: inline-block;
}

/* ---- Typewriter Effect ---- */
.typewriter {
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid var(--accent);
  animation: typewriter 2.5s steps(40) 1s both,
             blink-cursor 0.8s step-end infinite;
}

/* ---- Stagger Children ---- */
.stagger-children > * {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.stagger-children.visible > *:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0.05s; }
.stagger-children.visible > *:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.15s; }
.stagger-children.visible > *:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.25s; }
.stagger-children.visible > *:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 0.35s; }
.stagger-children.visible > *:nth-child(5) { opacity: 1; transform: translateY(0); transition-delay: 0.45s; }
.stagger-children.visible > *:nth-child(6) { opacity: 1; transform: translateY(0); transition-delay: 0.55s; }
.stagger-children.visible > *:nth-child(7) { opacity: 1; transform: translateY(0); transition-delay: 0.65s; }
.stagger-children.visible > *:nth-child(8) { opacity: 1; transform: translateY(0); transition-delay: 0.75s; }

/* ---- Page Transition Overlay ---- */
#page-loader {
  position: fixed; inset: 0; z-index: 99999;
  background: var(--bg-primary);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 24px;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#page-loader.loaded { opacity: 0; visibility: hidden; }
.loader-logo {
  font-family: var(--font-display); font-size: 2.5rem; font-weight: 700;
  background: linear-gradient(135deg, var(--grad-1), var(--accent));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.loader-bar-track {
  width: 200px; height: 2px; background: rgba(255,255,255,0.1);
  border-radius: 99px; overflow: hidden;
}
.loader-bar-fill {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--grad-1), var(--accent));
  border-radius: 99px;
  animation: draw-line 1.2s ease forwards;
}

/* ---- Tooltip ---- */
[data-tooltip] { position: relative; }
[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute; bottom: calc(100% + 8px); left: 50%;
  transform: translateX(-50%);
  background: #1a1a2e; color: var(--text-primary);
  font-size: 0.75rem; padding: 6px 12px; border-radius: 6px;
  white-space: nowrap; pointer-events: none;
  opacity: 0; transition: opacity 0.2s ease;
  border: 1px solid var(--border);
}
[data-tooltip]:hover::after { opacity: 1; }

/* ---- Back to Top Button ---- */
#back-to-top {
  position: fixed; bottom: 30px; right: 30px; z-index: 999;
  width: 46px; height: 46px; border-radius: 12px;
  background: linear-gradient(135deg, var(--grad-1), var(--grad-2));
  border: none; cursor: pointer; color: #fff; font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(123,47,190,0.4);
  opacity: 0; transform: translateY(20px); pointer-events: none;
  transition: var(--transition);
}
#back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: all; }
#back-to-top:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(123,47,190,0.6); }

/* ---- Toast Notification ---- */
.toast {
  position: fixed; bottom: 90px; right: 30px; z-index: 9998;
  background: #0e0e22; border: 1px solid var(--accent);
  border-radius: var(--radius-sm); padding: 14px 20px;
  font-size: 0.88rem; color: var(--text-primary);
  display: flex; align-items: center; gap: 10px;
  transform: translateX(120%); transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
  max-width: 300px;
}
.toast.show { transform: translateX(0); }
.toast-icon { color: var(--accent); font-size: 1.1rem; }

/* ---- Progress Bar (SEO visual) ---- */
.seo-progress {
  display: flex; flex-direction: column; gap: 12px;
}
.seo-progress-item {}
.seo-progress-label {
  display: flex; justify-content: space-between;
  font-size: 0.8rem; color: var(--text-secondary); margin-bottom: 6px;
}
.seo-progress-track {
  height: 5px; background: rgba(255,255,255,0.07); border-radius: 99px; overflow: hidden;
}
.seo-progress-fill {
  height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, var(--grad-1), var(--accent));
  width: 0; transition: width 1.5s cubic-bezier(0.4,0,0.2,1);
}

/* ---- Grid dots background texture ---- */
.dot-texture {
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 32px 32px;
}