/* Animations CSS - Lazy loaded only when needed */
/* This file is loaded asynchronously after initial page render */
/* Size: ~8KB - Not blocking LCP anymore! */

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

.animate-float {
  animation: float 3s ease-in-out infinite;
}

.animate-float-slow {
  animation: float 6s ease-in-out infinite;
}

.animate-float-fast {
  animation: float 2s ease-in-out infinite;
}

/* Fall animation */
@keyframes fall {
  0% {
    transform: translateY(-100%);
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  100% {
    transform: translateY(100%);
    opacity: 0;
  }
}

/* Scale animations */
@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-fade-in-scale {
  animation: fadeInScale 0.3s ease-out forwards;
}

@keyframes scaleInCenter {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-scale-in {
  animation: scaleInCenter 0.5s ease-out;
}

/* Slide animations */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-100px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

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

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

.animate-slide-in-left {
  animation: slideInLeft 0.6s ease-out;
}

.animate-slide-in-right {
  animation: slideInRight 0.6s ease-out;
}

.animate-slide-down {
  animation: slideDown 0.8s ease-out forwards;
}

/* Bounce animations */
@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3) translateY(50px);
  }
  50% {
    opacity: 1;
    transform: scale(1.05) translateY(-10px);
  }
  70% {
    transform: scale(0.95) translateY(0px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.animate-bounce-in {
  animation: bounceIn 0.8s cubic-bezier(0.36, 0, 0.66, -0.56);
}

/* Wiggle animation */
@keyframes wiggle {
  0%, 7% {
    transform: rotateZ(0);
  }
  15% {
    transform: rotateZ(-15deg);
  }
  20% {
    transform: rotateZ(10deg);
  }
  25% {
    transform: rotateZ(-10deg);
  }
  30% {
    transform: rotateZ(6deg);
  }
  35% {
    transform: rotateZ(-4deg);
  }
  40%, 100% {
    transform: rotateZ(0);
  }
}

.animate-wiggle {
  animation: wiggle 1s ease-in-out;
}

/* Shimmer animations */
@keyframes shimmer {
  0% {
    background-position: -200px 0;
  }
  100% {
    background-position: calc(200px + 100%) 0;
  }
}

@keyframes modernShimmer {
  0% {
    transform: translateX(-100%) skewX(-15deg);
    opacity: 0;
  }
  25% {
    opacity: 0.6;
  }
  75% {
    opacity: 0.8;
  }
  100% {
    transform: translateX(300%) skewX(-15deg);
    opacity: 0;
  }
}

@keyframes shimmerWave {
  0% {
    background-position: -1000px 0;
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    background-position: 1000px 0;
    opacity: 0;
  }
}

@keyframes shimmerPulse {
  0%, 100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.005);
  }
}

@keyframes shimmerGlow {
  0%, 100% {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.05);
  }
  50% {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    box-shadow: inset 0 0 40px rgba(255, 255, 255, 0.1);
  }
}

@keyframes shimmerFloat {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
    opacity: 0.6;
  }
  33% {
    transform: translateY(-3px) rotate(0.5deg);
    opacity: 0.8;
  }
  66% {
    transform: translateY(-1px) rotate(-0.5deg);
    opacity: 0.9;
  }
}

.animate-shimmer {
  background: linear-gradient(90deg, 
    rgba(243, 244, 246, 0.8), 
    rgba(229, 231, 235, 0.9), 
    rgba(156, 163, 175, 0.4), 
    rgba(229, 231, 235, 0.9), 
    rgba(243, 244, 246, 0.8)
  );
  background-size: 200% 100%;
  animation: shimmer 1.8s infinite ease-in-out;
  position: relative;
  overflow: hidden;
}

.animate-shimmer-pulse {
  background: linear-gradient(90deg, 
    rgba(243, 244, 246, 0.6), 
    rgba(229, 231, 235, 0.8), 
    rgba(243, 244, 246, 0.6)
  );
  animation: shimmerPulse 2s infinite ease-in-out;
}

.animate-shimmerWave {
  animation: shimmerWave 2s infinite;
}

/* Rotate animations */
@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.animate-rotate {
  animation: rotate 20s linear infinite;
}

/* Pulse animations */
@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 5px rgba(44, 90, 160, 0.3);
  }
  50% {
    box-shadow: 0 0 20px rgba(44, 90, 160, 0.6), 0 0 30px rgba(77, 171, 247, 0.4);
  }
}

.animate-pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: .5;
  }
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes breathe {
  0%, 100% {
    transform: scale(1) translateY(0);
    opacity: 0.4;
  }
  50% {
    transform: scale(1.02) translateY(-2px);
    opacity: 0.8;
  }
}

