/* === Right‑Middle Hover Sidebar ===================== */

/* Sidebar container */
.sidenav {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  z-index: 999;
}

/* Links inside sidebar */
.sidenav a {
  position: relative;
  right: -80px;
  transition: right 0.3s ease, width 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0;
  padding: 12px;
  width: 120px;
  font-family: sans-serif;
  font-size: 16px;
  color: #fff;
  text-decoration: none;
  border-radius: 5px 0 0 5px;
}

/* Hover behavior on desktop */
@media (hover: hover) {
  .sidenav a:hover {
    right: 0;
    width: 100%;
  }
}

/* Icon styling */
.sidenav i {
  font-size: 20px;
}

/* Hide text label on small screens, show icon only */
@media (max-width: 575.98px) {
  .sidenav a {
    right: 0;
    width: 28px;
    justify-content: center;
    padding: 8px;
  }

  .sidenav .label {
    display: none;
  }
}

/* Button colors */
#about1    { background: #04aa6d; }
#blog1     { background: #2196f3; }
#projects1 { background: #f44336; }
#contact1  { background: #555555; }

/* === End of sidebar.css ============================= */


/* Smaller icon size on mobile */
@media (max-width: 575.98px) {
  .sidenav i {
    font-size: 16px; /* or 14px if you want it even smaller */
  }
}
