/* Premium Footer Styles - Consistent Across All Pages */
.main-footer {
  background: linear-gradient(135deg, var(--dark-color) 0%, #1a202c 100%);
  color: var(--light-color);
  padding: 4rem 0 2rem;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-col {
  margin-bottom: 1.5rem;
}

.footer-about {
  grid-column: 1 / -1;
}

@media (min-width: 768px) {
  .footer-about {
    grid-column: span 2;
  }
  
  .footer-grid {
    gap: 3rem;
  }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1.5rem;
}

.footer-logo i {
  color: var(--accent-color);
  font-size: 1.8rem;
}

.footer-about p {
  line-height: 1.6;
  margin-bottom: 1.5rem;
  color: var(--gray-color);
  max-width: 500px;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--light-gray);
  transition: var(--transition);
}

.social-links a:hover {
  background-color: rgba(72, 149, 239, 0.2);
  color: white;
  transform: translateY(-3px);
}

.footer-col h3 {
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--accent-color);
}

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

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

.footer-col ul li a {
  color: var(--gray-color);
  text-decoration: none;
  transition: var(--transition);
  font-weight: 500;
  display: inline-block;
  padding: 0.25rem 0;
  position: relative;
}

.footer-col ul li a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}

.footer-col ul li a:hover {
  color: white;
  padding-left: 8px;
}

.footer-col ul li a:hover::before {
  width: 100%;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
}

.footer-bottom p {
  color: var(--gray-color);
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.footer-col {
  animation: fadeInUp 0.6s ease forwards;
  animation-delay: calc(var(--animation-order) * 0.1s);
  opacity: 0;
}

/* Set animation order */
.footer-col:nth-child(1) { --animation-order: 1; }
.footer-col:nth-child(2) { --animation-order: 2; }
.footer-col:nth-child(3) { --animation-order: 3; }
.footer-col:nth-child(4) { --animation-order: 4; }
.footer-col:nth-child(5) { --animation-order: 5; }

/* Responsive adjustments */
@media (max-width: 768px) {
  .main-footer {
    padding: 3rem 0 2rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-about {
    text-align: center;
  }
  
  .footer-about p {
    margin-left: auto;
    margin-right: auto;
  }
  
  .social-links {
    justify-content: center;
  }
  
  .footer-col {
    text-align: center;
  }
  
  .footer-col h3::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .footer-col ul li a:hover {
    padding-left: 0;
  }
  
  .footer-col ul li a::before {
    display: none;
  }
}
