/* ==========================================================================
   Tripa IT Solutions - High Impact Animations & FX
   ========================================================================== */

/* Keyframe Animations */
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(1.5deg); }
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.4); opacity: 0; }
  100% { transform: scale(0.95); opacity: 0; }
}

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

@keyframes shine {
  0% { left: -100%; }
  100% { left: 125%; }
}

@keyframes borderGlowPulse {
  0%, 100% { box-shadow: 0 0 15px rgba(44, 130, 179, 0.2); }
  50% { box-shadow: 0 0 30px rgba(44, 130, 179, 0.6), 0 0 10px rgba(6, 182, 212, 0.4); }
}

@keyframes orbMove1 {
  0% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(100px, -80px) scale(1.2); }
  66% { transform: translate(-50px, 100px) scale(0.9); }
  100% { transform: translate(0, 0) scale(1); }
}

@keyframes orbMove2 {
  0% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-120px, 60px) scale(1.1); }
  66% { transform: translate(80px, -90px) scale(0.85); }
  100% { transform: translate(0, 0) scale(1); }
}

/* Background Animated Gradient Orbs */
.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
}

.bg-orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(44, 130, 179, 0.8) 0%, rgba(6, 182, 212, 0) 70%);
  top: -100px;
  left: -100px;
  animation: orbMove1 18s ease-in-out infinite;
}

.bg-orb-2 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.6) 0%, rgba(44, 130, 179, 0) 70%);
  bottom: 10%;
  right: -50px;
  animation: orbMove2 22s ease-in-out infinite;
}

.bg-orb-3 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.5) 0%, rgba(44, 130, 179, 0) 70%);
  top: 45%;
  left: 30%;
  animation: orbMove1 25s ease-in-out reverse infinite;
}

/* Dynamic Gradient Text Animation */
.animated-gradient-text {
  background: linear-gradient(270deg, #ffffff, var(--primary-light), #38bdf8, var(--primary), #ffffff);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 8s ease infinite;
}

/* Interactive Scroll Reveal Classes */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.reveal-left {
  transform: translateX(-50px);
}

.reveal.reveal-right {
  transform: translateX(50px);
}

.reveal.reveal-scale {
  transform: scale(0.9);
}

.reveal.active {
  opacity: 1;
  transform: translate(0) scale(1);
}

/* Stagger Delay Utilities */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* Interactive Hover FX */
.hover-glow {
  transition: var(--transition);
}

.hover-glow:hover {
  animation: borderGlowPulse 2s infinite;
}

/* Glowing Card Border */
.glow-card {
  position: relative;
}

.glow-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  background: linear-gradient(135deg, var(--primary), transparent 60%, var(--accent-cyan));
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.glow-card:hover::after {
  opacity: 1;
}

/* Shimmer Button Effect */
.shimmer-btn {
  position: relative;
  overflow: hidden;
}

.shimmer-btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    60deg,
    transparent 30%,
    rgba(255, 255, 255, 0.25) 50%,
    transparent 70%
  );
  transform: rotate(30deg);
  animation: shine 4s infinite;
}
