/* Grid*/



/* Container Layout (Mobile Default: 2 rows of 3) */
.social-icons-grid {
  /* Force the grid container onto a new line and clear floats */
  display: grid;
  /*clear: both;
  width: 100%;*/
  /* position: absolute; */
  /* Layout settings: 3 columns on mobile */
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  justify-items: center;
  align-items: center;
  max-width: 100%;
  margin: 0 auto;
  height: auto;
  overflow: visible;

  /*margin-top: 1rem; /* Optional: Adds spacing above the icons */
}

.social-icons-grid a{

  background-color: white;
  padding: 1em;
  border-radius: 50%;
  height: 64px;
  width: 64px;
  box-sizing: border-box;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
  object-fit: cover;
}
.social-icons-grid a svg{
  height: 32px;
}
.social-icons-grid a::before{
  content: attr(data-social);
  position: absolute;
  background-color: var(--accent-color);
  color: white;
  text-decoration: none;
  padding: 0.5em 1em;
  border-radius: 100px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
  transform: translateY(-30px) rotate(25deg);
  opacity: 0;
  transition: 200ms cubic-bezier(.42,0,.44,1.68);
}
.social-icons-grid a:hover{
  background-color: var(--accent-color);
  fill: white;
}
.social-icons-grid a::after{
  content: '';
  position: absolute;
  height: 0;
  width: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 10px solid var(--accent-color);
  transform: translateY(0) rotate(25deg);
  opacity: 0;
  transition: 200ms cubic-bezier(.42,0,.44,1.68);
}
.social-icons-grid a:hover::before{
  transform: translateY(-65px) rotate(0);
  opacity: 1;
}
.social-icons-grid a:hover::after{
  transform: translateY(-42px) rotate(0);
  opacity: 1;
}
/* Desktop Layout (1 row of 6) */
@media (min-width: 768px) {
  .social-icons-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
  }
}
