/* ========================================
   WEB6 - MODERN ANIMATIONS & EFFECTS
   ======================================== */

/* === ANIMATED GRADIENT BACKGROUNDS === */
.animate-gradient {
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

/* === FLOATING ANIMATION === */
.animate-float {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-20px);
  }
}

/* === PULSE GLOW EFFECT === */
.animate-pulse-glow {
  animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {

  0%,
  100% {
    box-shadow: 0 0 20px rgba(255, 107, 0, 0.3);
  }

  50% {
    box-shadow: 0 0 40px rgba(255, 107, 0, 0.6);
  }
}

/* === SHIMMER EFFECT === */
.shimmer {
  position: relative;
  overflow: hidden;
}

.shimmer::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.3),
      transparent);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }

  100% {
    left: 100%;
  }
}

/* === CARD HOVER EFFECTS === */
.card-hover-lift {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card-hover-lift:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* === MAGNETIC BUTTON EFFECT === */
.btn-magnetic {
  position: relative;
  transition: transform 0.3s ease;
}

.btn-magnetic:hover {
  transform: scale(1.05);
}

.btn-magnetic:active {
  transform: scale(0.98);
}

/* === GLOWING BORDER === */
.glow-border {
  position: relative;
}

.glow-border::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(45deg, #ff6b00, #3b82f6, #ff6b00, #3b82f6);
  background-size: 400%;
  border-radius: inherit;
  z-index: -1;
  animation: glowRotate 4s linear infinite;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.glow-border:hover::before {
  opacity: 1;
}

@keyframes glowRotate {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 400% 50%;
  }
}

/* === TEXT REVEAL ANIMATION === */
.text-reveal {
  background: linear-gradient(90deg, #1e3a5f, #ff6b00, #1e3a5f);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textReveal 4s linear infinite;
}

@keyframes textReveal {
  0% {
    background-position: 0% center;
  }

  100% {
    background-position: 200% center;
  }
}

/* === ICON BOUNCE === */
.icon-bounce:hover svg,
.icon-bounce:hover i {
  animation: iconBounce 0.5s ease;
}

@keyframes iconBounce {

  0%,
  100% {
    transform: translateY(0);
  }

  25% {
    transform: translateY(-8px);
  }

  50% {
    transform: translateY(0);
  }

  75% {
    transform: translateY(-4px);
  }
}

/* === RIPPLE EFFECT === */
.ripple {
  position: relative;
  overflow: hidden;
}

.ripple::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 50%;
  left: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  transition: transform 0.5s ease, opacity 0.3s ease;
}

.ripple:hover::after {
  transform: translate(-50%, -50%) scale(2);
  opacity: 1;
}

/* === TILT CARD === */
.tilt-card {
  transition: transform 0.3s ease;
  transform-style: preserve-3d;
}

.tilt-card:hover {
  transform: perspective(1000px) rotateX(5deg) rotateY(-5deg);
}

/* === UNDERLINE ANIMATION === */
.underline-hover {
  position: relative;
}

.underline-hover::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #ff6b00, #ffa500);
  transition: width 0.4s ease;
}

.underline-hover:hover::after {
  width: 100%;
}

/* === STAGGER ANIMATION FOR LISTS === */
.stagger-item {
  opacity: 0;
  transform: translateY(20px);
  animation: staggerIn 0.6s ease forwards;
}

.stagger-item:nth-child(1) {
  animation-delay: 0.1s;
}

.stagger-item:nth-child(2) {
  animation-delay: 0.2s;
}

.stagger-item:nth-child(3) {
  animation-delay: 0.3s;
}

.stagger-item:nth-child(4) {
  animation-delay: 0.4s;
}

.stagger-item:nth-child(5) {
  animation-delay: 0.5s;
}

.stagger-item:nth-child(6) {
  animation-delay: 0.6s;
}

@keyframes staggerIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === PARTICLE DOTS BACKGROUND === */
.particle-bg {
  position: relative;
  overflow: hidden;
}

.particle-bg::before {
  content: '';
  position: absolute;
  width: 400%;
  height: 400%;
  top: -150%;
  left: -150%;
  background-image:
    radial-gradient(circle, rgba(255, 107, 0, 0.1) 1px, transparent 1px),
    radial-gradient(circle, rgba(59, 130, 246, 0.1) 1px, transparent 1px);
  background-size: 50px 50px, 80px 80px;
  animation: particleMove 30s linear infinite;
  z-index: 0;
}

