/* footer.css - Modern Gradient Footer */
.footer {
  background: linear-gradient(135deg, var(--bg-dark) 0%, #1e293b 100%);
  color: var(--text-light);
  padding: var(--spacing-xxl) 0 var(--spacing-lg);
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--primary-color),
    var(--accent-color),
    transparent
  );
  opacity: 0.6;
}

.footer::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 40%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(99, 102, 241, 0.1) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-xl);
  padding-bottom: var(--spacing-xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: var(--spacing-xl);
  position: relative;
  z-index: 1;
}

/* Tablet and Desktop Layout */
@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr); /* 3 columns for tablet+ */
    gap: var(--spacing-xl);
  }
}

@media (min-width: 992px) {
  .footer-grid {
    /* Optional: Adjust column widths for wider screens */
    grid-template-columns: 2fr 1fr 1.5fr; /* Example: Logo area wider */
  }
}

.footer-info {
  position: relative;
}

.footer-info .logo-img.footer-logo {
  height: 48px;
  margin-bottom: var(--spacing-lg);
  filter: brightness(1.1) drop-shadow(0 2px 8px rgba(99, 102, 241, 0.3));
}

.footer-info h3 {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 1.875rem;
  background: linear-gradient(
    135deg,
    var(--text-light) 0%,
    rgba(255, 255, 255, 0.8) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--spacing-lg);
  letter-spacing: -0.02em;
}

.footer-info p {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--font-size-md);
  line-height: var(--line-height-relaxed);
  max-width: 400px;
}

.footer-links h3,
.footer-contact h3 {
  font-family: var(--font-primary);
  font-size: var(--font-size-lg);
  margin-bottom: var(--spacing-lg);
  color: var(--text-light);
  font-weight: 600;
  letter-spacing: -0.01em;
  position: relative;
}

.footer-links h3::after,
.footer-contact h3::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--bg-gradient-secondary);
  border-radius: var(--border-radius-pill);
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.footer-links li {
  margin-bottom: 0;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: var(--font-size-sm);
  font-weight: 400;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  padding: var(--spacing-xs) 0;
  position: relative;
}

.footer-links a::before {
  content: '';
  position: absolute;
  left: -16px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: width 0.3s ease;
  border-radius: var(--border-radius-pill);
}

.footer-links a:hover {
  color: var(--text-light);
  text-decoration: none;
  transform: translateX(8px);
}

.footer-links a:hover::before {
  width: 12px;
}

.footer-contact p {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--spacing-md);
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-md);
  transition: all 0.3s ease;
}

.footer-contact p:hover {
  color: var(--text-light);
  transform: translateX(4px);
}

.footer-contact p i {
  margin-top: 0.2em;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.2);
  border-radius: var(--border-radius-sm);
  color: var(--primary-color);
  font-size: var(--font-size-xs);
}

.footer-contact p a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-contact p a:hover {
  color: var(--text-light);
  text-decoration: none;
}

.footer-contact p:last-child {
  margin-bottom: 0;
}

/* Social Icons in Footer */
.social-links {
  display: flex;
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.social-links a {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius-md);
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--font-size-lg);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
}

.social-links a:hover {
  background: var(--bg-gradient);
  border-color: transparent;
  color: var(--text-on-primary);
  transform: translateY(-2px) scale(1.05);
  box-shadow: var(--shadow-colored);
  text-decoration: none;
}

.social-links a:nth-child(1):hover {
  background: linear-gradient(135deg, #1877f2, #42a5f5);
}
.social-links a:nth-child(2):hover {
  background: linear-gradient(135deg, #e4405f, #f77737);
}
.social-links a:nth-child(3):hover {
  background: linear-gradient(135deg, #0a66c2, #2196f3);
}
.social-links a:nth-child(4):hover {
  background: linear-gradient(135deg, #25d366, #128c7e);
}

/* Footer Bottom */
.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-xl);
  color: rgba(255, 255, 255, 0.5);
  font-size: var(--font-size-sm);
  position: relative;
  z-index: 1;
}

.footer-bottom::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  margin-bottom: var(--spacing-lg);
}

.footer-bottom p {
  margin-bottom: 0;
  color: inherit;
  font-family: var(--font-accent);
  font-size: var(--font-size-xs);
  letter-spacing: 0.05em;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  transition: all 0.3s ease;
}

.footer-bottom a:hover {
  color: var(--accent-color);
  text-decoration: none;
}

/* Responsive Adjustments for Footer Content Alignment */
@media (max-width: 767px) {
  .footer-info,
  .footer-links,
  .footer-contact {
    text-align: center; /* Center align all content on mobile */
  }
  .footer-info .logo-img {
    margin-left: auto;
    margin-right: auto; /* Center logo */
  }
  .footer-links ul {
    padding-left: 0; /* Remove padding for centered list */
  }
  .footer-links a:hover {
    padding-left: 0; /* Disable indent on mobile hover */
  }
  .footer-contact p {
    justify-content: center; /* Center icons/text */
  }
  .footer-contact .team-social {
    justify-content: center; /* Center social icons */
  }
}
