.footer {
  position: relative;
  text-align: center;
  padding-top: 10px;
  color: var(--heading-color);
  margin-bottom: 15px;
  transition: color 0.4s ease;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  height: 2px;
  background: rgba(0, 0, 0, 0.06);
}

.footer-content {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 25px;
  gap: 20px;
  margin-top: 24px;
  position: relative;
}

.footer-content img,
.footer-content svg {
  height: 25px;
  width: auto;
  display: block;
  transition: transform 0.4s ease;
}

.back-to-top .arrow-icon {
  width: 35px;
  height: 35px;
}

.footer-content img:hover,
.footer-content svg:hover {
  transform: scale(1.1);
}

.linkedin path,
.github path {
  fill: var(--text-color);
}

.dark-mode .linkedin path,
.dark-mode .github path {
  fill: var(--text-color);
}

.back-to-top {
  height: 35px;
  right: 5%;
  position: absolute;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.back-to-top:hover {
  transform: scale(1.1);
}

.arrow-icon {
  display: block;
  width: 40px;
  height: 40px;
}

.arrow-icon circle,
.arrow-icon path {
  stroke: var(--text-color);
  stroke-width: 2px;
  transition: stroke 0.3s ease;
  vector-effect: non-scaling-stroke;
}

.arrow-circle {
  stroke-dasharray: 4 3;
  transition: stroke-dasharray 0.5s ease;
}

.back-to-top:hover .arrow-circle {
  stroke-dasharray: 0;
}

.download-icon {
  fill: var(--text-color);
}

#download-icon {
  background: #cae4fa;
  border-radius: 999px;
  padding: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.04);
  border: 2px solid rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(2px);
  transition: all 0.25s ease;
}

.cv-button {
  position: absolute;
  left: 5%;
  display: flex;
  align-items: center;
  gap: 10px;
}

#cv-button {
  text-decoration: none;
  color: var(--text-color);
}

.cv-text {
  opacity: 0;
  transform: translateX(6px);
  white-space: nowrap;
  transition: opacity 2.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s,
    transform 2.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s,
    filter 2.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s;
  pointer-events: none;
  position: relative;
  z-index: -1;
}

.download-icon:hover + .cv-text {
  opacity: 1;
  transform: translateX(0);
}

.cv-button:hover .cv-text:hover {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.dark-mode #download-icon {
  background: rgba(255, 255, 255, 0.1);
}
@media (max-width: 768px) {
  .footer-content {
    flex-wrap: wrap;
    gap: 15px;
    padding: 0 20px;
  }

  .cv-button {
    position: static;
    order: 1;
  }

  .back-to-top {
    position: static;
    order: 3;
    margin-left: auto;
  }

  /* Center social icons */
  .footer-content > a:not(.cv-button):not(.back-to-top) {
    order: 2;
  }
}

@media (max-width: 480px) {
  .footer-content {
    justify-content: space-between;
  }

  .cv-button {
    width: 100%;
    justify-content: center;
    margin-bottom: 10px;
  }

  .back-to-top {
    margin-left: 0;
  }

  .footer-content > a:not(.cv-button):not(.back-to-top) {
    margin: 0 5px;
  }
}