@keyframes particleMove {
  0% {
    transform: translate(0, 0);
  }

  100% {
    transform: translate(50px, 50px);
  }
}

/* === ROTATING ICON === */
.icon-rotate:hover svg {
  animation: iconRotate 0.6s ease;
}

@keyframes iconRotate {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* === SCALE POP === */
.scale-pop {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.scale-pop:hover {
  transform: scale(1.1);
}

/* === SLIDE IN FROM SIDES === */
.slide-in-left {
  animation: slideInLeft 0.6s ease forwards;
}

.slide-in-right {
  animation: slideInRight 0.6s ease forwards;
}

@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);
  }
}

/* === MORPHING BLOB === */
.blob {
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  animation: blobMorph 8s ease-in-out infinite;
}

@keyframes blobMorph {

  0%,
  100% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }

  25% {
    border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
  }

  50% {
    border-radius: 50% 60% 30% 60% / 30% 60% 70% 40%;
  }

  75% {
    border-radius: 60% 40% 60% 30% / 70% 30% 50% 60%;
  }
}

/* === TYPING CURSOR === */
.typing-cursor::after {
  content: '|';
  animation: blink 1s step-end infinite;
  color: #ff6b00;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* === ENHANCED IMAGE HOVER === */
.img-zoom-rotate {
  overflow: hidden;
}

.img-zoom-rotate img {
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.img-zoom-rotate:hover img {
  transform: scale(1.15) rotate(2deg);
}

/* === NEON GLOW TEXT === */
.neon-text {
  text-shadow:
    0 0 5px #ff6b00,
    0 0 10px #ff6b00,
    0 0 20px #ff6b00,
    0 0 40px #ff6b00;
  animation: neonPulse 2s ease-in-out infinite alternate;
}

@keyframes neonPulse {
  from {
    text-shadow: 0 0 5px #ff6b00, 0 0 10px #ff6b00, 0 0 20px #ff6b00;
  }

  to {
    text-shadow: 0 0 10px #ff6b00, 0 0 20px #ff6b00, 0 0 40px #ff6b00, 0 0 80px #ff6b00;
  }
}

/* === GLASS CARD === */
.glass-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-5px);
}

/* === COUNTER ANIMATION === */
.counter-animate {
  animation: countUp 2s ease-out forwards;
}

/* === 3D FLIP CARD === */
.flip-card {
  perspective: 1000px;
}

.flip-card-inner {
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

/* === ELASTIC BUTTON === */
.btn-elastic {
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.btn-elastic:hover {
  transform: scale(1.05);
}

.btn-elastic:active {
  transform: scale(0.95);
}

/* === WAVE ANIMATION === */
.wave {
  animation: wave 2.5s ease-in-out infinite;
}

@keyframes wave {

  0%,
  100% {
    transform: rotate(0deg);
  }

  25% {
    transform: rotate(20deg);
  }

  75% {
    transform: rotate(-20deg);
  }
}

/* === SMOOTH SCROLL REVEAL === */
[data-aos] {
  transition-timing-function: cubic-bezier(0.25, 0.1, 0.25, 1) !important;
}

/* === GRADIENT TEXT === */
.gradient-text {
  background: linear-gradient(135deg, #1e3a5f 0%, #ff6b00 50%, #1e3a5f 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientText 3s ease infinite;
}

@keyframes gradientText {

  0%,
  100% {
    background-position: 0% center;
  }

  50% {
    background-position: 100% center;
  }
}

/* === LOGO HEARTBEAT === */
.heartbeat:hover {
  animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {

  0%,
  100% {
    transform: scale(1);
  }

  10% {
    transform: scale(1.1);
  }

  20% {
    transform: scale(1);
  }

  30% {
    transform: scale(1.1);
  }

  40% {
    transform: scale(1);
  }
}

/* === SMOOTH SCROLLBAR === */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #1e3a5f, #ff6b00);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #ff6b00, #1e3a5f);
}

/* === LOADING SPINNER === */
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 107, 0, 0.2);
  border-top-color: #ff6b00;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* === BUTTON SHINE EFFECT === */
.btn-shine {
  position: relative;
  overflow: hidden;
}

.btn-shine::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg,
      transparent,
      rgba(255, 255, 255, 0.4),
      transparent);
  transition: left 0.5s ease;
}

