/* ============================================================
   CLCompany - Animations CSS
   ============================================================ */

/* Shimmer Effect */
@keyframes shimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

.shimmer {
  background: linear-gradient(
    90deg,
    rgba(232, 80, 10, 0.1) 25%,
    rgba(232, 80, 10, 0.3) 50%,
    rgba(232, 80, 10, 0.1) 75%
  );
  background-size: 200% auto;
  animation: shimmer 3s linear infinite;
}

/* Pulse Animation */
@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 6px 20px rgba(232, 80, 10, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(232, 80, 10, 0.6);
  }
}

.pulse {
  animation: pulse 2s ease infinite;
}

/* Glow Effect */
@keyframes glow {
  0%,
  100% {
    box-shadow: 0 0 10px rgba(232, 80, 10, 0.4);
  }
  50% {
    box-shadow:
      0 0 25px rgba(232, 80, 10, 0.8),
      0 0 40px rgba(192, 57, 43, 0.4);
  }
}

.glow {
  animation: glow 2.5s ease infinite;
}

/* Bounce */
@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  25% {
    transform: translateY(-12px);
  }
  50% {
    transform: translateY(-6px);
  }
  75% {
    transform: translateY(-10px);
  }
}

/* Slide In Left */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-60px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Slide In Right */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(60px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Zoom In */
@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.7);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Flip In */
@keyframes flipIn {
  from {
    opacity: 0;
    transform: rotateY(-90deg);
  }
  to {
    opacity: 1;
    transform: rotateY(0);
  }
}

/* Draw Line */
@keyframes drawLine {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

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

/* Number Count Animation */
@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Card Hover Lift */
.card-hover {
  transition:
    transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.35s ease;
}

.card-hover:hover {
  transform: translateY(-10px) scale(1.01);
}

/* Gradient Border Animation */
@keyframes gradientBorder {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Underline Expand */
.underline-expand {
  position: relative;
}

.underline-expand::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

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

/* Image Hover Zoom */
.img-hover-zoom {
  overflow: hidden;
}

.img-hover-zoom img {
  transition: transform 0.5s ease;
}

.img-hover-zoom:hover img {
  transform: scale(1.08);
}

/* Stagger Children Animation */
.stagger-children > * {
  opacity: 0;
  transform: translateY(30px);
}

.stagger-children.animated > *:nth-child(1) {
  animation: fadeInUp 0.6s ease 0.1s forwards;
}
.stagger-children.animated > *:nth-child(2) {
  animation: fadeInUp 0.6s ease 0.2s forwards;
}
.stagger-children.animated > *:nth-child(3) {
  animation: fadeInUp 0.6s ease 0.3s forwards;
}
.stagger-children.animated > *:nth-child(4) {
  animation: fadeInUp 0.6s ease 0.4s forwards;
}
.stagger-children.animated > *:nth-child(5) {
  animation: fadeInUp 0.6s ease 0.5s forwards;
}
.stagger-children.animated > *:nth-child(6) {
  animation: fadeInUp 0.6s ease 0.6s forwards;
}
.stagger-children.animated > *:nth-child(7) {
  animation: fadeInUp 0.6s ease 0.7s forwards;
}
.stagger-children.animated > *:nth-child(8) {
  animation: fadeInUp 0.6s ease 0.8s forwards;
}

/* Loading Spinner */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* Background pan */
@keyframes bgPan {
  0% {
    background-position: 0% 0%;
  }
  50% {
    background-position: 100% 100%;
  }
  100% {
    background-position: 0% 0%;
  }
}

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

/* Wave */
@keyframes wave {
  0% {
    transform: rotate(0deg);
  }
  10% {
    transform: rotate(14deg);
  }
  20% {
    transform: rotate(-8deg);
  }
  30% {
    transform: rotate(14deg);
  }
  40% {
    transform: rotate(-4deg);
  }
  50% {
    transform: rotate(10deg);
  }
  60% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

/* Flicker */
@keyframes flicker {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

/* Progress bar fill */
@keyframes fillBar {
  from {
    width: 0%;
  }
  to {
    width: var(--fill);
  }
}

.progress-bar {
  height: 4px;
  background: rgba(232, 80, 10, 0.15);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 2px;
  animation: fillBar 1.5s ease forwards;
}

/* Entrance delay utilities */
.delay-100 {
  animation-delay: 0.1s;
}
.delay-200 {
  animation-delay: 0.2s;
}
.delay-300 {
  animation-delay: 0.3s;
}
.delay-400 {
  animation-delay: 0.4s;
}
.delay-500 {
  animation-delay: 0.5s;
}
.delay-600 {
  animation-delay: 0.6s;
}
.delay-700 {
  animation-delay: 0.7s;
}
.delay-800 {
  animation-delay: 0.8s;
}
