/* ===== GLOBAL ANIMATIONS ===== */
@keyframes navGlow {
  0% { box-shadow: 0 0 5px rgba(var(--primary-rgb), 0); }
  50% { box-shadow: 0 0 15px rgba(var(--primary-rgb), 0.3); }
  100% { box-shadow: 0 0 5px rgba(var(--primary-rgb), 0); }
}

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

@keyframes iconSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes linkPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

@keyframes floatUpDown {
  0% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
  100% { transform: translateY(0); }
}

/* ===== NAVBAR ANIMATIONS ===== */
.nav-desktop .nav-link {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.nav-desktop .nav-link::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary-color);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.nav-desktop .nav-link:hover::before {
  transform: translateX(0);
}

.nav-desktop .nav-link i {
  transition: transform 0.3s ease;
}

.nav-desktop .nav-link:hover i {
  transform: scale(1.2) rotate(10deg);
  animation: iconSpin 0.5s ease;
}

.nav-desktop .nav-link.active {
  animation: navGlow 2s infinite ease-in-out;
}

/* Mobile Nav Animations */
.nav-mobile-link {
  transition: all 0.3s ease;
}

.nav-mobile-link:hover {
  transform: translateX(10px);
  background: rgba(var(--primary-rgb), 0.1);
}

.nav-mobile-link i {
  transition: transform 0.3s ease;
}

.nav-mobile-link:hover i {
  transform: scale(1.2) rotate(10deg);
  animation: iconSpin 0.5s ease;
}

/* ===== FOOTER ANIMATIONS ===== */
.site-footer {
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, 
    var(--primary-color), 
    var(--secondary-color), 
    var(--primary-color)
  );
  background-size: 200% 100%;
  animation: footerWaveFlow 3s infinite linear;
}

.footer-column {
  transition: transform 0.3s ease;
}

.footer-column:hover {
  transform: translateY(-5px);
}

.footer-social a {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.footer-social a:hover {
  animation: linkPulse 0.5s ease;
}

.footer-social a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.footer-social a:hover::before {
  transform: translateY(0);
}

.footer-contact .contact-item {
  transition: all 0.3s ease;
}

.footer-contact .contact-item:hover {
  transform: translateX(5px);
}

.footer-contact .contact-item i {
  transition: transform 0.3s ease;
}

.footer-contact .contact-item:hover i {
  animation: iconSpin 0.5s ease;
}

.footer-links a {
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-links a:hover {
  animation: floatUpDown 1s infinite ease-in-out;
  color: var(--primary-color) !important;
}

/* Footer Bottom Animation */
.footer-bottom-content {
  position: relative;
  overflow: hidden;
}

.footer-bottom-content::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(var(--primary-rgb), 0.5), 
    transparent
  );
  animation: footerWaveFlow 3s infinite linear;
}