.buttons {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.buttons__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: var(--text-1);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  text-decoration: none;
  transition: color 150ms ease, border-color 150ms ease, background-color 150ms ease;
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  position: relative;
}

.buttons__link:active::before {
  opacity: 1;
  background: conic-gradient(
    from var(--border-angle, 225deg),
    #32d74b 0deg,
    #4fd431 180deg,
    #32d74b 360deg
  );
}


#projects-heading:active::before {
  background: conic-gradient(
    from var(--border-angle, 225deg),
    var(--teal-500) 0deg,
    var(--pink-500) 180deg,
    var(--teal-500) 360deg
  );
  opacity: 0; 
}


#projects-heading:hover:active::before,
#projects-heading:focus-visible:active::before {
  opacity: 1;
  animation: buttons-gradient-rotate 12s linear infinite;
}

.buttons__link::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(
    from var(--border-angle, 225deg),
    var(--teal-500) 0deg,
    var(--pink-500) 180deg,
    var(--teal-500) 360deg
  );
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 200ms ease;
  z-index: 0;
}

.buttons__link:hover::before,
.buttons__link:focus-visible::before {
  opacity: 1;
  animation: buttons-gradient-rotate 12s linear infinite;
}


#about-toggle[aria-expanded="true"]::before {
  opacity: 1;
  animation: buttons-gradient-rotate 12s linear infinite;
}


#about-toggle i {
  transition: transform 420ms cubic-bezier(0.4, 0.0, 0.2, 1);
}
#about-toggle[aria-expanded="true"] i {
  transform: rotate(180deg);
}


#btn-toggle-disabled[aria-expanded="true"]::before {
  opacity: 1;
  animation: buttons-gradient-rotate 12s linear infinite;
}

@keyframes buttons-gradient-rotate {
  from { --border-angle: 225deg; }
  to   { --border-angle: 585deg; }
}

.buttons__link:hover,
.buttons__link:focus-visible {
  border-color: transparent;
  background: rgba(255, 255, 255, 0.06);
}

.buttons__link:focus {
    outline: none;
}

.buttons__link:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--teal-500) 50%, var(--pink-500) 50%);
    outline-offset: 2px;
}

.buttons__link i {
  font-size: 18px;
  line-height: 1;          
  display: inline-block;   
  width: auto;             
  height: auto;
  position: relative;
  z-index: 1;
}
.buttons__link:hover i,
.buttons__link:focus-visible i {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.btn.buttons__link {
  width: auto;
  height: auto;
  padding: 8px 12px;
}


#projects-heading.buttons__link.btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  margin: 0 0 8px 0;
  cursor: default;
  color: var(--text-1);
}

#projects-heading .btn__label {
  font-size: inherit;
  font-weight: inherit;
  line-height: 1;
}

#projects-heading.buttons__link.btn:hover,
#projects-heading.buttons__link.btn:focus,
#projects-heading.buttons__link.btn:focus-visible {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
  outline: none;
}