.base {
  position: absolute;
  bottom: 150px;
  transform: translateX(-50%);
  width: 70px;
  height: 50px;
  background: linear-gradient(145deg, #34495e, #2c3e50);
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
  z-index: 10;
}

.segment1 {
  width: 100px;
  height: 20px;
  background: linear-gradient(145deg, #e74c3c, #c0392b);
  animation: rotate1 4s ease-in-out infinite;
}

.arm-segment {
  position: absolute;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  transform-origin: left center;
}

.segment2 {
  width: 80px;
  height: 18px;
  background: linear-gradient(145deg, #3498db, #2980b9);
  animation: rotate2 4s ease-in-out infinite;
}

.segment3 {
  width: 60px;
  height: 16px;
  background: linear-gradient(145deg, #e74c3c, #c0392b);
  animation: rotate3 4s ease-in-out infinite;
}

.segment4 {
  width: 40px;
  height: 14px;
  background: linear-gradient(145deg, #3498db, #2980b9);
  animation: rotate4 4s ease-in-out infinite;
}

.joint {
  position: absolute;
  width: 10px;
  height: 10px;
  background: #2c3e50;
  border-radius: 50%;
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 15;
}

.end-effector {
  position: absolute;
  width: 32px;
  height: 4px;
  background: linear-gradient(145deg, #e62d2d, #ab1111);
  border-radius: 10%;
  box-shadow: 0 0 10px rgba(255, 19, 19, 0.6);
  right: -32px;
  top: 50%;
  transform: translateY(-50%);
}

