.site-footer {
  background: linear-gradient(to right, rgba(255, 255, 255, 0.95), rgba(240, 240, 240, 0.95));
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
  padding: 2.5rem 0 2rem;
  margin-top: 3rem;
  width: 100%;
  color: var(--text-color);
  border-top: 3px solid;
  border-image: linear-gradient(90deg, var(--gradient-start), var(--gradient-end)) 1;
  position: relative;
  overflow: hidden;
}

body.dark-mode .site-footer {
  background: linear-gradient(to right, rgba(30, 30, 30, 0.95), rgba(40, 40, 40, 0.95));
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.3);
  color: var(--text-color);
  border-image: linear-gradient(90deg, #1a1a2e, #16213e) 1;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
  animation: fadeInUp 0.8s forwards;
}

.footer-section {
  flex: 1;
  min-width: 250px;
  margin-bottom: 1.5rem;
  padding: 0 1rem;
  transition: all 0.3s ease;
}

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

.footer-section h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-weight: 600;
  position: relative;
  padding-bottom: 0.5rem;
  font-size: 1.3rem;
  letter-spacing: 0.5px;
}

.footer-section h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
  transition: width 0.3s ease;
}

.footer-section:hover h3::after {
  width: 80px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--text-color);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  padding-left: 0.5rem;
  display: inline-block;
  font-weight: 500;
}

.footer-links a::before {
  content: '→';
  position: absolute;
  left: -0.5rem;
  opacity: 0;
  transition: all 0.2s ease;
}

.footer-links a:hover {
  color: var(--hover-color);
  padding-left: 1rem;
  transform: translateX(3px);
}

.footer-links a:hover::before {
  left: 0;
  opacity: 1;
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 2;
}

.footer-bottom::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gradient-start), var(--gradient-end), transparent);
}

.footer-bottom p {
  font-size: 0.9rem;
  color: var(--text-color);
  position: relative;
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* Dark mode support */
body.dark-mode .site-footer {
  background-color: rgba(35, 35, 35, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

body.dark-mode .footer-section h3 {
  color: var(--primary-color-dark);
}

body.dark-mode .footer-links a,
body.dark-mode .footer-section p {
  color: #e0e0e0;
}

body.dark-mode .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

body.dark-mode .footer-bottom p {
  color: #a0a0a0;
}

/* Background elements */
.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 10% 20%, rgba(116, 235, 213, 0.1) 0%, transparent 50%),
             radial-gradient(circle at 90% 80%, rgba(172, 182, 229, 0.1) 0%, transparent 50%);
  z-index: 1;
}

/* Animated dots */
.site-footer::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 50% 50%, var(--gradient-start) 0%, transparent 0.5%),
    radial-gradient(circle at 20% 30%, var(--gradient-end) 0%, transparent 0.5%),
    radial-gradient(circle at 80% 20%, var(--gradient-start) 0%, transparent 0.5%),
    radial-gradient(circle at 10% 80%, var(--gradient-end) 0%, transparent 0.5%),
    radial-gradient(circle at 90% 70%, var(--gradient-start) 0%, transparent 0.5%);
  background-size: 120px 120px;
  background-repeat: repeat;
  opacity: 0.3;
  z-index: 1;
  animation: floatingDots 15s infinite linear;
}

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

/* Social icons styling */
.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 1rem;
}

.social-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: white;
  transition: all 0.3s ease;
}

.social-icon:hover {
  transform: translateY(-5px) rotate(10deg);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
  }
  
  .footer-section {
    margin-bottom: 2rem;
  }
  
  .site-footer::after {
    background-size: 80px 80px;
  }
}