.btn-shine:hover::before {
  left: 100%;
}

/* === CONFETTI-LIKE DOTS === */
.confetti-bg {
  background-image:
    radial-gradient(circle at 20% 80%, rgba(255, 107, 0, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(16, 185, 129, 0.05) 0%, transparent 50%);
}

/* ========================================
   🚀 MODERN ANIMATIONS 2025 - PRO EDITION
   ======================================== */

/* === ANIMATED FLOATING BLOCKS === */
.block-float {
  animation: blockFloat 6s ease-in-out infinite;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.block-float:nth-child(odd) {
  animation-delay: -2s;
}

.block-float:nth-child(even) {
  animation-delay: -4s;
}

@keyframes blockFloat {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  }

  25% {
    transform: translateY(-15px) rotate(0.5deg);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
  }

  50% {
    transform: translateY(-8px) rotate(-0.5deg);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.12);
  }

  75% {
    transform: translateY(-20px) rotate(0.5deg);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.18);
  }
}

/* === 3D CARD ROTATION === */
.card-3d {
  perspective: 1000px;
  transform-style: preserve-3d;
}

.card-3d-inner {
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-style: preserve-3d;
}

.card-3d:hover .card-3d-inner {
  transform: rotateY(10deg) rotateX(5deg) scale(1.02);
}

/* === GLASSMORPHISM ANIMATED === */
.glass-animated {
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.1) 0%,
      rgba(255, 255, 255, 0.05) 50%,
      rgba(255, 255, 255, 0.1) 100%);
  background-size: 200% 200%;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  animation: glassShift 8s ease infinite;
}

