.footer {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 50%, #2c3e50 100%);
  position: relative;
  overflow: hidden;
  margin-top: auto;
  width: 100%;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 20% 20%,
      rgba(102, 126, 234, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(118, 75, 162, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 40% 40%,
      rgba(52, 152, 219, 0.05) 0%,
      transparent 50%
    );
  pointer-events: none;
}

.footer-wave {
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 60px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='gradient-fill' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' style='stop-color:%23234480;'/%3E%3Cstop offset='100%25' style='stop-color:%232a5298;'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86c82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z' fill='url(%23gradient-fill)'/%3E%3C/svg%3E");
  background-size: cover;
}

.footer-content {
  position: relative;
  z-index: 2;
  padding: 60px 0 30px;
}

.footer h5 {
  color: #ecf0f1;
  font-weight: 700;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
  font-size: 1.3rem;
}

.footer h5::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 50%;
  transform: translateX(50%) !important;
  width: 100px;
  height: 3px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 2px;
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from {
    box-shadow: 0 0 5px rgba(102, 126, 234, 0.5);
  }
  to {
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.8);
  }
}

.footer p {
  color: #bdc3c7;
  line-height: 1.8;
  margin-bottom: 15px;
  transition: color 0.3s ease;
}

.footer p:hover {
  color: #ecf0f1;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  transition: all 0.3s ease;
}

.contact-item:hover {
  transform: translateX(-5px);
  color: #667eea;
}

.contact-item i {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 50%;
  color: white;
  font-size: 10px;
  flex-shrink: 0;
}

.footer .list-unstyled {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer .list-unstyled li {
  position: relative;
}

.footer .list-unstyled a {
  color: #bdc3c7;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  padding: 8px 12px;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.footer .list-unstyled a::before {
  content: "";
  position: absolute;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(102, 126, 234, 0.1),
    transparent
  );
  transition: right 0.3s ease;
}

.footer .list-unstyled a:hover::before {
  right: 100%;
}

.footer .list-unstyled a:hover {
  color: #667eea;
  background: rgba(102, 126, 234, 0.1);
  transform: translateX(-5px);
  text-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #bdc3c7;
  text-decoration: none;
  padding: 12px 16px;
  border-radius: 12px;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
}

.social-link:hover {
  color: white;
  background: linear-gradient(135deg, #667eea, #764ba2);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.social-link i {
  font-size: 1.2rem;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-divider {
  border: none;
  height: 1px;
  background: linear-gradient(
    135deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  margin: 40px 0 30px;
  position: relative;
}

.footer-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 2px;
}

.copyright {
  color: #95a5a6;
  font-size: 0.95rem;
  text-align: center;
  padding: 20px 0;
  position: relative;
}

.copyright::before {
  content: "✨";
  margin-left: 8px;
  animation: sparkle 2s ease-in-out infinite;
}

.copyright::after {
  content: "✨";
  margin-right: 8px;
  animation: sparkle 2s ease-in-out infinite 1s;
}

@keyframes sparkle {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

@media (max-width: 768px) {
  .footer-content {
    padding: 40px 0 20px;
  }

  .footer h5 {
    font-size: 1.1rem;
    margin-bottom: 20px;
  }

  .contact-info {
    margin-bottom: 30px;
  }

  .social-links {
    margin-bottom: 30px;
  }

  .footer-wave {
    height: 40px;
  }
}

/* Floating particles animation */
.footer::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(
      2px 2px at 20px 30px,
      rgba(255, 255, 255, 0.1),
      transparent
    ),
    radial-gradient(2px 2px at 40px 70px, rgba(255, 255, 255, 0.1), transparent),
    radial-gradient(1px 1px at 90px 40px, rgba(255, 255, 255, 0.1), transparent),
    radial-gradient(
      1px 1px at 130px 80px,
      rgba(255, 255, 255, 0.1),
      transparent
    ),
    radial-gradient(
      2px 2px at 160px 30px,
      rgba(255, 255, 255, 0.1),
      transparent
    );
  background-repeat: repeat;
  background-size: 200px 100px;
  animation: float 20s linear infinite;
  pointer-events: none;
  opacity: 0.6;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  100% {
    transform: translateY(-100px);
  }
}
