.footer {
  position: relative;
  background-color: rgba(0, 0, 0, 1);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-right: none;
  border-left: none;
  border-bottom: none;
  width: 100%;
  min-height: 80px;
  padding: 20px 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 200;
  flex-shrink: 0;
  margin-top: 0 ;
  overflow: visible;
}

.footer-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  flex-direction: column;
  position: relative;
  z-index: 500;
  margin-bottom: 20px;
  overflow: visible;
}

.footer-content a {
  will-change: auto;
}

.footer-content a:hover::after {
  width: 100%;
  will-change: width;
}

.footer-content a:not(:hover)::after {
  will-change: auto;
}

.footer-title-wrapper {
  position: relative;
  display: inline-block;
  overflow: visible;
  min-width: 10.5ch;
  width: auto;
  text-align: center;
}

.footer-title {
  font-family: Inter, sans-serif;
  font-size: 1.2rem;
  font-weight: bold;
  color: rgba(255, 255, 255, 0.4);
  position: relative;
  display: inline-block;
  white-space: nowrap;
  overflow: visible;
  transition: opacity 0.5s ease-in-out;
}

.footer-title:hover {
  color: #ffffff;
}

.footer-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5em;
}

.footer-icon,
.footer-iconn,
.footer-iconnn {
  display: flex;
  position: relative;
  align-items: center;
  opacity: 0;
  transform: translateY(30px);
  justify-content: center;
  transition: transform 0.5s ease-out, opacity 1s ease-out;
}

.footer-icon.animate,
.footer-iconn.animate,
.footer-iconnn.animate {
  opacity: 1;
  transform: translateY(0);
}

.footer-icon img,
.footer-icon svg,
.footer-iconn img,
.footer-iconn svg,
.footer-iconnn img,
.footer-iconnn svg {
  width: 32px;
  height: 32px;
  opacity: 0.4;
  filter: brightness(0) invert(1);
  transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
  cursor: pointer !important; 
  pointer-events: all;
}

.footer-icon:hover img,
.footer-icon:hover svg,
.footer-iconn:hover img,
.footer-iconn:hover svg,
.footer-iconnn:hover img,
.footer-iconnn:hover svg {
  opacity: 1;
}

.line {
  position: relative;
  width: 2px;
  height: 40px;
  margin: 0.5rem auto;
  background-color: rgba(13, 13, 13, 1);
  overflow: visible;
  z-index: 11;
}

.line::before {
  content: "";
  position: absolute;
  bottom: -100%;
  left: 0;
  width: 100%;
  height: 40px;
  background: linear-gradient(
    to top,
    transparent 0%,
    rgba(255, 255, 255, 1),
    transparent 100%
  );
  animation: anm 2.5s linear infinite;
}

.footer-copyright {
  display: flex;
  position: absolute; 
  left: 3rem;
  top: 50%;
  padding: 0.5rem 1rem;
  transform: translateY(-50%);
  align-items: center;
  justify-content: flex-end;
  text-align: right;
  font-family: 'Inter', sans-serif;
  font-size: 0.90rem;
  color: rgba(255, 255, 255, 1);
  z-index: 500;
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
  pointer-events: auto;
  overflow: visible;
}

.underline-text {
  position: relative;
  display: inline-block;
  margin: 0;
}

.underline-text::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;       
  width: 100%;         
  border-bottom: 2px dashed #ffffff; 
  transition: bottom 0.2s ease, opacity 0.2s ease;
  opacity: 0.8;
}

.copyright-link:hover .underline-text::after {
  bottom: -4px;
  opacity: 1;
}

.copyright-link {
  color: inherit;
  text-decoration: none;
  position: relative;
  transition: background-color 0.15s ease-in-out, color 0.15s ease-in-out;
  display: inline-block;
  padding: 0;
}

.copyright-link:hover::after {
  bottom: -5px;
  opacity: 1;
}

.copyright-link:hover {
  background-color: #075985;
  border-radius: 2px;
}

.copyright-link .tooltip-bubble {
  position: absolute;
  bottom: 40%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  color: #ffffff;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  transform: translateX(-50%) translateY(-14px);
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
  z-index: 1000;
  font-weight: 500;
}

.copyright-link .tooltip-bubble::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
}

.copyright-link:hover .tooltip-bubble {
  opacity: 1;
}

.tooltip-bubble {
  color: #ffffff;
  font-family: 'Satoshi', sans-serif;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  opacity: 0;
  overflow: visible;
}

.copyright-link:hover .tooltip-bubble {
  opacity: 1;
  visibility: visible;
}


@keyframes anm {
  0% {
    bottom: -100%;
    opacity: 0;
  }
  25% {
    bottom: -50%;
    opacity: 0.5;
  }
  50% {
    bottom: 0%;
    opacity: 1;
  }
  75% {
    bottom: 50%;
    opacity: 1;
  }
  100% {
    bottom: 100%;
    opacity: 0;
  }
}

@media (max-width: 860px) {
  .footer {
    flex-direction: column;
    gap: 1rem;
    padding-bottom: 60px;
    overflow: visible;
  }

  .footer-content {
    flex-direction: column;
    gap: 0.8em;
  }

  .footer-title-wrapper {
    width: auto;
    text-align: center;
    overflow: visible;
  }

  .line {
    margin: 0.5rem auto;
    height: 35px;
  }

  .line::before {
    height: 35px;
  }

  .footer-icons {
    gap: 2em;
  }

  .footer-icon,
  .footer-iconn,
  .footer-iconnn {
    flex-direction: column;
    transform: translateY(15px);
  }

  .footer-copyright {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    right: auto;
    top: auto;
    transform: translateX(-50%);
    justify-content: center;
    text-align: center;
    overflow: visible;
  }

  @keyframes anm-horizontal {
    0% {
      left: -100%;
      opacity: 0;
    }
    25% {
      left: -50%;
      opacity: 0.5;
    }
    50% {
      left: 0%;
      opacity: 1;
    }
    75% {
      left: 50%;
      opacity: 1;
    }
    100% {
      left: 100%;
      opacity: 0;
    }
  }
}