/* ============================================================
   MEET DGITAL — animations.css
   Keyframes • Scroll Animations • Hover Effects • Transitions
   ============================================================ */

/* ═══════════════════════════════════════
   KEYFRAMES
═══════════════════════════════════════ */

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

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}

@keyframes slideInLeft {
  from { transform: translateX(-100%); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.04); }
}

@keyframes pulse-ring {
  0%   { transform: scale(1); opacity: 0.8; }
  80%  { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(1.6); opacity: 0; }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-16px); }
}

@keyframes float-slow {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50%       { transform: translateY(-10px) rotate(3deg); }
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes hero-gradient {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes blob {
  0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  50%       { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
}

@keyframes draw-line {
  from { stroke-dashoffset: 1000; }
  to   { stroke-dashoffset: 0; }
}

@keyframes count-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes loader-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(26,63,143,0.4); }
  50%       { transform: scale(1.05); box-shadow: 0 0 0 20px rgba(26,63,143,0); }
}

@keyframes loader-bar {
  0%   { width: 0%; }
  30%  { width: 40%; }
  70%  { width: 75%; }
  100% { width: 100%; }
}

@keyframes gradient-shift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes particle-float {
  0%         { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10%        { opacity: 0.6; }
  90%        { opacity: 0.3; }
  100%       { transform: translateY(-20px) rotate(720deg); opacity: 0; }
}

@keyframes ripple {
  0%   { transform: scale(0); opacity: 0.8; }
  100% { transform: scale(4); opacity: 0; }
}

@keyframes text-reveal {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0% 0 0); }
}

/* ═══════════════════════════════════════
   ANIMATED HERO BACKGROUND
═══════════════════════════════════════ */

.hero-bg-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    var(--primary-dark) 0%,
    var(--primary) 40%,
    #0F2660 70%,
    var(--dark) 100%
  );
  background-size: 300% 300%;
  animation: hero-gradient 12s ease infinite;
}

.hero-blob {
  position: absolute;
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  animation: blob 8s ease-in-out infinite;
  filter: blur(40px);
  opacity: 0.25;
}

.hero-blob-1 {
  width: 400px;
  height: 400px;
  background: var(--secondary);
  top: -100px;
  right: 10%;
  animation-duration: 10s;
}

.hero-blob-2 {
  width: 300px;
  height: 300px;
  background: var(--primary-light);
  bottom: 10%;
  left: 5%;
  animation-duration: 14s;
  animation-direction: reverse;
}

/* ═══════════════════════════════════════
   SCROLL REVEAL (JS-driven)
═══════════════════════════════════════ */

[data-reveal] {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.4,0,0.2,1);
}

[data-reveal="up"]    { transform: translateY(40px); }
[data-reveal="down"]  { transform: translateY(-40px); }
[data-reveal="left"]  { transform: translateX(-40px); }
[data-reveal="right"] { transform: translateX(40px); }
[data-reveal="scale"] { transform: scale(0.85); }
[data-reveal="fade"]  { transform: none; }

[data-reveal].revealed {
  opacity: 1;
  transform: none;
}

/* Stagger children */
[data-stagger] > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

[data-stagger].staggered > *:nth-child(1)  { transition-delay: 0.0s; }
[data-stagger].staggered > *:nth-child(2)  { transition-delay: 0.1s; }
[data-stagger].staggered > *:nth-child(3)  { transition-delay: 0.2s; }
[data-stagger].staggered > *:nth-child(4)  { transition-delay: 0.3s; }
[data-stagger].staggered > *:nth-child(5)  { transition-delay: 0.4s; }
[data-stagger].staggered > *:nth-child(6)  { transition-delay: 0.5s; }
[data-stagger].staggered > *:nth-child(7)  { transition-delay: 0.6s; }
[data-stagger].staggered > *:nth-child(8)  { transition-delay: 0.7s; }

[data-stagger].staggered > * {
  opacity: 1;
  transform: none;
}

/* ═══════════════════════════════════════
   HERO ANIMATIONS
═══════════════════════════════════════ */

.hero-animate-1 { animation: fadeInUp 0.9s ease 0.2s both; }
.hero-animate-2 { animation: fadeInUp 0.9s ease 0.4s both; }
.hero-animate-3 { animation: fadeInUp 0.9s ease 0.6s both; }
.hero-animate-4 { animation: fadeInUp 0.9s ease 0.8s both; }
.hero-animate-5 { animation: fadeInUp 0.9s ease 1.0s both; }

/* ═══════════════════════════════════════
   HOVER MICRO-ANIMATIONS
═══════════════════════════════════════ */

.hover-lift {
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.hover-lift:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.hover-glow:hover {
  box-shadow: 0 0 30px rgba(26,63,143,0.30);
}

.hover-scale {
  transition: transform var(--transition-spring);
}

.hover-scale:hover { transform: scale(1.05); }

/* Animated underline */
.anim-underline {
  position: relative;
  display: inline-block;
}

.anim-underline::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary);
  border-radius: var(--radius-full);
  transition: width var(--transition-base);
}

.anim-underline:hover::after { width: 100%; }

/* ═══════════════════════════════════════
   ICON ANIMATIONS
═══════════════════════════════════════ */

.icon-float { animation: float 4s ease-in-out infinite; }
.icon-float-slow { animation: float-slow 6s ease-in-out infinite; }
.icon-spin { animation: spin-slow 8s linear infinite; }
.icon-pulse { animation: pulse 2s ease-in-out infinite; }

/* ═══════════════════════════════════════
   PARTICLES BACKGROUND
═══════════════════════════════════════ */

.particles-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  animation: particle-float linear infinite;
}

/* ═══════════════════════════════════════
   GRADIENT BORDERS
═══════════════════════════════════════ */

.gradient-border {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 1px;
}

.gradient-border::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

/* ═══════════════════════════════════════
   SHIMMER LOADING SKELETON
═══════════════════════════════════════ */

.skeleton {
  background: linear-gradient(
    90deg,
    rgba(26,63,143,0.06) 0%,
    rgba(26,63,143,0.12) 50%,
    rgba(26,63,143,0.06) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-md);
}

/* ═══════════════════════════════════════
   TRANSITION PAGE (fade)
═══════════════════════════════════════ */

.page-transition {
  position: fixed;
  inset: 0;
  background: var(--primary-dark);
  z-index: 99998;
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.76, 0, 0.24, 1);
  pointer-events: none;
}

.page-transition.entering { transform: translateY(0%); }
.page-transition.leaving  { transform: translateY(-100%); }

/* ═══════════════════════════════════════
   REDUCED MOTION
═══════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  [data-stagger] > * {
    opacity: 1;
    transform: none;
  }
}
