/* Base styles for social media icons */
.social-icons {
  position: fixed;
  top: 55%;
  right: 10px; /* Reverting to the previous position for desktop view */
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000; /* Adjust this value if necessary */
  opacity: 0; /* Initially hidden */
  transition: opacity 0.3s ease;
  pointer-events: none; /* Disable interactions when invisible */
}

.social-icons.visible {
  opacity: 1; /* Show icons */
  pointer-events: auto; /* Enable interactions when visible */
}

.social-icons a {
  background-color: #d32f2f;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
  background-color: #b71c1c;
  transform: scale(1.1); /* Slight zoom effect on hover */
}

/* Tablet and mobile responsiveness */
@media screen and (max-width: 768px) {
  .social-icons {
    right: 12px; /* Slightly closer for tablet screens */
  }

  .social-icons a {
    width: 35px; /* Reduce the size of the icons */
    height: 35px;
    font-size: 16px; /* Adjust the font size */
  }
}

@media screen and (max-width: 480px) {
  .social-icons {
    right: 5px; /* Reduce the right margin to bring icons closer to the screen edge */
    top: 50%; /* Keep it centered vertically */
  }

  .social-icons a {
    width: 30px; /* Further reduce the size of the icons */
    height: 30px;
    font-size: 14px; /* Adjust the font size */
  }

  .social-icons {
    gap: 8px; /* Reduce the gap between icons on smaller screens */
  }
}

/* Large Screens (2560px and above) */
@media screen and (min-width: 2560px) {
  .social-icons {
    right: 20px; /* Increase the right margin for better spacing */
  }

  .social-icons a {
    width: 60px; /* Increase the size of the icons */
    height: 60px;
    font-size: 24px; /* Increase the font size */
  }

  .social-icons {
    gap: 15px; /* Increase the gap between icons */
  }

  .social-icons a:hover {
    transform: scale(1.2); /* Slightly larger hover effect */
  }
}
