/* Modern Footer Styles */

.footer {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #e2e8f0;
  padding: 5rem 0 2rem;
  position: relative;
  overflow: hidden;
}

/* Background decoration elements */
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 7px;
  background: linear-gradient(90deg, #4f46e5, #7c3aed, #ec4899);
  z-index: 1;
}

.footer::after {
  content: '';
  position: absolute;
  top: 7px;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

/* Footer grid layout */
.footer-content {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 4rem;
  position: relative;
  z-index: 2;
}

/* About section */
.footer-about {
  padding-right: 2rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.footer-logo-icon {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.5rem;
  margin-right: 0.75rem;
  box-shadow: 0 5px 15px rgba(79, 70, 229, 0.4);
}

.footer .logo-text {
  font-size: 1.75rem;
  font-weight: 800;
  background: linear-gradient(90deg, #fff, #d1d5db);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
}

.footer-description {
  color: #94a3b8;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

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

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
  transform: translateY(-5px);
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: white;
  box-shadow: 0 5px 15px rgba(79, 70, 229, 0.3);
  border-color: transparent;
}

.social-link:nth-child(2):hover {
  background: linear-gradient(135deg, #dc2626, #ef4444);
  box-shadow: 0 5px 15px rgba(220, 38, 38, 0.3);
}

.social-link:nth-child(3):hover {
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  box-shadow: 0 5px 15px rgba(2, 132, 199, 0.3);
}

.social-link:nth-child(4):hover {
  background: linear-gradient(135deg, #db2777, #f472b6);
  box-shadow: 0 5px 15px rgba(219, 39, 119, 0.3);
}

/* Links section */
.footer-links-section {
  position: relative;
}

.footer-heading {
  color: white;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, #4f46e5, #7c3aed);
  border-radius: 3px;
}

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

.footer-links li {
  margin-bottom: 0.9rem;
  position: relative;
}

.footer-links li a {
  color: #94a3b8;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  padding-left: 0;
}

.footer-links li a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, #4f46e5, #7c3aed);
  transition: all 0.3s ease;
  opacity: 0;
}

.footer-links li a:hover {
  color: white;
  padding-left: 16px;
}

.footer-links li a:hover::before {
  width: 10px;
  opacity: 1;
}

/* Contact info */
.contact-info {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-info li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.2rem;
  color: #94a3b8;
}

.contact-info li i {
  color: #4f46e5;
  margin-right: 1rem;
  font-size: 1.1rem;
  background: rgba(79, 70, 229, 0.1);
  padding: 0.5rem;
  border-radius: 50%;
  min-width: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.contact-info li:hover i {
  background: #4f46e5;
  color: white;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

/* Footer bottom */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: #94a3b8;
  position: relative;
  z-index: 2;
}

.copyright {
  opacity: 0.8;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
  color: white;
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: none;
  box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(79, 70, 229, 0.6);
}

/* Responsive design */
@media (max-width: 1024px) {
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  .footer-about {
    grid-column: span 2;
    padding-right: 0;
    margin-bottom: 1rem;
  }
}

@media (max-width: 768px) {
  .footer {
    padding: 4rem 0 2rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .footer-about {
    grid-column: span 1;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .copyright {
    margin-bottom: 1rem;
  }
  
  .footer-bottom-links {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 1rem;
  }
}
