/* Footer styling to match concept image */
.site-footer {
  font-family: 'Montserrat', sans-serif;
  color: var(--white-color);
  position: relative;
  z-index: 3;
  width: 100%;
  padding: 2rem;
  transform: scale(0.9);
  opacity: 0.8;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Footer animation when in view */
.site-footer.footer-in-view {
  transform: scale(1);
  opacity: 1;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  background-color: var(--color);
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  padding: 3rem;
}

/* Main footer content */
.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

/* Brand section */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-icon {
  background-color: var(--white-color);
  border-radius: 12px;
  width: 60px;
  height: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden; /* Ensure Lottie animation stays within bounds */
}

/* Footer Logo Lottie Animation */
.footer-logo-lottie {
  width: 70%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-logo-lottie svg {
  width: 100%;
  height: 100%;
}

.logo-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white-color);
}

.footer-description {
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--white-color);
  margin: 0;
  max-width: 400px;
  opacity: 0.9;
}

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

.social-link {
  color: var(--white-color);
  font-size: 1.2rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.social-link:hover {
  color: var(--white-color);
  font-weight: bold;
}

/* Footer Lottie Animation */
.footer-lottie {
  height: 4rem;
  margin-top: -1rem;
  margin-left: -1rem;
  filter: saturate(0) brightness(1.2);
  transition: filter 0.3s ease;
  cursor: pointer;
}

.footer-lottie:hover,
.footer-lottie.clicked {
  filter: saturate(1) brightness(1);
}

/* Footer sections */
.footer-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Footer section items animation */
.footer-section .footer-heading,
.footer-section .footer-link {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-section .footer-heading.animate-in,
.footer-section .footer-link.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.footer-heading {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white-color);
  margin: 0;
  letter-spacing: 0.5px;
}

.footer-link {
  font-size: 0.95rem;
  color: var(--white-color);
  text-decoration: none;
  transition: color 0.3s ease;
  opacity: 0.9;
}

.footer-link:hover {
  color: var(--white-color);
  font-weight: bold;
}

/* Bottom section */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 1.5rem;
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.copyright-text {
  font-size: 0.9rem;
  color: var(--white-color);
  margin: 0;
}

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

.legal-link {
  font-size: 0.9rem;
  color: var(--white-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.legal-link:hover {
  color: var(--white-color);
  font-weight: bold;
}

/* Responsive design */
@media (max-width: 1024px) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  
  .footer-brand {
    grid-column: 1 / -1;
    text-align: center;
  }
  
  .footer-logo {
    justify-content: center;
  }
  
  .footer-bottom-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .footer-legal {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .footer-legal {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .footer-social {
    justify-content: center;
  }
}