/* 3D Industrial Animations and Effects */

@keyframes fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-20px);
  }
}

@keyframes float-3d {

  0%,
  100% {
    transform: translateY(0px) translateZ(0px);
  }

  50% {
    transform: translateY(-20px) translateZ(50px);
  }
}

@keyframes rotate-3d {
  0% {
    transform: rotateY(0deg) rotateX(0deg);
  }

  100% {
    transform: rotateY(360deg) rotateX(360deg);
  }
}

@keyframes glow {

  0%,
  100% {
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.5);
  }

  50% {
    box-shadow: 0 0 40px rgba(34, 211, 238, 0.8);
  }
}

@keyframes glow-industrial {

  0%,
  100% {
    box-shadow:
      0 0 20px rgba(59, 130, 246, 0.3),
      0 10px 40px rgba(0, 0, 0, 0.3),
      inset 0 0 20px rgba(59, 130, 246, 0.1);
  }

  50% {
    box-shadow:
      0 0 40px rgba(59, 130, 246, 0.5),
      0 15px 50px rgba(0, 0, 0, 0.4),
      inset 0 0 30px rgba(59, 130, 246, 0.2);
  }
}

@keyframes marquee {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(50%);
  }
}

@keyframes gradient {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

@keyframes scan-line {
  0% {
    transform: translateY(-100vh);
  }

  100% {
    transform: translateY(100vh);
  }
}

@keyframes move-bg {
  0% { background-position: 0px 0px; }
  100% { background-position: 50px 50px; }
}

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

  100% {
    transform: scale(2);
    opacity: 0;
  }
}

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

.animate-slide-up {
  animation: slide-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

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

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

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

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

.animate-marquee {
  animation: marquee 30s linear infinite;
}

.animate-gradient {
  background-size: 200% 200%;
  animation: gradient 3s ease infinite;
}

.animate-scan-line {
  animation: scan-line 8s linear infinite;
}

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

/* 3D Perspective Container */
.perspective-container {
  perspective: 2000px;
  perspective-origin: center;
}

.card-3d-industrial {
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.6s ease;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.5),
    0 15px 30px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.5);
  position: relative;
}

@media (hover: hover) and (pointer: fine) {
  .card-3d-industrial:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(5deg) scale3d(1.02, 1.02, 1.02);
    z-index: 50;
    box-shadow:
      0 50px 80px rgba(0, 0, 0, 0.6),
      0 25px 40px rgba(59, 130, 246, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.2),
      inset 0 -1px 0 rgba(0, 0, 0, 0.6);
  }
}

.card-3d-industrial::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%, rgba(0, 0, 0, 0.2) 100%);
  pointer-events: none;
  z-index: 1;
}

/* Removed generic hover to allow specific classes */

/* Specific Component Hovers */
@media (hover: hover) and (pointer: fine) {
  .hover-3d-isometric:hover {
    transform: translateY(-20px) rotateX(8deg) rotateY(8deg) scale(1.02) translateZ(50px) !important;
    box-shadow:
      0 50px 100px rgba(0, 0, 0, 0.6),
      0 25px 50px rgba(59, 130, 246, 0.3),
      inset 0 2px 0 rgba(255, 255, 255, 0.15),
      inset 0 -2px 0 rgba(0, 0, 0, 0.6);
  }

  .hover-3d-why:hover {
    transform: translateY(-15px) rotateX(8deg) rotateY(8deg) translateZ(50px) !important;
  }

  .hover-3d-process-even:hover {
    transform: translateX(-20px) rotateY(-10deg) scale(1.02) translateZ(50px) !important;
  }

  .hover-3d-process-odd:hover {
    transform: translateX(20px) rotateY(10deg) scale(1.02) translateZ(50px) !important;
  }

  .hover-lift-scale:hover {
    transform: translateY(-10px) scale(1.02) !important;
    box-shadow: 0 20px 40px -20px rgba(34, 211, 238, 0.5) !important;
  }
}

/* Metal Texture */
.metal-texture {
  background: linear-gradient(145deg, #2d3748 0%, #1a202c 50%, #2d3748 100%);
  position: relative;
  overflow: hidden;
}

.metal-texture::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255, 255, 255, 0.03) 2px, rgba(255, 255, 255, 0.03) 4px);
  animation: scan-line 10s linear infinite;
}

.metal-texture::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 30%, transparent 70%, rgba(0, 0, 0, 0.3) 100%);
  pointer-events: none;
}

