/* Advanced Logo Animations & Visual Enhancements */
.logo-animated .logo-img {
  height: 90px; /* Increased size for header area */
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.08));
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform: scale(1);
}

.logo-animated:hover .logo-img,
.logo-animated:focus .logo-img {
  transform: scale(1.05) rotate(2deg);
  filter: drop-shadow(0 4px 12px rgba(13, 110, 253, 0.25)) brightness(1.02);
}

.logo-animated:active .logo-img {
  transform: scale(0.98) rotate(1deg);
  filter: drop-shadow(0 2px 6px rgba(13, 110, 253, 0.15));
}

/* Mobile logo */
@media (max-width: 991px) {
  .logo-animated .logo-img {
    height: 50px;
  }
}

/* Footer logo with enhanced animations */
.footer-logo .footer-logo-img {
  height: 60px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.08));
  transition: all 0.35s ease;
  position: relative;
}

.footer-logo:hover .footer-logo-img,
.footer-logo:focus .footer-logo-img {
  transform: scale(1.1) rotate(-3deg);
  filter: drop-shadow(0 6px 20px rgba(13, 110, 253, 0.2)) saturate(1.1);
}

.footer-logo:active .footer-logo-img {
  transform: scale(1.05) rotate(-2deg);
}

/* Global Visual Enhancements */
.hover-lift {
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hover-lift:hover,
.hover-lift:focus {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 32px rgba(13, 110, 253, 0.15);
}

.hover-glow {
  transition: all 0.3s ease;
}

.hover-glow:hover,
.hover-glow:focus {
  box-shadow: 0 0 20px rgba(13, 110, 253, 0.3);
  transform: translateY(-2px);
}

/* Animated Backgrounds */
.animated-bg-primary {
  background: linear-gradient(45deg, #0d6efd, #6610f2, #0d6efd) !important;
  background-size: 300% 300% !important;
  animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.animated-bg-dark {
  background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460) !important;
  background-size: 400% 400% !important;
  animation: darkGradient 6s ease infinite;
}

@keyframes darkGradient {
  0% { background-position: 0% 50%; }
  25% { background-position: 100% 50%; }
  50% { background-position: 100% 0%; }
  75% { background-position: 0% 100%; }
  100% { background-position: 0% 50%; }
}

/* Enhanced Cards */
.card-hover-enhanced {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.card-hover-enhanced::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(13, 110, 253, 0.1), transparent);
  transition: left 0.5s ease;
}

.card-hover-enhanced:hover::before {
  left: 100%;
}

.card-hover-enhanced:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 20px 40px rgba(13, 110, 253, 0.15);
}

/* Floating Elements */
.floating-elements {
  animation: floatAround 6s ease-in-out infinite;
}

@keyframes floatAround {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  25% { transform: translateY(-5px) rotate(1deg); }
  50% { transform: translateY(-10px) rotate(0deg); }
  75% { transform: translateY(-5px) rotate(-1deg); }
}

.floating-slow {
  animation: floatSlow 8s ease-in-out infinite;
}

@keyframes floatSlow {
  0%, 100% { transform: translateY(0px) translateX(0px); }
  33% { transform: translateY(-8px) translateX(4px); }
  66% { transform: translateY(-4px) translateX(-4px); }
}

/* Pulsing Effects */
.pulse-glow {
  animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 5px rgba(13, 110, 253, 0.5);
  }
  50% {
    box-shadow: 0 0 20px rgba(13, 110, 253, 0.8), 0 0 30px rgba(13, 110, 253, 0.3);
  }
}

.pulse-subtle {
  animation: pulseSubtle 3s ease-in-out infinite;
}

@keyframes pulseSubtle {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.02);
    opacity: 0.9;
  }
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(45deg, #0d6efd, #6610f2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: textShimmer 3s ease-in-out infinite;
}

@keyframes textShimmer {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.gradient-text-primary {
  background: linear-gradient(135deg, #0d6efd, #198754, #ffc107);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: textRainbow 5s ease infinite;
}

@keyframes textRainbow {
  0%, 100% {
    background-position: left;
  }
  50% {
    background-position: right;
  }
}

/* Smooth Scroll */
html {
  scroll-behavior: smooth;
}

/* Enhanced Transitions */
* {
  transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

/* Loading States */
.loading-progress {
  position: relative;
  overflow: hidden;
}

.loading-progress::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(13, 110, 253, 0.2), transparent);
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Success Animations */
.success-bounce {
  animation: bounceSuccess 0.8s ease;
}

@keyframes bounceSuccess {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* Interactive Elements */
.interactive-hover {
  position: relative;
  overflow: hidden;
}

.interactive-hover::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(13, 110, 253, 0.1) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.interactive-hover:hover::before {
  width: 300px;
  height: 300px;
}