/* Gradient animations */
@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.gradient-letterhead {
  background: linear-gradient(90deg, #2c5aa0, #4dabf7, #74c0fc, #2c5aa0);
  background-size: 200% 100%;
  animation: gradientShift 3s ease-in-out infinite;
}

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

.animate-color-shift {
  background: linear-gradient(45deg, #2c5aa0, #4dabf7, #74c0fc, #2c5aa0);
  background-size: 300% 300%;
  animation: colorShift 3s ease infinite;
}

/* Morphing animations */
@keyframes morph-1 {
  0%, 100% { 
    transform: translate(0, 0) scale(1) rotate(0deg);
    border-radius: 50% 50% 50% 50%;
  }
  25% { 
    transform: translate(20px, -10px) scale(1.1) rotate(90deg);
    border-radius: 60% 40% 50% 60%;
  }
  50% { 
    transform: translate(-10px, 15px) scale(0.9) rotate(180deg);
    border-radius: 50% 60% 40% 50%;
  }
  75% { 
    transform: translate(15px, 5px) scale(1.05) rotate(270deg);
    border-radius: 40% 50% 60% 40%;
  }
}

@keyframes morph-2 {
  0%, 100% { 
    transform: translate(0, 0) scale(1) rotate(0deg);
    border-radius: 40% 60% 40% 60%;
  }
  33% { 
    transform: translate(-15px, 20px) scale(1.2) rotate(120deg);
    border-radius: 60% 40% 60% 40%;
  }
  66% { 
    transform: translate(10px, -5px) scale(0.8) rotate(240deg);
    border-radius: 50% 50% 50% 50%;
  }
}

@keyframes morph-3 {
  0%, 100% { 
    transform: translate(0, 0) scale(1) rotate(0deg);
    border-radius: 50% 50% 50% 50%;
  }
  50% { 
    transform: translate(25px, -20px) scale(1.3) rotate(180deg);
    border-radius: 30% 70% 30% 70%;
  }
}

.animate-morph-1 { animation: morph-1 8s ease-in-out infinite; }
.animate-morph-2 { animation: morph-2 6s ease-in-out infinite; }
.animate-morph-3 { animation: morph-3 10s ease-in-out infinite; }

/* Scan and reveal animations */
@keyframes scan-line {
  0% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

.animate-scan-line { animation: scan-line 3s ease-in-out infinite; }

@keyframes slide-up-reveal {
  from { 
    transform: translateY(100%);
    opacity: 0;
  }
  to { 
    transform: translateY(0);
    opacity: 1;
  }
}

.animate-slide-up-reveal { 
  animation: slide-up-reveal 0.8s ease-out forwards;
  opacity: 0;
  transform: translateY(100%);
}

/* Sparkle animations */
@keyframes sparkle-1 {
  0%, 100% { opacity: 0; transform: scale(0); }
  50% { opacity: 1; transform: scale(1); }
}

@keyframes sparkle-2 {
  0%, 100% { opacity: 0; transform: scale(0) rotate(0deg); }
  50% { opacity: 1; transform: scale(1) rotate(180deg); }
}

.animate-sparkle-1 { animation: sparkle-1 2s ease-in-out infinite; }
.animate-sparkle-2 { animation: sparkle-2 2.5s ease-in-out infinite; }

/* Typewriter animations */
@keyframes typewriter {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes typewriter-tech {
  from { 
    width: 0;
    opacity: 0;
  }
  1% {
    opacity: 1;
  }
  to { 
    width: 100%;
    opacity: 1;
  }
}

@keyframes cursor-blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.animate-typewriter {
  overflow: hidden;
  white-space: nowrap;
  animation: typewriter 2s steps(40, end);
}

.animate-typewriter-tech { 
  animation: typewriter-tech 2s steps(12) forwards;
  width: 0;
  overflow: hidden;
  white-space: nowrap;
  display: inline-block;
}

.animate-cursor-blink { animation: cursor-blink 1s infinite; }

/* Expanding animations */
@keyframes expand-line {
  from { width: 0%; }
  to { width: 100%; }
}

@keyframes expandWidth {
  from {
    width: 0%;
  }
  to {
    width: 100%;
  }
}

@keyframes scaleX {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

.animate-expand-line { 
  animation: expand-line 1s ease-out forwards;
  width: 0%;
}

.animate-scale-x {
  animation: scaleX 1s ease-out forwards;
  transform-origin: left;
}

/* Glow animations */
@keyframes glow-pulse {
  0%, 100% { 
    opacity: 0.3;
    transform: scale(1);
  }
  50% { 
    opacity: 0.8;
    transform: scale(1.05);
  }
}

@keyframes fadeInGlow {
  from {
    opacity: 0;
    filter: blur(10px);
  }
  to {
    opacity: 1;
    filter: blur(0px);
  }
}

.animate-glow-pulse { 
  animation: glow-pulse 3s ease-in-out infinite;
  opacity: 0;
}

/* Particle animations */
@keyframes particleFloat {
  0%, 100% {
    transform: translateY(0px) translateX(0px);
    opacity: 0.5;
  }
  25% {
    transform: translateY(-10px) translateX(5px);
    opacity: 1;
  }
  50% {
    transform: translateY(-5px) translateX(-5px);
    opacity: 0.8;
  }
  75% {
    transform: translateY(-15px) translateX(10px);
    opacity: 0.6;
  }
}

.animate-particle-float {
  animation: particleFloat 4s ease-in-out infinite;
}

/* Particle orbit animations */
@keyframes particle-orbit-1 {
  0% { 
    transform: rotate(0deg) translateX(30px) rotate(0deg);
    opacity: 0;
  }
  50% { opacity: 1; }
  100% { 
    transform: rotate(360deg) translateX(30px) rotate(-360deg);
    opacity: 0;
  }
}

@keyframes particle-orbit-2 {
  0% { 
    transform: rotate(90deg) translateX(40px) rotate(-90deg);
    opacity: 0;
  }
  50% { opacity: 1; }
  100% { 
    transform: rotate(450deg) translateX(40px) rotate(-450deg);
    opacity: 0;
  }
}

@keyframes particle-orbit-3 {
  0% { 
    transform: rotate(180deg) translateX(35px) rotate(-180deg);
    opacity: 0;
  }
  50% { opacity: 1; }
  100% { 
    transform: rotate(540deg) translateX(35px) rotate(-540deg);
    opacity: 0;
  }
}

@keyframes particle-orbit-4 {
  0% { 
    transform: rotate(270deg) translateX(45px) rotate(-270deg);
    opacity: 0;
  }
  50% { opacity: 1; }
  100% { 
    transform: rotate(630deg) translateX(45px) rotate(-630deg);
    opacity: 0;
  }
}

.animate-particle-orbit-1 { animation: particle-orbit-1 4s ease-in-out infinite; }
.animate-particle-orbit-2 { animation: particle-orbit-2 5s ease-in-out infinite; }
.animate-particle-orbit-3 { animation: particle-orbit-3 6s ease-in-out infinite; }
.animate-particle-orbit-4 { animation: particle-orbit-4 4.5s ease-in-out infinite; }

/* Lightning flash */
@keyframes lightning-flash {
  0%, 90%, 100% { 
    opacity: 0;
    transform: scale(0) rotate(0deg);
  }
  5%, 15% { 
    opacity: 1;
    transform: scale(1.5) rotate(15deg);
  }
  10% { 
    opacity: 0.7;
    transform: scale(1.2) rotate(-10deg);
  }
}

.animate-lightning-flash { animation: lightning-flash 6s ease-in-out infinite; }

/* Wave text */
@keyframes wave-text {
  0% { 
    transform: translateY(20px);
    opacity: 0;
  }
  100% { 
    transform: translateY(0);
    opacity: 1;
  }
}

.animate-wave-text { 
  animation: wave-text 1s ease-out forwards;
  opacity: 0;
  transform: translateY(20px);
}

/* Pulse strong */
@keyframes pulse-strong {
  0%, 100% { 
    opacity: 1;
    transform: scale(1);
  }
  50% { 
    opacity: 0.5;
    transform: scale(1.3);
  }
}

.animate-pulse-strong { animation: pulse-strong 2s ease-in-out infinite; }

/* Stagger animations */
@keyframes slideInStagger {
  0% {
    opacity: 0;
    transform: translateX(-20px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

/* Blink animation */
@keyframes blink {
  0%, 50% {
    opacity: 1;
  }
  51%, 100% {
    opacity: 0;
  }
}

.animate-blink {
  animation: blink 1s infinite;
}

/* Icon pulse */
.icon-pulse {
  animation: pulse-glow 2s ease-in-out infinite;
}

.icon-pulse:hover {
  animation: wiggle 0.5s ease-in-out;
}

/* Professional card animation effects */
.card-professional {
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.card-professional::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: left 0.5s;
}

.card-professional:hover::before {
  left: 100%;
}

.card-professional:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(44, 90, 160, 0.15);
}
