/* ===== Modern Footer - Enhanced Version ===== */
footer {
  margin-top: auto;
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.98) 0%,
    rgba(9, 14, 28, 0.98) 100%
  );
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--space-3xl) var(--space-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--primary),
    var(--accent),
    transparent
  );
  opacity: 0.6;
}

footer::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(94, 234, 212, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

footer .container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
}

/* Footer Contact Information - Enhanced */
.footer-contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
  align-items: start;
  text-align: left;
}

.footer-contact div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-sm);
  color: var(--text-light);
  font-size: 0.95rem;
  padding: var(--space-xl);
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.footer-contact div::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.footer-contact div:hover::before {
  opacity: 1;
}

.footer-contact div:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
  box-shadow: 
    0 12px 32px rgba(0, 0, 0, 0.3),
    0 2px 8px rgba(255, 255, 255, 0.05) inset;
}

.footer-contact div span {
  font-weight: 700;
  color: var(--text);
  font-size: 1.1rem;
  margin-bottom: var(--space-xs);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-contact div span::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
  display: inline-block;
}

.footer-contact a {
  color: var(--primary-light);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 4px 0;
  border-radius: var(--radius-sm);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-contact a::after {
  content: '→';
  opacity: 0;
  transform: translateX(-4px);
  transition: all 0.3s ease;
}

.footer-contact a:hover {
  color: var(--accent);
  padding-left: 8px;
}

.footer-contact a:hover::after {
  opacity: 1;
  transform: translateX(0);
}

/* WhatsApp Footer Button - Enhanced */
.whatsapp-footer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: white !important;
  padding: 16px 32px;
  border-radius: var(--radius-lg);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 
    0 8px 32px rgba(37, 211, 102, 0.4),
    0 2px 8px rgba(255, 255, 255, 0.1) inset;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: var(--space-md);
  width: 100%;
  max-width: 400px;
  border: 2px solid rgba(37, 211, 102, 0.4);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.whatsapp-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.6s ease;
  z-index: -1;
}

.whatsapp-footer:hover {
  background: linear-gradient(135deg, #128c7e, #25d366);
  transform: translateY(-3px);
  border-color: rgba(37, 211, 102, 0.6);
  box-shadow: 
    0 12px 40px rgba(37, 211, 102, 0.5),
    0 2px 8px rgba(255, 255, 255, 0.15) inset;
}

.whatsapp-footer:hover::before {
  left: 100%;
}

.whatsapp-footer::after {
  content: '';
  display: inline-block;
  width: 24px;
  height: 24px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath fill='white' d='M380.9 97.1C339 55.1 283.2 32 223.9 32c-122.4 0-222 99.6-222 222 0 39.1 10.2 77.3 29.6 111L0 480l117.7-30.9c32.4 17.7 68.9 27 106.1 27h.1c122.3 0 224.1-99.6 224.1-222 0-59.3-25.2-115-67.1-157zm-157 341.6c-33.2 0-65.7-8.9-94-25.7l-6.7-4-69.8 18.3L72 359.2l-4.4-7c-18.5-29.4-28.2-63.3-28.2-98.2 0-101.7 82.8-184.5 184.6-184.5 49.3 0 95.6 19.2 130.4 54.1 34.8 34.9 56.2 81.2 56.1 130.5 0 101.8-84.9 184.6-186.6 184.6zm101.2-138.2c-5.5-2.8-32.8-16.2-37.9-18-5.1-1.9-8.8-2.8-12.5 2.8-3.7 5.6-14.3 18-17.6 21.8-3.2 3.7-6.5 4.2-12 1.4-32.6-16.3-54-29.1-75.5-66-5.7-9.8 5.7-9.1 16.3-30.3 1.8-3.7.9-6.9-.5-9.7-1.4-2.8-12.5-30.1-17.1-41.2-4.5-10.8-9.1-9.3-12.5-9.5-3.2-.2-6.9-.2-10.6-.2-3.7 0-9.7 1.4-14.8 6.9-5.1 5.6-19.4 19-19.4 46.3 0 27.3 19.9 53.7 22.6 57.4 2.8 3.7 39.1 59.7 94.8 83.8 35.2 15.2 49 16.5 66.6 13.9 10.7-1.6 32.8-13.4 37.4-26.4 4.6-13 4.6-24.1 3.2-26.4-1.3-2.5-5-3.9-10.5-6.6z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

footer p {
  color: var(--text-lighter);
  font-size: 0.9rem;
  margin: 0;
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

footer p::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

#year {
  color: var(--accent);
  font-weight: 700;
  text-shadow: 0 0 20px rgba(94, 234, 212, 0.3);
}

/* Social Media Links */
.footer-social {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin: var(--space-xl) 0;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  color: var(--text-light);
  font-size: 1.2rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-social a:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-3px) scale(1.1);
  border-color: var(--primary);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

/* Footer Decorative Elements */
.footer-decoration {
  position: absolute;
  bottom: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 1;
}

.footer-decoration:nth-child(2) {
  top: -100px;
  left: -100px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(94, 234, 212, 0.08) 0%, transparent 70%);
}

/* Responsive Footer */
@media (max-width: 768px) {
  footer {
    padding: var(--space-xl) var(--space-lg);
  }

  .footer-contact {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    text-align: center;
  }

  .footer-contact div {
    align-items: center;
    text-align: center;
    padding: var(--space-xl);
  }

  .footer-contact div span::before {
    display: none;
  }

  .footer-contact a:hover {
    padding-left: 0;
  }

  .whatsapp-footer {
    width: 100%;
    max-width: 100%;
    margin: var(--space-lg) auto 0;
  }

  footer p {
    font-size: 0.85rem;
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
  }

  .footer-social {
    gap: var(--space-sm);
    margin: var(--space-lg) 0;
  }

  .footer-social a {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  footer {
    padding: var(--space-lg) var(--space-md);
  }

  .footer-contact div {
    padding: var(--space-lg);
    font-size: 0.9rem;
  }

  .whatsapp-footer {
    padding: 14px 24px;
    font-size: 0.95rem;
  }

  .footer-social {
    flex-wrap: wrap;
  }

  footer p {
    font-size: 0.8rem;
  }
}

/* Animation for footer entry */
@keyframes footerSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

footer .container > * {
  animation: footerSlideUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

footer .container > *:nth-child(1) { animation-delay: 0.1s; }
footer .container > *:nth-child(2) { animation-delay: 0.2s; }
footer .container > *:nth-child(3) { animation-delay: 0.3s; }