.footer {
  background-color: rgba(255, 255, 255, 0.121);
  backdrop-filter: blur(5px);
  box-shadow: 0 -2px 10px #72a1dea2;
  padding: 3rem 5rem;
  position: relative;
  z-index: 999;
  margin-top: 5rem;
}

.footer-content-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  text-align: center;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-nav,
.footer-social,
.footer-legal {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-nav a,
.footer-legal a {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text-color);
  transition: 0.3s;
  text-decoration: none;
}

.footer-nav a:hover,
.footer-legal a:hover {
  color: var(--main-color);
  text-decoration: underline;
  transform: translateY(-2px);
}

.footer-social a {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 30px;
  background: transparent;
  border: 0.2rem solid var(--main-color);
  border-radius: 50%;
  font-size: 20px;
  color: var(--main-color);
  z-index: 1;
  overflow: hidden;
  transition: 0.5s;
}

.footer-social a:hover {
  color: var(--bg-color);
}

.footer-social a::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: var(--main-color);
  z-index: -1;
  transition: 0.5s;
}

.footer-social a:hover::before {
  width: 100%;
}

@media (max-width: 768px) {
  .footer-content-row {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-nav,
  .footer-social,
  .footer-legal {
    justify-content: center;
    margin: 1rem 0;
  }
}

@media (max-width: 480px) {
  .footer {
    padding: 2rem;
  }

  .footer-nav a,
  .footer-legal a {
    font-size: 1.4rem;
  }

  .footer-social a {
    width: 26px;
    height: 26px;
    font-size: 18px;
  }
}
