footer {
  border: 1px var(--border-color) solid;
  border-radius: 2rem;
  padding: 1.25rem;
  margin-bottom: 1.75rem;
  background-color: var(--blur-button-background-color);
  position: relative;
  overflow: hidden;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--footer-hover-gradient); /* The gradient background */
  border-radius: inherit; /* Match parent’s border-radius */
  opacity: 0; /* Start invisible */
  transition: opacity 0.3s ease; /* Smooth opacity transition */
  z-index: 0; /* Place it below the card content */
}

footer > * {
  position: relative;
  z-index: 1;
}

.connect {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  margin-bottom: 1.5rem;
}

.email h4 {
  font-weight: normal;
}

.info h2 {
  font-size: 2rem;
}

.info hr {
  border: 1px var(--border-color) solid;
  border-radius: 1rem;
  width: 100%;
}

.message-button,
.email {
  background: var(--button-background-color);
  border-radius: 1.25rem;
  border: 1px var(--border-color) solid;
  transition: transform 0.3s cubic-bezier(0.2, 2, 0.3, 1.8),
    background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  color: var(--button-text-color);
  padding: 0.5rem 0.625rem;
  font-size: 1rem;
  -webkit-tap-highlight-color: transparent;
}

.message-button span,
.email span {
  transition: transform 0.3s cubic-bezier(0.2, 2, 0.3, 1.8);
}

.message-text span {
  font-size: 1.625rem;
  display: block;
}

.email:active,
.message-button:active {
  background: var(--button-hover);
  color: var(--title-color);
  transform: scale(0.95);
}



.connect h3 {
  margin: 0.25rem 0rem;
}

.social-icon {
  color: var(--social-icon-color);
  transition: all 0.15s;
  display: block;
  font-size: 2rem;
  cursor: pointer;
}

.social-section a {
  display: flex;
  justify-content: center;
  align-items: center;
}

.connect-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.social-section {
  display: flex;
  gap: 1.375rem;
}

@media (min-width: 769px) {
  footer:hover::before {
    opacity: 1;
  }

  .email:hover,
  .message-button:hover {
    color: var(--title-color);
    background-color: var(--button-hover);
    transform: translateY(-4px);
  }

  .email:active,
  .message-button:active {
    transform: scale(0.99);
  }

  .social-icon:hover {
    color: var(--title-color);
  }
}

@media (max-width: 600px) {
  .connect-section {
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 1rem;
  }

  .message-button {
    margin: 0.75rem 0rem;
  }

  .social-section {
    justify-content: space-around;
    margin: 0rem 0.625rem;
    width: -webkit-fill-available;
  }

  .message-button,
  .email {
    border-radius: 1rem;
  }
}

@media (min-width: 600px) and (max-width: 768px) {
  .message-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .message-button {
    padding: 0.625rem 0.75rem;
  }

  .message-button,
  .email {
    border-radius: 1rem;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .message-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .message-button,
  .email {
    padding: 0.75rem;
  }

  .info h2 {
    font-size: 2.375rem;
  }

  .message-text span {
    font-size: 1.75rem;
  }

  .email h4 {
    font-size: 1rem;
  }

  .connect {
    font-size: 1.5rem;
  }
}

@media (min-width: 1025px) and (max-width: 1920px) {
  footer {
    width: 70%;
    max-width: 1020px;
    margin: 0 auto 1.75rem;
  }

  .message-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .message-button,
  .email {
    padding: 0.75rem;
  }

  .info h2 {
    font-size: 3rem;
  }

  .message-text span {
    font-size: 2.25rem;
  }

  .email h4 {
    font-size: 1rem;
  }

  .connect {
    font-size: 1.5rem;
  }
}

@media (min-width: 1921px) {
  footer {
    padding: 1.25rem 1.5rem;
    width: 60%;
    max-width: 1280px;
    margin: 0 auto 1.75rem;
  }

  .message-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .message-button,
  .email {
    padding: 1rem;
    font-size: 1.25rem;
  }

  .info h2 {
    font-size: 3.75rem;
  }

  .message-text span {
    font-size: 2.625rem;
  }

  .email h4 {
    font-size: 1.25rem;
  }

  .connect {
    font-size: 1.875rem;
  }
}