@keyframes glassShift {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

/* === SCROLL REVEAL ANIMATIONS === */
.reveal-fade-up {
  opacity: 0;
  transform: translateY(60px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-fade-left {
  opacity: 0;
  transform: translateX(-80px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-fade-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-fade-right {
  opacity: 0;
  transform: translateX(80px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-fade-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

.reveal-rotate {
  opacity: 0;
  transform: rotateY(90deg) scale(0.8);
  transition: all 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-rotate.visible {
  opacity: 1;
  transform: rotateY(0) scale(1);
}

/* Staggered reveal delay classes */
.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

.reveal-delay-5 {
  transition-delay: 0.5s;
}

.reveal-delay-6 {
  transition-delay: 0.6s;
}

/* === MAGNETIC HOVER EFFECT === */
.magnetic-hover {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

/* === AURORA GRADIENT BACKGROUND === */
.aurora-bg {
  position: relative;
  overflow: hidden;
}

.aurora-bg::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg,
      transparent 0deg,
      rgba(255, 107, 0, 0.1) 60deg,
      transparent 120deg,
      rgba(59, 130, 246, 0.1) 180deg,
      transparent 240deg,
      rgba(16, 185, 129, 0.08) 300deg,
      transparent 360deg);
  animation: auroraRotate 20s linear infinite;
  z-index: -1;
}

@keyframes auroraRotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* === BLOCK PARALLAX MOVEMENT === */
.parallax-block {
  transition: transform 0.1s ease-out;
  will-change: transform;
}

/* === ANIMATED BORDER === */
.border-animated {
  position: relative;
  background: white;
  z-index: 0;
}

.border-animated::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: inherit;
  background: linear-gradient(90deg,
      #ff6b00,
      #3b82f6,
      #10b981,
      #ff6b00);
  background-size: 300% 100%;
  animation: borderFlow 4s linear infinite;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.border-animated:hover::before {
  opacity: 1;
}

@keyframes borderFlow {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 300% 50%;
  }
}

/* === NEON BLOCK EFFECT === */
.neon-block {
  position: relative;
  transition: all 0.4s ease;
}

.neon-block:hover {
  box-shadow:
    0 0 5px rgba(255, 107, 0, 0.5),
    0 0 20px rgba(255, 107, 0, 0.3),
    0 0 40px rgba(255, 107, 0, 0.1),
    inset 0 0 20px rgba(255, 107, 0, 0.05);
}

/* === PARTICLE FLOAT ANIMATION === */
.particles-container {
  position: relative;
  overflow: hidden;
}

.particles-container::before,
.particles-container::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 107, 0, 0.3);
  animation: particleFloat 15s ease-in-out infinite;
  pointer-events: none;
}

.particles-container::before {
  top: 20%;
  left: 10%;
  animation-delay: -5s;
}

.particles-container::after {
  top: 60%;
  right: 15%;
  animation-delay: -10s;
  background: rgba(59, 130, 246, 0.3);
}

@keyframes particleFloat {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.6;
  }

  25% {
    transform: translate(100px, -50px) scale(1.2);
    opacity: 0.8;
  }

  50% {
    transform: translate(50px, 30px) scale(0.8);
    opacity: 0.4;
  }

  75% {
    transform: translate(-30px, -100px) scale(1.1);
    opacity: 0.7;
  }
}

/* === HOVER LIFT WITH SHADOW === */
.card-hover-lift-xl {
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card-hover-lift-xl:hover {
  transform: translateY(-20px) scale(1.02);
  box-shadow:
    0 30px 60px -15px rgba(0, 0, 0, 0.15),
    0 10px 20px -10px rgba(0, 0, 0, 0.1);
}

/* === TEXT SHIMMER EFFECT === */
.text-shimmer {
  background: linear-gradient(120deg,
      #1e3a5f 0%,
      #ff6b00 25%,
      #3b82f6 50%,
      #ff6b00 75%,
      #1e3a5f 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textShimmer 4s ease infinite;
}

@keyframes textShimmer {

  0%,
  100% {
    background-position: -100% 0;
  }

  50% {
    background-position: 100% 0;
  }
}

/* === PULSE RING ANIMATION === */
.pulse-ring {
  position: relative;
}

.pulse-ring::before {
  content: '';
  position: absolute;
  inset: -4px;
  border: 2px solid rgba(255, 107, 0, 0.5);
  border-radius: inherit;
  animation: pulseRing 2s ease-out infinite;
  pointer-events: none;
}

@keyframes pulseRing {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  100% {
    transform: scale(1.2);
    opacity: 0;
  }
}

/* === MORPHING SHAPES === */
.morph-shape {
  animation: morphShape 10s ease-in-out infinite;
}

@keyframes morphShape {

  0%,
  100% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    transform: rotate(0deg) scale(1);
  }

  25% {
    border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    transform: rotate(90deg) scale(1.05);
  }

  50% {
    border-radius: 50% 60% 30% 60% / 30% 60% 70% 40%;
    transform: rotate(180deg) scale(1);
  }

  75% {
    border-radius: 60% 40% 60% 30% / 70% 30% 50% 60%;
    transform: rotate(270deg) scale(1.05);
  }
}

/* === LIQUID FILL EFFECT === */
.liquid-fill {
  position: relative;
  overflow: hidden;
}

.liquid-fill::before {
  content: '';
  position: absolute;
  bottom: -100%;
  left: 0;
  width: 200%;
  height: 200%;
  background: linear-gradient(to top,
      rgba(255, 107, 0, 0.1) 0%,
      transparent 50%);
  border-radius: 40%;
  transition: bottom 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  animation: liquidWave 4s ease-in-out infinite;
}

.liquid-fill:hover::before {
  bottom: -50%;
}

@keyframes liquidWave {

  0%,
  100% {
    transform: translateX(0) rotate(0deg);
  }

  50% {
    transform: translateX(-25%) rotate(2deg);
  }
}

/* === SPOTLIGHT EFFECT === */
.spotlight {
  position: relative;
  overflow: hidden;
}

.spotlight::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle,
      rgba(255, 255, 255, 0.3) 0%,
      transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.spotlight:hover::before {
  opacity: 1;
  animation: spotlightMove 1s ease;
}

@keyframes spotlightMove {
  0% {
    transform: translate(-50%, -50%);
  }

  100% {
    transform: translate(150%, 150%);
  }
}

/* === ICON SPIN ON HOVER === */
.icon-spin-hover:hover svg,
.icon-spin-hover:hover i {
  animation: iconSpin 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes iconSpin {
  0% {
    transform: rotate(0deg) scale(1);
  }

  50% {
    transform: rotate(180deg) scale(1.2);
  }

  100% {
    transform: rotate(360deg) scale(1);
  }
}

/* === PROGRESS LINE ANIMATION === */
.progress-line {
  position: relative;
  overflow: hidden;
}

.progress-line::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, #ff6b00, #3b82f6);
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-line:hover::after {
  width: 100%;
}

/* === STACKED CARDS EFFECT === */
.stack-card {
  position: relative;
}

.stack-card::before,
.stack-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: inherit;
  border-radius: inherit;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

.stack-card::before {
  transform: translateY(8px) scale(0.98);
  opacity: 0.6;
}

.stack-card::after {
  transform: translateY(16px) scale(0.96);
  opacity: 0.3;
}

.stack-card:hover::before {
  transform: translateY(12px) translateX(5px) rotate(-2deg) scale(0.98);
}

.stack-card:hover::after {
  transform: translateY(24px) translateX(10px) rotate(-4deg) scale(0.96);
}

/* === TYPEWRITER CURSOR === */
.typewriter {
  overflow: hidden;
  border-right: 3px solid #ff6b00;
  white-space: nowrap;
  animation:
    typing 3.5s steps(40, end),
    blinkCursor 0.75s step-end infinite;
}

@keyframes typing {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}

@keyframes blinkCursor {

  from,
  to {
    border-color: transparent;
  }

  50% {
    border-color: #ff6b00;
  }
}

/* === BOUNCE IN ANIMATION === */
.bounce-in {
  animation: bounceIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3) translateY(50px);
  }

  50% {
    opacity: 0.9;
    transform: scale(1.1) translateY(-10px);
  }

  70% {
    transform: scale(0.95) translateY(5px);
  }

  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* === FLIP IN X === */
.flip-in-x {
  animation: flipInX 0.8s ease-out;
  transform-style: preserve-3d;
}

@keyframes flipInX {
  0% {
    opacity: 0;
    transform: perspective(400px) rotateX(90deg);
  }

  40% {
    transform: perspective(400px) rotateX(-20deg);
  }

  60% {
    opacity: 1;
    transform: perspective(400px) rotateX(10deg);
  }

  80% {
    transform: perspective(400px) rotateX(-5deg);
  }

  100% {
    transform: perspective(400px) rotateX(0deg);
  }
}

/* === ZOOM IN ROTATE === */
.zoom-in-rotate {
  animation: zoomInRotate 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes zoomInRotate {
  0% {
    opacity: 0;
    transform: scale(0) rotate(-180deg);
  }

  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

/* === AUTO SLIDE ANIMATION FOR CARDS === */
.auto-slide {
  animation: autoSlide 0.6s ease-out forwards;
  opacity: 0;
}

.auto-slide:nth-child(1) {
  animation-delay: 0s;
}

.auto-slide:nth-child(2) {
  animation-delay: 0.1s;
}

.auto-slide:nth-child(3) {
  animation-delay: 0.2s;
}

.auto-slide:nth-child(4) {
  animation-delay: 0.3s;
}

.auto-slide:nth-child(5) {
  animation-delay: 0.4s;
}

.auto-slide:nth-child(6) {
  animation-delay: 0.5s;
}

@keyframes autoSlide {
  0% {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* === GRADIENT BORDER GLOW === */
.gradient-border-glow {
  position: relative;
  background: white;
  border-radius: 16px;
}

.gradient-border-glow::before {
  content: '';
  position: absolute;
  inset: -3px;
  background: linear-gradient(45deg,
      #ff6b00,
      #ff8533,
      #3b82f6,
      #60a5fa,
      #ff6b00);
  border-radius: inherit;
  z-index: -1;
  background-size: 400% 400%;
  animation: gradientBorderGlow 6s ease infinite;
  filter: blur(8px);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gradient-border-glow:hover::before {
  opacity: 0.7;
}

@keyframes gradientBorderGlow {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

/* === BREATHING EFFECT === */
.breathing {
  animation: breathing 4s ease-in-out infinite;
}

@keyframes breathing {

  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
  }

  50% {
    transform: scale(1.02);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  }
}

/* === CARD TILT 3D === */
.tilt-3d {
  transform-style: preserve-3d;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.tilt-3d:hover {
  transform: perspective(1000px) rotateX(10deg) rotateY(-10deg) translateZ(20px);
}

.tilt-3d>* {
  transform: translateZ(50px);
}

/* === WAVE BACKGROUND === */
.wave-bg {
  position: relative;
  overflow: hidden;
}

.wave-bg::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200%;
  height: 100px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z' fill='rgba(255,107,0,0.05)'/%3E%3C/svg%3E");
  background-size: 50% 100%;
  animation: waveMove 10s linear infinite;
  pointer-events: none;
}

@keyframes waveMove {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* === HOVER CARD DEPTH === */
.card-depth {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.05),
    0 4px 8px rgba(0, 0, 0, 0.05);
}

.card-depth:hover {
  transform: translateY(-10px);
  box-shadow:
    0 4px 8px rgba(0, 0, 0, 0.08),
    0 8px 16px rgba(0, 0, 0, 0.08),
    0 16px 32px rgba(0, 0, 0, 0.06),
    0 32px 64px rgba(0, 0, 0, 0.04);
}

/* ========================================
   SCROLL PROGRESS BAR
   ======================================== */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, #ff6b00, #3b82f6);
  z-index: 9999;
  transition: none;
}

/* ========================================
   STICKY CTA MOBILE
   ======================================== */
#sticky-cta-mobile {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9998;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
#sticky-cta-mobile.visible {
  transform: translateY(0);
}
@media (min-width: 768px) {
  #sticky-cta-mobile {
    display: none !important;
  }
}

/* ========================================
   FOCUS-VISIBLE ACCESSIBILITY
   ======================================== */
*:focus-visible {
  outline: 3px solid #ff6b00;
  outline-offset: 2px;
}
*:focus:not(:focus-visible) {
  outline: none;
}

/* ========================================
   SKIP-TO-CONTENT LINK
   ======================================== */
.skip-to-content {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: #ff6b00;
  color: #fff;
  padding: 12px 24px;
  border-radius: 0 0 8px 8px;
  font-weight: 600;
  z-index: 100000;
  transition: top 0.3s ease;
  text-decoration: none;
}
.skip-to-content:focus {
  top: 0;
}

/* ========================================
   CLIENT LOGOS CAROUSEL
   ======================================== */
.logos-carousel-wrapper {
  overflow: hidden;
  position: relative;
}
.logos-carousel-wrapper::before,
.logos-carousel-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}
.logos-carousel-wrapper::before {
  left: 0;
  background: linear-gradient(to right, #f9fafb, transparent);
}
.logos-carousel-wrapper::after {
  right: 0;
  background: linear-gradient(to left, #f9fafb, transparent);
}
.logos-carousel-track {
  display: flex;
  width: max-content;
  animation: logoScroll 30s linear infinite;
}
.logos-carousel-track:hover {
  animation-play-state: paused;
}
@keyframes logoScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ========================================
   TESTIMONIALS CAROUSEL
   ======================================== */
.testimonials-carousel {
  overflow: hidden;
  position: relative;
}
.testimonials-track {
  display: flex;
  transition: transform 0.5s ease;
}
.testimonial-card {
  flex-shrink: 0;
  padding: 0 12px;
  box-sizing: border-box;
}
@media (max-width: 767px) {
  .testimonial-card { width: 100%; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .testimonial-card { width: 50%; }
}
@media (min-width: 1024px) {
  .testimonial-card { width: 33.333%; }
}
.testimonial-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
  padding: 0;
}
.testimonial-dot.active {
  background: #ff6b00;
}
/* ===== Badges de catégories blog — nouvelles rubriques (2026-08) =====
   Le CSS Tailwind compilé (index-*.css) est purgé : ces classes n'y existent pas.
   On les définit ici car animations.css est chargé par blog/index.html ET par
   toutes les pages d'articles. Palette alignée sur Tailwind 100/800. */
.bg-yellow-100 { background-color: #fef9c3; }
.text-yellow-800 { color: #854d0e; }
.bg-rose-100 { background-color: #ffe4e6; }
.text-rose-800 { color: #9f1239; }
.bg-violet-100 { background-color: #ede9fe; }
.text-violet-800 { color: #5b21b6; }
.bg-pink-100 { background-color: #fce7f3; }
.text-pink-800 { color: #9d174d; }
.bg-stone-100 { background-color: #f5f5f4; }
.text-stone-800 { color: #292524; }
.bg-slate-100 { background-color: #f1f5f9; }
.text-slate-800 { color: #1e293b; }
.bg-zinc-100 { background-color: #f4f4f5; }
.text-zinc-800 { color: #27272a; }
