/* Footer */
footer {
  background: var(--text-dark);
  color: var(--bg-white);
  padding: 0.75rem 2rem;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  transition:
    padding 0.5s ease,
    height 0.5s ease;
  overflow: hidden;
  height: auto;
}

body.dark-mode footer {
  background: #0f1216;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.25);
}

footer.expanded {
  padding: 3rem 2rem 2rem 2rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.footer-name {
  font-size: 1.1rem;
  letter-spacing: 0.5px;
}

body.dark-mode .footer-name,
html.dark-mode-init body .footer-name {
  color: #ffffff;
}

body.dark-mode footer a,
html.dark-mode-init body footer a {
  color: #ffffff;
}

.footer-links {
  display: flex;
  gap: 4rem;
  flex-wrap: wrap;
  flex: 1;
  justify-content: center;
  align-items: center;
}

footer a {
  color: var(--bg-white);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  opacity: 0.7;
}

footer.expanded a {
  opacity: 1;
  font-size: 1.1rem;
}

footer.expanded a::after {
  width: 70%;
}

footer a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

footer a:hover {
  transform: translateY(-2px);
}

footer a:hover::after {
  width: 85%;
}

footer .contact-icon {
  filter: brightness(0) invert(1);
  opacity: 0.9;
}
