/* Footer Styles */
.main-footer {
  position: relative;
  background: var(--primary);
  color: var(--primary-foreground);
  margin-top: 0;
  overflow: hidden;
}


.footer-wave svg {
  width: 100%;
  display: block;
  transform: rotate(180deg);
}

/* Footer Main */
.footer-main {
  position: relative;
  z-index: 2;
  padding: 3rem 0 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-top: 20px;
}

/* Footer Column */
.footer-column {
  display: flex;
  flex-direction: column;
}

.footer-about {
  max-width: 24rem;
}

.footer-logo {
  margin-bottom: 1.5rem;
}

.footer-logo-img {
  height: 50px;
  width: auto;
}

.footer-description {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Social Links */
.footer-social {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(52, 168, 121, 0.3);
}

.social-link svg {
  width: 1.125rem;
  height: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
}

.social-link:hover svg {
  color: white;
}

/* Footer Title */
.footer-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: white;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 2.5rem;
  height: 2px;
  background: var(--accent);
}

/* Footer Links */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links li a {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
  display: inline-block;
  position: relative;
}

.footer-links li a::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.footer-links li a:hover {
  color: var(--accent);
  transform: translateX(4px);
}

.footer-links li a:hover::before {
  width: 100%;
}

/* Footer Contact */
.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-contact li {
  display: flex;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

.contact-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  margin-top: 0.125rem;
  color: var(--accent);
}

.footer-contact strong {
  color: white;
  display: block;
  margin-bottom: 0.25rem;
}

/* Footer Bottom */
.footer-bottom {
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 2;
}

.footer-bottom-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.copyright {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.footer-legal a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
}

.footer-legal a:hover {
  color: var(--accent);
}

.separator {
  color: rgba(255, 255, 255, 0.3);
}

.footer-badges {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.badge {
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

/* Scroll to Top Button */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: var(--accent);
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 998;
  box-shadow: 0 4px 12px rgba(52, 168, 121, 0.3);
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  background: hsl(152, 60%, 38%);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(52, 168, 121, 0.4);
}

.scroll-top svg {
  width: 1.5rem;
  height: 1.5rem;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.footer-column {
  animation: fadeInUp 0.6s ease-out backwards;
}

.footer-column:nth-child(1) {
  animation-delay: 0.1s;
}

.footer-column:nth-child(2) {
  animation-delay: 0.2s;
}

.footer-column:nth-child(3) {
  animation-delay: 0.3s;
}

.footer-column:nth-child(4) {
  animation-delay: 0.4s;
}

.footer-column:nth-child(5) {
  animation-delay: 0.5s;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 2.5rem;
  }

  .footer-grid .footer-column:nth-child(3) {
    grid-column: 1;
  }

  .footer-grid .footer-column:nth-child(4) {
    grid-column: 2;
  }

  .footer-grid .footer-column:nth-child(5) {
    grid-column: 3 / -1;
  }
}

@media (max-width: 991px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-about {
    max-width: 100%;
    /* grid-column: 1 / -1; */
  }

  .footer-grid .footer-column:nth-child(3),
  .footer-grid .footer-column:nth-child(4),
  .footer-grid .footer-column:nth-child(5) {
    grid-column: auto;
  }
}

@media (max-width: 768px) {
  .footer-main {
    padding: 4rem 0 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }


  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .footer-legal {
    justify-content: center;
  }

  .footer-badges {
    justify-content: center;
  }

  .scroll-top {
    bottom: 1rem;
    right: 1rem;
    width: 2.75rem;
    height: 2.75rem;
  }
}

@media (max-width: 480px) {
  .footer-social {
    justify-content: center;
  }

  .footer-title {
    text-align: center;
  }

  .footer-title::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-links {
    align-items: center;
  }

  .footer-contact li {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}