/* ===================================
  SOCIAL SIDEBAR
=================================== */
.social {
  position: fixed;
  top: 150px;
  left: 0;
  z-index: 999;
}
.social ul {
  padding: 0;
  list-style: none;
  transform: translateX(-270px);
}
.social ul li {
  display: block;
  margin: 5px;
  background: var(--sidebar-bg, rgba(15, 10, 10, 0.92));
  backdrop-filter: blur(10px);
  width: 300px;
  text-align: right;
  padding: 10px;
  border-radius: 0 30px 30px 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--border-color);
  box-shadow: var(--sidebar-shadow, 0 4px 6px rgba(0, 0, 0, 0.3));
}
.social ul li:hover {
  transform: translateX(110px);
  background: var(--sidebar-hover-bg, linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(10, 5, 5, 0.95)));
  border-color: var(--border-hover);
  box-shadow: var(--sidebar-hover-shadow, 0 8px 20px rgba(239, 68, 68, 0.25));
}
.social ul li a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  font-weight: 500;
}
.social ul li i {
  color: var(--accent-red-light);
  background: var(--sidebar-icon-bg, rgba(239, 68, 68, 0.12));
  padding: 10px;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--sidebar-icon-border, rgba(239, 68, 68, 0.15));
}
.social ul li:hover i {
  color: #ffffff;
  background: var(--sidebar-icon-hover-bg, rgba(239, 68, 68, 0.35));
  transform: rotate(360deg);
  box-shadow: var(--sidebar-icon-hover-shadow, 0 0 18px rgba(239, 68, 68, 0.35));
  border-color: var(--sidebar-icon-hover-border, rgba(239, 68, 68, 0.4));
}

/* Mobile: floating icons at bottom left (no hover slide on touch) */
@media (max-width: 768px) {
  .social {
    top: auto;
    bottom: 32px;
    left: 20px;
    transform: none;
  }
  .social ul {
    transform: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .social ul li {
    width: auto;
    padding: 0;
    margin: 0;
    transform: none !important;
    background: transparent;
    border: none;
    box-shadow: none;
  }
  .social ul li a {
    font-size: 0; /* Hide text */
    justify-content: center;
    align-items: center;
    padding: 0;
    gap: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    -webkit-tap-highlight-color: transparent;
  }
  .social ul li i {
    width: 100%;
    height: 100%;
    padding: 0;
    font-size: 20px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--sidebar-mobile-shadow, 0 4px 12px rgba(0, 0, 0, 0.4));
    background: var(--sidebar-mobile-icon-bg, rgba(15, 10, 10, 0.95));
    border: 1px solid var(--border-color);
    color: var(--accent-red-light);
  }
  .social ul li i:hover,
  .social ul li i:active {
    background: var(--sidebar-mobile-icon-active, rgba(239, 68, 68, 0.6));
    transform: scale(1.05);
  }
}