/* Isometric Grid */
.isometric-grid {
  background-image:
    linear-gradient(30deg, rgba(59, 130, 246, 0.1) 12%, transparent 12.5%, transparent 87%, rgba(59, 130, 246, 0.1) 87.5%, rgba(59, 130, 246, 0.1)),
    linear-gradient(150deg, rgba(59, 130, 246, 0.1) 12%, transparent 12.5%, transparent 87%, rgba(59, 130, 246, 0.1) 87.5%, rgba(59, 130, 246, 0.1)),
    linear-gradient(30deg, rgba(59, 130, 246, 0.1) 12%, transparent 12.5%, transparent 87%, rgba(59, 130, 246, 0.1) 87.5%, rgba(59, 130, 246, 0.1)),
    linear-gradient(150deg, rgba(59, 130, 246, 0.1) 12%, transparent 12.5%, transparent 87%, rgba(59, 130, 246, 0.1) 87.5%, rgba(59, 130, 246, 0.1));
  background-size: 80px 140px;
  background-position: 0 0, 0 0, 40px 70px, 40px 70px;
}

/* Tech Grid Pattern */
.tech-grid {
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  position: relative;
  animation: move-bg 5s linear infinite;
}

.tech-grid::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 40%, rgba(0, 0, 0, 0.8) 100%);
  pointer-events: none;
}

/* Holographic Effect */
.holographic {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(147, 51, 234, 0.2) 25%, rgba(59, 130, 246, 0.2) 50%, rgba(147, 51, 234, 0.2) 75%, rgba(59, 130, 246, 0.2) 100%);
  background-size: 400% 400%;
  animation: gradient 8s ease infinite;
  position: relative;
}

.holographic::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255, 255, 255, 0.05) 2px, rgba(255, 255, 255, 0.05) 4px);
  pointer-events: none;
}

/* Neon Glow */
.neon-glow {
  text-shadow: 0 0 10px rgba(59, 130, 246, 0.8), 0 0 20px rgba(59, 130, 246, 0.6), 0 0 30px rgba(59, 130, 246, 0.4), 0 0 40px rgba(59, 130, 246, 0.2);
}

/* Circuit Board Pattern */
.circuit-pattern {
  background-color: #0f172a;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 20%, rgba(147, 51, 234, 0.1) 0%, transparent 50%);
}

/* Depth Shadow */
.depth-shadow {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.1),
    0 -1px 0 rgba(0, 0, 0, 0.5),
    0 10px 30px rgba(0, 0, 0, 0.4),
    0 20px 60px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Industrial Button */
.btn-industrial {
  background: linear-gradient(145deg, #2d3748, #1a202c);
  box-shadow:
    5px 5px 10px rgba(0, 0, 0, 0.5),
    -5px -5px 10px rgba(255, 255, 255, 0.05),
    inset 0 -2px 0 rgba(0, 0, 0, 0.5),
    inset 0 2px 0 rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  transition: all 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
  .btn-industrial:hover {
    background: linear-gradient(145deg, #3b4d63, #252f3f);
    box-shadow:
      8px 8px 16px rgba(0, 0, 0, 0.6),
      -8px -8px 16px rgba(255, 255, 255, 0.08),
      inset 0 -2px 0 rgba(0, 0, 0, 0.6),
      inset 0 2px 0 rgba(255, 255, 255, 0.15),
      0 0 30px rgba(59, 130, 246, 0.4);
    border-color: rgba(59, 130, 246, 0.6);
    transform: translateY(-2px);
  }
}

.btn-industrial:active {
  transform: translateY(0);
  box-shadow:
    2px 2px 5px rgba(0, 0, 0, 0.5),
    -2px -2px 5px rgba(255, 255, 255, 0.03),
    inset 0 2px 5px rgba(0, 0, 0, 0.4);
}

/* Glass Morphism Industrial */
.glass-industrial {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(59, 130, 246, 0.2);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.5);
}

/* Linear transition for endless Swiper marquees */
.stats-bar-swiper .swiper-wrapper,
.seo-swiper-1 .swiper-wrapper,
.seo-swiper-2 .swiper-wrapper,
.clients-swiper .swiper-wrapper {
  transition-timing-function: linear !important;
}

/* Faster AOS animations on mobile to improve perceived load speed */
@media (max-width: 768px) {
  [data-aos] {
    transition-duration: 400ms !important;
    transition-delay: 0ms !important;
  }
}