/* 
 * =========================================================================
 * Animations.css - Custom Keyframes & Motion Dynamics
 * =========================================================================
 */

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

.animated-gradient-bg {
  background: linear-gradient(-45deg, #153e3e, #215C5C, #2E8B8B, #00C9A7);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
}

/* Typing animation cursor */
.typing-cursor {
  display: inline-block;
  width: 3px;
  background-color: var(--accent-color);
  margin-left: 4px;
  animation: blink 0.7s infinite;
}

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

/* Animated Border Glow */
.animated-border-glow {
  position: relative;
}

.animated-border-glow::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
  z-index: -1;
  opacity: 0.15;
  transition: opacity 0.3s ease;
}

.animated-border-glow:hover::before {
  opacity: 0.7;
}

/* Underline Growth Animation */
.animated-underline {
  position: relative;
  display: inline-block;
}

.animated-underline::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
  border-radius: 2px;
  transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Timeline animations support */
.timeline-item {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.timeline-item.aos-animate {
  opacity: 1;
  transform: translateY(0);
}

/* Card Hover Lift & Shadow Glow */
.hover-lift {
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 38px -12px rgba(33, 92, 92, 0.25);
}

/* Icon rotation on hover */
.hover-rotate-icon:hover i {
  transform: rotate(360deg);
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hover-rotate-icon i {
  transition: transform 0.4s ease;
}

/* Glowing text on hover */
.hover-glow-text:hover {
  text-shadow: 0 0 10px rgba(0, 201, 167, 0.5);
  color: var(--accent-color) !important;
}

/* Float Keyframes */
@keyframes floatScale {
  0%, 100% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-10px) scale(1.02); }
}

.float-scale-animate {
  animation: floatScale 7s ease-in-out infinite;
}
